[03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [03:28:53]OFD Sender: No OFD packet to send [03:28:58]OFD Sender: No OFD packet to send [03:29:03]OFD Sender: No OFD packet to send [03:29:08]OFD Sender: No OFD packet to send [03:29:13]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:30]accept exits with 7 [03:35:30]New connection [03:35:30]New thread 3067448676 created [03:35:30]Thread 3067305316 joined [03:35:30]Waiting for new connection... [03:35:30] Sock 7.Parse request [03:35:30]Sock 7.Check first char [03:35:30]Sock 7.First char is OK [03:35:30]request: POST /json_proto HTTP/1.0 [03:35:30]Method: POST [03:35:30]URL: /json_proto [03:35:30]Method is POST - this is cgi request [03:35:30]url: /json_proto [03:35:30]query_string will be loaded in cgi processing [03:35:30]execute_cgi json_proto POST (null) [03:35:30]execute_cgi path=json_proto method=POST [03:35:30]POST find Content-Length [03:35:30]Host: 172.17.41.136:8080 [03:35:30]Content-Length: 620 [03:35:30]Content-Type: application/json [03:35:30] [03:35:30]POST finish read [03:35:30]Found Content-Length = 620 [03:35:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343758", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:35:30]execute_script... [03:35: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 : (3)343758", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:35:30]POST & json_proto [03:35:30]process_json_proto [03:35:30]json parsed OK: [03:35:30]protocol is kg_v1.0 [03:35:30]action value=close_receipt [03:35:30]process_action close_receipt [03:35:30]cmd_close_receipt [03:35:30]MH_GetDate [03:35:30]Write to MH i2c: F0 00 00 16 06 0B [03:35:30]Write i2c OK [03:35:30]MH_I2C_Read... [03:35:30]Read from MH i2c: F0 [03:35:30]MH_I2C_Read... [03:35:30]Read from MH i2c: F0 09 00 [03:35:30]MH_I2C_Read... [03:35:30]Read from MH i2c: F0 09 00 16 06 00 83 90 EF 66 1B D0 5A 64 25 [03:35:30]GetLastDocTimeStamp 1726974258 [03:35:30]current date 1726976131 [03:35:30]FM_GetShiftState [03:35:30]SAM_PROTO_GetShiftState [03:35:30]wFMCommunicate request_size=4 [03:35:30]MH_SAM_APDU [03:35:30]CAPDU: 80 13 01 00 [03:35:30]Write to MH i2c: E2 08 00 17 06 80 13 01 00 00 00 00 00 9A [03:35:30]Write i2c OK [03:35:30]MH_I2C_Read... [03:35:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:35:30]Read from MH i2c: E2 [03:35:30]MH_I2C_Read... [03:35:30]Read from MH i2c: E2 0E 00 [03:35:30]MH_I2C_Read... [03:35:30]Read from MH i2c: E2 0E 00 17 06 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B3 [03:35:30]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [03:35:30]wFMCommunicate OK [03:35:30]SAM_PROTO_GetShiftState done [03:35:30]FM_GetShiftState done [03:35:30]opened in 1726965840 [03:35:30]opened+sec_in_day 1727052240 [03:35:30]quantity*price = 40500 [03:35:30]sum+1 = 40501 [03:35:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 17 22.09.2024 03:35 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115299 ФПД: 280334951287083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T033531&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115299&fm=280334951287083&tin=02508201610067®Number=0000000000091831&sum=40500 0 [03:35:31]StoreToDocumentArchive [03:35:31]shift 471 fd 115299 [03:35:31]save to /storage/0471/doc_00115299 [03:35:31]save last doc name /storage/0471/doc_00115299 to /storage/kkm_last_doc_name [03:35:31]save OK [03:35:31]Clear old archive folders... [03:35:31]ProcessDocumentItem done err = 0, tmpTLVsize=280 [03:35:31]tlvbuf is 00999740 [03:35:31]SAM_PROTO_ClearQueue [03:35:31]wFMCommunicate request_size=4 [03:35:31]MH_SAM_APDU [03:35:31]CAPDU: 80 09 00 00 [03:35:31]Write to MH i2c: E2 08 00 24 06 80 09 00 00 00 00 00 00 9C [03:35:31]Write i2c OK [03:35:31]MH_I2C_Read... [03:35:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:35:31]Read from MH i2c: E2 [03:35:31]MH_I2C_Read... [03:35:31]Read from MH i2c: E2 03 00 [03:35:31]MH_I2C_Read... [03:35:31]Read from MH i2c: E2 03 00 24 06 00 90 00 9E [03:35:31]RAPDU: 90 00 [03:35:31]wFMCommunicate OK [03:35:31]SAM_PROTO_ClearQueue done [03:35:31]KKMCreateOFDPacket [03:35:31]OFDProtocolAddRootSTLVToBuf [03:35:31]FM_MakeSignedData [03:35:31]FM_MakeSignedData [03:35:31]SAM_PROTO_SignData [03:35:31]wFMCommunicate request_size=4 [03:35:31]MH_SAM_APDU [03:35:31]CAPDU: 80 0D 01 02 [03:35:31]Write to MH i2c: E2 08 00 25 06 80 0D 01 02 00 00 00 00 A4 [03:35:31]Write i2c OK [03:35:31]MH_I2C_Read... [03:35:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:35:31]Read from MH i2c: E2 [03:35:31]MH_I2C_Read... [03:35:31]Read from MH i2c: E2 03 00 [03:35:31]MH_I2C_Read... [03:35:31]Read from MH i2c: E2 03 00 25 06 00 90 00 9F [03:35:31]RAPDU: 90 00 [03:35:31]wFMCommunicate OK [03:35:31]wFMCommunicate request_size=255 [03:35:31]MH_SAM_APDU [03:35:31]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 83 90 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 [03:35:31]Write to MH i2c: E2 02 01 26 06 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 83 90 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 00 00 ED [03:35:31]Write i2c OK [03:35:31]MH_I2C_Read... [03:35:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:35:31]Read from MH i2c: E2 [03:35:31]MH_I2C_Read... [03:35:31]Read from MH i2c: E2 03 00 [03:35:31]MH_I2C_Read... [03:35:31]Read from MH i2c: E2 03 00 26 06 00 90 00 A0 [03:35:31]RAPDU: 90 00 [03:35:31]wFMCommunicate OK [03:35:31]wFMCommunicate request_size=39 [03:35:31]MH_SAM_APDU [03:35:31]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 63 C2 01 00 35 04 06 00 FE F6 91 30 89 2B [03:35:31]Write to MH i2c: E2 2A 00 27 06 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 63 C2 01 00 35 04 06 00 FE F6 91 30 89 2B 00 00 EC [03:35:31]Write i2c OK [03:35:31]MH_I2C_Read... [03:35:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:35:31]Read from MH i2c: E2 [03:35:31]MH_I2C_Read... [03:35:31]Read from MH i2c: E2 03 00 [03:35:31]MH_I2C_Read... [03:35:31]Read from MH i2c: E2 03 00 27 06 00 90 00 A1 [03:35:31]RAPDU: 90 00 [03:35:31]wFMCommunicate OK [03:35:31]wFMCommunicate request_size=4 [03:35:31]MH_SAM_APDU [03:35:31]CAPDU: 80 0D 03 02 [03:35:31]Write to MH i2c: E2 08 00 28 06 80 0D 03 02 00 00 00 00 A9 [03:35:31]Write i2c OK [03:35:31]MH_I2C_Read... [03:35:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:35:32]Read from MH i2c: E2 [03:35:32]MH_I2C_Read... [03:35:32]Read from MH i2c: E2 0B 00 [03:35:32]MH_I2C_Read... [03:35:32]Read from MH i2c: E2 0B 00 28 06 00 47 24 74 F0 26 3A CC 26 90 00 CB [03:35:32]RAPDU: 47 24 74 F0 26 3A CC 26 90 00 [03:35:32]wFMCommunicate OK [03:35:32]SAM_PROTO_SignData done [03:35:32]FM_MakeSignedData done [03:35:32]CreateOFDProtocolMessage [03:35:32]wFMCommunicate request_size=4 [03:35:32]MH_SAM_APDU [03:35:32]CAPDU: 80 11 00 00 [03:35:32]Write to MH i2c: E2 08 00 29 06 80 11 00 00 00 00 00 00 A9 [03:35:32]Write i2c OK [03:35:32]MH_I2C_Read... [03:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:35:32]Read from MH i2c: E2 [03:35:32]MH_I2C_Read... [03:35:32]Read from MH i2c: E2 17 00 [03:35:32]MH_I2C_Read... [03:35:32]Read from MH i2c: E2 17 00 29 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F7 [03:35:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:35:32]wFMCommunicate OK [03:35:32]CreateOFDProtocolMessage done [03:35:32]OFDSenderStorePacket 115299 [03:35:32]StoreOFDPacket docnum=115299 [03:35:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2C 01 00 00 F4 42 24 01 14 72 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 83 90 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 63 C2 01 00 35 04 06 00 FE F6 91 30 89 2B 47 24 74 F0 26 3A CC 26 [03:35:32]CheckFolder [03:35:32]dirname=/storage/ofd_packets [03:35:32]CheckFolder done [03:35:32]ProducePacketName [03:35:32]name=ofd_packets/00115299 [03:35:32]NVStorageSaveData ofd_packets/00115299 [03:35:32]File name is /storage/ofd_packets/00115299 [03:35:32]Write 330 bytes [03:35:32]NVStorageSaveData done [03:35:32]OFDSenderStorePacket done [03:35:32]KKMCreateOFDPacket done [03:35:32]NVStorageSaveData kkm_last_timestamp [03:35:32]File name is /storage/kkm_last_timestamp [03:35:32]Write 4 bytes [03:35:32]NVStorageSaveData done [03:35:32]ExternCall_PrintAddStr [03:35:32]wPrintStart [03:35:32]Write to MH i2c: 01 00 00 2A 06 30 [03:35:32]Write i2c OK [03:35:32]MH_I2C_Read... [03:35:32]Read from MH i2c: 01 [03:35:32]MH_I2C_Read... [03:35:32]Read from MH i2c: 01 07 00 [03:35:32]MH_I2C_Read... [03:35:32]Read from MH i2c: 01 07 00 2A 06 00 00 00 00 00 FF 0F 45 [03:35:32]RasterBufferAndPrint [03:35:32]line Счет N : (3)343758 [03:35:32]line ИНН: 02508201610067 [03:35:32]line Контрольно-Кассовый Чек [03:35:32]line ПРОДАЖА [03:35:32]line Товар: 4650063110756 [03:35:32]line Масло Gazpromneft Super 10w40 1л [03:35:32]line 1.000 * 405.00 [03:35:32]line = 405.00 [03:35:32]line НДС 12% НСП 1% [03:35:32]line > о реализуемом товаре [03:35:32]line ИТОГО: 405.00 [03:35:32]line НСП 1% : 3.58 [03:35:32]line НДС 12% : 43.01 [03:35:32]line Наличными: 405.00 [03:35:32]line Безнал.: 0.00 [03:35:32]line Место: АЗС № 90 "Партнер Нефть" [03:35:32]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [03:35:32]line СНО: Общий режим [03:35:32]line Чек 17 22.09.2024 03:35 [03:35:32]line Смена: 471 ФФД: 1.0 [03:35:32]line ЗНМ: 0300000120 [03:35:32]line РНМ: 0000000000091831 [03:35:32]line Версия ККМ: 001 [03:35:32]line ФМ: 0000000000871830 [03:35:32]line ФД: 115299 [03:35:32]line ФПД: 280334951287083 [03:35:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T033531&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115299&fm=280334951287083&tin=02508201610067®Number=0000000000091831&sum=40500 [03:35:32]line 0 [03:35:32]OFD Sender: Processing packet 115299 [packets to send 481, broken 480] [03:35:32]ProducePacketName [03:35:32]name=ofd_packets/00115299 [03:35:32]OFD Sender: To server: pG, [03:35:32]CommunicateWithHost lk.salyk.kg:30040 [03:35:32]ConnectInit lk.salyk.kg [03:35:32]written 0, free lines is 4095 [03:35:32]Write to MH i2c: 01 00 00 52 06 58 [03:35:32]Write i2c OK [03:35:32]MH_I2C_Read... [03:35:32]Read from MH i2c: 01 [03:35:32]MH_I2C_Read... [03:35:32]Read from MH i2c: 01 07 00 [03:35:32]MH_I2C_Read... [03:35:32]Read from MH i2c: 01 07 00 52 06 00 00 00 00 00 53 0C BE [03:35:32]RasterBufferAndPrint [03:35:32]line [03:35:32]line [03:35:32]line [03:35:32]line [03:35:32]line [03:35:32]written 0, free lines is 3157 [03:35:32]MH_Cut [03:35:32]Write to MH i2c: D1 01 00 59 06 01 31 [03:35:32]Write i2c OK [03:35:32]MH_I2C_Read... [03:35:32]Read from MH i2c: D1 [03:35:32]MH_I2C_Read... [03:35:32]Read from MH i2c: D1 01 00 [03:35:32]MH_I2C_Read... [03:35:32]Read from MH i2c: D1 01 00 59 06 00 30 [03:35:32]Write to MH i2c: 01 00 00 5A 06 60 [03:35:32]Write i2c OK [03:35:32]MH_I2C_Read... [03:35:34]*** Cut start [03:35:34]*** Partial cut [03:35:34]*** CUTSNS_PIN = 1 [03:35:34]*** CUTSNS_PIN = 0 [03:35:34]*** Brake cut motor [03:35:34]Read from MH i2c: 01 [03:35:34]MH_I2C_Read... [03:35:34]*** Stop cut motor [03:35:34]*** Cut end [03:35:34]Read from MH i2c: 01 07 00 [03:35:34]MH_I2C_Read... [03:35:34]Read from MH i2c: 01 07 00 5A 06 00 00 00 00 00 FF 0F 75 [03:35:34]process_action close_receipt done [03:35:34]requested_data is exist [03:35:34]produce_requested_data [03:35:34]requested_item fm.sn is exist - process it [03:35:34]wFMCommunicate request_size=4 [03:35:34]MH_SAM_APDU [03:35:34]CAPDU: 80 11 00 00 [03:35:34]Write to MH i2c: E2 08 00 5B 06 80 11 00 00 00 00 00 00 DB [03:35:34]Write i2c OK [03:35:34]MH_I2C_Read... [03:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:35:34]Read from MH i2c: E2 [03:35:34]MH_I2C_Read... [03:35:34]Read from MH i2c: E2 17 00 [03:35:34]MH_I2C_Read... [03:35:34]Read from MH i2c: E2 17 00 5B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 29 [03:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:35:34]wFMCommunicate OK [03:35:34]requested_item fd.num is exist - process it [03:35:34]SAM_PROTO_GetFieldsCounters [03:35:34]wFMCommunicate request_size=4 [03:35:34]MH_SAM_APDU [03:35:34]CAPDU: 80 13 00 00 [03:35:34]Write to MH i2c: E2 08 00 5C 06 80 13 00 00 00 00 00 00 DE [03:35:34]Write i2c OK [03:35:34]MH_I2C_Read... [03:35:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:35:34]Read from MH i2c: E2 [03:35:34]MH_I2C_Read... [03:35:34]Read from MH i2c: E2 62 00 [03:35:34]MH_I2C_Read... [03:35:34]Read from MH i2c: E2 62 00 5C 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 63 C2 01 00 0E 04 04 00 D7 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 28 [03:35:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 63 C2 01 00 0E 04 04 00 D7 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 [03:35:34]wFMCommunicate OK [03:35:34]SAM_PROTO_GetFieldsCounters done [03:35:34]requested_item shift.num is exist - process it [03:35:34]requested_item shift.opened is exist - process it [03:35:34]req_shift_opened [03:35:34]FM_GetShiftState [03:35:34]SAM_PROTO_GetShiftState [03:35:34]wFMCommunicate request_size=4 [03:35:34]MH_SAM_APDU [03:35:34]CAPDU: 80 13 01 00 [03:35:35]Write to MH i2c: E2 08 00 5D 06 80 13 01 00 00 00 00 00 E0 [03:35:35]Write i2c OK [03:35:35]MH_I2C_Read... [03:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:35:35]Read from MH i2c: E2 [03:35:35]MH_I2C_Read... [03:35:35]Read from MH i2c: E2 0E 00 [03:35:35]MH_I2C_Read... [03:35:35]Read from MH i2c: E2 0E 00 5D 06 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F9 [03:35:35]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [03:35:35]wFMCommunicate OK [03:35:35]SAM_PROTO_GetShiftState done [03:35:35]FM_GetShiftState done [03:35:35]req_shift_opened done [03:35:35]requested_item shift.open_date is exist - process it [03:35:35]req_shift_open_date [03:35:35]req_shift_open_date done [03:35:35]produce_requested_data done [03:35:35]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115299,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [03:35:35]process_action_free close_receipt [03:35:35]json_value_free [03:35:35]json_value_free done [03:35:35]process_json_proto returns [03:35:35]Send response to host [03:35:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115299,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [03:35:35]free response buf [03:35:35]execute_script done [03:35:35]execute_script returns [03:35:35]free content buf [03:35:35]Sock 7.Close socket [03:35:35]Sock 7.Thread stoped [03:35:37]ConnectInit Can't take IP for lk.salyk.kg [03:35:37]CommunicateWithHost connect error [03:35:37]CommunicateWithHost err = -1 [03:35:37]OFD Sender: Server communicate error [03:35:42]OFD Sender: Processing packet 115299 [packets to send 481, broken 480] [03:35:42]ProducePacketName [03:35:42]name=ofd_packets/00115299 [03:35:42]OFD Sender: To server: pG, [03:35:42]CommunicateWithHost lk.salyk.kg:30040 [03:35:42]ConnectInit lk.salyk.kg [03:35:47]ConnectInit Can't take IP for lk.salyk.kg [03:35:47]CommunicateWithHost connect error [03:35:47]CommunicateWithHost err = -1 [03:35:47]OFD Sender: Server communicate error [03:35:52]OFD Sender: Processing packet 115299 [packets to send 481, broken 480] [03:35:52]ProducePacketName [03:35:52]name=ofd_packets/00115299 [03:35:52]OFD Sender: To server: pG, [03:35:52]CommunicateWithHost lk.salyk.kg:30040 [03:35:52]ConnectInit lk.salyk.kg [03:35:57]ConnectInit Can't take IP for lk.salyk.kg [03:35:57]CommunicateWithHost connect error [03:35:57]CommunicateWithHost err = -1 [03:35:57]OFD Sender: Server communicate error [03:36:02]OFD Sender: Processing packet 115299 [packets to send 481, broken 480] [03:36:02]ProducePacketName [03:36:02]name=ofd_packets/00115299 [03:36:02]OFD Sender: To server: pG, [03:36:02]CommunicateWithHost lk.salyk.kg:30040 [03:36:02]ConnectInit lk.salyk.kg [03:36:07]ConnectInit Can't take IP for lk.salyk.kg [03:36:07]CommunicateWithHost connect error [03:36:07]CommunicateWithHost err = -1 [03:36:07]OFD Sender: Server communicate error [03:36:12]OFD Sender: Processing packet 115299 [packets to send 481, broken 480] [03:36:12]ProducePacketName [03:36:12]name=ofd_packets/00115299 [03:36:12]OFD Sender: To server: pG, [03:36:12]CommunicateWithHost lk.salyk.kg:30040 [03:36:12]ConnectInit lk.salyk.kg [03:36:17]accept exits with 10 [03:36:17]New connection [03:36:17]New thread 3067305316 created [03:36:17]Thread 3067448676 joined [03:36:17]Waiting for new connection... [03:36:17] Sock 10.Parse request [03:36:17]Sock 10.Check first char [03:36:17]Sock 10.First char is OK [03:36:17]request: POST /json_proto HTTP/1.0 [03:36:17]Method: POST [03:36:17]URL: /json_proto [03:36:17]Method is POST - this is cgi request [03:36:17]url: /json_proto [03:36:17]query_string will be loaded in cgi processing [03:36:17]execute_cgi json_proto POST (null) [03:36:17]execute_cgi path=json_proto method=POST [03:36:17]POST find Content-Length [03:36:17]Host: 172.17.41.136:8080 [03:36:17]Content-Length: 897 [03:36:17]Content-Type: application/json [03:36:17] [03:36:17]POST finish read [03:36:17]Found Content-Length = 897 [03:36:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343759", "tax_sys" : 0, "items" : [ { "code": "5449000133328", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46198068", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 54\u0433", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:36:17]execute_script... [03:36:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343759", "tax_sys" : 0, "items" : [ { "code": "5449000133328", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46198068", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 54\u0433", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:36:17]POST & json_proto [03:36:17]process_json_proto [03:36:17]json parsed OK: [03:36:17]protocol is kg_v1.0 [03:36:17]action value=close_receipt [03:36:17]process_action close_receipt [03:36:17]cmd_close_receipt [03:36:17]MH_GetDate [03:36:17]Write to MH i2c: F0 00 00 5E 06 53 [03:36:17]Write i2c OK [03:36:17]MH_I2C_Read... [03:36:17]Read from MH i2c: F0 [03:36:17]MH_I2C_Read... [03:36:17]Read from MH i2c: F0 09 00 [03:36:17]MH_I2C_Read... [03:36:17]Read from MH i2c: F0 09 00 5E 06 00 B2 90 EF 66 1B D0 5A 64 9C [03:36:17]GetLastDocTimeStamp 1726976131 [03:36:17]current date 1726976178 [03:36:17]FM_GetShiftState [03:36:17]SAM_PROTO_GetShiftState [03:36:17]wFMCommunicate request_size=4 [03:36:17]MH_SAM_APDU [03:36:17]CAPDU: 80 13 01 00 [03:36:17]Write to MH i2c: E2 08 00 5F 06 80 13 01 00 00 00 00 00 E2 [03:36:17]Write i2c OK [03:36:17]MH_I2C_Read... [03:36:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:36:17]Read from MH i2c: E2 [03:36:17]MH_I2C_Read... [03:36:17]Read from MH i2c: E2 0E 00 [03:36:17]MH_I2C_Read... [03:36:17]Read from MH i2c: E2 0E 00 5F 06 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 FB [03:36:17]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [03:36:17]wFMCommunicate OK [03:36:17]SAM_PROTO_GetShiftState done [03:36:17]FM_GetShiftState done [03:36:17]opened in 1726965840 [03:36:17]opened+sec_in_day 1727052240 [03:36:17]quantity*price = 10500 [03:36:17]sum+1 = 10501 [03:36:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46198068 Р/ж mentos pure white клуб 54г 1.000 * 205.00 = 205.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 310.00 НСП 1% : 2.74 НДС 12% : 32.92 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 18 22.09.2024 03:36 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115300 ФПД: 197204033211166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T033618&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115300&fm=197204033211166&tin=02508201610067®Number=0000000000091831&sum=31000 0 [03:36:18]StoreToDocumentArchive [03:36:18]shift 471 fd 115300 [03:36:18]save to /storage/0471/doc_00115300 [03:36:18]save last doc name /storage/0471/doc_00115300 to /storage/kkm_last_doc_name [03:36:18]save OK [03:36:18]Clear old archive folders... [03:36:18]ProcessDocumentItem done err = 0, tmpTLVsize=387 [03:36:18]tlvbuf is 009C71E0 [03:36:18]SAM_PROTO_ClearQueue [03:36:18]wFMCommunicate request_size=4 [03:36:18]MH_SAM_APDU [03:36:18]CAPDU: 80 09 00 00 [03:36:18]Write to MH i2c: E2 08 00 6C 06 80 09 00 00 00 00 00 00 E4 [03:36:18]Write i2c OK [03:36:18]MH_I2C_Read... [03:36:18]Read from MH i2c: E2 [03:36:18]MH_I2C_Read... [03:36:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:36:18]Read from MH i2c: E2 03 00 [03:36:18]MH_I2C_Read... [03:36:18]Read from MH i2c: E2 03 00 6C 06 00 90 00 E6 [03:36:18]RAPDU: 90 00 [03:36:18]wFMCommunicate OK [03:36:18]SAM_PROTO_ClearQueue done [03:36:18]KKMCreateOFDPacket [03:36:18]OFDProtocolAddRootSTLVToBuf [03:36:18]FM_MakeSignedData [03:36:18]FM_MakeSignedData [03:36:18]SAM_PROTO_SignData [03:36:18]wFMCommunicate request_size=4 [03:36:18]MH_SAM_APDU [03:36:18]CAPDU: 80 0D 01 02 [03:36:18]Write to MH i2c: E2 08 00 6D 06 80 0D 01 02 00 00 00 00 EC [03:36:18]Write i2c OK [03:36:18]MH_I2C_Read... [03:36:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:36:18]Read from MH i2c: E2 [03:36:18]MH_I2C_Read... [03:36:18]Read from MH i2c: E2 03 00 [03:36:18]MH_I2C_Read... [03:36:18]Read from MH i2c: E2 03 00 6D 06 00 90 00 E7 [03:36:18]RAPDU: 90 00 [03:36:18]wFMCommunicate OK [03:36:18]wFMCommunicate request_size=255 [03:36:18]MH_SAM_APDU [03:36:18]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 31 39 38 30 36 38 06 04 25 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [03:36:18]Write to MH i2c: E2 02 01 6E 06 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 31 39 38 30 36 38 06 04 25 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 C2 [03:36:18]Write i2c OK [03:36:18]MH_I2C_Read... [03:36:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:36:19]Read from MH i2c: E2 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: E2 03 00 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: E2 03 00 6E 06 00 90 00 E8 [03:36:19]RAPDU: 90 00 [03:36:19]wFMCommunicate OK [03:36:19]wFMCommunicate request_size=146 [03:36:19]MH_SAM_APDU [03:36:19]CAPDU: 80 0D 02 02 8D 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B2 90 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 64 C2 01 00 35 04 06 00 B3 5B 24 59 0B 1E [03:36:19]Write to MH i2c: E2 95 00 6F 06 80 0D 02 02 8D 00 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B2 90 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 64 C2 01 00 35 04 06 00 B3 5B 24 59 0B 1E 00 00 1F [03:36:19]Write i2c OK [03:36:19]MH_I2C_Read... [03:36:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:36:19]Read from MH i2c: E2 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: E2 03 00 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: E2 03 00 6F 06 00 90 00 E9 [03:36:19]RAPDU: 90 00 [03:36:19]wFMCommunicate OK [03:36:19]wFMCommunicate request_size=4 [03:36:19]MH_SAM_APDU [03:36:19]CAPDU: 80 0D 03 02 [03:36:19]Write to MH i2c: E2 08 00 70 06 80 0D 03 02 00 00 00 00 F1 [03:36:19]Write i2c OK [03:36:19]MH_I2C_Read... [03:36:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:36:19]Read from MH i2c: E2 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: E2 0B 00 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: E2 0B 00 70 06 00 2C DD F7 76 39 4C BF A1 90 00 4D [03:36:19]RAPDU: 2C DD F7 76 39 4C BF A1 90 00 [03:36:19]wFMCommunicate OK [03:36:19]SAM_PROTO_SignData done [03:36:19]FM_MakeSignedData done [03:36:19]CreateOFDProtocolMessage [03:36:19]wFMCommunicate request_size=4 [03:36:19]MH_SAM_APDU [03:36:19]CAPDU: 80 11 00 00 [03:36:19]Write to MH i2c: E2 08 00 71 06 80 11 00 00 00 00 00 00 F1 [03:36:19]Write i2c OK [03:36:19]MH_I2C_Read... [03:36:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:36:19]Read from MH i2c: E2 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: E2 17 00 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: E2 17 00 71 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3F [03:36:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:36:19]wFMCommunicate OK [03:36:19]CreateOFDProtocolMessage done [03:36:19]OFDSenderStorePacket 115300 [03:36:19]StoreOFDPacket docnum=115300 [03:36:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 97 01 00 00 E5 F6 8F 01 9E 15 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 31 39 38 30 36 38 06 04 25 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B2 90 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 64 C2 01 00 35 04 06 00 B3 5B 24 59 0B 1E 2C DD F7 76 39 4C BF A1 [03:36:19]CheckFolder [03:36:19]dirname=/storage/ofd_packets [03:36:19]CheckFolder done [03:36:19]ProducePacketName [03:36:19]name=ofd_packets/00115300 [03:36:19]NVStorageSaveData ofd_packets/00115300 [03:36:19]File name is /storage/ofd_packets/00115300 [03:36:19]Write 437 bytes [03:36:19]NVStorageSaveData done [03:36:19]OFDSenderStorePacket done [03:36:19]KKMCreateOFDPacket done [03:36:19]NVStorageSaveData kkm_last_timestamp [03:36:19]File name is /storage/kkm_last_timestamp [03:36:19]Write 4 bytes [03:36:19]NVStorageSaveData done [03:36:19]ExternCall_PrintAddStr [03:36:19]wPrintStart [03:36:19]Write to MH i2c: 01 00 00 72 06 78 [03:36:19]Write i2c OK [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: 01 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: 01 07 00 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: 01 07 00 72 06 00 00 00 00 00 FF 0F 8D [03:36:19]RasterBufferAndPrint [03:36:19]line Счет N : (3)343759 [03:36:19]line ИНН: 02508201610067 [03:36:19]line Контрольно-Кассовый Чек [03:36:19]line ПРОДАЖА [03:36:19]line Товар: 5449000133328 [03:36:19]line Напиток Кока-Кола Zero 1л [03:36:19]line 1.000 * 105.00 [03:36:19]line = 105.00 [03:36:19]line НДС 12% НСП 1% [03:36:19]line > о реализуемом товаре [03:36:19]line Товар: 46198068 [03:36:19]line Р/ж mentos pure white клуб 54г [03:36:19]line 1.000 * 205.00 [03:36:19]line = 205.00 [03:36:19]line НДС 12% НСП 1% [03:36:19]line > о реализуемом товаре [03:36:19]line ИТОГО: 310.00 [03:36:19]line НСП 1% : 2.74 [03:36:19]line НДС 12% : 32.92 [03:36:19]line Наличными: 310.00 [03:36:19]line Безнал.: 0.00 [03:36:19]line Место: АЗС № 90 "Партнер Нефть" [03:36:19]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [03:36:19]line СНО: Общий режим [03:36:19]line Чек 18 22.09.2024 03:36 [03:36:19]line Смена: 471 ФФД: 1.0 [03:36:19]line ЗНМ: 0300000120 [03:36:19]line РНМ: 0000000000091831 [03:36:19]line Версия ККМ: 001 [03:36:19]line ФМ: 0000000000871830 [03:36:19]line ФД: 115300 [03:36:19]line ФПД: 197204033211166 [03:36:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T033618&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115300&fm=197204033211166&tin=02508201610067®Number=0000000000091831&sum=31000 [03:36:19]line 0 [03:36:19]written 0, free lines is 4095 [03:36:19]OFD Sender: Processing packet 115299 [packets to send 482, broken 480] [03:36:19]ProducePacketName [03:36:19]name=ofd_packets/00115299 [03:36:19]OFD Sender: To server: pG, [03:36:19]CommunicateWithHost lk.salyk.kg:30040 [03:36:19]ConnectInit lk.salyk.kg [03:36:19]Write to MH i2c: 01 00 00 A0 06 A6 [03:36:19]Write i2c OK [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: 01 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: 01 07 00 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: 01 07 00 A0 06 00 00 00 00 00 EB 0B A3 [03:36:19]RasterBufferAndPrint [03:36:19]line [03:36:19]line [03:36:19]line [03:36:19]line [03:36:19]line [03:36:19]written 0, free lines is 3058 [03:36:19]MH_Cut [03:36:19]Write to MH i2c: D1 01 00 A7 06 01 7F [03:36:19]Write i2c OK [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: D1 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: D1 01 00 [03:36:19]MH_I2C_Read... [03:36:19]Read from MH i2c: D1 01 00 A7 06 00 7E [03:36:19]Write to MH i2c: 01 00 00 A8 06 AE [03:36:19]Write i2c OK [03:36:19]MH_I2C_Read... [03:36:21]*** Cut start [03:36:21]*** Partial cut [03:36:21]*** CUTSNS_PIN = 1 [03:36:21]*** CUTSNS_PIN = 0 [03:36:21]*** Brake cut motor [03:36:21]Read from MH i2c: 01 [03:36:21]MH_I2C_Read... [03:36:21]*** Stop cut motor [03:36:21]*** Cut end [03:36:21]Read from MH i2c: 01 07 00 [03:36:21]MH_I2C_Read... [03:36:21]Read from MH i2c: 01 07 00 A8 06 00 00 00 00 00 FF 0F C3 [03:36:21]process_action close_receipt done [03:36:21]requested_data is exist [03:36:21]produce_requested_data [03:36:21]requested_item fm.sn is exist - process it [03:36:21]wFMCommunicate request_size=4 [03:36:21]MH_SAM_APDU [03:36:21]CAPDU: 80 11 00 00 [03:36:21]Write to MH i2c: E2 08 00 A9 06 80 11 00 00 00 00 00 00 29 [03:36:21]Write i2c OK [03:36:21]MH_I2C_Read... [03:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:36:22]Read from MH i2c: E2 [03:36:22]MH_I2C_Read... [03:36:22]Read from MH i2c: E2 17 00 [03:36:22]MH_I2C_Read... [03:36:22]Read from MH i2c: E2 17 00 A9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 77 [03:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:36:22]wFMCommunicate OK [03:36:22]requested_item fd.num is exist - process it [03:36:22]SAM_PROTO_GetFieldsCounters [03:36:22]wFMCommunicate request_size=4 [03:36:22]MH_SAM_APDU [03:36:22]CAPDU: 80 13 00 00 [03:36:22]Write to MH i2c: E2 08 00 AA 06 80 13 00 00 00 00 00 00 2C [03:36:22]Write i2c OK [03:36:22]MH_I2C_Read... [03:36:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:36:22]Read from MH i2c: E2 [03:36:22]MH_I2C_Read... [03:36:22]Read from MH i2c: E2 62 00 [03:36:22]MH_I2C_Read... [03:36:22]Read from MH i2c: E2 62 00 AA 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 64 C2 01 00 0E 04 04 00 D7 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 7A [03:36:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 64 C2 01 00 0E 04 04 00 D7 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 [03:36:22]wFMCommunicate OK [03:36:22]SAM_PROTO_GetFieldsCounters done [03:36:22]requested_item shift.num is exist - process it [03:36:22]requested_item shift.opened is exist - process it [03:36:22]req_shift_opened [03:36:22]FM_GetShiftState [03:36:22]SAM_PROTO_GetShiftState [03:36:22]wFMCommunicate request_size=4 [03:36:22]MH_SAM_APDU [03:36:22]CAPDU: 80 13 01 00 [03:36:22]Write to MH i2c: E2 08 00 AB 06 80 13 01 00 00 00 00 00 2E [03:36:22]Write i2c OK [03:36:22]MH_I2C_Read... [03:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:36:22]Read from MH i2c: E2 [03:36:22]MH_I2C_Read... [03:36:22]Read from MH i2c: E2 0E 00 [03:36:22]MH_I2C_Read... [03:36:22]Read from MH i2c: E2 0E 00 AB 06 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 47 [03:36:22]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [03:36:22]wFMCommunicate OK [03:36:22]SAM_PROTO_GetShiftState done [03:36:22]FM_GetShiftState done [03:36:22]req_shift_opened done [03:36:22]requested_item shift.open_date is exist - process it [03:36:22]req_shift_open_date [03:36:22]req_shift_open_date done [03:36:22]produce_requested_data done [03:36:22]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115300,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [03:36:22]process_action_free close_receipt [03:36:22]json_value_free [03:36:22]json_value_free done [03:36:22]process_json_proto returns [03:36:22]Send response to host [03:36:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115300,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [03:36:22]free response buf [03:36:22]execute_script done [03:36:22]execute_script returns [03:36:22]free content buf [03:36:22]Sock 10.Close socket [03:36:22]Sock 10.Thread stoped [03:36:24]ConnectInit Can't take IP for lk.salyk.kg [03:36:24]CommunicateWithHost connect error [03:36:24]CommunicateWithHost err = -1 [03:36:24]OFD Sender: Server communicate error [03:36:29]OFD Sender: Processing packet 115299 [packets to send 482, broken 480] [03:36:29]ProducePacketName [03:36:29]name=ofd_packets/00115299 [03:36:29]OFD Sender: To server: pG, [03:36:29]CommunicateWithHost lk.salyk.kg:30040 [03:36:29]ConnectInit lk.salyk.kg [03:36:34]ConnectInit Can't take IP for lk.salyk.kg [03:36:34]CommunicateWithHost connect error [03:36:34]CommunicateWithHost err = -1 [03:36:34]OFD Sender: Server communicate error [03:36:39]OFD Sender: Processing packet 115299 [packets to send 482, broken 480] [03:36:39]ProducePacketName [03:36:39]name=ofd_packets/00115299 [03:36:39]OFD Sender: To server: pG, [03:36:39]CommunicateWithHost lk.salyk.kg:30040 [03:36:39]ConnectInit lk.salyk.kg [03:36:44]ConnectInit Can't take IP for lk.salyk.kg [03:36:44]CommunicateWithHost connect error [03:36:44]CommunicateWithHost err = -1 [03:36:44]OFD Sender: Server communicate error [03:36:49]OFD Sender: Processing packet 115299 [packets to send 482, broken 480] [03:36:49]ProducePacketName [03:36:49]name=ofd_packets/00115299 [03:36:49]OFD Sender: To server: pG, [03:36:49]CommunicateWithHost lk.salyk.kg:30040 [03:36:49]ConnectInit lk.salyk.kg [03:36:49]Connected sock=7 [03:36:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2C 01 00 00 F4 42 24 01 14 72 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 83 90 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 63 C2 01 00 35 04 06 00 FE F6 91 30 89 2B 47 24 74 F0 26 3A CC 26 [03:36:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 93 9A 47 00 70 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 63 C2 01 00 F4 03 04 00 18 36 EF 66 B6 04 01 00 00 03 94 B0 08 4F 58 E1 0B [03:36:50]CommunicateWithHost err = 0 [03:36:50]CheckOFDResponse [03:36:50]1017 (14) - 77093643461234 [03:36:50]1041 (16) - 0000000000871830 [03:36:50]1040 (4) - 115299 [03:36:50]1012 (4) - 21.09.2024 21:09 [03:36:50]1206 (1) - 0 [03:36:50]OFD Sender: Remove packet 115299 [03:36:50]ProducePacketName [03:36:50]name=ofd_packets/00115299 [03:36:50]NVStorageDeleteData [03:36:50]OFD Sender: Processing packet 115300 [packets to send 481, broken 480] [03:36:50]ProducePacketName [03:36:50]name=ofd_packets/00115300 [03:36:50]OFD Sender: To server: pG, [03:36:50]CommunicateWithHost lk.salyk.kg:30040 [03:36:50]ConnectInit lk.salyk.kg [03:36:50]Connected sock=7 [03:36:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 97 01 00 00 E5 F6 8F 01 9E 15 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 31 39 38 30 36 38 06 04 25 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B2 90 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 64 C2 01 00 35 04 06 00 B3 5B 24 59 0B 1E 2C DD F7 76 39 4C BF A1 [03:36:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 00 74 47 00 4E B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 64 C2 01 00 F4 03 04 00 19 36 EF 66 B6 04 01 00 00 9F 33 5F CD AC 39 CC 55 [03:36:51]CommunicateWithHost err = 0 [03:36:51]CheckOFDResponse [03:36:51]1017 (14) - 77093643461234 [03:36:51]1041 (16) - 0000000000871830 [03:36:51]1040 (4) - 115300 [03:36:51]1012 (4) - 21.09.2024 21:09 [03:36:51]1206 (1) - 0 [03:36:51]OFD Sender: Remove packet 115300 [03:36:51]ProducePacketName [03:36:51]name=ofd_packets/00115300 [03:36:51]NVStorageDeleteData [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:17]ConnectInit Can't connect to host [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:39]accept exits with 12 [03:38:39]New connection [03:38:39]New thread 3067448676 created [03:38:39]Thread 3067305316 joined [03:38:39]Waiting for new connection... [03:38:39] Sock 12.Parse request [03:38:39]Sock 12.Check first char [03:38:39]Sock 12.First char is OK [03:38:39]request: POST /json_proto HTTP/1.0 [03:38:39]Method: POST [03:38:39]URL: /json_proto [03:38:39]Method is POST - this is cgi request [03:38:39]url: /json_proto [03:38:39]query_string will be loaded in cgi processing [03:38:39]execute_cgi json_proto POST (null) [03:38:39]execute_cgi path=json_proto method=POST [03:38:39]POST find Content-Length [03:38:39]Host: 172.17.41.136:8080 [03:38:39]Content-Length: 621 [03:38:39]Content-Type: application/json [03:38:39] [03:38:39]POST finish read [03:38:39]Found Content-Length = 621 [03:38:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343760", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:38:39]execute_script... [03: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 : (3)343760", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:38:39]POST & json_proto [03:38:39]process_json_proto [03:38:39]json parsed OK: [03:38:39]protocol is kg_v1.0 [03:38:39]action value=close_receipt [03:38:39]process_action close_receipt [03:38:39]cmd_close_receipt [03:38:39]MH_GetDate [03:38:39]Write to MH i2c: F0 00 00 AC 06 A1 [03:38:39]Write i2c OK [03:38:39]MH_I2C_Read... [03:38:39]Read from MH i2c: F0 [03:38:39]MH_I2C_Read... [03:38:39]Read from MH i2c: F0 09 00 [03:38:39]MH_I2C_Read... [03:38:39]Read from MH i2c: F0 09 00 AC 06 00 40 91 EF 66 1B D0 5A 64 79 [03:38:39]GetLastDocTimeStamp 1726976178 [03:38:39]current date 1726976320 [03:38:39]FM_GetShiftState [03:38:39]SAM_PROTO_GetShiftState [03:38:39]wFMCommunicate request_size=4 [03:38:39]MH_SAM_APDU [03:38:39]CAPDU: 80 13 01 00 [03:38:39]Write to MH i2c: E2 08 00 AD 06 80 13 01 00 00 00 00 00 30 [03:38:39]Write i2c OK [03:38:39]MH_I2C_Read... [03:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:38:39]Read from MH i2c: E2 [03:38:39]MH_I2C_Read... [03:38:39]Read from MH i2c: E2 0E 00 [03:38:39]MH_I2C_Read... [03:38:39]Read from MH i2c: E2 0E 00 AD 06 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 49 [03:38:39]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [03:38:39]wFMCommunicate OK [03:38:39]SAM_PROTO_GetShiftState done [03:38:39]FM_GetShiftState done [03:38:39]opened in 1726965840 [03:38:39]opened+sec_in_day 1727052240 [03:38:39]quantity*price = 14400 [03:38:39]sum+1 = 14401 [03:38:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 19 22.09.2024 03:38 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115301 ФПД: 157504547302403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T033840&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115301&fm=157504547302403&tin=02508201610067®Number=0000000000091831&sum=14400 0 [03:38:40]StoreToDocumentArchive [03:38:40]shift 471 fd 115301 [03:38:40]save to /storage/0471/doc_00115301 [03:38:40]save last doc name /storage/0471/doc_00115301 to /storage/kkm_last_doc_name [03:38:40]save OK [03:38:40]Clear old archive folders... [03:38:40]ProcessDocumentItem done err = 0, tmpTLVsize=273 [03:38:40]tlvbuf is 009936A0 [03:38:40]SAM_PROTO_ClearQueue [03:38:40]wFMCommunicate request_size=4 [03:38:40]MH_SAM_APDU [03:38:40]CAPDU: 80 09 00 00 [03:38:40]Write to MH i2c: E2 08 00 BA 06 80 09 00 00 00 00 00 00 32 [03:38:40]Write i2c OK [03:38:40]MH_I2C_Read... [03:38:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:38:40]Read from MH i2c: E2 [03:38:40]MH_I2C_Read... [03:38:40]Read from MH i2c: E2 03 00 [03:38:40]MH_I2C_Read... [03:38:40]Read from MH i2c: E2 03 00 BA 06 00 90 00 34 [03:38:40]RAPDU: 90 00 [03:38:40]wFMCommunicate OK [03:38:40]SAM_PROTO_ClearQueue done [03:38:40]KKMCreateOFDPacket [03:38:40]OFDProtocolAddRootSTLVToBuf [03:38:40]FM_MakeSignedData [03:38:40]FM_MakeSignedData [03:38:40]SAM_PROTO_SignData [03:38:40]wFMCommunicate request_size=4 [03:38:40]MH_SAM_APDU [03:38:40]CAPDU: 80 0D 01 02 [03:38:40]Write to MH i2c: E2 08 00 BB 06 80 0D 01 02 00 00 00 00 3A [03:38:40]Write i2c OK [03:38:40]MH_I2C_Read... [03:38:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:38:40]Read from MH i2c: E2 [03:38:40]MH_I2C_Read... [03:38:40]Read from MH i2c: E2 03 00 [03:38:40]MH_I2C_Read... [03:38:40]Read from MH i2c: E2 03 00 BB 06 00 90 00 35 [03:38:40]RAPDU: 90 00 [03:38:40]wFMCommunicate OK [03:38:40]wFMCommunicate request_size=255 [03:38:40]MH_SAM_APDU [03:38:40]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 13 00 00 00 F4 03 04 00 40 91 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 [03:38:40]Write to MH i2c: E2 02 01 BC 06 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 13 00 00 00 F4 03 04 00 40 91 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 B2 [03:38:40]Write i2c OK [03:38:40]MH_I2C_Read... [03:38:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:38:40]Read from MH i2c: E2 [03:38:40]MH_I2C_Read... [03:38:40]Read from MH i2c: E2 03 00 [03:38:40]MH_I2C_Read... [03:38:40]Read from MH i2c: E2 03 00 BC 06 00 90 00 36 [03:38:40]RAPDU: 90 00 [03:38:40]wFMCommunicate OK [03:38:40]wFMCommunicate request_size=32 [03:38:40]MH_SAM_APDU [03:38:40]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 33 30 10 04 04 00 65 C2 01 00 35 04 06 00 8F 3F E2 97 AC 03 [03:38:40]Write to MH i2c: E2 23 00 BD 06 80 0D 02 02 1B 00 30 30 30 38 37 31 38 33 30 10 04 04 00 65 C2 01 00 35 04 06 00 8F 3F E2 97 AC 03 00 00 B3 [03:38:40]Write i2c OK [03:38:40]MH_I2C_Read... [03:38:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:38:40]Read from MH i2c: E2 [03:38:40]MH_I2C_Read... [03:38:40]Read from MH i2c: E2 03 00 [03:38:40]MH_I2C_Read... [03:38:40]Read from MH i2c: E2 03 00 BD 06 00 90 00 37 [03:38:40]RAPDU: 90 00 [03:38:40]wFMCommunicate OK [03:38:40]wFMCommunicate request_size=4 [03:38:40]MH_SAM_APDU [03:38:40]CAPDU: 80 0D 03 02 [03:38:40]Write to MH i2c: E2 08 00 BE 06 80 0D 03 02 00 00 00 00 3F [03:38:40]Write i2c OK [03:38:40]MH_I2C_Read... [03:38:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:38:40]Read from MH i2c: E2 [03:38:40]MH_I2C_Read... [03:38:40]Read from MH i2c: E2 0B 00 [03:38:40]MH_I2C_Read... [03:38:40]Read from MH i2c: E2 0B 00 BE 06 00 28 9A 2C 7A 5B 87 3D 4C 90 00 13 [03:38:40]RAPDU: 28 9A 2C 7A 5B 87 3D 4C 90 00 [03:38:40]wFMCommunicate OK [03:38:40]SAM_PROTO_SignData done [03:38:40]FM_MakeSignedData done [03:38:40]CreateOFDProtocolMessage [03:38:40]wFMCommunicate request_size=4 [03:38:40]MH_SAM_APDU [03:38:40]CAPDU: 80 11 00 00 [03:38:40]Write to MH i2c: E2 08 00 BF 06 80 11 00 00 00 00 00 00 3F [03:38:40]Write i2c OK [03:38:40]MH_I2C_Read... [03:38:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:38:41]Read from MH i2c: E2 [03:38:41]MH_I2C_Read... [03:38:41]Read from MH i2c: E2 17 00 [03:38:41]MH_I2C_Read... [03:38:41]Read from MH i2c: E2 17 00 BF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8D [03:38:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:38:41]wFMCommunicate OK [03:38:41]CreateOFDProtocolMessage done [03:38:41]OFDSenderStorePacket 115301 [03:38:41]StoreOFDPacket docnum=115301 [03:38:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 25 01 00 00 42 2A 1D 01 A5 F0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 13 00 00 00 F4 03 04 00 40 91 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 65 C2 01 00 35 04 06 00 8F 3F E2 97 AC 03 28 9A 2C 7A 5B 87 3D 4C [03:38:41]CheckFolder [03:38:41]dirname=/storage/ofd_packets [03:38:41]CheckFolder done [03:38:41]ProducePacketName [03:38:41]name=ofd_packets/00115301 [03:38:41]NVStorageSaveData ofd_packets/00115301 [03:38:41]File name is /storage/ofd_packets/00115301 [03:38:41]Write 323 bytes [03:38:41]NVStorageSaveData done [03:38:41]OFDSenderStorePacket done [03:38:41]KKMCreateOFDPacket done [03:38:41]NVStorageSaveData kkm_last_timestamp [03:38:41]File name is /storage/kkm_last_timestamp [03:38:41]Write 4 bytes [03:38:41]NVStorageSaveData done [03:38:41]ExternCall_PrintAddStr [03:38:41]wPrintStart [03:38:41]Write to MH i2c: 01 00 00 C0 06 C6 [03:38:41]Write i2c OK [03:38:41]MH_I2C_Read... [03:38:41]Read from MH i2c: 01 [03:38:41]MH_I2C_Read... [03:38:41]Read from MH i2c: 01 07 00 [03:38:41]MH_I2C_Read... [03:38:41]Read from MH i2c: 01 07 00 C0 06 00 00 00 00 00 FF 0F DB [03:38:41]RasterBufferAndPrint [03:38:41]line Счет N : (3)343760 [03:38:41]line ИНН: 02508201610067 [03:38:41]line Контрольно-Кассовый Чек [03:38:41]line ПРОДАЖА [03:38:41]line Товар: 48743570 [03:38:41]line Сигареты Winston XStyle Blue [03:38:41]line 1.000 * 144.00 [03:38:41]line = 144.00 [03:38:41]line НДС 12% НСП 1% [03:38:41]line > о реализуемом товаре [03:38:41]line ИТОГО: 144.00 [03:38:41]line НСП 1% : 1.27 [03:38:41]line НДС 12% : 15.29 [03:38:41]line Наличными: 144.00 [03:38:41]line Безнал.: 0.00 [03:38:41]line Место: АЗС № 90 "Партнер Нефть" [03:38:41]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [03:38:41]line СНО: Общий режим [03:38:41]line Чек 19 22.09.2024 03:38 [03:38:41]line Смена: 471 ФФД: 1.0 [03:38:41]line ЗНМ: 0300000120 [03:38:41]line РНМ: 0000000000091831 [03:38:41]line Версия ККМ: 001 [03:38:41]line ФМ: 0000000000871830 [03:38:41]line ФД: 115301 [03:38:41]line ФПД: 157504547302403 [03:38:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T033840&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115301&fm=157504547302403&tin=02508201610067®Number=0000000000091831&sum=14400 [03:38:41]OFD Sender: Processing packet 115301 [packets to send 481, broken 480] [03:38:41]ProducePacketName [03:38:41]name=ofd_packets/00115301 [03:38:41]OFD Sender: To server: pG, [03:38:41]CommunicateWithHost lk.salyk.kg:30040 [03:38:41]ConnectInit lk.salyk.kg [03:38:41]line 0 [03:38:41]written 0, free lines is 4095 [03:38:41]Connected sock=9 [03: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 31 38 33 30 25 01 00 00 42 2A 1D 01 A5 F0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 13 00 00 00 F4 03 04 00 40 91 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 65 C2 01 00 35 04 06 00 8F 3F E2 97 AC 03 28 9A 2C 7A 5B 87 3D 4C [03:38:41]Write to MH i2c: 01 00 00 E7 06 ED [03:38:41]Write i2c OK [03:38:41]MH_I2C_Read... [03:38:41]Read from MH i2c: 01 [03:38:41]MH_I2C_Read... [03:38:41]Read from MH i2c: 01 07 00 [03:38:41]MH_I2C_Read... [03:38:41]Read from MH i2c: 01 07 00 E7 06 00 00 00 00 00 73 0C 73 [03:38:41]RasterBufferAndPrint [03:38:41]line [03:38:41]line [03:38:41]line [03:38:41]line [03:38:41]line [03:38:41]written 0, free lines is 3190 [03:38:41]MH_Cut [03:38:41]Write to MH i2c: D1 01 00 EE 06 01 C6 [03:38:41]Write i2c OK [03:38:41]MH_I2C_Read... [03:38:41]Read from MH i2c: D1 [03:38:41]MH_I2C_Read... [03:38:41]Read from MH i2c: D1 01 00 [03:38:41]MH_I2C_Read... [03:38:41]Read from MH i2c: D1 01 00 EE 06 00 C5 [03:38:41]Write to MH i2c: 01 00 00 EF 06 F5 [03:38:41]Write i2c OK [03:38:41]MH_I2C_Read... [03:38:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 DE 59 47 00 94 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 31 38 33 30 10 04 04 00 65 C2 01 00 F4 03 04 00 88 36 EF 66 B6 04 01 00 00 C5 AA 47 0F F0 36 33 90 [03:38:42]CommunicateWithHost err = 0 [03:38:42]CheckOFDResponse [03:38:42]1017 (14) - 77093643461234 [03:38:42]1041 (16) - 0000000000871830 [03:38:42]1040 (4) - 115301 [03:38:42]1012 (4) - 21.09.2024 21:11 [03:38:42]1206 (1) - 0 [03:38:42]OFD Sender: Remove packet 115301 [03:38:42]ProducePacketName [03:38:42]name=ofd_packets/00115301 [03:38:42]NVStorageDeleteData [03:38:42]OFD Sender: No OFD packet to send [03:38:43]*** Cut start [03:38:43]*** Partial cut [03:38:43]*** CUTSNS_PIN = 1 [03:38:43]*** CUTSNS_PIN = 0 [03:38:43]*** Brake cut motor [03:38:43]Read from MH i2c: 01 [03:38:43]MH_I2C_Read... [03:38:43]*** Stop cut motor [03:38:43]*** Cut end [03:38:43]Read from MH i2c: 01 07 00 [03:38:43]MH_I2C_Read... [03:38:43]Read from MH i2c: 01 07 00 EF 06 00 00 00 00 00 FF 0F 0A [03:38:43]process_action close_receipt done [03:38:43]requested_data is exist [03:38:43]produce_requested_data [03:38:43]requested_item fm.sn is exist - process it [03:38:43]wFMCommunicate request_size=4 [03:38:43]MH_SAM_APDU [03:38:43]CAPDU: 80 11 00 00 [03:38:43]Write to MH i2c: E2 08 00 F0 06 80 11 00 00 00 00 00 00 70 [03:38:43]Write i2c OK [03:38:43]MH_I2C_Read... [03:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:38:43]Read from MH i2c: E2 [03:38:43]MH_I2C_Read... [03:38:43]Read from MH i2c: E2 17 00 [03:38:43]MH_I2C_Read... [03:38:43]Read from MH i2c: E2 17 00 F0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BE [03:38:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:38:43]wFMCommunicate OK [03:38:43]requested_item fd.num is exist - process it [03:38:43]SAM_PROTO_GetFieldsCounters [03:38:43]wFMCommunicate request_size=4 [03:38:43]MH_SAM_APDU [03:38:43]CAPDU: 80 13 00 00 [03:38:43]Write to MH i2c: E2 08 00 F1 06 80 13 00 00 00 00 00 00 73 [03:38:43]Write i2c OK [03:38:43]MH_I2C_Read... [03:38:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:38:43]Read from MH i2c: E2 [03:38:43]MH_I2C_Read... [03:38:43]Read from MH i2c: E2 62 00 [03:38:43]MH_I2C_Read... [03:38:43]Read from MH i2c: E2 62 00 F1 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 65 C2 01 00 0E 04 04 00 D7 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 C5 [03: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 65 C2 01 00 0E 04 04 00 D7 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 [03:38:43]wFMCommunicate OK [03:38:43]SAM_PROTO_GetFieldsCounters done [03:38:43]requested_item shift.num is exist - process it [03:38:43]requested_item shift.opened is exist - process it [03:38:43]req_shift_opened [03:38:43]FM_GetShiftState [03:38:43]SAM_PROTO_GetShiftState [03:38:43]wFMCommunicate request_size=4 [03:38:43]MH_SAM_APDU [03:38:43]CAPDU: 80 13 01 00 [03:38:43]Write to MH i2c: E2 08 00 F2 06 80 13 01 00 00 00 00 00 75 [03:38:43]Write i2c OK [03:38:43]MH_I2C_Read... [03:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:38:43]Read from MH i2c: E2 [03:38:43]MH_I2C_Read... [03:38:43]Read from MH i2c: E2 0E 00 [03:38:43]MH_I2C_Read... [03:38:43]Read from MH i2c: E2 0E 00 F2 06 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 8E [03:38:43]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [03:38:43]wFMCommunicate OK [03:38:43]SAM_PROTO_GetShiftState done [03:38:43]FM_GetShiftState done [03:38:43]req_shift_opened done [03:38:43]requested_item shift.open_date is exist - process it [03:38:43]req_shift_open_date [03:38:43]req_shift_open_date done [03:38:43]produce_requested_data done [03:38:43]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115301,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [03:38:43]process_action_free close_receipt [03:38:43]json_value_free [03:38:43]json_value_free done [03:38:43]process_json_proto returns [03:38:43]Send response to host [03:38:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115301,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [03:38:43]free response buf [03:38:43]execute_script done [03:38:43]execute_script returns [03:38:43]free content buf [03:38:43]Sock 12.Close socket [03:38:43]Sock 12.Thread stoped [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:24]accept exits with 7 [03:39:24]New connection [03:39:24]New thread 3067305316 created [03:39:24]Thread 3067448676 joined [03:39:24]Waiting for new connection... [03:39:24] Sock 7.Parse request [03:39:24]Sock 7.Check first char [03:39:24]Sock 7.First char is OK [03:39:24]request: POST /json_proto HTTP/1.0 [03:39:24]Method: POST [03:39:24]URL: /json_proto [03:39:24]Method is POST - this is cgi request [03:39:24]url: /json_proto [03:39:24]query_string will be loaded in cgi processing [03:39:24]execute_cgi json_proto POST (null) [03:39:24]execute_cgi path=json_proto method=POST [03:39:24]POST find Content-Length [03:39:24]Host: 172.17.41.136:8080 [03:39:24]Content-Length: 840 [03:39:24]Content-Type: application/json [03:39:24] [03:39:24]POST finish read [03:39:24]Found Content-Length = 840 [03:39:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343761", "tax_sys" : 0, "items" : [ { "code": "4870145001790", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0433\u0443\u0441\u044C 0,5\u043B \u0441\u0442", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:39:24]execute_script... [03:39:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343761", "tax_sys" : 0, "items" : [ { "code": "4870145001790", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0433\u0443\u0441\u044C 0,5\u043B \u0441\u0442", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:39:24]POST & json_proto [03:39:24]process_json_proto [03:39:24]json parsed OK: [03:39:24]protocol is kg_v1.0 [03:39:24]action value=close_receipt [03:39:24]process_action close_receipt [03:39:24]cmd_close_receipt [03:39:24]MH_GetDate [03:39:24]Write to MH i2c: F0 00 00 F3 06 E8 [03:39:24]Write i2c OK [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: F0 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: F0 09 00 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: F0 09 00 F3 06 00 6D 91 EF 66 1B D0 5A 64 ED [03:39:24]GetLastDocTimeStamp 1726976320 [03:39:24]current date 1726976365 [03:39:24]FM_GetShiftState [03:39:24]SAM_PROTO_GetShiftState [03:39:24]wFMCommunicate request_size=4 [03:39:24]MH_SAM_APDU [03:39:24]CAPDU: 80 13 01 00 [03:39:24]Write to MH i2c: E2 08 00 F4 06 80 13 01 00 00 00 00 00 77 [03:39:24]Write i2c OK [03:39:24]MH_I2C_Read... [03:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:24]Read from MH i2c: E2 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 0E 00 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 0E 00 F4 06 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 90 [03:39:24]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [03:39:24]wFMCommunicate OK [03:39:24]SAM_PROTO_GetShiftState done [03:39:24]FM_GetShiftState done [03:39:24]opened in 1726965840 [03:39:24]opened+sec_in_day 1727052240 [03:39:24]quantity*price = 22000 [03:39:24]sum+1 = 22001 [03:39:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.36 Наличными: 0.00 Безнал.: 220.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 20 22.09.2024 03:39 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115302 ФПД: 264265952238413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T033925&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115302&fm=264265952238413&tin=02508201610067®Number=0000000000091831&sum=22000 0 [03:39:25]StoreToDocumentArchive [03:39:25]shift 471 fd 115302 [03:39:25]save to /storage/0471/doc_00115302 [03:39:25]save last doc name /storage/0471/doc_00115302 to /storage/kkm_last_doc_name [03:39:25]save OK [03:39:25]Clear old archive folders... [03:39:25]ProcessDocumentItem done err = 0, tmpTLVsize=287 [03:39:25]tlvbuf is B6FD1850 [03:39:25]SAM_PROTO_ClearQueue [03:39:25]wFMCommunicate request_size=4 [03:39:25]MH_SAM_APDU [03:39:25]CAPDU: 80 09 00 00 [03:39:25]Write to MH i2c: E2 08 00 01 07 80 09 00 00 00 00 00 00 7A [03:39:25]Write i2c OK [03:39:25]MH_I2C_Read... [03:39:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:39:25]Read from MH i2c: E2 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: E2 03 00 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: E2 03 00 01 07 00 90 00 7C [03:39:25]RAPDU: 90 00 [03:39:25]wFMCommunicate OK [03:39:25]SAM_PROTO_ClearQueue done [03:39:25]KKMCreateOFDPacket [03:39:25]OFDProtocolAddRootSTLVToBuf [03:39:25]FM_MakeSignedData [03:39:25]FM_MakeSignedData [03:39:25]SAM_PROTO_SignData [03:39:25]wFMCommunicate request_size=4 [03:39:25]MH_SAM_APDU [03:39:25]CAPDU: 80 0D 01 02 [03:39:25]Write to MH i2c: E2 08 00 02 07 80 0D 01 02 00 00 00 00 82 [03:39:25]Write i2c OK [03:39:25]MH_I2C_Read... [03:39:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:39:25]Read from MH i2c: E2 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: E2 03 00 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: E2 03 00 02 07 00 90 00 7D [03:39:25]RAPDU: 90 00 [03:39:25]wFMCommunicate OK [03:39:25]wFMCommunicate request_size=255 [03:39:25]MH_SAM_APDU [03:39:25]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 31 37 39 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 B3 D1 83 D1 81 D1 8C 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 6D 91 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [03:39:25]Write to MH i2c: E2 02 01 03 07 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 31 37 39 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 B3 D1 83 D1 81 D1 8C 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 6D 91 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 5F [03:39:25]Write i2c OK [03:39:25]MH_I2C_Read... [03:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:25]Read from MH i2c: E2 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: E2 03 00 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: E2 03 00 03 07 00 90 00 7E [03:39:25]RAPDU: 90 00 [03:39:25]wFMCommunicate OK [03:39:25]wFMCommunicate request_size=46 [03:39:25]MH_SAM_APDU [03:39:25]CAPDU: 80 0D 02 02 29 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 66 C2 01 00 35 04 06 00 F0 59 36 35 9B 4D [03:39:25]Write to MH i2c: E2 31 00 04 07 80 0D 02 02 29 00 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 66 C2 01 00 35 04 06 00 F0 59 36 35 9B 4D 00 00 CF [03:39:25]Write i2c OK [03:39:25]MH_I2C_Read... [03:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:25]Read from MH i2c: E2 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: E2 03 00 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: E2 03 00 04 07 00 90 00 7F [03:39:25]RAPDU: 90 00 [03:39:25]wFMCommunicate OK [03:39:25]wFMCommunicate request_size=4 [03:39:25]MH_SAM_APDU [03:39:25]CAPDU: 80 0D 03 02 [03:39:25]Write to MH i2c: E2 08 00 05 07 80 0D 03 02 00 00 00 00 87 [03:39:25]Write i2c OK [03:39:25]MH_I2C_Read... [03:39:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:39:25]Read from MH i2c: E2 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: E2 0B 00 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: E2 0B 00 05 07 00 FB 02 6A 05 2F CD 00 06 90 00 F6 [03:39:25]RAPDU: FB 02 6A 05 2F CD 00 06 90 00 [03:39:25]wFMCommunicate OK [03:39:25]SAM_PROTO_SignData done [03:39:25]FM_MakeSignedData done [03:39:25]CreateOFDProtocolMessage [03:39:25]wFMCommunicate request_size=4 [03:39:25]MH_SAM_APDU [03:39:25]CAPDU: 80 11 00 00 [03:39:25]Write to MH i2c: E2 08 00 06 07 80 11 00 00 00 00 00 00 87 [03:39:25]Write i2c OK [03:39:25]MH_I2C_Read... [03:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:25]Read from MH i2c: E2 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: E2 17 00 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: E2 17 00 06 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D5 [03:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:39:25]wFMCommunicate OK [03:39:25]CreateOFDProtocolMessage done [03:39:25]OFDSenderStorePacket 115302 [03:39:25]StoreOFDPacket docnum=115302 [03:39:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 33 01 00 00 29 1A 2B 01 8B 32 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 31 37 39 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 B3 D1 83 D1 81 D1 8C 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 6D 91 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 66 C2 01 00 35 04 06 00 F0 59 36 35 9B 4D FB 02 6A 05 2F CD 00 06 [03:39:25]CheckFolder [03:39:25]dirname=/storage/ofd_packets [03:39:25]CheckFolder done [03:39:25]ProducePacketName [03:39:25]name=ofd_packets/00115302 [03:39:25]NVStorageSaveData ofd_packets/00115302 [03:39:25]File name is /storage/ofd_packets/00115302 [03:39:25]Write 337 bytes [03:39:25]NVStorageSaveData done [03:39:25]OFDSenderStorePacket done [03:39:25]KKMCreateOFDPacket done [03:39:25]NVStorageSaveData kkm_last_timestamp [03:39:25]File name is /storage/kkm_last_timestamp [03:39:25]Write 4 bytes [03:39:25]NVStorageSaveData done [03:39:25]ExternCall_PrintAddStr [03:39:25]wPrintStart [03:39:25]Write to MH i2c: 01 00 00 07 07 0E [03:39:25]Write i2c OK [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: 01 [03:39:25]MH_I2C_Read... [03:39:26]Read from MH i2c: 01 07 00 [03:39:26]MH_I2C_Read... [03:39:26]Read from MH i2c: 01 07 00 07 07 00 00 00 00 00 FF 0F 23 [03:39:26]RasterBufferAndPrint [03:39:26]line Счет N : (3)343761 [03:39:26]line ИНН: 02508201610067 [03:39:26]line Контрольно-Кассовый Чек [03:39:26]line ПРОДАЖА [03:39:26]line Товар: 4870145001790 [03:39:26]line Пиво Жатецкий гусь 0,5л ст [03:39:26]line 2.000 * 110.00 [03:39:26]line = 220.00 [03:39:26]line НДС 12% НСП 1% [03:39:26]line > о реализуемом товаре [03:39:26]line ИТОГО: 220.00 [03:39:26]line НСП 1% : 1.95 [03:39:26]line НДС 12% : 23.36 [03:39:26]line Наличными: 0.00 [03:39:26]line Безнал.: 220.00 [03:39:26]line Место: АЗС № 90 "Партнер Нефть" [03:39:26]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [03:39:26]line СНО: Общий режим [03:39:26]line Чек 20 22.09.2024 03:39 [03:39:26]line Смена: 471 ФФД: 1.0 [03:39:26]line ЗНМ: 0300000120 [03:39:26]line РНМ: 0000000000091831 [03:39:26]line Версия ККМ: 001 [03:39:26]line Платежная система: O! деньги [03:39:26]line ФМ: 0000000000871830 [03:39:26]line ФД: 115302 [03:39:26]line ФПД: 264265952238413 [03:39:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T033925&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115302&fm=264265952238413&tin=02508201610067®Number=0000000000091831&sum=22000 [03:39:26]line 0 [03:39:26]OFD Sender: Processing packet 115302 [packets to send 481, broken 480] [03:39:26]ProducePacketName [03:39:26]name=ofd_packets/00115302 [03:39:26]OFD Sender: To server: pG, [03:39:26]CommunicateWithHost lk.salyk.kg:30040 [03:39:26]ConnectInit lk.salyk.kg [03:39:26]written 0, free lines is 4095 [03:39:26]Connected sock=10 [03: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 31 38 33 30 33 01 00 00 29 1A 2B 01 8B 32 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 31 37 39 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 B3 D1 83 D1 81 D1 8C 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 6D 91 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 66 C2 01 00 35 04 06 00 F0 59 36 35 9B 4D FB 02 6A 05 2F CD 00 06 [03:39:26]Write to MH i2c: 01 00 00 30 07 37 [03:39:26]Write i2c OK [03:39:26]MH_I2C_Read... [03:39:26]Read from MH i2c: 01 [03:39:26]MH_I2C_Read... [03:39:26]Read from MH i2c: 01 07 00 [03:39:26]MH_I2C_Read... [03:39:26]Read from MH i2c: 01 07 00 30 07 00 00 00 00 00 49 0C 93 [03:39:26]RasterBufferAndPrint [03:39:26]line [03:39:26]line [03:39:26]line [03:39:26]line [03:39:26]line [03:39:26]written 0, free lines is 3148 [03:39:26]MH_Cut [03:39:26]Write to MH i2c: D1 01 00 37 07 01 10 [03:39:26]Write i2c OK [03:39:26]MH_I2C_Read... [03:39:26]Read from MH i2c: D1 [03:39:26]MH_I2C_Read... [03:39:26]Read from MH i2c: D1 01 00 [03:39:26]MH_I2C_Read... [03:39:26]Read from MH i2c: D1 01 00 37 07 00 0F [03:39:26]Write to MH i2c: 01 00 00 38 07 3F [03:39:26]Write i2c OK [03:39:26]MH_I2C_Read... [03:39:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 3D 76 47 00 45 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 31 38 33 30 10 04 04 00 66 C2 01 00 F4 03 04 00 B4 36 EF 66 B6 04 01 00 00 3F 0E 8F 8C 12 79 DF 60 [03:39:26]CommunicateWithHost err = 0 [03:39:26]CheckOFDResponse [03:39:26]1017 (14) - 77093643461234 [03:39:26]1041 (16) - 0000000000871830 [03:39:26]1040 (4) - 115302 [03:39:26]1012 (4) - 21.09.2024 21:12 [03:39:26]1206 (1) - 0 [03:39:26]OFD Sender: Remove packet 115302 [03:39:26]ProducePacketName [03:39:26]name=ofd_packets/00115302 [03:39:26]NVStorageDeleteData [03:39:27]OFD Sender: No OFD packet to send [03:39:28]*** Cut start [03:39:28]*** Partial cut [03:39:28]*** CUTSNS_PIN = 1 [03:39:28]*** CUTSNS_PIN = 0 [03:39:28]*** Brake cut motor [03:39:28]Read from MH i2c: 01 [03:39:28]MH_I2C_Read... [03:39:28]*** Stop cut motor [03:39:28]*** Cut end [03:39:28]Read from MH i2c: 01 07 00 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: 01 07 00 38 07 00 00 00 00 00 FF 0F 54 [03:39:28]process_action close_receipt done [03:39:28]requested_data is exist [03:39:28]produce_requested_data [03:39:28]requested_item fm.sn is exist - process it [03:39:28]wFMCommunicate request_size=4 [03:39:28]MH_SAM_APDU [03:39:28]CAPDU: 80 11 00 00 [03:39:28]Write to MH i2c: E2 08 00 39 07 80 11 00 00 00 00 00 00 BA [03:39:28]Write i2c OK [03:39:28]MH_I2C_Read... [03:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:28]Read from MH i2c: E2 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: E2 17 00 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: E2 17 00 39 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 08 [03:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:39:28]wFMCommunicate OK [03:39:28]requested_item fd.num is exist - process it [03:39:28]SAM_PROTO_GetFieldsCounters [03:39:28]wFMCommunicate request_size=4 [03:39:28]MH_SAM_APDU [03:39:28]CAPDU: 80 13 00 00 [03:39:28]Write to MH i2c: E2 08 00 3A 07 80 13 00 00 00 00 00 00 BD [03:39:28]Write i2c OK [03:39:28]MH_I2C_Read... [03:39:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:39:28]Read from MH i2c: E2 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: E2 62 00 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: E2 62 00 3A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 66 C2 01 00 0E 04 04 00 D7 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 13 [03: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 66 C2 01 00 0E 04 04 00 D7 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 [03:39:28]wFMCommunicate OK [03:39:28]SAM_PROTO_GetFieldsCounters done [03:39:28]requested_item shift.num is exist - process it [03:39:28]requested_item shift.opened is exist - process it [03:39:28]req_shift_opened [03:39:28]FM_GetShiftState [03:39:28]SAM_PROTO_GetShiftState [03:39:28]wFMCommunicate request_size=4 [03:39:28]MH_SAM_APDU [03:39:28]CAPDU: 80 13 01 00 [03:39:28]Write to MH i2c: E2 08 00 3B 07 80 13 01 00 00 00 00 00 BF [03:39:28]Write i2c OK [03:39:28]MH_I2C_Read... [03:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:28]Read from MH i2c: E2 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: E2 0E 00 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: E2 0E 00 3B 07 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D8 [03:39:28]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [03:39:28]wFMCommunicate OK [03:39:28]SAM_PROTO_GetShiftState done [03:39:28]FM_GetShiftState done [03:39:28]req_shift_opened done [03:39:28]requested_item shift.open_date is exist - process it [03:39:28]req_shift_open_date [03:39:28]req_shift_open_date done [03:39:28]produce_requested_data done [03:39:28]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115302,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [03:39:28]process_action_free close_receipt [03:39:28]json_value_free [03:39:28]json_value_free done [03:39:28]process_json_proto returns [03:39:28]Send response to host [03:39:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115302,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [03:39:28]free response buf [03:39:28]execute_script done [03:39:28]execute_script returns [03:39:28]free content buf [03:39:28]Sock 7.Close socket [03:39:28]Sock 7.Thread stoped [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:58]OFD Sender: No OFD packet to send [03:46:03]OFD Sender: No OFD packet to send [03:46:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:25]accept exits with 9 [03:48:25]New connection [03:48:25]New thread 3067448676 created [03:48:25]Thread 3067305316 joined [03:48:25]Waiting for new connection... [03:48:25] Sock 9.Parse request [03:48:25]Sock 9.Check first char [03:48:25]Sock 9.First char is OK [03:48:25]request: POST /json_proto HTTP/1.0 [03:48:25]Method: POST [03:48:25]URL: /json_proto [03:48:25]Method is POST - this is cgi request [03:48:25]url: /json_proto [03:48:25]query_string will be loaded in cgi processing [03:48:25]execute_cgi json_proto POST (null) [03:48:25]execute_cgi path=json_proto method=POST [03:48:25]POST find Content-Length [03:48:25]Host: 172.17.41.136:8080 [03:48:25]Content-Length: 901 [03:48:25]Content-Type: application/json [03:48:25] [03:48:25]POST finish read [03:48:25]Found Content-Length = 901 [03:48:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343762", "tax_sys" : 0, "items" : [ { "code": "4640030090136", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000133328", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:48:25]execute_script... [03:48:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343762", "tax_sys" : 0, "items" : [ { "code": "4640030090136", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000133328", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:48:25]POST & json_proto [03:48:25]process_json_proto [03:48:25]json parsed OK: [03:48:25]protocol is kg_v1.0 [03:48:25]action value=close_receipt [03:48:25]process_action close_receipt [03:48:25]cmd_close_receipt [03:48:25]MH_GetDate [03:48:25]Write to MH i2c: F0 00 00 3C 07 32 [03:48:25]Write i2c OK [03:48:25]MH_I2C_Read... [03:48:25]Read from MH i2c: F0 [03:48:25]MH_I2C_Read... [03:48:25]Read from MH i2c: F0 09 00 [03:48:25]MH_I2C_Read... [03:48:25]Read from MH i2c: F0 09 00 3C 07 00 8A 93 EF 66 1B D0 5A 64 56 [03:48:25]GetLastDocTimeStamp 1726976365 [03:48:25]current date 1726976906 [03:48:25]FM_GetShiftState [03:48:25]SAM_PROTO_GetShiftState [03:48:25]wFMCommunicate request_size=4 [03:48:25]MH_SAM_APDU [03:48:25]CAPDU: 80 13 01 00 [03:48:25]Write to MH i2c: E2 08 00 3D 07 80 13 01 00 00 00 00 00 C1 [03:48:25]Write i2c OK [03:48:25]MH_I2C_Read... [03:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:48:25]Read from MH i2c: E2 [03:48:25]MH_I2C_Read... [03:48:25]Read from MH i2c: E2 0E 00 [03:48:25]MH_I2C_Read... [03:48:25]Read from MH i2c: E2 0E 00 3D 07 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 DA [03:48:25]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [03:48:25]wFMCommunicate OK [03:48:25]SAM_PROTO_GetShiftState done [03:48:25]FM_GetShiftState done [03:48:25]opened in 1726965840 [03:48:25]opened+sec_in_day 1727052240 [03:48:25]quantity*price = 15000 [03:48:25]sum+1 = 15001 [03:48:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000133328 Напиток Кока-Кола Zero 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.26 НДС 12% : 27.08 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 21 22.09.2024 03:48 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115303 ФПД: 214597451624163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T034826&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115303&fm=214597451624163&tin=02508201610067®Number=0000000000091831&sum=25500 0 [03:48:26]StoreToDocumentArchive [03:48:26]shift 471 fd 115303 [03:48:26]save to /storage/0471/doc_00115303 [03:48:26]save last doc name /storage/0471/doc_00115303 to /storage/kkm_last_doc_name [03:48:26]save OK [03:48:26]Clear old archive folders... [03:48:26]ProcessDocumentItem done err = 0, tmpTLVsize=387 [03:48:26]tlvbuf is 0097B730 [03:48:26]SAM_PROTO_ClearQueue [03:48:26]wFMCommunicate request_size=4 [03:48:26]MH_SAM_APDU [03:48:26]CAPDU: 80 09 00 00 [03:48:26]Write to MH i2c: E2 08 00 4A 07 80 09 00 00 00 00 00 00 C3 [03:48:26]Write i2c OK [03:48:26]MH_I2C_Read... [03:48:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:48:26]Read from MH i2c: E2 [03:48:26]MH_I2C_Read... [03:48:26]Read from MH i2c: E2 03 00 [03:48:26]MH_I2C_Read... [03:48:26]Read from MH i2c: E2 03 00 4A 07 00 90 00 C5 [03:48:26]RAPDU: 90 00 [03:48:26]wFMCommunicate OK [03:48:26]SAM_PROTO_ClearQueue done [03:48:26]KKMCreateOFDPacket [03:48:26]OFDProtocolAddRootSTLVToBuf [03:48:26]FM_MakeSignedData [03:48:26]FM_MakeSignedData [03:48:26]SAM_PROTO_SignData [03:48:26]wFMCommunicate request_size=4 [03:48:26]MH_SAM_APDU [03:48:26]CAPDU: 80 0D 01 02 [03:48:26]Write to MH i2c: E2 08 00 4B 07 80 0D 01 02 00 00 00 00 CB [03:48:26]Write i2c OK [03:48:26]MH_I2C_Read... [03:48:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:48:26]Read from MH i2c: E2 [03:48:26]MH_I2C_Read... [03:48:26]Read from MH i2c: E2 03 00 [03:48:26]MH_I2C_Read... [03:48:26]Read from MH i2c: E2 03 00 4B 07 00 90 00 C6 [03:48:26]RAPDU: 90 00 [03:48:26]wFMCommunicate OK [03:48:26]wFMCommunicate request_size=255 [03:48:26]MH_SAM_APDU [03:48:26]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 31 33 36 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [03:48:26]Write to MH i2c: E2 02 01 4C 07 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 31 33 36 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 52 [03:48:26]Write i2c OK [03:48:26]MH_I2C_Read... [03:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:48:26]Read from MH i2c: E2 [03:48:26]MH_I2C_Read... [03:48:26]Read from MH i2c: E2 03 00 [03:48:26]MH_I2C_Read... [03:48:26]Read from MH i2c: E2 03 00 4C 07 00 90 00 C7 [03:48:26]RAPDU: 90 00 [03:48:26]wFMCommunicate OK [03:48:26]wFMCommunicate request_size=146 [03:48:26]MH_SAM_APDU [03:48:26]CAPDU: 80 0D 02 02 8D 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 8A 93 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 67 C2 01 00 35 04 06 00 C3 2C DC DF AE E3 [03:48:26]Write to MH i2c: E2 95 00 4D 07 80 0D 02 02 8D 00 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 8A 93 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 67 C2 01 00 35 04 06 00 C3 2C DC DF AE E3 00 00 59 [03:48:26]Write i2c OK [03:48:26]MH_I2C_Read... [03:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:48:27]Read from MH i2c: E2 [03:48:27]MH_I2C_Read... [03:48:27]Read from MH i2c: E2 03 00 [03:48:27]MH_I2C_Read... [03:48:27]Read from MH i2c: E2 03 00 4D 07 00 90 00 C8 [03:48:27]RAPDU: 90 00 [03:48:27]wFMCommunicate OK [03:48:27]wFMCommunicate request_size=4 [03:48:27]MH_SAM_APDU [03:48:27]CAPDU: 80 0D 03 02 [03:48:27]Write to MH i2c: E2 08 00 4E 07 80 0D 03 02 00 00 00 00 D0 [03:48:27]Write i2c OK [03:48:27]MH_I2C_Read... [03:48:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:48:27]Read from MH i2c: E2 [03:48:27]MH_I2C_Read... [03:48:27]Read from MH i2c: E2 0B 00 [03:48:27]MH_I2C_Read... [03:48:27]Read from MH i2c: E2 0B 00 4E 07 00 92 C0 32 FC 5F A2 8D D7 90 00 B6 [03:48:27]RAPDU: 92 C0 32 FC 5F A2 8D D7 90 00 [03:48:27]wFMCommunicate OK [03:48:27]SAM_PROTO_SignData done [03:48:27]FM_MakeSignedData done [03:48:27]CreateOFDProtocolMessage [03:48:27]wFMCommunicate request_size=4 [03:48:27]MH_SAM_APDU [03:48:27]CAPDU: 80 11 00 00 [03:48:27]Write to MH i2c: E2 08 00 4F 07 80 11 00 00 00 00 00 00 D0 [03:48:27]Write i2c OK [03:48:27]MH_I2C_Read... [03:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:48:27]Read from MH i2c: E2 [03:48:27]MH_I2C_Read... [03:48:27]Read from MH i2c: E2 17 00 [03:48:27]MH_I2C_Read... [03:48:27]Read from MH i2c: E2 17 00 4F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1E [03:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:48:27]wFMCommunicate OK [03:48:27]CreateOFDProtocolMessage done [03:48:27]OFDSenderStorePacket 115303 [03:48:27]StoreOFDPacket docnum=115303 [03:48:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 97 01 00 00 88 8F 8F 01 10 D7 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 31 33 36 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 8A 93 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 67 C2 01 00 35 04 06 00 C3 2C DC DF AE E3 92 C0 32 FC 5F A2 8D D7 [03:48:27]CheckFolder [03:48:27]dirname=/storage/ofd_packets [03:48:27]CheckFolder done [03:48:27]ProducePacketName [03:48:27]name=ofd_packets/00115303 [03:48:27]NVStorageSaveData ofd_packets/00115303 [03:48:27]File name is /storage/ofd_packets/00115303 [03:48:27]Write 437 bytes [03:48:27]NVStorageSaveData done [03:48:27]OFDSenderStorePacket done [03:48:27]KKMCreateOFDPacket done [03:48:27]NVStorageSaveData kkm_last_timestamp [03:48:27]File name is /storage/kkm_last_timestamp [03:48:27]Write 4 bytes [03:48:27]NVStorageSaveData done [03:48:27]ExternCall_PrintAddStr [03:48:27]wPrintStart [03:48:27]Write to MH i2c: 01 00 00 50 07 57 [03:48:27]Write i2c OK [03:48:27]MH_I2C_Read... [03:48:27]Read from MH i2c: 01 [03:48:27]MH_I2C_Read... [03:48:27]Read from MH i2c: 01 07 00 [03:48:27]MH_I2C_Read... [03:48:27]Read from MH i2c: 01 07 00 50 07 00 00 00 00 00 FF 0F 6C [03:48:27]RasterBufferAndPrint [03:48:27]line Счет N : (3)343762 [03:48:27]line ИНН: 02508201610067 [03:48:27]line Контрольно-Кассовый Чек [03:48:27]line ПРОДАЖА [03:48:27]line Товар: 4640030090136 [03:48:27]line Сигареты ESSE Exchange W [03:48:27]line 1.000 * 150.00 [03:48:27]line = 150.00 [03:48:27]line НДС 12% НСП 1% [03:48:27]line > о реализуемом товаре [03:48:27]line Товар: 5449000133328 [03:48:27]line Напиток Кока-Кола Zero 1л [03:48:27]line 1.000 * 105.00 [03:48:27]line = 105.00 [03:48:27]line НДС 12% НСП 1% [03:48:27]line > о реализуемом товаре [03:48:27]line ИТОГО: 255.00 [03:48:27]line НСП 1% : 2.26 [03:48:27]line НДС 12% : 27.08 [03:48:27]line Наличными: 255.00 [03:48:27]line Безнал.: 0.00 [03:48:27]line Место: АЗС № 90 "Партнер Нефть" [03:48:27]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [03:48:27]line СНО: Общий режим [03:48:27]line Чек 21 22.09.2024 03:48 [03:48:27]line Смена: 471 ФФД: 1.0 [03:48:27]line ЗНМ: 0300000120 [03:48:27]line РНМ: 0000000000091831 [03:48:27]line Версия ККМ: 001 [03:48:27]line ФМ: 0000000000871830 [03:48:27]line ФД: 115303 [03:48:27]line ФПД: 214597451624163 [03:48:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T034826&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115303&fm=214597451624163&tin=02508201610067®Number=0000000000091831&sum=25500 [03:48:27]line 0 [03:48:27]OFD Sender: Processing packet 115303 [packets to send 481, broken 480] [03:48:27]ProducePacketName [03:48:27]name=ofd_packets/00115303 [03:48:27]OFD Sender: To server: pG, [03:48:27]CommunicateWithHost lk.salyk.kg:30040 [03:48:27]ConnectInit lk.salyk.kg [03:48:27]written 0, free lines is 4095 [03:48:27]Connected sock=10 [03:48:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 97 01 00 00 88 8F 8F 01 10 D7 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 31 33 36 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 8A 93 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 67 C2 01 00 35 04 06 00 C3 2C DC DF AE E3 92 C0 32 FC 5F A2 8D D7 [03:48:28]Write to MH i2c: 01 00 00 7D 07 84 [03:48:28]Write i2c OK [03:48:28]MH_I2C_Read... [03:48:28]Read from MH i2c: 01 [03:48:28]MH_I2C_Read... [03:48:28]Read from MH i2c: 01 07 00 [03:48:28]MH_I2C_Read... [03:48:28]Read from MH i2c: 01 07 00 7D 07 00 00 00 00 00 0F 0C A6 [03:48:28]RasterBufferAndPrint [03:48:28]line [03:48:28]line [03:48:28]line [03:48:28]line [03:48:28]line [03:48:28]written 0, free lines is 3090 [03:48:28]MH_Cut [03:48:28]Write to MH i2c: D1 01 00 84 07 01 5D [03:48:28]Write i2c OK [03:48:28]MH_I2C_Read... [03:48:28]Read from MH i2c: D1 [03:48:28]MH_I2C_Read... [03:48:28]Read from MH i2c: D1 01 00 [03:48:28]MH_I2C_Read... [03:48:28]Read from MH i2c: D1 01 00 84 07 00 5C [03:48:28]Write to MH i2c: 01 00 00 85 07 8C [03:48:28]Write i2c OK [03:48:28]MH_I2C_Read... [03:48:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1F 7C 47 00 BD C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 67 C2 01 00 F4 03 04 00 D2 38 EF 66 B6 04 01 00 00 26 AF C8 BD 0E 63 7F A0 [03:48:28]CommunicateWithHost err = 0 [03:48:28]CheckOFDResponse [03:48:28]1017 (14) - 77093643461234 [03:48:28]1041 (16) - 0000000000871830 [03:48:28]1040 (4) - 115303 [03:48:28]1012 (4) - 21.09.2024 21:21 [03:48:28]1206 (1) - 0 [03:48:28]OFD Sender: Remove packet 115303 [03:48:28]ProducePacketName [03:48:28]name=ofd_packets/00115303 [03:48:28]NVStorageDeleteData [03:48:28]OFD Sender: No OFD packet to send [03:48:29]*** Cut start [03:48:29]*** Partial cut [03:48:29]*** CUTSNS_PIN = 1 [03:48:29]*** CUTSNS_PIN = 0 [03:48:29]*** Brake cut motor [03:48:30]Read from MH i2c: 01 [03:48:30]MH_I2C_Read... [03:48:30]*** Stop cut motor [03:48:30]*** Cut end [03:48:30]Read from MH i2c: 01 07 00 [03:48:30]MH_I2C_Read... [03:48:30]Read from MH i2c: 01 07 00 85 07 00 00 00 00 00 FF 0F A1 [03:48:30]process_action close_receipt done [03:48:30]requested_data is exist [03:48:30]produce_requested_data [03:48:30]requested_item fm.sn is exist - process it [03:48:30]wFMCommunicate request_size=4 [03:48:30]MH_SAM_APDU [03:48:30]CAPDU: 80 11 00 00 [03:48:30]Write to MH i2c: E2 08 00 86 07 80 11 00 00 00 00 00 00 07 [03:48:30]Write i2c OK [03:48:30]MH_I2C_Read... [03:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:48:30]Read from MH i2c: E2 [03:48:30]MH_I2C_Read... [03:48:30]Read from MH i2c: E2 17 00 [03:48:30]MH_I2C_Read... [03:48:30]Read from MH i2c: E2 17 00 86 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 55 [03:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:48:30]wFMCommunicate OK [03:48:30]requested_item fd.num is exist - process it [03:48:30]SAM_PROTO_GetFieldsCounters [03:48:30]wFMCommunicate request_size=4 [03:48:30]MH_SAM_APDU [03:48:30]CAPDU: 80 13 00 00 [03:48:30]Write to MH i2c: E2 08 00 87 07 80 13 00 00 00 00 00 00 0A [03:48:30]Write i2c OK [03:48:30]MH_I2C_Read... [03:48:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:48:30]Read from MH i2c: E2 [03:48:30]MH_I2C_Read... [03:48:30]Read from MH i2c: E2 62 00 [03:48:30]MH_I2C_Read... [03:48:30]Read from MH i2c: E2 62 00 87 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 67 C2 01 00 0E 04 04 00 D7 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 64 [03:48:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 67 C2 01 00 0E 04 04 00 D7 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 [03:48:30]wFMCommunicate OK [03:48:30]SAM_PROTO_GetFieldsCounters done [03:48:30]requested_item shift.num is exist - process it [03:48:30]requested_item shift.opened is exist - process it [03:48:30]req_shift_opened [03:48:30]FM_GetShiftState [03:48:30]SAM_PROTO_GetShiftState [03:48:30]wFMCommunicate request_size=4 [03:48:30]MH_SAM_APDU [03:48:30]CAPDU: 80 13 01 00 [03:48:30]Write to MH i2c: E2 08 00 88 07 80 13 01 00 00 00 00 00 0C [03:48:30]Write i2c OK [03:48:30]MH_I2C_Read... [03:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:48:30]Read from MH i2c: E2 [03:48:30]MH_I2C_Read... [03:48:30]Read from MH i2c: E2 0E 00 [03:48:30]MH_I2C_Read... [03:48:30]Read from MH i2c: E2 0E 00 88 07 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 25 [03:48:30]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [03:48:30]wFMCommunicate OK [03:48:30]SAM_PROTO_GetShiftState done [03:48:30]FM_GetShiftState done [03:48:30]req_shift_opened done [03:48:30]requested_item shift.open_date is exist - process it [03:48:30]req_shift_open_date [03:48:30]req_shift_open_date done [03:48:30]produce_requested_data done [03:48:30]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115303,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [03:48:30]process_action_free close_receipt [03:48:30]json_value_free [03:48:30]json_value_free done [03:48:30]process_json_proto returns [03:48:30]Send response to host [03:48:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115303,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [03:48:30]free response buf [03:48:30]execute_script done [03:48:30]execute_script returns [03:48:30]free content buf [03:48:30]Sock 9.Close socket [03:48:30]Sock 9.Thread stoped [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]accept exits with 7 [03:49:58]New connection [03:49:58]New thread 3067305316 created [03:49:58]Thread 3067448676 joined [03:49:58]Waiting for new connection... [03:49:58] Sock 7.Parse request [03:49:58]Sock 7.Check first char [03:49:58]Sock 7.First char is OK [03:49:58]request: POST /json_proto HTTP/1.0 [03:49:58]Method: POST [03:49:58]URL: /json_proto [03:49:58]Method is POST - this is cgi request [03:49:58]url: /json_proto [03:49:58]query_string will be loaded in cgi processing [03:49:58]execute_cgi json_proto POST (null) [03:49:58]execute_cgi path=json_proto method=POST [03:49:58]POST find Content-Length [03:49:58]Host: 172.17.41.136:8080 [03:49:58]Content-Length: 606 [03:49:58]Content-Type: application/json [03:49:58] [03:49:58]POST finish read [03:49:58]Found Content-Length = 606 [03:49:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343763", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 2.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:49:58]execute_script... [03:49:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343763", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 2.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:49:58]POST & json_proto [03:49:58]process_json_proto [03:49:58]json parsed OK: [03:49:58]protocol is kg_v1.0 [03:49:58]action value=close_receipt [03:49:58]process_action close_receipt [03:49:58]cmd_close_receipt [03:49:58]MH_GetDate [03:49:58]Write to MH i2c: F0 00 00 89 07 7F [03:49:58]Write i2c OK [03:49:58]MH_I2C_Read... [03:49:58]Read from MH i2c: F0 [03:49:58]MH_I2C_Read... [03:49:58]Read from MH i2c: F0 09 00 [03:49:58]MH_I2C_Read... [03:49:58]Read from MH i2c: F0 09 00 89 07 00 E7 93 EF 66 1B D0 5A 64 00 [03:49:58]GetLastDocTimeStamp 1726976906 [03:49:58]current date 1726976999 [03:49:58]FM_GetShiftState [03:49:58]SAM_PROTO_GetShiftState [03:49:58]wFMCommunicate request_size=4 [03:49:58]MH_SAM_APDU [03:49:58]CAPDU: 80 13 01 00 [03:49:58]Write to MH i2c: E2 08 00 8A 07 80 13 01 00 00 00 00 00 0E [03:49:58]Write i2c OK [03:49:58]MH_I2C_Read... [03:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:49:58]Read from MH i2c: E2 [03:49:58]MH_I2C_Read... [03:49:58]Read from MH i2c: E2 0E 00 [03:49:58]MH_I2C_Read... [03:49:58]Read from MH i2c: E2 0E 00 8A 07 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 27 [03:49:58]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [03:49:58]wFMCommunicate OK [03:49:58]SAM_PROTO_GetShiftState done [03:49:58]FM_GetShiftState done [03:49:58]opened in 1726965840 [03:49:58]opened+sec_in_day 1727052240 [03:49:58]quantity*price = 11000 [03:49:58]sum+1 = 11001 [03:49:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 22 22.09.2024 03:49 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115304 ФПД: 250053009798903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T034959&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115304&fm=250053009798903&tin=02508201610067®Number=0000000000091831&sum=11000 0 [03:49:59]StoreToDocumentArchive [03:49:59]shift 471 fd 115304 [03:49:59]save to /storage/0471/doc_00115304 [03:49:59]save last doc name /storage/0471/doc_00115304 to /storage/kkm_last_doc_name [03:49:59]save OK [03:49:59]Clear old archive folders... [03:49:59]ProcessDocumentItem done err = 0, tmpTLVsize=275 [03:49:59]tlvbuf is 00992130 [03:49:59]SAM_PROTO_ClearQueue [03:49:59]wFMCommunicate request_size=4 [03:49:59]MH_SAM_APDU [03:49:59]CAPDU: 80 09 00 00 [03:49:59]Write to MH i2c: E2 08 00 97 07 80 09 00 00 00 00 00 00 10 [03:49:59]Write i2c OK [03:49:59]MH_I2C_Read... [03:49:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:49:59]Read from MH i2c: E2 [03:49:59]MH_I2C_Read... [03:49:59]Read from MH i2c: E2 03 00 [03:49:59]MH_I2C_Read... [03:49:59]Read from MH i2c: E2 03 00 97 07 00 90 00 12 [03:49:59]RAPDU: 90 00 [03:49:59]wFMCommunicate OK [03:49:59]SAM_PROTO_ClearQueue done [03:49:59]KKMCreateOFDPacket [03:49:59]OFDProtocolAddRootSTLVToBuf [03:49:59]FM_MakeSignedData [03:49:59]FM_MakeSignedData [03:49:59]SAM_PROTO_SignData [03:49:59]wFMCommunicate request_size=4 [03:49:59]MH_SAM_APDU [03:49:59]CAPDU: 80 0D 01 02 [03:49:59]Write to MH i2c: E2 08 00 98 07 80 0D 01 02 00 00 00 00 18 [03:49:59]Write i2c OK [03:49:59]MH_I2C_Read... [03:49:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:49:59]Read from MH i2c: E2 [03:49:59]MH_I2C_Read... [03:49:59]Read from MH i2c: E2 03 00 [03:49:59]MH_I2C_Read... [03:49:59]Read from MH i2c: E2 03 00 98 07 00 90 00 13 [03:49:59]RAPDU: 90 00 [03:49:59]wFMCommunicate OK [03:49:59]wFMCommunicate request_size=255 [03:49:59]MH_SAM_APDU [03:49:59]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E7 93 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 [03:49:59]Write to MH i2c: E2 02 01 99 07 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E7 93 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 00 00 45 [03:49:59]Write i2c OK [03:49:59]MH_I2C_Read... [03:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:49:59]Read from MH i2c: E2 [03:49:59]MH_I2C_Read... [03:49:59]Read from MH i2c: E2 03 00 [03:49:59]MH_I2C_Read... [03:49:59]Read from MH i2c: E2 03 00 99 07 00 90 00 14 [03:49:59]RAPDU: 90 00 [03:49:59]wFMCommunicate OK [03:49:59]wFMCommunicate request_size=34 [03:49:59]MH_SAM_APDU [03:49:59]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 68 C2 01 00 35 04 06 00 E3 6C 00 D2 F6 F7 [03:49:59]Write to MH i2c: E2 25 00 9A 07 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 68 C2 01 00 35 04 06 00 E3 6C 00 D2 F6 F7 00 00 10 [03:49:59]Write i2c OK [03:49:59]MH_I2C_Read... [03:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:49:59]Read from MH i2c: E2 [03:49:59]MH_I2C_Read... [03:49:59]Read from MH i2c: E2 03 00 [03:49:59]MH_I2C_Read... [03:49:59]Read from MH i2c: E2 03 00 9A 07 00 90 00 15 [03:49:59]RAPDU: 90 00 [03:49:59]wFMCommunicate OK [03:49:59]wFMCommunicate request_size=4 [03:49:59]MH_SAM_APDU [03:49:59]CAPDU: 80 0D 03 02 [03:49:59]Write to MH i2c: E2 08 00 9B 07 80 0D 03 02 00 00 00 00 1D [03:49:59]Write i2c OK [03:49:59]MH_I2C_Read... [03:49:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:49:59]Read from MH i2c: E2 [03:49:59]MH_I2C_Read... [03:49:59]Read from MH i2c: E2 0B 00 [03:49:59]MH_I2C_Read... [03:49:59]Read from MH i2c: E2 0B 00 9B 07 00 22 00 2B 6C D9 3D E0 63 90 00 30 [03:49:59]RAPDU: 22 00 2B 6C D9 3D E0 63 90 00 [03:49:59]wFMCommunicate OK [03:49:59]SAM_PROTO_SignData done [03:49:59]FM_MakeSignedData done [03:49:59]CreateOFDProtocolMessage [03:49:59]wFMCommunicate request_size=4 [03:49:59]MH_SAM_APDU [03:49:59]CAPDU: 80 11 00 00 [03:49:59]Write to MH i2c: E2 08 00 9C 07 80 11 00 00 00 00 00 00 1D [03:49:59]Write i2c OK [03:49:59]MH_I2C_Read... [03:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:49:59]Read from MH i2c: E2 [03:49:59]MH_I2C_Read... [03:49:59]Read from MH i2c: E2 17 00 [03:49:59]MH_I2C_Read... [03:49:59]Read from MH i2c: E2 17 00 9C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6B [03:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:49:59]wFMCommunicate OK [03:49:59]CreateOFDProtocolMessage done [03:49:59]OFDSenderStorePacket 115304 [03:49:59]StoreOFDPacket docnum=115304 [03:49:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 8F BF 1F 01 68 FD 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E7 93 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 68 C2 01 00 35 04 06 00 E3 6C 00 D2 F6 F7 22 00 2B 6C D9 3D E0 63 [03:49:59]CheckFolder [03:49:59]dirname=/storage/ofd_packets [03:49:59]CheckFolder done [03:49:59]ProducePacketName [03:49:59]name=ofd_packets/00115304 [03:49:59]NVStorageSaveData ofd_packets/00115304 [03:49:59]File name is /storage/ofd_packets/00115304 [03:49:59]Write 325 bytes [03:49:59]NVStorageSaveData done [03:49:59]OFDSenderStorePacket done [03:49:59]KKMCreateOFDPacket done [03:49:59]NVStorageSaveData kkm_last_timestamp [03:49:59]File name is /storage/kkm_last_timestamp [03:49:59]Write 4 bytes [03:49:59]NVStorageSaveData done [03:49:59]ExternCall_PrintAddStr [03:49:59]wPrintStart [03:49:59]Write to MH i2c: 01 00 00 9D 07 A4 [03:49:59]Write i2c OK [03:49:59]MH_I2C_Read... [03:49:59]Read from MH i2c: 01 [03:49:59]MH_I2C_Read... [03:49:59]Read from MH i2c: 01 07 00 [03:49:59]MH_I2C_Read... [03:49:59]Read from MH i2c: 01 07 00 9D 07 00 00 00 00 00 FF 0F B9 [03:49:59]RasterBufferAndPrint [03:49:59]line Счет N : (3)343763 [03:49:59]line ИНН: 02508201610067 [03:49:59]line Контрольно-Кассовый Чек [03:49:59]line ПРОДАЖА [03:49:59]line Товар: 4870112003925 [03:49:59]line Конд ULKER-Albeni 40gr (6*24) [03:49:59]line 2.000 * 55.00 [03:49:59]line = 110.00 [03:49:59]line НДС 12% НСП 1% [03:49:59]line > о реализуемом товаре [03:49:59]line ИТОГО: 110.00 [03:49:59]line НСП 1% : 0.97 [03:49:59]line НДС 12% : 11.68 [03:49:59]line Наличными: 110.00 [03:49:59]line Безнал.: 0.00 [03:49:59]line Место: АЗС № 90 "Партнер Нефть" [03:49:59]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [03:49:59]line СНО: Общий режим [03:49:59]line Чек 22 22.09.2024 03:49 [03:49:59]line Смена: 471 ФФД: 1.0 [03:49:59]line ЗНМ: 0300000120 [03:49:59]line РНМ: 0000000000091831 [03:49:59]line Версия ККМ: 001 [03:49:59]line ФМ: 0000000000871830 [03:49:59]line ФД: 115304 [03:49:59]line ФПД: 250053009798903 [03:49:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T034959&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115304&fm=250053009798903&tin=02508201610067®Number=0000000000091831&sum=11000 [03:49:59]line 0 [03:49:59]written 0, free lines is 4095 [03:49:59]OFD Sender: Processing packet 115304 [packets to send 481, broken 480] [03:49:59]ProducePacketName [03:49:59]name=ofd_packets/00115304 [03:49:59]OFD Sender: To server: pG, [03:49:59]CommunicateWithHost lk.salyk.kg:30040 [03:49:59]ConnectInit lk.salyk.kg [03:50:00]Connected sock=10 [03:50:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 8F BF 1F 01 68 FD 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E7 93 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 68 C2 01 00 35 04 06 00 E3 6C 00 D2 F6 F7 22 00 2B 6C D9 3D E0 63 [03:50:00]Write to MH i2c: 01 00 00 C4 07 CB [03:50:00]Write i2c OK [03:50:00]MH_I2C_Read... [03:50:00]Read from MH i2c: 01 [03:50:00]MH_I2C_Read... [03:50:00]Read from MH i2c: 01 07 00 [03:50:00]MH_I2C_Read... [03:50:00]Read from MH i2c: 01 07 00 C4 07 00 00 00 00 00 7D 0C 5B [03:50:00]RasterBufferAndPrint [03:50:00]line [03:50:00]line [03:50:00]line [03:50:00]line [03:50:00]line [03:50:00]written 0, free lines is 3201 [03:50:00]MH_Cut [03:50:00]Write to MH i2c: D1 01 00 CB 07 01 A4 [03:50:00]Write i2c OK [03:50:00]MH_I2C_Read... [03:50:00]Read from MH i2c: D1 [03:50:00]MH_I2C_Read... [03:50:00]Read from MH i2c: D1 01 00 [03:50:00]MH_I2C_Read... [03:50:00]Read from MH i2c: D1 01 00 CB 07 00 A3 [03:50:00]Write to MH i2c: 01 00 00 CC 07 D3 [03:50:00]Write i2c OK [03:50:00]MH_I2C_Read... [03:50:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 37 15 47 00 B0 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 68 C2 01 00 F4 03 04 00 2E 39 EF 66 B6 04 01 00 00 4C 86 75 1A 12 6D 13 C5 [03:50:00]CommunicateWithHost err = 0 [03:50:00]CheckOFDResponse [03:50:00]1017 (14) - 77093643461234 [03:50:00]1041 (16) - 0000000000871830 [03:50:00]1040 (4) - 115304 [03:50:00]1012 (4) - 21.09.2024 21:22 [03:50:00]1206 (1) - 0 [03:50:00]OFD Sender: Remove packet 115304 [03:50:00]ProducePacketName [03:50:00]name=ofd_packets/00115304 [03:50:00]NVStorageDeleteData [03:50:01]OFD Sender: No OFD packet to send [03:50:01]*** Cut start [03:50:01]*** Partial cut [03:50:01]*** CUTSNS_PIN = 1 [03:50:01]*** CUTSNS_PIN = 0 [03:50:01]*** Brake cut motor [03:50:02]Read from MH i2c: 01 [03:50:02]MH_I2C_Read... [03:50:02]*** Stop cut motor [03:50:02]*** Cut end [03:50:02]Read from MH i2c: 01 07 00 [03:50:02]MH_I2C_Read... [03:50:02]Read from MH i2c: 01 07 00 CC 07 00 00 00 00 00 FF 0F E8 [03:50:02]process_action close_receipt done [03:50:02]requested_data is exist [03:50:02]produce_requested_data [03:50:02]requested_item fm.sn is exist - process it [03:50:02]wFMCommunicate request_size=4 [03:50:02]MH_SAM_APDU [03:50:02]CAPDU: 80 11 00 00 [03:50:02]Write to MH i2c: E2 08 00 CD 07 80 11 00 00 00 00 00 00 4E [03:50:02]Write i2c OK [03:50:02]MH_I2C_Read... [03:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:50:02]Read from MH i2c: E2 [03:50:02]MH_I2C_Read... [03:50:02]Read from MH i2c: E2 17 00 [03:50:02]MH_I2C_Read... [03:50:02]Read from MH i2c: E2 17 00 CD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9C [03:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:50:02]wFMCommunicate OK [03:50:02]requested_item fd.num is exist - process it [03:50:02]SAM_PROTO_GetFieldsCounters [03:50:02]wFMCommunicate request_size=4 [03:50:02]MH_SAM_APDU [03:50:02]CAPDU: 80 13 00 00 [03:50:02]Write to MH i2c: E2 08 00 CE 07 80 13 00 00 00 00 00 00 51 [03:50:02]Write i2c OK [03:50:02]MH_I2C_Read... [03:50:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:50:02]Read from MH i2c: E2 [03:50:02]MH_I2C_Read... [03:50:02]Read from MH i2c: E2 62 00 [03:50:02]MH_I2C_Read... [03:50:02]Read from MH i2c: E2 62 00 CE 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 68 C2 01 00 0E 04 04 00 D7 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 AF [03:50:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 68 C2 01 00 0E 04 04 00 D7 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 [03:50:02]wFMCommunicate OK [03:50:02]SAM_PROTO_GetFieldsCounters done [03:50:02]requested_item shift.num is exist - process it [03:50:02]requested_item shift.opened is exist - process it [03:50:02]req_shift_opened [03:50:02]FM_GetShiftState [03:50:02]SAM_PROTO_GetShiftState [03:50:02]wFMCommunicate request_size=4 [03:50:02]MH_SAM_APDU [03:50:02]CAPDU: 80 13 01 00 [03:50:02]Write to MH i2c: E2 08 00 CF 07 80 13 01 00 00 00 00 00 53 [03:50:02]Write i2c OK [03:50:02]MH_I2C_Read... [03:50:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:50:02]Read from MH i2c: E2 [03:50:02]MH_I2C_Read... [03:50:02]Read from MH i2c: E2 0E 00 [03:50:02]MH_I2C_Read... [03:50:02]Read from MH i2c: E2 0E 00 CF 07 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 6C [03:50:02]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [03:50:02]wFMCommunicate OK [03:50:02]SAM_PROTO_GetShiftState done [03:50:02]FM_GetShiftState done [03:50:02]req_shift_opened done [03:50:02]requested_item shift.open_date is exist - process it [03:50:02]req_shift_open_date [03:50:02]req_shift_open_date done [03:50:02]produce_requested_data done [03:50:02]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115304,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [03:50:02]process_action_free close_receipt [03:50:02]json_value_free [03:50:02]json_value_free done [03:50:02]process_json_proto returns [03:50:02]Send response to host [03:50:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115304,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [03:50:02]free response buf [03:50:02]execute_script done [03:50:02]execute_script returns [03:50:02]free content buf [03:50:02]Sock 7.Close socket [03:50:02]Sock 7.Thread stoped [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:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]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:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:56]accept exits with 9 [04:03:56]New connection [04:03:56]New thread 3067448676 created [04:03:56]Thread 3067305316 joined [04:03:56]Waiting for new connection... [04:03:56] Sock 9.Parse request [04:03:56]Sock 9.Check first char [04:03:56]Sock 9.First char is OK [04:03:56]request: POST /json_proto HTTP/1.0 [04:03:56]Method: POST [04:03:56]URL: /json_proto [04:03:56]Method is POST - this is cgi request [04:03:56]url: /json_proto [04:03:56]query_string will be loaded in cgi processing [04:03:56]execute_cgi json_proto POST (null) [04:03:56]execute_cgi path=json_proto method=POST [04:03:56]POST find Content-Length [04:03:56]Host: 172.17.41.136:8080 [04:03:56]Content-Length: 621 [04:03:56]Content-Type: application/json [04:03:56] [04:03:56]POST finish read [04:03:56]Found Content-Length = 621 [04:03:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343764", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:03:56]execute_script... [04:03:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343764", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:03:56]POST & json_proto [04:03:56]process_json_proto [04:03:56]json parsed OK: [04:03:56]protocol is kg_v1.0 [04:03:56]action value=close_receipt [04:03:56]process_action close_receipt [04:03:56]cmd_close_receipt [04:03:56]MH_GetDate [04:03:56]Write to MH i2c: F0 00 00 D0 07 C6 [04:03:56]Write i2c OK [04:03:56]MH_I2C_Read... [04:03:56]Read from MH i2c: F0 [04:03:56]MH_I2C_Read... [04:03:56]Read from MH i2c: F0 09 00 [04:03:56]MH_I2C_Read... [04:03:56]Read from MH i2c: F0 09 00 D0 07 00 2D 97 EF 66 1B D0 5A 64 91 [04:03:56]GetLastDocTimeStamp 1726976999 [04:03:56]current date 1726977837 [04:03:56]FM_GetShiftState [04:03:56]SAM_PROTO_GetShiftState [04:03:56]wFMCommunicate request_size=4 [04:03:56]MH_SAM_APDU [04:03:56]CAPDU: 80 13 01 00 [04:03:56]Write to MH i2c: E2 08 00 D1 07 80 13 01 00 00 00 00 00 55 [04:03:56]Write i2c OK [04:03:56]MH_I2C_Read... [04:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:03:56]Read from MH i2c: E2 [04:03:56]MH_I2C_Read... [04:03:56]Read from MH i2c: E2 0E 00 [04:03:56]MH_I2C_Read... [04:03:56]Read from MH i2c: E2 0E 00 D1 07 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 6E [04:03:56]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [04:03:56]wFMCommunicate OK [04:03:56]SAM_PROTO_GetShiftState done [04:03:56]FM_GetShiftState done [04:03:56]opened in 1726965840 [04:03:56]opened+sec_in_day 1727052240 [04:03:56]quantity*price = 14400 [04:03:56]sum+1 = 14401 [04:03:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 23 22.09.2024 04:03 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115305 ФПД: 251761843166569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T040357&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115305&fm=251761843166569&tin=02508201610067®Number=0000000000091831&sum=14400 0 [04:03:57]StoreToDocumentArchive [04:03:57]shift 471 fd 115305 [04:03:57]save to /storage/0471/doc_00115305 [04:03:57]save last doc name /storage/0471/doc_00115305 to /storage/kkm_last_doc_name [04:03:57]save OK [04:03:57]Clear old archive folders... [04:03:57]ProcessDocumentItem done err = 0, tmpTLVsize=273 [04:03:57]tlvbuf is 00980F70 [04:03:57]SAM_PROTO_ClearQueue [04:03:57]wFMCommunicate request_size=4 [04:03:57]MH_SAM_APDU [04:03:57]CAPDU: 80 09 00 00 [04:03:57]Write to MH i2c: E2 08 00 DE 07 80 09 00 00 00 00 00 00 57 [04:03:57]Write i2c OK [04:03:57]MH_I2C_Read... [04:03:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:03:57]Read from MH i2c: E2 [04:03:57]MH_I2C_Read... [04:03:57]Read from MH i2c: E2 03 00 [04:03:57]MH_I2C_Read... [04:03:57]Read from MH i2c: E2 03 00 DE 07 00 90 00 59 [04:03:57]RAPDU: 90 00 [04:03:57]wFMCommunicate OK [04:03:57]SAM_PROTO_ClearQueue done [04:03:57]KKMCreateOFDPacket [04:03:57]OFDProtocolAddRootSTLVToBuf [04:03:57]FM_MakeSignedData [04:03:57]FM_MakeSignedData [04:03:57]SAM_PROTO_SignData [04:03:57]wFMCommunicate request_size=4 [04:03:57]MH_SAM_APDU [04:03:57]CAPDU: 80 0D 01 02 [04:03:57]Write to MH i2c: E2 08 00 DF 07 80 0D 01 02 00 00 00 00 5F [04:03:57]Write i2c OK [04:03:57]MH_I2C_Read... [04:03:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:03:57]Read from MH i2c: E2 [04:03:57]MH_I2C_Read... [04:03:57]Read from MH i2c: E2 03 00 [04:03:57]MH_I2C_Read... [04:03:57]Read from MH i2c: E2 03 00 DF 07 00 90 00 5A [04:03:57]RAPDU: 90 00 [04:03:57]wFMCommunicate OK [04:03:57]wFMCommunicate request_size=255 [04:03:57]MH_SAM_APDU [04:03:57]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 17 00 00 00 F4 03 04 00 2D 97 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 [04:03:57]Write to MH i2c: E2 02 01 E0 07 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 17 00 00 00 F4 03 04 00 2D 97 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 CE [04:03:57]Write i2c OK [04:03:57]MH_I2C_Read... [04:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:03:57]Read from MH i2c: E2 [04:03:57]MH_I2C_Read... [04:03:57]Read from MH i2c: E2 03 00 [04:03:57]MH_I2C_Read... [04:03:57]Read from MH i2c: E2 03 00 E0 07 00 90 00 5B [04:03:57]RAPDU: 90 00 [04:03:57]wFMCommunicate OK [04:03:57]wFMCommunicate request_size=32 [04:03:57]MH_SAM_APDU [04:03:57]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 33 30 10 04 04 00 69 C2 01 00 35 04 06 00 E4 F9 DF 3A DD 69 [04:03:57]Write to MH i2c: E2 23 00 E1 07 80 0D 02 02 1B 00 30 30 30 38 37 31 38 33 30 10 04 04 00 69 C2 01 00 35 04 06 00 E4 F9 DF 3A DD 69 00 00 22 [04:03:57]Write i2c OK [04:03:57]MH_I2C_Read... [04:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:03:57]Read from MH i2c: E2 [04:03:57]MH_I2C_Read... [04:03:57]Read from MH i2c: E2 03 00 [04:03:57]MH_I2C_Read... [04:03:57]Read from MH i2c: E2 03 00 E1 07 00 90 00 5C [04:03:57]RAPDU: 90 00 [04:03:57]wFMCommunicate OK [04:03:57]wFMCommunicate request_size=4 [04:03:57]MH_SAM_APDU [04:03:57]CAPDU: 80 0D 03 02 [04:03:57]Write to MH i2c: E2 08 00 E2 07 80 0D 03 02 00 00 00 00 64 [04:03:57]Write i2c OK [04:03:57]MH_I2C_Read... [04:03:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:03:57]Read from MH i2c: E2 [04:03:57]MH_I2C_Read... [04:03:57]Read from MH i2c: E2 0B 00 [04:03:57]MH_I2C_Read... [04:03:57]Read from MH i2c: E2 0B 00 E2 07 00 8E 66 65 4A 98 C9 DA DF 90 00 22 [04:03:57]RAPDU: 8E 66 65 4A 98 C9 DA DF 90 00 [04:03:57]wFMCommunicate OK [04:03:57]SAM_PROTO_SignData done [04:03:57]FM_MakeSignedData done [04:03:57]CreateOFDProtocolMessage [04:03:57]wFMCommunicate request_size=4 [04:03:57]MH_SAM_APDU [04:03:57]CAPDU: 80 11 00 00 [04:03:57]Write to MH i2c: E2 08 00 E3 07 80 11 00 00 00 00 00 00 64 [04:03:57]Write i2c OK [04:03:57]MH_I2C_Read... [04:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:03:57]Read from MH i2c: E2 [04:03:57]MH_I2C_Read... [04:03:57]Read from MH i2c: E2 17 00 [04:03:57]MH_I2C_Read... [04:03:57]Read from MH i2c: E2 17 00 E3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B2 [04:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:03:57]wFMCommunicate OK [04:03:57]CreateOFDProtocolMessage done [04:03:57]OFDSenderStorePacket 115305 [04:03:57]StoreOFDPacket docnum=115305 [04:03:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 25 01 00 00 69 01 1D 01 84 33 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 17 00 00 00 F4 03 04 00 2D 97 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 69 C2 01 00 35 04 06 00 E4 F9 DF 3A DD 69 8E 66 65 4A 98 C9 DA DF [04:03:57]CheckFolder [04:03:57]dirname=/storage/ofd_packets [04:03:57]CheckFolder done [04:03:57]ProducePacketName [04:03:57]name=ofd_packets/00115305 [04:03:57]NVStorageSaveData ofd_packets/00115305 [04:03:57]File name is /storage/ofd_packets/00115305 [04:03:57]Write 323 bytes [04:03:57]NVStorageSaveData done [04:03:57]OFDSenderStorePacket done [04:03:57]KKMCreateOFDPacket done [04:03:57]NVStorageSaveData kkm_last_timestamp [04:03:57]File name is /storage/kkm_last_timestamp [04:03:57]Write 4 bytes [04:03:57]NVStorageSaveData done [04:03:57]ExternCall_PrintAddStr [04:03:57]wPrintStart [04:03:57]Write to MH i2c: 01 00 00 E4 07 EB [04:03:57]Write i2c OK [04:03:57]MH_I2C_Read... [04:03:57]Read from MH i2c: 01 [04:03:57]MH_I2C_Read... [04:03:57]Read from MH i2c: 01 07 00 [04:03:57]MH_I2C_Read... [04:03:57]Read from MH i2c: 01 07 00 E4 07 00 00 00 00 00 FF 0F 00 [04:03:57]RasterBufferAndPrint [04:03:57]line Счет N : (3)343764 [04:03:57]line ИНН: 02508201610067 [04:03:57]line Контрольно-Кассовый Чек [04:03:57]line ПРОДАЖА [04:03:57]line Товар: 48743570 [04:03:57]line Сигареты Winston XStyle Blue [04:03:57]line 1.000 * 144.00 [04:03:57]line = 144.00 [04:03:57]line НДС 12% НСП 1% [04:03:57]line > о реализуемом товаре [04:03:57]line ИТОГО: 144.00 [04:03:57]line НСП 1% : 1.27 [04:03:57]line НДС 12% : 15.29 [04:03:57]line Наличными: 144.00 [04:03:57]line Безнал.: 0.00 [04:03:57]line Место: АЗС № 90 "Партнер Нефть" [04:03:57]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [04:03:57]line СНО: Общий режим [04:03:57]line Чек 23 22.09.2024 04:03 [04:03:57]line Смена: 471 ФФД: 1.0 [04:03:57]line ЗНМ: 0300000120 [04:03:57]line РНМ: 0000000000091831 [04:03:57]line Версия ККМ: 001 [04:03:57]line ФМ: 0000000000871830 [04:03:57]line ФД: 115305 [04:03:57]line ФПД: 251761843166569 [04:03:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T040357&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115305&fm=251761843166569&tin=02508201610067®Number=0000000000091831&sum=14400 [04:03:58]line 0 [04:03:58]OFD Sender: Processing packet 115305 [packets to send 481, broken 480] [04:03:58]ProducePacketName [04:03:58]name=ofd_packets/00115305 [04:03:58]OFD Sender: To server: pG, [04:03:58]CommunicateWithHost lk.salyk.kg:30040 [04:03:58]ConnectInit lk.salyk.kg [04:03:58]written 0, free lines is 4095 [04:03:58]Connected sock=10 [04:03:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 25 01 00 00 69 01 1D 01 84 33 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 17 00 00 00 F4 03 04 00 2D 97 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 69 C2 01 00 35 04 06 00 E4 F9 DF 3A DD 69 8E 66 65 4A 98 C9 DA DF [04:03:58]Write to MH i2c: 01 00 00 0B 08 13 [04:03:58]Write i2c OK [04:03:58]MH_I2C_Read... [04:03:58]Read from MH i2c: 01 [04:03:58]MH_I2C_Read... [04:03:58]Read from MH i2c: 01 07 00 [04:03:58]MH_I2C_Read... [04:03:58]Read from MH i2c: 01 07 00 0B 08 00 00 00 00 00 74 0C 9A [04:03:58]RasterBufferAndPrint [04:03:58]line [04:03:58]line [04:03:58]line [04:03:58]line [04:03:58]line [04:03:58]written 0, free lines is 3191 [04:03:58]MH_Cut [04:03:58]Write to MH i2c: D1 01 00 12 08 01 EC [04:03:58]Write i2c OK [04:03:58]MH_I2C_Read... [04:03:58]Read from MH i2c: D1 [04:03:58]MH_I2C_Read... [04:03:58]Read from MH i2c: D1 01 00 [04:03:58]MH_I2C_Read... [04:03:58]Read from MH i2c: D1 01 00 12 08 00 EB [04:03:58]Write to MH i2c: 01 00 00 13 08 1B [04:03:58]Write i2c OK [04:03:58]MH_I2C_Read... [04:03:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C8 29 47 00 91 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 69 C2 01 00 F4 03 04 00 74 3C EF 66 B6 04 01 00 00 EA F2 EA 8B C8 0F F1 FE [04:03:58]CommunicateWithHost err = 0 [04:03:58]CheckOFDResponse [04:03:58]1017 (14) - 77093643461234 [04:03:58]1041 (16) - 0000000000871830 [04:03:58]1040 (4) - 115305 [04:03:58]1012 (4) - 21.09.2024 21:36 [04:03:58]1206 (1) - 0 [04:03:58]OFD Sender: Remove packet 115305 [04:03:58]ProducePacketName [04:03:58]name=ofd_packets/00115305 [04:03:58]NVStorageDeleteData [04:03:59]OFD Sender: No OFD packet to send [04:04:00]*** Cut start [04:04:00]*** Partial cut [04:04:00]*** CUTSNS_PIN = 1 [04:04:00]*** CUTSNS_PIN = 0 [04:04:00]*** Brake cut motor [04:04:00]Read from MH i2c: 01 [04:04:00]MH_I2C_Read... [04:04:00]*** Stop cut motor [04:04:00]*** Cut end [04:04:00]Read from MH i2c: 01 07 00 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: 01 07 00 13 08 00 00 00 00 00 FF 0F 30 [04:04:00]process_action close_receipt done [04:04:00]requested_data is exist [04:04:00]produce_requested_data [04:04:00]requested_item fm.sn is exist - process it [04:04:00]wFMCommunicate request_size=4 [04:04:00]MH_SAM_APDU [04:04:00]CAPDU: 80 11 00 00 [04:04:00]Write to MH i2c: E2 08 00 14 08 80 11 00 00 00 00 00 00 96 [04:04:00]Write i2c OK [04:04:00]MH_I2C_Read... [04:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:04:00]Read from MH i2c: E2 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: E2 17 00 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: E2 17 00 14 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E4 [04:04:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:04:00]wFMCommunicate OK [04:04:00]requested_item fd.num is exist - process it [04:04:00]SAM_PROTO_GetFieldsCounters [04:04:00]wFMCommunicate request_size=4 [04:04:00]MH_SAM_APDU [04:04:00]CAPDU: 80 13 00 00 [04:04:00]Write to MH i2c: E2 08 00 15 08 80 13 00 00 00 00 00 00 99 [04:04:00]Write i2c OK [04:04:00]MH_I2C_Read... [04:04:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:04:00]Read from MH i2c: E2 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: E2 62 00 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: E2 62 00 15 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 69 C2 01 00 0E 04 04 00 D7 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 FB [04: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 69 C2 01 00 0E 04 04 00 D7 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 [04:04:00]wFMCommunicate OK [04:04:00]SAM_PROTO_GetFieldsCounters done [04:04:00]requested_item shift.num is exist - process it [04:04:00]requested_item shift.opened is exist - process it [04:04:00]req_shift_opened [04:04:00]FM_GetShiftState [04:04:00]SAM_PROTO_GetShiftState [04:04:00]wFMCommunicate request_size=4 [04:04:00]MH_SAM_APDU [04:04:00]CAPDU: 80 13 01 00 [04:04:00]Write to MH i2c: E2 08 00 16 08 80 13 01 00 00 00 00 00 9B [04:04:00]Write i2c OK [04:04:00]MH_I2C_Read... [04:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:04:00]Read from MH i2c: E2 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: E2 0E 00 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: E2 0E 00 16 08 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B4 [04:04:00]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [04:04:00]wFMCommunicate OK [04:04:00]SAM_PROTO_GetShiftState done [04:04:00]FM_GetShiftState done [04:04:00]req_shift_opened done [04:04:00]requested_item shift.open_date is exist - process it [04:04:00]req_shift_open_date [04:04:00]req_shift_open_date done [04:04:00]produce_requested_data done [04:04:00]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115305,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [04:04:00]process_action_free close_receipt [04:04:00]json_value_free [04:04:00]json_value_free done [04:04:00]process_json_proto returns [04:04:00]Send response to host [04:04:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115305,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [04:04:00]free response buf [04:04:00]execute_script done [04:04:00]execute_script returns [04:04:00]free content buf [04:04:00]Sock 9.Close socket [04:04:00]Sock 9.Thread stoped [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19: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:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:48]accept exits with 7 [04:29:48]New connection [04:29:48]New thread 3067305316 created [04:29:48]Thread 3067448676 joined [04:29:48]Waiting for new connection... [04:29:48] Sock 7.Parse request [04:29:48]Sock 7.Check first char [04:29:48]Sock 7.First char is OK [04:29:48]request: POST /json_proto HTTP/1.0 [04:29:48]Method: POST [04:29:48]URL: /json_proto [04:29:48]Method is POST - this is cgi request [04:29:48]url: /json_proto [04:29:48]query_string will be loaded in cgi processing [04:29:48]execute_cgi json_proto POST (null) [04:29:48]execute_cgi path=json_proto method=POST [04:29:48]POST find Content-Length [04:29:48]Host: 172.17.41.136:8080 [04:29:48]Content-Length: 622 [04:29:48]Content-Type: application/json [04:29:48] [04:29:48]POST finish read [04:29:48]Found Content-Length = 622 [04:29:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343765", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:29:48]execute_script... [04:29:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343765", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:29:48]POST & json_proto [04:29:48]process_json_proto [04:29:48]json parsed OK: [04:29:48]protocol is kg_v1.0 [04:29:48]action value=close_receipt [04:29:48]process_action close_receipt [04:29:48]cmd_close_receipt [04:29:48]MH_GetDate [04:29:48]Write to MH i2c: F0 00 00 17 08 0E [04:29:48]Write i2c OK [04:29:48]MH_I2C_Read... [04:29:48]Read from MH i2c: F0 [04:29:48]MH_I2C_Read... [04:29:48]Read from MH i2c: F0 09 00 [04:29:48]MH_I2C_Read... [04:29:48]Read from MH i2c: F0 09 00 17 08 00 3D 9D EF 66 1B D0 5A 64 EF [04:29:48]GetLastDocTimeStamp 1726977837 [04:29:48]current date 1726979389 [04:29:48]FM_GetShiftState [04:29:48]SAM_PROTO_GetShiftState [04:29:48]wFMCommunicate request_size=4 [04:29:48]MH_SAM_APDU [04:29:48]CAPDU: 80 13 01 00 [04:29:48]Write to MH i2c: E2 08 00 18 08 80 13 01 00 00 00 00 00 9D [04:29:48]Write i2c OK [04:29:48]MH_I2C_Read... [04:29:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:29:48]Read from MH i2c: E2 [04:29:48]MH_I2C_Read... [04:29:48]Read from MH i2c: E2 0E 00 [04:29:48]MH_I2C_Read... [04:29:48]Read from MH i2c: E2 0E 00 18 08 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B6 [04:29:48]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [04:29:48]wFMCommunicate OK [04:29:48]SAM_PROTO_GetShiftState done [04:29:48]FM_GetShiftState done [04:29:48]opened in 1726965840 [04:29:48]opened+sec_in_day 1727052240 [04:29:48]quantity*price = 15000 [04:29:48]sum+1 = 15001 [04:29:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 24 22.09.2024 04:29 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115306 ФПД: 199809966921245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T042949&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115306&fm=199809966921245&tin=02508201610067®Number=0000000000091831&sum=15000 0 [04:29:49]StoreToDocumentArchive [04:29:49]shift 471 fd 115306 [04:29:49]save to /storage/0471/doc_00115306 [04:29:49]save last doc name /storage/0471/doc_00115306 to /storage/kkm_last_doc_name [04:29:49]save OK [04:29:49]Clear old archive folders... [04:29:49]ProcessDocumentItem done err = 0, tmpTLVsize=274 [04:29:49]tlvbuf is 00991820 [04:29:49]SAM_PROTO_ClearQueue [04:29:49]wFMCommunicate request_size=4 [04:29:49]MH_SAM_APDU [04:29:49]CAPDU: 80 09 00 00 [04:29:49]Write to MH i2c: E2 08 00 25 08 80 09 00 00 00 00 00 00 9F [04:29:49]Write i2c OK [04:29:49]MH_I2C_Read... [04:29:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:29:49]Read from MH i2c: E2 [04:29:49]MH_I2C_Read... [04:29:49]Read from MH i2c: E2 03 00 [04:29:49]MH_I2C_Read... [04:29:49]Read from MH i2c: E2 03 00 25 08 00 90 00 A1 [04:29:49]RAPDU: 90 00 [04:29:49]wFMCommunicate OK [04:29:49]SAM_PROTO_ClearQueue done [04:29:49]KKMCreateOFDPacket [04:29:49]OFDProtocolAddRootSTLVToBuf [04:29:49]FM_MakeSignedData [04:29:49]FM_MakeSignedData [04:29:49]SAM_PROTO_SignData [04:29:49]wFMCommunicate request_size=4 [04:29:49]MH_SAM_APDU [04:29:49]CAPDU: 80 0D 01 02 [04:29:49]Write to MH i2c: E2 08 00 26 08 80 0D 01 02 00 00 00 00 A7 [04:29:49]Write i2c OK [04:29:49]MH_I2C_Read... [04:29:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:29:49]Read from MH i2c: E2 [04:29:49]MH_I2C_Read... [04:29:49]Read from MH i2c: E2 03 00 [04:29:49]MH_I2C_Read... [04:29:49]Read from MH i2c: E2 03 00 26 08 00 90 00 A2 [04:29:49]RAPDU: 90 00 [04:29:49]wFMCommunicate OK [04:29:49]wFMCommunicate request_size=255 [04:29:49]MH_SAM_APDU [04:29:49]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 3D 9D EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 [04:29:49]Write to MH i2c: E2 02 01 27 08 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 3D 9D EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 00 00 60 [04:29:49]Write i2c OK [04:29:49]MH_I2C_Read... [04:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:29:49]Read from MH i2c: E2 [04:29:49]MH_I2C_Read... [04:29:49]Read from MH i2c: E2 03 00 [04:29:49]MH_I2C_Read... [04:29:49]Read from MH i2c: E2 03 00 27 08 00 90 00 A3 [04:29:49]RAPDU: 90 00 [04:29:49]wFMCommunicate OK [04:29:49]wFMCommunicate request_size=33 [04:29:49]MH_SAM_APDU [04:29:49]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6A C2 01 00 35 04 06 00 B5 B9 E2 19 D6 1D [04:29:49]Write to MH i2c: E2 24 00 28 08 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6A C2 01 00 35 04 06 00 B5 B9 E2 19 D6 1D 00 00 BD [04:29:49]Write i2c OK [04:29:49]MH_I2C_Read... [04:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:29:49]Read from MH i2c: E2 [04:29:49]MH_I2C_Read... [04:29:49]Read from MH i2c: E2 03 00 [04:29:49]MH_I2C_Read... [04:29:49]Read from MH i2c: E2 03 00 28 08 00 90 00 A4 [04:29:49]RAPDU: 90 00 [04:29:49]wFMCommunicate OK [04:29:49]wFMCommunicate request_size=4 [04:29:49]MH_SAM_APDU [04:29:49]CAPDU: 80 0D 03 02 [04:29:49]Write to MH i2c: E2 08 00 29 08 80 0D 03 02 00 00 00 00 AC [04:29:49]Write i2c OK [04:29:49]MH_I2C_Read... [04:29:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:29:49]Read from MH i2c: E2 [04:29:49]MH_I2C_Read... [04:29:49]Read from MH i2c: E2 0B 00 [04:29:49]MH_I2C_Read... [04:29:49]Read from MH i2c: E2 0B 00 29 08 00 A5 D1 3F 28 B4 60 93 B2 90 00 E3 [04:29:49]RAPDU: A5 D1 3F 28 B4 60 93 B2 90 00 [04:29:49]wFMCommunicate OK [04:29:49]SAM_PROTO_SignData done [04:29:49]FM_MakeSignedData done [04:29:49]CreateOFDProtocolMessage [04:29:49]wFMCommunicate request_size=4 [04:29:49]MH_SAM_APDU [04:29:49]CAPDU: 80 11 00 00 [04:29:49]Write to MH i2c: E2 08 00 2A 08 80 11 00 00 00 00 00 00 AC [04:29:49]Write i2c OK [04:29:49]MH_I2C_Read... [04:29:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:29:49]Read from MH i2c: E2 [04:29:49]MH_I2C_Read... [04:29:49]Read from MH i2c: E2 17 00 [04:29:49]MH_I2C_Read... [04:29:49]Read from MH i2c: E2 17 00 2A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FA [04:29:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:29:49]wFMCommunicate OK [04:29:49]CreateOFDProtocolMessage done [04:29:49]OFDSenderStorePacket 115306 [04:29:49]StoreOFDPacket docnum=115306 [04:29:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 26 01 00 00 39 57 1E 01 0E 21 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 3D 9D EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6A C2 01 00 35 04 06 00 B5 B9 E2 19 D6 1D A5 D1 3F 28 B4 60 93 B2 [04:29:49]CheckFolder [04:29:49]dirname=/storage/ofd_packets [04:29:49]CheckFolder done [04:29:49]ProducePacketName [04:29:49]name=ofd_packets/00115306 [04:29:49]NVStorageSaveData ofd_packets/00115306 [04:29:49]File name is /storage/ofd_packets/00115306 [04:29:49]Write 324 bytes [04:29:49]NVStorageSaveData done [04:29:49]OFDSenderStorePacket done [04:29:49]KKMCreateOFDPacket done [04:29:49]NVStorageSaveData kkm_last_timestamp [04:29:49]File name is /storage/kkm_last_timestamp [04:29:49]Write 4 bytes [04:29:49]NVStorageSaveData done [04:29:49]ExternCall_PrintAddStr [04:29:49]wPrintStart [04:29:49]Write to MH i2c: 01 00 00 2B 08 33 [04:29:49]Write i2c OK [04:29:49]MH_I2C_Read... [04:29:49]Read from MH i2c: 01 [04:29:49]MH_I2C_Read... [04:29:49]Read from MH i2c: 01 07 00 [04:29:49]MH_I2C_Read... [04:29:49]Read from MH i2c: 01 07 00 2B 08 00 00 00 00 00 FF 0F 48 [04:29:49]RasterBufferAndPrint [04:29:49]line Счет N : (3)343765 [04:29:49]line ИНН: 02508201610067 [04:29:49]line Контрольно-Кассовый Чек [04:29:49]line ПРОДАЖА [04:29:49]line Товар: 4640030091645 [04:29:49]line Сигареты ESSE Exchange M [04:29:49]line 1.000 * 150.00 [04:29:49]line = 150.00 [04:29:49]line НДС 12% НСП 1% [04:29:49]line > о реализуемом товаре [04:29:49]line ИТОГО: 150.00 [04:29:49]line НСП 1% : 1.33 [04:29:49]line НДС 12% : 15.93 [04:29:49]line Наличными: 150.00 [04:29:49]line Безнал.: 0.00 [04:29:49]line Место: АЗС № 90 "Партнер Нефть" [04:29:49]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [04:29:49]line СНО: Общий режим [04:29:49]line Чек 24 22.09.2024 04:29 [04:29:49]line Смена: 471 ФФД: 1.0 [04:29:49]line ЗНМ: 0300000120 [04:29:49]line РНМ: 0000000000091831 [04:29:49]line Версия ККМ: 001 [04:29:49]line ФМ: 0000000000871830 [04:29:49]line ФД: 115306 [04:29:49]line ФПД: 199809966921245 [04:29:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T042949&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115306&fm=199809966921245&tin=02508201610067®Number=0000000000091831&sum=15000 [04:29:49]line 0 [04:29:49]written 0, free lines is 4095 [04:29:49]OFD Sender: Processing packet 115306 [packets to send 481, broken 480] [04:29:49]ProducePacketName [04:29:49]name=ofd_packets/00115306 [04:29:49]OFD Sender: To server: pG, [04:29:49]CommunicateWithHost lk.salyk.kg:30040 [04:29:49]ConnectInit lk.salyk.kg [04:29:50]Connected sock=10 [04:29:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 26 01 00 00 39 57 1E 01 0E 21 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 3D 9D EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6A C2 01 00 35 04 06 00 B5 B9 E2 19 D6 1D A5 D1 3F 28 B4 60 93 B2 [04:29:50]Write to MH i2c: 01 00 00 52 08 5A [04:29:50]Write i2c OK [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: 01 [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: 01 07 00 [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: 01 07 00 52 08 00 00 00 00 00 6D 0C DA [04:29:50]RasterBufferAndPrint [04:29:50]line [04:29:50]line [04:29:50]line [04:29:50]line [04:29:50]line [04:29:50]written 0, free lines is 3183 [04:29:50]MH_Cut [04:29:50]Write to MH i2c: D1 01 00 59 08 01 33 [04:29:50]Write i2c OK [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: D1 [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: D1 01 00 [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: D1 01 00 59 08 00 32 [04:29:50]Write to MH i2c: 01 00 00 5A 08 62 [04:29:50]Write i2c OK [04:29:50]MH_I2C_Read... [04:29:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 FF 48 47 00 0A 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 31 38 33 30 10 04 04 00 6A C2 01 00 F4 03 04 00 84 42 EF 66 B6 04 01 00 00 6A 6F 79 D2 3D FA DF FE [04:29:50]CommunicateWithHost err = 0 [04:29:50]CheckOFDResponse [04:29:50]1017 (14) - 77093643461234 [04:29:50]1041 (16) - 0000000000871830 [04:29:50]1040 (4) - 115306 [04:29:50]1012 (4) - 21.09.2024 22:02 [04:29:50]1206 (1) - 0 [04:29:50]OFD Sender: Remove packet 115306 [04:29:50]ProducePacketName [04:29:50]name=ofd_packets/00115306 [04:29:50]NVStorageDeleteData [04:29:51]OFD Sender: No OFD packet to send [04:29:51]*** Cut start [04:29:51]*** Partial cut [04:29:51]*** CUTSNS_PIN = 1 [04:29:51]*** CUTSNS_PIN = 0 [04:29:51]*** Brake cut motor [04:29:52]Read from MH i2c: 01 [04:29:52]MH_I2C_Read... [04:29:52]*** Stop cut motor [04:29:52]*** Cut end [04:29:52]Read from MH i2c: 01 07 00 [04:29:52]MH_I2C_Read... [04:29:52]Read from MH i2c: 01 07 00 5A 08 00 00 00 00 00 FF 0F 77 [04:29:52]process_action close_receipt done [04:29:52]requested_data is exist [04:29:52]produce_requested_data [04:29:52]requested_item fm.sn is exist - process it [04:29:52]wFMCommunicate request_size=4 [04:29:52]MH_SAM_APDU [04:29:52]CAPDU: 80 11 00 00 [04:29:52]Write to MH i2c: E2 08 00 5B 08 80 11 00 00 00 00 00 00 DD [04:29:52]Write i2c OK [04:29:52]MH_I2C_Read... [04:29:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:29:52]Read from MH i2c: E2 [04:29:52]MH_I2C_Read... [04:29:52]Read from MH i2c: E2 17 00 [04:29:52]MH_I2C_Read... [04:29:52]Read from MH i2c: E2 17 00 5B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2B [04:29:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:29:52]wFMCommunicate OK [04:29:52]requested_item fd.num is exist - process it [04:29:52]SAM_PROTO_GetFieldsCounters [04:29:52]wFMCommunicate request_size=4 [04:29:52]MH_SAM_APDU [04:29:52]CAPDU: 80 13 00 00 [04:29:52]Write to MH i2c: E2 08 00 5C 08 80 13 00 00 00 00 00 00 E0 [04:29:52]Write i2c OK [04:29:52]MH_I2C_Read... [04:29:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:29:52]Read from MH i2c: E2 [04:29:52]MH_I2C_Read... [04:29:52]Read from MH i2c: E2 62 00 [04:29:52]MH_I2C_Read... [04:29:52]Read from MH i2c: E2 62 00 5C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6A C2 01 00 0E 04 04 00 D7 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 46 [04:29:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6A C2 01 00 0E 04 04 00 D7 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 [04:29:52]wFMCommunicate OK [04:29:52]SAM_PROTO_GetFieldsCounters done [04:29:52]requested_item shift.num is exist - process it [04:29:52]requested_item shift.opened is exist - process it [04:29:52]req_shift_opened [04:29:52]FM_GetShiftState [04:29:52]SAM_PROTO_GetShiftState [04:29:52]wFMCommunicate request_size=4 [04:29:52]MH_SAM_APDU [04:29:52]CAPDU: 80 13 01 00 [04:29:52]Write to MH i2c: E2 08 00 5D 08 80 13 01 00 00 00 00 00 E2 [04:29:52]Write i2c OK [04:29:52]MH_I2C_Read... [04:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:29:52]Read from MH i2c: E2 [04:29:52]MH_I2C_Read... [04:29:52]Read from MH i2c: E2 0E 00 [04:29:52]MH_I2C_Read... [04:29:52]Read from MH i2c: E2 0E 00 5D 08 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 FB [04:29:52]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [04:29:52]wFMCommunicate OK [04:29:52]SAM_PROTO_GetShiftState done [04:29:52]FM_GetShiftState done [04:29:52]req_shift_opened done [04:29:52]requested_item shift.open_date is exist - process it [04:29:52]req_shift_open_date [04:29:52]req_shift_open_date done [04:29:52]produce_requested_data done [04:29:52]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115306,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [04:29:52]process_action_free close_receipt [04:29:52]json_value_free [04:29:52]json_value_free done [04:29:52]process_json_proto returns [04:29:52]Send response to host [04:29:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115306,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [04:29:52]free response buf [04:29:52]execute_script done [04:29:52]execute_script returns [04:29:52]free content buf [04:29:52]Sock 7.Close socket [04:29:52]Sock 7.Thread stoped [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]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:11]accept exits with 9 [04:32:11]New connection [04:32:11]New thread 3067448676 created [04:32:11]Thread 3067305316 joined [04:32:11]Waiting for new connection... [04:32:11] Sock 9.Parse request [04:32:11]Sock 9.Check first char [04:32:11]Sock 9.First char is OK [04:32:11]request: POST /json_proto HTTP/1.0 [04:32:11]Method: POST [04:32:11]URL: /json_proto [04:32:11]Method is POST - this is cgi request [04:32:11]url: /json_proto [04:32:11]query_string will be loaded in cgi processing [04:32:11]execute_cgi json_proto POST (null) [04:32:11]execute_cgi path=json_proto method=POST [04:32:11]POST find Content-Length [04:32:11]Host: 172.17.41.136:8080 [04:32:11]Content-Length: 1418 [04:32:11]Content-Type: application/json [04:32:11] [04:32:11]POST finish read [04:32:11]Found Content-Length = 1418 [04:32:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343766", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 385.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:32:11]execute_script... [04:32:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343766", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 385.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:32:11]POST & json_proto [04:32:11]process_json_proto [04:32:11]json parsed OK: [04:32:11]protocol is kg_v1.0 [04:32:11]action value=close_receipt [04:32:11]process_action close_receipt [04:32:11]cmd_close_receipt [04:32:11]MH_GetDate [04:32:11]Write to MH i2c: F0 00 00 5E 08 55 [04:32:11]Write i2c OK [04:32:11]MH_I2C_Read... [04:32:11]Read from MH i2c: F0 [04:32:11]MH_I2C_Read... [04:32:11]Read from MH i2c: F0 09 00 [04:32:11]MH_I2C_Read... [04:32:11]Read from MH i2c: F0 09 00 5E 08 00 CD 9D EF 66 1B D0 5A 64 C6 [04:32:11]GetLastDocTimeStamp 1726979389 [04:32:11]current date 1726979533 [04:32:11]FM_GetShiftState [04:32:11]SAM_PROTO_GetShiftState [04:32:11]wFMCommunicate request_size=4 [04:32:11]MH_SAM_APDU [04:32:11]CAPDU: 80 13 01 00 [04:32:11]Write to MH i2c: E2 08 00 5F 08 80 13 01 00 00 00 00 00 E4 [04:32:12]Write i2c OK [04:32:12]MH_I2C_Read... [04:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:32:12]Read from MH i2c: E2 [04:32:12]MH_I2C_Read... [04:32:12]Read from MH i2c: E2 0E 00 [04:32:12]MH_I2C_Read... [04:32:12]Read from MH i2c: E2 0E 00 5F 08 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 FD [04:32:12]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [04:32:12]wFMCommunicate OK [04:32:12]SAM_PROTO_GetShiftState done [04:32:12]FM_GetShiftState done [04:32:12]opened in 1726965840 [04:32:12]opened+sec_in_day 1727052240 [04:32:12]quantity*price = 6000 [04:32:12]sum+1 = 6001 [04:32:12]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870002329937 Напиток Lipton IceTea 1л персик Regular 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 385.00 НСП 1% : 3.40 НДС 12% : 40.88 Наличными: 385.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 25 22.09.2024 04:32 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115307 ФПД: 119782969627630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T043213&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115307&fm=119782969627630&tin=02508201610067®Number=0000000000091831&sum=38500 0 [04:32:13]StoreToDocumentArchive [04:32:13]shift 471 fd 115307 [04:32:13]save to /storage/0471/doc_00115307 [04:32:13]save last doc name /storage/0471/doc_00115307 to /storage/kkm_last_doc_name [04:32:13]save OK [04:32:13]Clear old archive folders... [04:32:13]ProcessDocumentItem done err = 0, tmpTLVsize=616 [04:32:13]tlvbuf is 00979430 [04:32:13]SAM_PROTO_ClearQueue [04:32:13]wFMCommunicate request_size=4 [04:32:13]MH_SAM_APDU [04:32:13]CAPDU: 80 09 00 00 [04:32:13]Write to MH i2c: E2 08 00 6C 08 80 09 00 00 00 00 00 00 E6 [04:32:13]Write i2c OK [04:32:13]MH_I2C_Read... [04:32:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:32:13]Read from MH i2c: E2 [04:32:13]MH_I2C_Read... [04:32:13]Read from MH i2c: E2 03 00 [04:32:13]MH_I2C_Read... [04:32:13]Read from MH i2c: E2 03 00 6C 08 00 90 00 E8 [04:32:13]RAPDU: 90 00 [04:32:13]wFMCommunicate OK [04:32:13]SAM_PROTO_ClearQueue done [04:32:13]KKMCreateOFDPacket [04:32:13]OFDProtocolAddRootSTLVToBuf [04:32:13]FM_MakeSignedData [04:32:13]FM_MakeSignedData [04:32:13]SAM_PROTO_SignData [04:32:13]wFMCommunicate request_size=4 [04:32:13]MH_SAM_APDU [04:32:13]CAPDU: 80 0D 01 02 [04:32:13]Write to MH i2c: E2 08 00 6D 08 80 0D 01 02 00 00 00 00 EE [04:32:13]Write i2c OK [04:32:13]MH_I2C_Read... [04:32:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:32:13]Read from MH i2c: E2 [04:32:13]MH_I2C_Read... [04:32:13]Read from MH i2c: E2 03 00 [04:32:13]MH_I2C_Read... [04:32:13]Read from MH i2c: E2 03 00 6D 08 00 90 00 E9 [04:32:13]RAPDU: 90 00 [04:32:13]wFMCommunicate OK [04:32:13]wFMCommunicate request_size=255 [04:32:13]MH_SAM_APDU [04:32:13]CAPDU: 80 0D 02 02 FA 03 00 68 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 [04:32:13]Write to MH i2c: E2 02 01 6E 08 80 0D 02 02 FA 00 03 00 68 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 00 00 E3 [04:32:13]Write i2c OK [04:32:13]MH_I2C_Read... [04:32:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:32:13]Read from MH i2c: E2 [04:32:13]MH_I2C_Read... [04:32:13]Read from MH i2c: E2 03 00 [04:32:13]MH_I2C_Read... [04:32:13]Read from MH i2c: E2 03 00 6E 08 00 90 00 EA [04:32:13]RAPDU: 90 00 [04:32:13]wFMCommunicate OK [04:32:13]wFMCommunicate request_size=255 [04:32:13]MH_SAM_APDU [04:32:13]CAPDU: 80 0D 02 02 FA 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 [04:32:13]Write to MH i2c: E2 02 01 6F 08 80 0D 02 02 FA 00 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 BE [04:32:13]Write i2c OK [04:32:13]MH_I2C_Read... [04:32:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:32:14]Read from MH i2c: E2 [04:32:14]MH_I2C_Read... [04:32:14]Read from MH i2c: E2 03 00 [04:32:14]MH_I2C_Read... [04:32:14]Read from MH i2c: E2 03 00 6F 08 00 90 00 EB [04:32:14]RAPDU: 90 00 [04:32:14]wFMCommunicate OK [04:32:14]wFMCommunicate request_size=125 [04:32:14]MH_SAM_APDU [04:32:14]CAPDU: 80 0D 02 02 78 00 F8 0F 00 00 00 00 07 04 06 00 64 96 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 CD 9D EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6B C2 01 00 35 04 06 00 6C F1 25 5A D3 EE [04:32:14]Write to MH i2c: E2 80 00 70 08 80 0D 02 02 78 00 00 F8 0F 00 00 00 00 07 04 06 00 64 96 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 CD 9D EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6B C2 01 00 35 04 06 00 6C F1 25 5A D3 EE 00 00 90 [04:32:14]Write i2c OK [04:32:14]MH_I2C_Read... [04:32:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:32:14]Read from MH i2c: E2 [04:32:14]MH_I2C_Read... [04:32:14]Read from MH i2c: E2 03 00 [04:32:14]MH_I2C_Read... [04:32:14]Read from MH i2c: E2 03 00 70 08 00 90 00 EC [04:32:14]RAPDU: 90 00 [04:32:14]wFMCommunicate OK [04:32:14]wFMCommunicate request_size=4 [04:32:14]MH_SAM_APDU [04:32:14]CAPDU: 80 0D 03 02 [04:32:14]Write to MH i2c: E2 08 00 71 08 80 0D 03 02 00 00 00 00 F4 [04:32:14]Write i2c OK [04:32:14]MH_I2C_Read... [04:32:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:32:14]Read from MH i2c: E2 [04:32:14]MH_I2C_Read... [04:32:14]Read from MH i2c: E2 0B 00 [04:32:14]MH_I2C_Read... [04:32:14]Read from MH i2c: E2 0B 00 71 08 00 75 4F 80 72 98 D8 75 EE 90 00 7E [04:32:14]RAPDU: 75 4F 80 72 98 D8 75 EE 90 00 [04:32:14]wFMCommunicate OK [04:32:14]SAM_PROTO_SignData done [04:32:14]FM_MakeSignedData done [04:32:14]CreateOFDProtocolMessage [04:32:14]wFMCommunicate request_size=4 [04:32:14]MH_SAM_APDU [04:32:14]CAPDU: 80 11 00 00 [04:32:14]Write to MH i2c: E2 08 00 72 08 80 11 00 00 00 00 00 00 F4 [04:32:14]Write i2c OK [04:32:14]MH_I2C_Read... [04:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:32:14]Read from MH i2c: E2 [04:32:14]MH_I2C_Read... [04:32:14]Read from MH i2c: E2 17 00 [04:32:14]MH_I2C_Read... [04:32:14]Read from MH i2c: E2 17 00 72 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 42 [04:32:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:32:14]wFMCommunicate OK [04:32:14]CreateOFDProtocolMessage done [04:32:14]OFDSenderStorePacket 115307 [04:32:14]StoreOFDPacket docnum=115307 [04:32:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 7C 02 00 00 B4 15 74 02 AC 50 5A 03 01 00 03 00 68 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 64 96 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 CD 9D EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6B C2 01 00 35 04 06 00 6C F1 25 5A D3 EE 75 4F 80 72 98 D8 75 EE [04:32:14]CheckFolder [04:32:14]dirname=/storage/ofd_packets [04:32:14]CheckFolder done [04:32:14]ProducePacketName [04:32:14]name=ofd_packets/00115307 [04:32:14]NVStorageSaveData ofd_packets/00115307 [04:32:14]File name is /storage/ofd_packets/00115307 [04:32:14]Write 666 bytes [04:32:14]NVStorageSaveData done [04:32:14]OFDSenderStorePacket done [04:32:14]KKMCreateOFDPacket done [04:32:14]NVStorageSaveData kkm_last_timestamp [04:32:14]File name is /storage/kkm_last_timestamp [04:32:14]Write 4 bytes [04:32:14]NVStorageSaveData done [04:32:14]ExternCall_PrintAddStr [04:32:14]wPrintStart [04:32:14]Write to MH i2c: 01 00 00 73 08 7B [04:32:14]Write i2c OK [04:32:14]MH_I2C_Read... [04:32:14]Read from MH i2c: 01 [04:32:14]MH_I2C_Read... [04:32:14]Read from MH i2c: 01 07 00 [04:32:14]MH_I2C_Read... [04:32:14]Read from MH i2c: 01 07 00 73 08 00 00 00 00 00 FF 0F 90 [04:32:14]RasterBufferAndPrint [04:32:14]line Счет N : (3)343766 [04:32:14]line ИНН: 02508201610067 [04:32:14]line Контрольно-Кассовый Чек [04:32:14]line ПРОДАЖА [04:32:14]line Товар: 4700000160204 [04:32:14]line Вода Легенда 1,5л [04:32:14]line 1.000 * 60.00 [04:32:14]line = 60.00 [04:32:14]line НДС 12% НСП 1% [04:32:14]line > о реализуемом товаре [04:32:14]line Товар: 4870001570071 [04:32:14]line Напиток Pepsi 1л [04:32:14]line 1.000 * 110.00 [04:32:14]line = 110.00 [04:32:14]line НДС 12% НСП 1% [04:32:14]line > о реализуемом товаре [04:32:14]line Товар: 4600682557456 [04:32:14]line Напиток FLash up energy эн ж/б 0,5/0,45л [04:32:14]line 1.000 * 85.00 [04:32:14]line = 85.00 [04:32:14]line НДС 12% НСП 1% [04:32:14]line > о реализуемом товаре [04:32:14]line Товар: 4870002329937 [04:32:14]line Напиток Lipton IceTea 1л персик Regular [04:32:14]line 1.000 * 130.00 [04:32:14]line = 130.00 [04:32:14]line НДС 12% НСП 1% [04:32:14]line > о реализуемом товаре [04:32:14]line ИТОГО: 385.00 [04:32:14]line НСП 1% : 3.40 [04:32:14]line НДС 12% : 40.88 [04:32:14]line Наличными: 385.00 [04:32:14]line Безнал.: 0.00 [04:32:14]line Место: АЗС № 90 "Партнер Нефть" [04:32:14]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [04:32:14]line СНО: Общий режим [04:32:14]line Чек 25 22.09.2024 04:32 [04:32:14]line Смена: 471 ФФД: 1.0 [04:32:14]line ЗНМ: 0300000120 [04:32:14]line РНМ: 0000000000091831 [04:32:14]line Версия ККМ: 001 [04:32:14]line ФМ: 0000000000871830 [04:32:14]line ФД: 115307 [04:32:14]line ФПД: 119782969627630 [04:32:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T043213&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115307&fm=119782969627630&tin=02508201610067®Number=0000000000091831&sum=38500 [04:32:14]OFD Sender: Processing packet 115307 [packets to send 481, broken 480] [04:32:14]ProducePacketName [04:32:14]name=ofd_packets/00115307 [04:32:14]OFD Sender: To server: pG, [04:32:14]CommunicateWithHost lk.salyk.kg:30040 [04:32:14]ConnectInit lk.salyk.kg [04:32:14]line 0 [04:32:14]written 0, free lines is 4095 [04:32:14]Connected sock=10 [04:32:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 7C 02 00 00 B4 15 74 02 AC 50 5A 03 01 00 03 00 68 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 64 96 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 CD 9D EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6B C2 01 00 35 04 06 00 6C F1 25 5A D3 EE 75 4F 80 72 98 D8 75 EE [04:32:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 EA A2 47 00 7F 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6B C2 01 00 F4 03 04 00 15 43 EF 66 B6 04 01 00 00 40 9D DD 59 ED 80 6B BE [04:32:15]CommunicateWithHost err = 0 [04:32:15]CheckOFDResponse [04:32:15]1017 (14) - 77093643461234 [04:32:15]1041 (16) - 0000000000871830 [04:32:15]1040 (4) - 115307 [04:32:15]1012 (4) - 21.09.2024 22:05 [04:32:15]1206 (1) - 0 [04:32:15]OFD Sender: Remove packet 115307 [04:32:15]ProducePacketName [04:32:15]name=ofd_packets/00115307 [04:32:15]NVStorageDeleteData [04:32:15]Write to MH i2c: 01 00 00 AE 08 B6 [04:32:15]Write i2c OK [04:32:15]MH_I2C_Read... [04:32:15]Read from MH i2c: 01 [04:32:15]MH_I2C_Read... [04:32:15]Read from MH i2c: 01 07 00 [04:32:15]MH_I2C_Read... [04:32:15]Read from MH i2c: 01 07 00 AE 08 00 00 00 00 00 D2 0A 99 [04:32:15]RasterBufferAndPrint [04:32:15]line [04:32:15]line [04:32:15]line [04:32:15]line [04:32:15]line [04:32:15]written 0, free lines is 2776 [04:32:15]MH_Cut [04:32:15]Write to MH i2c: D1 01 00 B5 08 01 8F [04:32:15]Write i2c OK [04:32:15]MH_I2C_Read... [04:32:15]Read from MH i2c: D1 [04:32:15]MH_I2C_Read... [04:32:15]Read from MH i2c: D1 01 00 [04:32:15]MH_I2C_Read... [04:32:15]Read from MH i2c: D1 01 00 B5 08 00 8E [04:32:15]Write to MH i2c: 01 00 00 B6 08 BE [04:32:15]Write i2c OK [04:32:15]MH_I2C_Read... [04:32:15]OFD Sender: No OFD packet to send [04:32:17]*** Cut start [04:32:17]*** Partial cut [04:32:17]*** CUTSNS_PIN = 1 [04:32:17]*** CUTSNS_PIN = 0 [04:32:17]*** Brake cut motor [04:32:17]Read from MH i2c: 01 [04:32:17]MH_I2C_Read... [04:32:17]*** Stop cut motor [04:32:17]*** Cut end [04:32:17]Read from MH i2c: 01 07 00 [04:32:17]MH_I2C_Read... [04:32:17]Read from MH i2c: 01 07 00 B6 08 00 00 00 00 00 FF 0F D3 [04:32:17]process_action close_receipt done [04:32:17]requested_data is exist [04:32:17]produce_requested_data [04:32:17]requested_item fm.sn is exist - process it [04:32:17]wFMCommunicate request_size=4 [04:32:17]MH_SAM_APDU [04:32:17]CAPDU: 80 11 00 00 [04:32:17]Write to MH i2c: E2 08 00 B7 08 80 11 00 00 00 00 00 00 39 [04:32:17]Write i2c OK [04:32:17]MH_I2C_Read... [04:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:32:17]Read from MH i2c: E2 [04:32:17]MH_I2C_Read... [04:32:17]Read from MH i2c: E2 17 00 [04:32:17]MH_I2C_Read... [04:32:17]Read from MH i2c: E2 17 00 B7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 87 [04:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:32:17]wFMCommunicate OK [04:32:17]requested_item fd.num is exist - process it [04:32:17]SAM_PROTO_GetFieldsCounters [04:32:17]wFMCommunicate request_size=4 [04:32:17]MH_SAM_APDU [04:32:17]CAPDU: 80 13 00 00 [04:32:17]Write to MH i2c: E2 08 00 B8 08 80 13 00 00 00 00 00 00 3C [04:32:17]Write i2c OK [04:32:17]MH_I2C_Read... [04:32:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:32:17]Read from MH i2c: E2 [04:32:17]MH_I2C_Read... [04:32:17]Read from MH i2c: E2 62 00 [04:32:17]MH_I2C_Read... [04:32:17]Read from MH i2c: E2 62 00 B8 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6B C2 01 00 0E 04 04 00 D7 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 A6 [04:32:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6B C2 01 00 0E 04 04 00 D7 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 [04:32:17]wFMCommunicate OK [04:32:17]SAM_PROTO_GetFieldsCounters done [04:32:17]requested_item shift.num is exist - process it [04:32:17]requested_item shift.opened is exist - process it [04:32:17]req_shift_opened [04:32:17]FM_GetShiftState [04:32:17]SAM_PROTO_GetShiftState [04:32:17]wFMCommunicate request_size=4 [04:32:17]MH_SAM_APDU [04:32:17]CAPDU: 80 13 01 00 [04:32:17]Write to MH i2c: E2 08 00 B9 08 80 13 01 00 00 00 00 00 3E [04:32:17]Write i2c OK [04:32:17]MH_I2C_Read... [04:32:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:32:17]Read from MH i2c: E2 [04:32:17]MH_I2C_Read... [04:32:17]Read from MH i2c: E2 0E 00 [04:32:17]MH_I2C_Read... [04:32:17]Read from MH i2c: E2 0E 00 B9 08 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 57 [04:32:17]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [04:32:17]wFMCommunicate OK [04:32:17]SAM_PROTO_GetShiftState done [04:32:17]FM_GetShiftState done [04:32:17]req_shift_opened done [04:32:17]requested_item shift.open_date is exist - process it [04:32:17]req_shift_open_date [04:32:17]req_shift_open_date done [04:32:17]produce_requested_data done [04:32:17]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115307,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [04:32:17]process_action_free close_receipt [04:32:17]json_value_free [04:32:17]json_value_free done [04:32:17]process_json_proto returns [04:32:17]Send response to host [04:32:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115307,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [04:32:17]free response buf [04:32:17]execute_script done [04:32:17]execute_script returns [04:32:17]free content buf [04:32:17]Sock 9.Close socket [04:32:17]Sock 9.Thread stoped [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]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]accept exits with 7 [04:36:01]New connection [04:36:01]New thread 3067305316 created [04:36:01]Thread 3067448676 joined [04:36:01]Waiting for new connection... [04:36:01] Sock 7.Parse request [04:36:01]Sock 7.Check first char [04:36:01]Sock 7.First char is OK [04:36:01]request: POST /json_proto HTTP/1.0 [04:36:01]Method: POST [04:36:01]URL: /json_proto [04:36:01]Method is POST - this is cgi request [04:36:01]url: /json_proto [04:36:01]query_string will be loaded in cgi processing [04:36:01]execute_cgi json_proto POST (null) [04:36:01]execute_cgi path=json_proto method=POST [04:36:01]POST find Content-Length [04:36:01]Host: 172.17.41.136:8080 [04:36:01]Content-Length: 811 [04:36:01]Content-Type: application/json [04:36:01] [04:36:01]POST finish read [04:36:01]Found Content-Length = 811 [04:36:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343767", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:36:01]execute_script... [04:36:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343767", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:36:01]POST & json_proto [04:36:01]process_json_proto [04:36:01]json parsed OK: [04:36:01]protocol is kg_v1.0 [04:36:01]action value=close_receipt [04:36:01]process_action close_receipt [04:36:01]cmd_close_receipt [04:36:01]MH_GetDate [04:36:01]Write to MH i2c: F0 00 00 BA 08 B1 [04:36:01]Write i2c OK [04:36:01]MH_I2C_Read... [04:36:01]Read from MH i2c: F0 [04:36:01]MH_I2C_Read... [04:36:01]Read from MH i2c: F0 09 00 [04:36:01]MH_I2C_Read... [04:36:01]Read from MH i2c: F0 09 00 BA 08 00 B2 9E EF 66 1B D0 5A 64 08 [04:36:01]GetLastDocTimeStamp 1726979533 [04:36:01]current date 1726979762 [04:36:01]FM_GetShiftState [04:36:01]SAM_PROTO_GetShiftState [04:36:01]wFMCommunicate request_size=4 [04:36:01]MH_SAM_APDU [04:36:01]CAPDU: 80 13 01 00 [04:36:01]Write to MH i2c: E2 08 00 BB 08 80 13 01 00 00 00 00 00 40 [04:36:01]Write i2c OK [04:36:01]MH_I2C_Read... [04:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:36:01]Read from MH i2c: E2 [04:36:01]MH_I2C_Read... [04:36:01]Read from MH i2c: E2 0E 00 [04:36:01]MH_I2C_Read... [04:36:01]Read from MH i2c: E2 0E 00 BB 08 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 59 [04:36:01]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [04:36:01]wFMCommunicate OK [04:36:01]SAM_PROTO_GetShiftState done [04:36:01]FM_GetShiftState done [04:36:01]opened in 1726965840 [04:36:01]opened+sec_in_day 1727052240 [04:36:01]quantity*price = 10500 [04:36:01]sum+1 = 10501 [04:36:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 0.00 Безнал.: 105.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 26 22.09.2024 04:36 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115308 ФПД: 187066805429243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T043602&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115308&fm=187066805429243&tin=02508201610067®Number=0000000000091831&sum=10500 0 [04:36:02]StoreToDocumentArchive [04:36:02]shift 471 fd 115308 [04:36:02]save to /storage/0471/doc_00115308 [04:36:02]save last doc name /storage/0471/doc_00115308 to /storage/kkm_last_doc_name [04:36:02]save OK [04:36:02]Clear old archive folders... [04:36:02]ProcessDocumentItem done err = 0, tmpTLVsize=282 [04:36:02]tlvbuf is 0099C2C0 [04:36:02]SAM_PROTO_ClearQueue [04:36:02]wFMCommunicate request_size=4 [04:36:02]MH_SAM_APDU [04:36:02]CAPDU: 80 09 00 00 [04:36:02]Write to MH i2c: E2 08 00 C8 08 80 09 00 00 00 00 00 00 42 [04:36:02]Write i2c OK [04:36:02]MH_I2C_Read... [04:36:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:36:02]Read from MH i2c: E2 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: E2 03 00 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: E2 03 00 C8 08 00 90 00 44 [04:36:02]RAPDU: 90 00 [04:36:02]wFMCommunicate OK [04:36:02]SAM_PROTO_ClearQueue done [04:36:02]KKMCreateOFDPacket [04:36:02]OFDProtocolAddRootSTLVToBuf [04:36:02]FM_MakeSignedData [04:36:02]FM_MakeSignedData [04:36:02]SAM_PROTO_SignData [04:36:02]wFMCommunicate request_size=4 [04:36:02]MH_SAM_APDU [04:36:02]CAPDU: 80 0D 01 02 [04:36:02]Write to MH i2c: E2 08 00 C9 08 80 0D 01 02 00 00 00 00 4A [04:36:02]Write i2c OK [04:36:02]MH_I2C_Read... [04:36:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:36:02]Read from MH i2c: E2 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: E2 03 00 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: E2 03 00 C9 08 00 90 00 45 [04:36:02]RAPDU: 90 00 [04:36:02]wFMCommunicate OK [04:36:02]wFMCommunicate request_size=255 [04:36:02]MH_SAM_APDU [04:36:02]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B2 9E EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 [04:36:02]Write to MH i2c: E2 02 01 CA 08 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B2 9E EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 00 00 A6 [04:36:02]Write i2c OK [04:36:02]MH_I2C_Read... [04:36:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:36:02]Read from MH i2c: E2 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: E2 03 00 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: E2 03 00 CA 08 00 90 00 46 [04:36:02]RAPDU: 90 00 [04:36:02]wFMCommunicate OK [04:36:02]wFMCommunicate request_size=41 [04:36:02]MH_SAM_APDU [04:36:02]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6C C2 01 00 35 04 06 00 AA 22 E2 7C A3 FB [04:36:02]Write to MH i2c: E2 2C 00 CB 08 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6C C2 01 00 35 04 06 00 AA 22 E2 7C A3 FB 00 00 0E [04:36:02]Write i2c OK [04:36:02]MH_I2C_Read... [04:36:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:36:02]Read from MH i2c: E2 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: E2 03 00 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: E2 03 00 CB 08 00 90 00 47 [04:36:02]RAPDU: 90 00 [04:36:02]wFMCommunicate OK [04:36:02]wFMCommunicate request_size=4 [04:36:02]MH_SAM_APDU [04:36:02]CAPDU: 80 0D 03 02 [04:36:02]Write to MH i2c: E2 08 00 CC 08 80 0D 03 02 00 00 00 00 4F [04:36:02]Write i2c OK [04:36:02]MH_I2C_Read... [04:36:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:36:02]Read from MH i2c: E2 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: E2 0B 00 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: E2 0B 00 CC 08 00 8E B0 B8 11 3D 48 18 0B 90 00 FF [04:36:02]RAPDU: 8E B0 B8 11 3D 48 18 0B 90 00 [04:36:02]wFMCommunicate OK [04:36:02]SAM_PROTO_SignData done [04:36:02]FM_MakeSignedData done [04:36:02]CreateOFDProtocolMessage [04:36:02]wFMCommunicate request_size=4 [04:36:02]MH_SAM_APDU [04:36:02]CAPDU: 80 11 00 00 [04:36:02]Write to MH i2c: E2 08 00 CD 08 80 11 00 00 00 00 00 00 4F [04:36:02]Write i2c OK [04:36:02]MH_I2C_Read... [04:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:36:02]Read from MH i2c: E2 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: E2 17 00 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: E2 17 00 CD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9D [04:36:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:36:02]wFMCommunicate OK [04:36:02]CreateOFDProtocolMessage done [04:36:02]OFDSenderStorePacket 115308 [04:36:02]StoreOFDPacket docnum=115308 [04:36:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2E 01 00 00 35 CA 26 01 43 C3 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B2 9E EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6C C2 01 00 35 04 06 00 AA 22 E2 7C A3 FB 8E B0 B8 11 3D 48 18 0B [04:36:02]CheckFolder [04:36:02]dirname=/storage/ofd_packets [04:36:02]CheckFolder done [04:36:02]ProducePacketName [04:36:02]name=ofd_packets/00115308 [04:36:02]NVStorageSaveData ofd_packets/00115308 [04:36:02]File name is /storage/ofd_packets/00115308 [04:36:02]Write 332 bytes [04:36:02]NVStorageSaveData done [04:36:02]OFDSenderStorePacket done [04:36:02]KKMCreateOFDPacket done [04:36:02]NVStorageSaveData kkm_last_timestamp [04:36:02]File name is /storage/kkm_last_timestamp [04:36:02]Write 4 bytes [04:36:02]NVStorageSaveData done [04:36:02]ExternCall_PrintAddStr [04:36:02]wPrintStart [04:36:02]Write to MH i2c: 01 00 00 CE 08 D6 [04:36:02]Write i2c OK [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: 01 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: 01 07 00 [04:36:02]MH_I2C_Read... [04:36:02]Read from MH i2c: 01 07 00 CE 08 00 00 00 00 00 FF 0F EB [04:36:02]RasterBufferAndPrint [04:36:02]line Счет N : (3)343767 [04:36:02]line ИНН: 02508201610067 [04:36:02]line Контрольно-Кассовый Чек [04:36:02]line ПРОДАЖА [04:36:02]line Товар: 2000034730018 [04:36:02]line Кофе Американо (GABB TRADE) [04:36:02]line 1.000 * 105.00 [04:36:02]line = 105.00 [04:36:02]line НДС 12% НСП 1% [04:36:02]line > о реализуемом товаре [04:36:02]line ИТОГО: 105.00 [04:36:02]line НСП 1% : 0.93 [04:36:02]line НДС 12% : 11.15 [04:36:02]line Наличными: 0.00 [04:36:02]line Безнал.: 105.00 [04:36:02]line Место: АЗС № 90 "Партнер Нефть" [04:36:02]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [04:36:02]line СНО: Общий режим [04:36:02]line Чек 26 22.09.2024 04:36 [04:36:02]line Смена: 471 ФФД: 1.0 [04:36:02]line ЗНМ: 0300000120 [04:36:02]line РНМ: 0000000000091831 [04:36:02]line Версия ККМ: 001 [04:36:02]line Платежная система: O! деньги [04:36:02]line ФМ: 0000000000871830 [04:36:02]line ФД: 115308 [04:36:02]line ФПД: 187066805429243 [04:36:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T043602&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115308&fm=187066805429243&tin=02508201610067®Number=0000000000091831&sum=10500 [04:36:03]line 0 [04:36:03]OFD Sender: Processing packet 115308 [packets to send 481, broken 480] [04:36:03]ProducePacketName [04:36:03]name=ofd_packets/00115308 [04:36:03]OFD Sender: To server: pG, [04:36:03]CommunicateWithHost lk.salyk.kg:30040 [04:36:03]ConnectInit lk.salyk.kg [04:36:03]written 0, free lines is 4095 [04:36:03]Connected sock=11 [04:36:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2E 01 00 00 35 CA 26 01 43 C3 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B2 9E EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6C C2 01 00 35 04 06 00 AA 22 E2 7C A3 FB 8E B0 B8 11 3D 48 18 0B [04:36:03]Write to MH i2c: 01 00 00 F8 08 00 [04:36:03]Write i2c OK [04:36:03]MH_I2C_Read... [04:36:03]Read from MH i2c: 01 [04:36:03]MH_I2C_Read... [04:36:03]Read from MH i2c: 01 07 00 [04:36:03]MH_I2C_Read... [04:36:03]Read from MH i2c: 01 07 00 F8 08 00 00 00 00 00 2E 0C 41 [04:36:03]RasterBufferAndPrint [04:36:03]line [04:36:03]line [04:36:03]line [04:36:03]line [04:36:03]line [04:36:03]written 0, free lines is 3122 [04:36:03]MH_Cut [04:36:03]Write to MH i2c: D1 01 00 FF 08 01 D9 [04:36:03]Write i2c OK [04:36:03]MH_I2C_Read... [04:36:03]Read from MH i2c: D1 [04:36:03]MH_I2C_Read... [04:36:03]Read from MH i2c: D1 01 00 [04:36:03]MH_I2C_Read... [04:36:03]Read from MH i2c: D1 01 00 FF 08 00 D8 [04:36:03]Write to MH i2c: 01 00 00 00 09 09 [04:36:03]Write i2c OK [04:36:03]MH_I2C_Read... [04:36:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 0F E7 47 00 EE 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6C C2 01 00 F4 03 04 00 FA 43 EF 66 B6 04 01 00 00 BD C7 0B AE C7 71 34 F7 [04:36:03]CommunicateWithHost err = 0 [04:36:03]CheckOFDResponse [04:36:03]1017 (14) - 77093643461234 [04:36:03]1041 (16) - 0000000000871830 [04:36:03]1040 (4) - 115308 [04:36:03]1012 (4) - 21.09.2024 22:08 [04:36:03]1206 (1) - 0 [04:36:03]OFD Sender: Remove packet 115308 [04:36:03]ProducePacketName [04:36:03]name=ofd_packets/00115308 [04:36:03]NVStorageDeleteData [04:36:04]OFD Sender: No OFD packet to send [04:36:05]*** Cut start [04:36:05]*** Partial cut [04:36:05]*** CUTSNS_PIN = 1 [04:36:05]*** CUTSNS_PIN = 0 [04:36:05]*** Brake cut motor [04:36:05]Read from MH i2c: 01 [04:36:05]MH_I2C_Read... [04:36:05]*** Stop cut motor [04:36:05]*** Cut end [04:36:05]Read from MH i2c: 01 07 00 [04:36:05]MH_I2C_Read... [04:36:05]Read from MH i2c: 01 07 00 00 09 00 00 00 00 00 FF 0F 1E [04:36:05]process_action close_receipt done [04:36:05]requested_data is exist [04:36:05]produce_requested_data [04:36:05]requested_item fm.sn is exist - process it [04:36:05]wFMCommunicate request_size=4 [04:36:05]MH_SAM_APDU [04:36:05]CAPDU: 80 11 00 00 [04:36:05]Write to MH i2c: E2 08 00 01 09 80 11 00 00 00 00 00 00 84 [04:36:05]Write i2c OK [04:36:05]MH_I2C_Read... [04:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:36:05]Read from MH i2c: E2 [04:36:05]MH_I2C_Read... [04:36:05]Read from MH i2c: E2 17 00 [04:36:05]MH_I2C_Read... [04:36:05]Read from MH i2c: E2 17 00 01 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [04:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:36:05]wFMCommunicate OK [04:36:05]requested_item fd.num is exist - process it [04:36:05]SAM_PROTO_GetFieldsCounters [04:36:05]wFMCommunicate request_size=4 [04:36:05]MH_SAM_APDU [04:36:05]CAPDU: 80 13 00 00 [04:36:05]Write to MH i2c: E2 08 00 02 09 80 13 00 00 00 00 00 00 87 [04:36:05]Write i2c OK [04:36:05]MH_I2C_Read... [04:36:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:36:05]Read from MH i2c: E2 [04:36:05]MH_I2C_Read... [04:36:05]Read from MH i2c: E2 62 00 [04:36:05]MH_I2C_Read... [04:36:05]Read from MH i2c: E2 62 00 02 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6C C2 01 00 0E 04 04 00 D7 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 F5 [04:36:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6C C2 01 00 0E 04 04 00 D7 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 [04:36:05]wFMCommunicate OK [04:36:05]SAM_PROTO_GetFieldsCounters done [04:36:05]requested_item shift.num is exist - process it [04:36:05]requested_item shift.opened is exist - process it [04:36:05]req_shift_opened [04:36:05]FM_GetShiftState [04:36:05]SAM_PROTO_GetShiftState [04:36:05]wFMCommunicate request_size=4 [04:36:05]MH_SAM_APDU [04:36:05]CAPDU: 80 13 01 00 [04:36:05]Write to MH i2c: E2 08 00 03 09 80 13 01 00 00 00 00 00 89 [04:36:05]Write i2c OK [04:36:05]MH_I2C_Read... [04:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:36:05]Read from MH i2c: E2 [04:36:05]MH_I2C_Read... [04:36:05]Read from MH i2c: E2 0E 00 [04:36:05]MH_I2C_Read... [04:36:05]Read from MH i2c: E2 0E 00 03 09 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A2 [04:36:05]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [04:36:05]wFMCommunicate OK [04:36:05]SAM_PROTO_GetShiftState done [04:36:05]FM_GetShiftState done [04:36:05]req_shift_opened done [04:36:05]requested_item shift.open_date is exist - process it [04:36:05]req_shift_open_date [04:36:05]req_shift_open_date done [04:36:05]produce_requested_data done [04:36:05]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115308,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [04:36:05]process_action_free close_receipt [04:36:05]json_value_free [04:36:05]json_value_free done [04:36:05]process_json_proto returns [04:36:05]Send response to host [04:36:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115308,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [04:36:05]free response buf [04:36:05]execute_script done [04:36:05]execute_script returns [04:36:05]free content buf [04:36:05]Sock 7.Close socket [04:36:05]Sock 7.Thread stoped [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]accept exits with 9 [04:41:55]New connection [04:41:55]New thread 3067448676 created [04:41:55]Thread 3067305316 joined [04:41:55]Waiting for new connection... [04:41:55] Sock 9.Parse request [04:41:55]Sock 9.Check first char [04:41:55]Sock 9.First char is OK [04:41:55]request: POST /json_proto HTTP/1.0 [04:41:55]Method: POST [04:41:55]URL: /json_proto [04:41:55]Method is POST - this is cgi request [04:41:55]url: /json_proto [04:41:55]query_string will be loaded in cgi processing [04:41:55]execute_cgi json_proto POST (null) [04:41:55]execute_cgi path=json_proto method=POST [04:41:55]POST find Content-Length [04:41:55]Host: 172.17.41.136:8080 [04:41:55]Content-Length: 614 [04:41:55]Content-Type: application/json [04:41:55] [04:41:55]POST finish read [04:41:55]Found Content-Length = 614 [04:41:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343768", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:41:55]execute_script... [04:41:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343768", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:41:55]POST & json_proto [04:41:55]process_json_proto [04:41:55]json parsed OK: [04:41:55]protocol is kg_v1.0 [04:41:55]action value=close_receipt [04:41:55]process_action close_receipt [04:41:55]cmd_close_receipt [04:41:55]MH_GetDate [04:41:55]Write to MH i2c: F0 00 00 04 09 FC [04:41:55]Write i2c OK [04:41:55]MH_I2C_Read... [04:41:55]Read from MH i2c: F0 [04:41:55]MH_I2C_Read... [04:41:55]Read from MH i2c: F0 09 00 [04:41:55]MH_I2C_Read... [04:41:55]Read from MH i2c: F0 09 00 04 09 00 14 A0 EF 66 1B D0 5A 64 B7 [04:41:55]GetLastDocTimeStamp 1726979762 [04:41:55]current date 1726980116 [04:41:55]FM_GetShiftState [04:41:55]SAM_PROTO_GetShiftState [04:41:55]wFMCommunicate request_size=4 [04:41:55]MH_SAM_APDU [04:41:55]CAPDU: 80 13 01 00 [04:41:55]Write to MH i2c: E2 08 00 05 09 80 13 01 00 00 00 00 00 8B [04:41:55]Write i2c OK [04:41:55]MH_I2C_Read... [04:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:41:55]Read from MH i2c: E2 [04:41:55]MH_I2C_Read... [04:41:55]Read from MH i2c: E2 0E 00 [04:41:55]MH_I2C_Read... [04:41:55]Read from MH i2c: E2 0E 00 05 09 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A4 [04:41:55]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [04:41:55]wFMCommunicate OK [04:41:55]SAM_PROTO_GetShiftState done [04:41:55]FM_GetShiftState done [04:41:55]opened in 1726965840 [04:41:55]opened+sec_in_day 1727052240 [04:41:55]quantity*price = 11000 [04:41:55]sum+1 = 11001 [04:41:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 27 22.09.2024 04:41 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115309 ФПД: 256029013061863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T044156&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115309&fm=256029013061863&tin=02508201610067®Number=0000000000091831&sum=11000 0 [04:41:56]StoreToDocumentArchive [04:41:56]shift 471 fd 115309 [04:41:56]save to /storage/0471/doc_00115309 [04:41:56]save last doc name /storage/0471/doc_00115309 to /storage/kkm_last_doc_name [04:41:56]save OK [04:41:56]Clear old archive folders... [04:41:56]ProcessDocumentItem done err = 0, tmpTLVsize=266 [04:41:56]tlvbuf is 0099DF80 [04:41:56]SAM_PROTO_ClearQueue [04:41:56]wFMCommunicate request_size=4 [04:41:56]MH_SAM_APDU [04:41:56]CAPDU: 80 09 00 00 [04:41:56]Write to MH i2c: E2 08 00 12 09 80 09 00 00 00 00 00 00 8D [04:41:56]Write i2c OK [04:41:56]MH_I2C_Read... [04:41:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:41:56]Read from MH i2c: E2 [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: E2 03 00 [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: E2 03 00 12 09 00 90 00 8F [04:41:56]RAPDU: 90 00 [04:41:56]wFMCommunicate OK [04:41:56]SAM_PROTO_ClearQueue done [04:41:56]KKMCreateOFDPacket [04:41:56]OFDProtocolAddRootSTLVToBuf [04:41:56]FM_MakeSignedData [04:41:56]FM_MakeSignedData [04:41:56]SAM_PROTO_SignData [04:41:56]wFMCommunicate request_size=4 [04:41:56]MH_SAM_APDU [04:41:56]CAPDU: 80 0D 01 02 [04:41:56]Write to MH i2c: E2 08 00 13 09 80 0D 01 02 00 00 00 00 95 [04:41:56]Write i2c OK [04:41:56]MH_I2C_Read... [04:41:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:41:56]Read from MH i2c: E2 [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: E2 03 00 [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: E2 03 00 13 09 00 90 00 90 [04:41:56]RAPDU: 90 00 [04:41:56]wFMCommunicate OK [04:41:56]wFMCommunicate request_size=255 [04:41:56]MH_SAM_APDU [04:41:56]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 14 A0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [04:41:56]Write to MH i2c: E2 02 01 14 09 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 14 A0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 05 [04:41:56]Write i2c OK [04:41:56]MH_I2C_Read... [04:41:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:41:56]Read from MH i2c: E2 [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: E2 03 00 [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: E2 03 00 14 09 00 90 00 91 [04:41:56]RAPDU: 90 00 [04:41:56]wFMCommunicate OK [04:41:56]wFMCommunicate request_size=25 [04:41:56]MH_SAM_APDU [04:41:56]CAPDU: 80 0D 02 02 14 33 30 10 04 04 00 6D C2 01 00 35 04 06 00 E8 DB 66 60 30 E7 [04:41:56]Write to MH i2c: E2 1C 00 15 09 80 0D 02 02 14 00 33 30 10 04 04 00 6D C2 01 00 35 04 06 00 E8 DB 66 60 30 E7 00 00 4A [04:41:56]Write i2c OK [04:41:56]MH_I2C_Read... [04:41:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:41:56]Read from MH i2c: E2 [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: E2 03 00 [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: E2 03 00 15 09 00 90 00 92 [04:41:56]RAPDU: 90 00 [04:41:56]wFMCommunicate OK [04:41:56]wFMCommunicate request_size=4 [04:41:56]MH_SAM_APDU [04:41:56]CAPDU: 80 0D 03 02 [04:41:56]Write to MH i2c: E2 08 00 16 09 80 0D 03 02 00 00 00 00 9A [04:41:56]Write i2c OK [04:41:56]MH_I2C_Read... [04:41:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:41:56]Read from MH i2c: E2 [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: E2 0B 00 [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: E2 0B 00 16 09 00 88 99 58 E2 18 88 19 6B 90 00 1A [04:41:56]RAPDU: 88 99 58 E2 18 88 19 6B 90 00 [04:41:56]wFMCommunicate OK [04:41:56]SAM_PROTO_SignData done [04:41:56]FM_MakeSignedData done [04:41:56]CreateOFDProtocolMessage [04:41:56]wFMCommunicate request_size=4 [04:41:56]MH_SAM_APDU [04:41:56]CAPDU: 80 11 00 00 [04:41:56]Write to MH i2c: E2 08 00 17 09 80 11 00 00 00 00 00 00 9A [04:41:56]Write i2c OK [04:41:56]MH_I2C_Read... [04:41:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:41:56]Read from MH i2c: E2 [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: E2 17 00 [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: E2 17 00 17 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E8 [04:41:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:41:56]wFMCommunicate OK [04:41:56]CreateOFDProtocolMessage done [04:41:56]OFDSenderStorePacket 115309 [04:41:56]StoreOFDPacket docnum=115309 [04:41:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 01 00 00 72 A9 16 01 C1 26 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 14 A0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6D C2 01 00 35 04 06 00 E8 DB 66 60 30 E7 88 99 58 E2 18 88 19 6B [04:41:56]CheckFolder [04:41:56]dirname=/storage/ofd_packets [04:41:56]CheckFolder done [04:41:56]ProducePacketName [04:41:56]name=ofd_packets/00115309 [04:41:56]NVStorageSaveData ofd_packets/00115309 [04:41:56]File name is /storage/ofd_packets/00115309 [04:41:56]Write 316 bytes [04:41:56]NVStorageSaveData done [04:41:56]OFDSenderStorePacket done [04:41:56]KKMCreateOFDPacket done [04:41:56]NVStorageSaveData kkm_last_timestamp [04:41:56]File name is /storage/kkm_last_timestamp [04:41:56]Write 4 bytes [04:41:56]NVStorageSaveData done [04:41:56]ExternCall_PrintAddStr [04:41:56]wPrintStart [04:41:56]Write to MH i2c: 01 00 00 18 09 21 [04:41:56]Write i2c OK [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: 01 [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: 01 07 00 [04:41:56]MH_I2C_Read... [04:41:56]Read from MH i2c: 01 07 00 18 09 00 00 00 00 00 FF 0F 36 [04:41:56]RasterBufferAndPrint [04:41:56]line Счет N : (3)343768 [04:41:56]line ИНН: 02508201610067 [04:41:56]line Контрольно-Кассовый Чек [04:41:56]line ПРОДАЖА [04:41:56]line Товар: 4870001570071 [04:41:56]line Напиток Pepsi 1л [04:41:56]line 1.000 * 110.00 [04:41:56]line = 110.00 [04:41:56]line НДС 12% НСП 1% [04:41:56]line > о реализуемом товаре [04:41:56]line ИТОГО: 110.00 [04:41:56]line НСП 1% : 0.97 [04:41:56]line НДС 12% : 11.68 [04:41:56]line Наличными: 110.00 [04:41:56]line Безнал.: 0.00 [04:41:56]line Место: АЗС № 90 "Партнер Нефть" [04:41:56]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [04:41:56]line СНО: Общий режим [04:41:56]line Чек 27 22.09.2024 04:41 [04:41:56]line Смена: 471 ФФД: 1.0 [04:41:56]line ЗНМ: 0300000120 [04:41:56]line РНМ: 0000000000091831 [04:41:56]line Версия ККМ: 001 [04:41:56]line ФМ: 0000000000871830 [04:41:56]line ФД: 115309 [04:41:56]line ФПД: 256029013061863 [04:41:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T044156&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115309&fm=256029013061863&tin=02508201610067®Number=0000000000091831&sum=11000 [04:41:56]line 0 [04:41:56]written 0, free lines is 4095 [04:41:56]OFD Sender: Processing packet 115309 [packets to send 481, broken 480] [04:41:56]ProducePacketName [04:41:56]name=ofd_packets/00115309 [04:41:56]OFD Sender: To server: pG, [04:41:56]CommunicateWithHost lk.salyk.kg:30040 [04:41:56]ConnectInit lk.salyk.kg [04:41:57]Connected sock=7 [04:41:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 01 00 00 72 A9 16 01 C1 26 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 14 A0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6D C2 01 00 35 04 06 00 E8 DB 66 60 30 E7 88 99 58 E2 18 88 19 6B [04:41:57]Write to MH i2c: 01 00 00 3F 09 48 [04:41:57]Write i2c OK [04:41:57]MH_I2C_Read... [04:41:57]Read from MH i2c: 01 [04:41:57]MH_I2C_Read... [04:41:57]Read from MH i2c: 01 07 00 [04:41:57]MH_I2C_Read... [04:41:57]Read from MH i2c: 01 07 00 3F 09 00 00 00 00 00 7D 0C D8 [04:41:57]RasterBufferAndPrint [04:41:57]line [04:41:57]line [04:41:57]line [04:41:57]line [04:41:57]line [04:41:57]written 0, free lines is 3202 [04:41:57]MH_Cut [04:41:57]Write to MH i2c: D1 01 00 46 09 01 21 [04:41:57]Write i2c OK [04:41:57]MH_I2C_Read... [04:41:57]Read from MH i2c: D1 [04:41:57]MH_I2C_Read... [04:41:57]Read from MH i2c: D1 01 00 [04:41:57]MH_I2C_Read... [04:41:57]Read from MH i2c: D1 01 00 46 09 00 20 [04:41:57]Write to MH i2c: 01 00 00 47 09 50 [04:41:57]Write i2c OK [04:41:57]MH_I2C_Read... [04:41:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1D E8 47 00 77 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6D C2 01 00 F4 03 04 00 5B 45 EF 66 B6 04 01 00 00 76 CE 79 79 C2 D6 81 0F [04:41:57]CommunicateWithHost err = 0 [04:41:57]CheckOFDResponse [04:41:57]1017 (14) - 77093643461234 [04:41:57]1041 (16) - 0000000000871830 [04:41:57]1040 (4) - 115309 [04:41:57]1012 (4) - 21.09.2024 22:14 [04:41:57]1206 (1) - 0 [04:41:57]OFD Sender: Remove packet 115309 [04:41:57]ProducePacketName [04:41:57]name=ofd_packets/00115309 [04:41:57]NVStorageDeleteData [04:41:57]OFD Sender: No OFD packet to send [04:41:58]*** Cut start [04:41:58]*** Partial cut [04:41:58]*** CUTSNS_PIN = 1 [04:41:58]*** CUTSNS_PIN = 0 [04:41:58]*** Brake cut motor [04:41:59]Read from MH i2c: 01 [04:41:59]MH_I2C_Read... [04:41:59]*** Stop cut motor [04:41:59]*** Cut end [04:41:59]Read from MH i2c: 01 07 00 [04:41:59]MH_I2C_Read... [04:41:59]Read from MH i2c: 01 07 00 47 09 00 00 00 00 00 FF 0F 65 [04:41:59]process_action close_receipt done [04:41:59]requested_data is exist [04:41:59]produce_requested_data [04:41:59]requested_item fm.sn is exist - process it [04:41:59]wFMCommunicate request_size=4 [04:41:59]MH_SAM_APDU [04:41:59]CAPDU: 80 11 00 00 [04:41:59]Write to MH i2c: E2 08 00 48 09 80 11 00 00 00 00 00 00 CB [04:41:59]Write i2c OK [04:41:59]MH_I2C_Read... [04:41:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:41:59]Read from MH i2c: E2 [04:41:59]MH_I2C_Read... [04:41:59]Read from MH i2c: E2 17 00 [04:41:59]MH_I2C_Read... [04:41:59]Read from MH i2c: E2 17 00 48 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 19 [04:41:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:41:59]wFMCommunicate OK [04:41:59]requested_item fd.num is exist - process it [04:41:59]SAM_PROTO_GetFieldsCounters [04:41:59]wFMCommunicate request_size=4 [04:41:59]MH_SAM_APDU [04:41:59]CAPDU: 80 13 00 00 [04:41:59]Write to MH i2c: E2 08 00 49 09 80 13 00 00 00 00 00 00 CE [04:41:59]Write i2c OK [04:41:59]MH_I2C_Read... [04:41:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:41:59]Read from MH i2c: E2 [04:41:59]MH_I2C_Read... [04:41:59]Read from MH i2c: E2 62 00 [04:41:59]MH_I2C_Read... [04:41:59]Read from MH i2c: E2 62 00 49 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6D C2 01 00 0E 04 04 00 D7 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 40 [04:41:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6D C2 01 00 0E 04 04 00 D7 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 [04:41:59]wFMCommunicate OK [04:41:59]SAM_PROTO_GetFieldsCounters done [04:41:59]requested_item shift.num is exist - process it [04:41:59]requested_item shift.opened is exist - process it [04:41:59]req_shift_opened [04:41:59]FM_GetShiftState [04:41:59]SAM_PROTO_GetShiftState [04:41:59]wFMCommunicate request_size=4 [04:41:59]MH_SAM_APDU [04:41:59]CAPDU: 80 13 01 00 [04:41:59]Write to MH i2c: E2 08 00 4A 09 80 13 01 00 00 00 00 00 D0 [04:41:59]Write i2c OK [04:41:59]MH_I2C_Read... [04:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:41:59]Read from MH i2c: E2 [04:41:59]MH_I2C_Read... [04:41:59]Read from MH i2c: E2 0E 00 [04:41:59]MH_I2C_Read... [04:41:59]Read from MH i2c: E2 0E 00 4A 09 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 E9 [04:41:59]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [04:41:59]wFMCommunicate OK [04:41:59]SAM_PROTO_GetShiftState done [04:41:59]FM_GetShiftState done [04:41:59]req_shift_opened done [04:41:59]requested_item shift.open_date is exist - process it [04:41:59]req_shift_open_date [04:41:59]req_shift_open_date done [04:41:59]produce_requested_data done [04:41:59]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115309,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [04:41:59]process_action_free close_receipt [04:41:59]json_value_free [04:41:59]json_value_free done [04:41:59]process_json_proto returns [04:41:59]Send response to host [04:41:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115309,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [04:41:59]free response buf [04:41:59]execute_script done [04:41:59]execute_script returns [04:41:59]free content buf [04:41:59]Sock 9.Close socket [04:41:59]Sock 9.Thread stoped [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:34]accept exits with 10 [05:08:34]New connection [05:08:34]New thread 3067305316 created [05:08:34]Thread 3067448676 joined [05:08:34]Waiting for new connection... [05:08:34] Sock 10.Parse request [05:08:34]Sock 10.Check first char [05:08:34]Sock 10.First char is OK [05:08:34]request: POST /json_proto HTTP/1.0 [05:08:34]Method: POST [05:08:34]URL: /json_proto [05:08:34]Method is POST - this is cgi request [05:08:34]url: /json_proto [05:08:34]query_string will be loaded in cgi processing [05:08:34]execute_cgi json_proto POST (null) [05:08:34]execute_cgi path=json_proto method=POST [05:08:34]POST find Content-Length [05:08:34]Host: 172.17.41.136:8080 [05:08:34]Content-Length: 623 [05:08:34]Content-Type: application/json [05:08:34] [05:08:34]POST finish read [05:08:34]Found Content-Length = 623 [05:08:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343769", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:08:34]execute_script... [05:08:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343769", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:08:34]POST & json_proto [05:08:34]process_json_proto [05:08:34]json parsed OK: [05:08:34]protocol is kg_v1.0 [05:08:34]action value=close_receipt [05:08:34]process_action close_receipt [05:08:34]cmd_close_receipt [05:08:34]MH_GetDate [05:08:34]Write to MH i2c: F0 00 00 4B 09 43 [05:08:34]Write i2c OK [05:08:34]MH_I2C_Read... [05:08:34]Read from MH i2c: F0 [05:08:34]MH_I2C_Read... [05:08:34]Read from MH i2c: F0 09 00 [05:08:34]MH_I2C_Read... [05:08:34]Read from MH i2c: F0 09 00 4B 09 00 53 A6 EF 66 1B D0 5A 64 43 [05:08:34]GetLastDocTimeStamp 1726980116 [05:08:34]current date 1726981715 [05:08:34]FM_GetShiftState [05:08:34]SAM_PROTO_GetShiftState [05:08:34]wFMCommunicate request_size=4 [05:08:34]MH_SAM_APDU [05:08:34]CAPDU: 80 13 01 00 [05:08:34]Write to MH i2c: E2 08 00 4C 09 80 13 01 00 00 00 00 00 D2 [05:08:34]Write i2c OK [05:08:34]MH_I2C_Read... [05:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:08:34]Read from MH i2c: E2 [05:08:34]MH_I2C_Read... [05:08:34]Read from MH i2c: E2 0E 00 [05:08:34]MH_I2C_Read... [05:08:34]Read from MH i2c: E2 0E 00 4C 09 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 EB [05:08:34]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [05:08:34]wFMCommunicate OK [05:08:34]SAM_PROTO_GetShiftState done [05:08:34]FM_GetShiftState done [05:08:34]opened in 1726965840 [05:08:34]opened+sec_in_day 1727052240 [05:08:34]quantity*price = 14400 [05:08:34]sum+1 = 14401 [05:08:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 28 22.09.2024 05:08 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115310 ФПД: 115779175546103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T050835&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115310&fm=115779175546103&tin=02508201610067®Number=0000000000091831&sum=14400 0 [05:08:35]StoreToDocumentArchive [05:08:35]shift 471 fd 115310 [05:08:35]save to /storage/0471/doc_00115310 [05:08:35]save last doc name /storage/0471/doc_00115310 to /storage/kkm_last_doc_name [05:08:35]save OK [05:08:35]Clear old archive folders... [05:08:35]ProcessDocumentItem done err = 0, tmpTLVsize=275 [05:08:35]tlvbuf is 0098B1B0 [05:08:35]SAM_PROTO_ClearQueue [05:08:35]wFMCommunicate request_size=4 [05:08:35]MH_SAM_APDU [05:08:35]CAPDU: 80 09 00 00 [05:08:35]Write to MH i2c: E2 08 00 59 09 80 09 00 00 00 00 00 00 D4 [05:08:35]Write i2c OK [05:08:35]MH_I2C_Read... [05:08:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:08:35]Read from MH i2c: E2 [05:08:35]MH_I2C_Read... [05:08:35]Read from MH i2c: E2 03 00 [05:08:35]MH_I2C_Read... [05:08:35]Read from MH i2c: E2 03 00 59 09 00 90 00 D6 [05:08:35]RAPDU: 90 00 [05:08:35]wFMCommunicate OK [05:08:35]SAM_PROTO_ClearQueue done [05:08:35]KKMCreateOFDPacket [05:08:35]OFDProtocolAddRootSTLVToBuf [05:08:35]FM_MakeSignedData [05:08:35]FM_MakeSignedData [05:08:35]SAM_PROTO_SignData [05:08:35]wFMCommunicate request_size=4 [05:08:35]MH_SAM_APDU [05:08:35]CAPDU: 80 0D 01 02 [05:08:35]Write to MH i2c: E2 08 00 5A 09 80 0D 01 02 00 00 00 00 DC [05:08:35]Write i2c OK [05:08:35]MH_I2C_Read... [05:08:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:08:35]Read from MH i2c: E2 [05:08:35]MH_I2C_Read... [05:08:35]Read from MH i2c: E2 03 00 [05:08:35]MH_I2C_Read... [05:08:35]Read from MH i2c: E2 03 00 5A 09 00 90 00 D7 [05:08:35]RAPDU: 90 00 [05:08:35]wFMCommunicate OK [05:08:35]wFMCommunicate request_size=255 [05:08:35]MH_SAM_APDU [05:08:35]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 1C 00 00 00 F4 03 04 00 53 A6 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 [05:08:35]Write to MH i2c: E2 02 01 5B 09 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 1C 00 00 00 F4 03 04 00 53 A6 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 00 00 20 [05:08:35]Write i2c OK [05:08:35]MH_I2C_Read... [05:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:08:35]Read from MH i2c: E2 [05:08:35]MH_I2C_Read... [05:08:35]Read from MH i2c: E2 03 00 [05:08:35]MH_I2C_Read... [05:08:35]Read from MH i2c: E2 03 00 5B 09 00 90 00 D8 [05:08:35]RAPDU: 90 00 [05:08:35]wFMCommunicate OK [05:08:35]wFMCommunicate request_size=34 [05:08:35]MH_SAM_APDU [05:08:35]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6E C2 01 00 35 04 06 00 69 4C F0 A1 7C F7 [05:08:35]Write to MH i2c: E2 25 00 5C 09 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6E C2 01 00 35 04 06 00 69 4C F0 A1 7C F7 00 00 85 [05:08:35]Write i2c OK [05:08:35]MH_I2C_Read... [05:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:08:35]Read from MH i2c: E2 [05:08:35]MH_I2C_Read... [05:08:35]Read from MH i2c: E2 03 00 [05:08:35]MH_I2C_Read... [05:08:35]Read from MH i2c: E2 03 00 5C 09 00 90 00 D9 [05:08:35]RAPDU: 90 00 [05:08:35]wFMCommunicate OK [05:08:35]wFMCommunicate request_size=4 [05:08:35]MH_SAM_APDU [05:08:35]CAPDU: 80 0D 03 02 [05:08:35]Write to MH i2c: E2 08 00 5D 09 80 0D 03 02 00 00 00 00 E1 [05:08:35]Write i2c OK [05:08:35]MH_I2C_Read... [05:08:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:08:35]Read from MH i2c: E2 [05:08:35]MH_I2C_Read... [05:08:35]Read from MH i2c: E2 0B 00 [05:08:35]MH_I2C_Read... [05:08:35]Read from MH i2c: E2 0B 00 5D 09 00 B0 DB 39 83 77 A5 6F 61 90 00 15 [05:08:35]RAPDU: B0 DB 39 83 77 A5 6F 61 90 00 [05:08:35]wFMCommunicate OK [05:08:35]SAM_PROTO_SignData done [05:08:35]FM_MakeSignedData done [05:08:35]CreateOFDProtocolMessage [05:08:35]wFMCommunicate request_size=4 [05:08:35]MH_SAM_APDU [05:08:35]CAPDU: 80 11 00 00 [05:08:35]Write to MH i2c: E2 08 00 5E 09 80 11 00 00 00 00 00 00 E1 [05:08:35]Write i2c OK [05:08:35]MH_I2C_Read... [05:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:08:35]Read from MH i2c: E2 [05:08:35]MH_I2C_Read... [05:08:35]Read from MH i2c: E2 17 00 [05:08:35]MH_I2C_Read... [05:08:35]Read from MH i2c: E2 17 00 5E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2F [05:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:08:35]wFMCommunicate OK [05:08:35]CreateOFDProtocolMessage done [05:08:35]OFDSenderStorePacket 115310 [05:08:35]StoreOFDPacket docnum=115310 [05:08:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 1E E8 1F 01 42 7F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 1C 00 00 00 F4 03 04 00 53 A6 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6E C2 01 00 35 04 06 00 69 4C F0 A1 7C F7 B0 DB 39 83 77 A5 6F 61 [05:08:35]CheckFolder [05:08:35]dirname=/storage/ofd_packets [05:08:35]CheckFolder done [05:08:35]ProducePacketName [05:08:35]name=ofd_packets/00115310 [05:08:35]NVStorageSaveData ofd_packets/00115310 [05:08:35]File name is /storage/ofd_packets/00115310 [05:08:35]Write 325 bytes [05:08:35]NVStorageSaveData done [05:08:35]OFDSenderStorePacket done [05:08:35]KKMCreateOFDPacket done [05:08:35]NVStorageSaveData kkm_last_timestamp [05:08:35]File name is /storage/kkm_last_timestamp [05:08:35]Write 4 bytes [05:08:35]NVStorageSaveData done [05:08:35]ExternCall_PrintAddStr [05:08:35]wPrintStart [05:08:35]Write to MH i2c: 01 00 00 5F 09 68 [05:08:35]Write i2c OK [05:08:35]MH_I2C_Read... [05:08:35]Read from MH i2c: 01 [05:08:35]MH_I2C_Read... [05:08:35]Read from MH i2c: 01 07 00 [05:08:35]MH_I2C_Read... [05:08:35]Read from MH i2c: 01 07 00 5F 09 00 00 00 00 00 FF 0F 7D [05:08:35]RasterBufferAndPrint [05:08:35]line Счет N : (3)343769 [05:08:35]line ИНН: 02508201610067 [05:08:35]line Контрольно-Кассовый Чек [05:08:35]line ПРОДАЖА [05:08:35]line Товар: 48743587 [05:08:35]line Сигареты Winston XStyle Silver [05:08:35]line 1.000 * 144.00 [05:08:35]line = 144.00 [05:08:35]line НДС 12% НСП 1% [05:08:35]line > о реализуемом товаре [05:08:35]line ИТОГО: 144.00 [05:08:35]line НСП 1% : 1.27 [05:08:35]line НДС 12% : 15.29 [05:08:35]line Наличными: 144.00 [05:08:35]line Безнал.: 0.00 [05:08:35]line Место: АЗС № 90 "Партнер Нефть" [05:08:35]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [05:08:35]line СНО: Общий режим [05:08:35]line Чек 28 22.09.2024 05:08 [05:08:35]line Смена: 471 ФФД: 1.0 [05:08:35]line ЗНМ: 0300000120 [05:08:35]line РНМ: 0000000000091831 [05:08:35]line Версия ККМ: 001 [05:08:35]line ФМ: 0000000000871830 [05:08:35]line ФД: 115310 [05:08:35]line ФПД: 115779175546103 [05:08:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T050835&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115310&fm=115779175546103&tin=02508201610067®Number=0000000000091831&sum=14400 [05:08:35]line 0 [05:08:35]written 0, free lines is 4095 [05:08:35]OFD Sender: Processing packet 115310 [packets to send 481, broken 480] [05:08:35]ProducePacketName [05:08:35]name=ofd_packets/00115310 [05:08:35]OFD Sender: To server: pG, [05:08:36]CommunicateWithHost lk.salyk.kg:30040 [05:08:36]ConnectInit lk.salyk.kg [05:08:36]Write to MH i2c: 01 00 00 87 09 90 [05:08:36]Write i2c OK [05:08:36]MH_I2C_Read... [05:08:36]Read from MH i2c: 01 [05:08:36]MH_I2C_Read... [05:08:36]Read from MH i2c: 01 07 00 [05:08:36]MH_I2C_Read... [05:08:36]Read from MH i2c: 01 07 00 87 09 00 00 00 00 00 57 0C FA [05:08:36]RasterBufferAndPrint [05:08:36]line [05:08:36]line [05:08:36]line [05:08:36]line [05:08:36]line [05:08:36]written 0, free lines is 3162 [05:08:36]MH_Cut [05:08:36]Write to MH i2c: D1 01 00 8E 09 01 69 [05:08:36]Write i2c OK [05:08:36]MH_I2C_Read... [05:08:36]Read from MH i2c: D1 [05:08:36]MH_I2C_Read... [05:08:36]Read from MH i2c: D1 01 00 [05:08:36]MH_I2C_Read... [05:08:36]Read from MH i2c: D1 01 00 8E 09 00 68 [05:08:36]Write to MH i2c: 01 00 00 8F 09 98 [05:08:36]Write i2c OK [05:08:36]MH_I2C_Read... [05:08:36]Connected sock=9 [05:08:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 1E E8 1F 01 42 7F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 1C 00 00 00 F4 03 04 00 53 A6 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6E C2 01 00 35 04 06 00 69 4C F0 A1 7C F7 B0 DB 39 83 77 A5 6F 61 [05:08:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 79 F1 47 00 45 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6E C2 01 00 F4 03 04 00 9B 4B EF 66 B6 04 01 00 00 F6 B3 72 6D F7 EB 47 2F [05:08:36]CommunicateWithHost err = 0 [05:08:36]CheckOFDResponse [05:08:36]1017 (14) - 77093643461234 [05:08:36]1041 (16) - 0000000000871830 [05:08:36]1040 (4) - 115310 [05:08:36]1012 (4) - 21.09.2024 22:41 [05:08:36]1206 (1) - 0 [05:08:36]OFD Sender: Remove packet 115310 [05:08:36]ProducePacketName [05:08:36]name=ofd_packets/00115310 [05:08:36]NVStorageDeleteData [05:08:37]OFD Sender: No OFD packet to send [05:08:37]*** Cut start [05:08:37]*** Partial cut [05:08:37]*** CUTSNS_PIN = 1 [05:08:37]*** CUTSNS_PIN = 0 [05:08:37]*** Brake cut motor [05:08:38]Read from MH i2c: 01 [05:08:38]MH_I2C_Read... [05:08:38]*** Stop cut motor [05:08:38]*** Cut end [05:08:38]Read from MH i2c: 01 07 00 [05:08:38]MH_I2C_Read... [05:08:38]Read from MH i2c: 01 07 00 8F 09 00 00 00 00 00 FF 0F AD [05:08:38]process_action close_receipt done [05:08:38]requested_data is exist [05:08:38]produce_requested_data [05:08:38]requested_item fm.sn is exist - process it [05:08:38]wFMCommunicate request_size=4 [05:08:38]MH_SAM_APDU [05:08:38]CAPDU: 80 11 00 00 [05:08:38]Write to MH i2c: E2 08 00 90 09 80 11 00 00 00 00 00 00 13 [05:08:38]Write i2c OK [05:08:38]MH_I2C_Read... [05:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:08:38]Read from MH i2c: E2 [05:08:38]MH_I2C_Read... [05:08:38]Read from MH i2c: E2 17 00 [05:08:38]MH_I2C_Read... [05:08:38]Read from MH i2c: E2 17 00 90 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 61 [05:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:08:38]wFMCommunicate OK [05:08:38]requested_item fd.num is exist - process it [05:08:38]SAM_PROTO_GetFieldsCounters [05:08:38]wFMCommunicate request_size=4 [05:08:38]MH_SAM_APDU [05:08:38]CAPDU: 80 13 00 00 [05:08:38]Write to MH i2c: E2 08 00 91 09 80 13 00 00 00 00 00 00 16 [05:08:38]Write i2c OK [05:08:38]MH_I2C_Read... [05:08:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:08:38]Read from MH i2c: E2 [05:08:38]MH_I2C_Read... [05:08:38]Read from MH i2c: E2 62 00 [05:08:38]MH_I2C_Read... [05:08:38]Read from MH i2c: E2 62 00 91 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6E C2 01 00 0E 04 04 00 D7 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 8C [05:08:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6E C2 01 00 0E 04 04 00 D7 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 [05:08:38]wFMCommunicate OK [05:08:38]SAM_PROTO_GetFieldsCounters done [05:08:38]requested_item shift.num is exist - process it [05:08:38]requested_item shift.opened is exist - process it [05:08:38]req_shift_opened [05:08:38]FM_GetShiftState [05:08:38]SAM_PROTO_GetShiftState [05:08:38]wFMCommunicate request_size=4 [05:08:38]MH_SAM_APDU [05:08:38]CAPDU: 80 13 01 00 [05:08:38]Write to MH i2c: E2 08 00 92 09 80 13 01 00 00 00 00 00 18 [05:08:38]Write i2c OK [05:08:38]MH_I2C_Read... [05:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:08:38]Read from MH i2c: E2 [05:08:38]MH_I2C_Read... [05:08:38]Read from MH i2c: E2 0E 00 [05:08:38]MH_I2C_Read... [05:08:38]Read from MH i2c: E2 0E 00 92 09 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 31 [05:08:38]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [05:08:38]wFMCommunicate OK [05:08:38]SAM_PROTO_GetShiftState done [05:08:38]FM_GetShiftState done [05:08:38]req_shift_opened done [05:08:38]requested_item shift.open_date is exist - process it [05:08:38]req_shift_open_date [05:08:38]req_shift_open_date done [05:08:38]produce_requested_data done [05:08:38]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115310,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [05:08:38]process_action_free close_receipt [05:08:38]json_value_free [05:08:38]json_value_free done [05:08:38]process_json_proto returns [05:08:38]Send response to host [05:08:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115310,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [05:08:38]free response buf [05:08:38]execute_script done [05:08:38]execute_script returns [05:08:38]free content buf [05:08:38]Sock 10.Close socket [05:08:38]Sock 10.Thread stoped [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:30:00]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 5E [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725B9 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 43310157+1683673115=1726983272 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x334f0623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 5F [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 38 00 FF FF 8E [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 69 AC EF 66 1B D0 5A 64 12 [05:34:33]Current date/time: 22.09.2024 05:34 [05:34:33]FM_Init [05:34:33]wFMConnect [05:34:33]MH_SAM_On [05:34:33]Write to MH i2c: E0 00 00 08 00 E7 [05:34:33]Write i2c OK [05:34:33]MH_I2C_Read... [05:34:33]*** iso7816_init finished! [05:34:33]*** atr: [05:34:33]*** 0F 3B D5 18 FF 81 91 FE [05:34:33]*** 1F C3 80 73 C8 21 10 0A [05:34:33]*** 00 00 00 00 00 00 00 00 [05:34:33]*** 00 00 00 00 00 00 00 00 [05:34:33]*** 00 00 00 00 00 00 00 00 [05:34:33]*** 00 00 00 00 00 00 00 00 [05:34:33]*** 00 00 00 00 00 00 00 00 [05:34:33]*** 00 00 00 00 00 00 00 00 [05:34:33]Read from MH i2c: E0 [05:34:33]MH_I2C_Read... [05:34:33]Read from MH i2c: E0 10 00 [05:34:33]MH_I2C_Read... [05:34:33]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [05:34:33]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [05:34:33]wFMCommunicate request_size=10 [05:34:33]MH_SAM_APDU [05:34:33]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [05:34:33]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [05:34:33]Write i2c OK [05:34:33]MH_I2C_Read... [05:34:33]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [05:34:33]Read from MH i2c: E2 [05:34:33]MH_I2C_Read... [05:34:33]Read from MH i2c: E2 03 00 [05:34:33]MH_I2C_Read... [05:34:33]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [05:34:33]RAPDU: 90 00 [05:34:33]wFMCommunicate OK [05:34:33]wFMCommunicate request_size=4 [05:34:33]MH_SAM_APDU [05:34:33]CAPDU: 80 11 00 00 [05:34:33]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [05:34:33]Write i2c OK [05:34:33]MH_I2C_Read... [05:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:34:33]Read from MH i2c: E2 [05:34:33]MH_I2C_Read... [05:34:33]Read from MH i2c: E2 17 00 [05:34:33]MH_I2C_Read... [05:34:33]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [05:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:34:33]wFMCommunicate OK [05:34:33]Detected FM SN is 0000000000871830 [05:34:33]Stored FM SN is 0000000000871830 [05:34:33]wFMCommunicate request_size=9 [05:34:33]MH_SAM_APDU [05:34:33]CAPDU: 80 16 00 00 04 2B 08 01 00 [05:34:33]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 2B 08 01 00 00 00 C6 [05:34:33]Write i2c OK [05:34:33]MH_I2C_Read... [05:34:33]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [05:34:33]Read from MH i2c: E2 [05:34:33]MH_I2C_Read... [05:34:33]Read from MH i2c: E2 03 00 [05:34:33]MH_I2C_Read... [05:34:33]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [05:34:33]RAPDU: 90 00 [05:34:33]wFMCommunicate OK [05:34:33]FM PIN OK [05:34:33]wFMCommunicate request_size=8 [05:34:33]MH_SAM_APDU [05:34:33]CAPDU: 80 14 04 00 03 02 00 01 [05:34:33]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [05:34:33]Write i2c OK [05:34:33]MH_I2C_Read... [05:34:33]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [05:34:33]Read from MH i2c: E2 [05:34:33]MH_I2C_Read... [05:34:33]Read from MH i2c: E2 03 00 [05:34:33]MH_I2C_Read... [05:34:33]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [05:34:33]RAPDU: 90 00 [05:34:33]wFMCommunicate OK [05:34:33]wFMCommunicate request_size=13 [05:34:33]MH_SAM_APDU [05:34:33]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [05:34:33]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [05:34:33]Write i2c OK [05:34:33]MH_I2C_Read... [05:34:33]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [05:34:33]Read from MH i2c: E2 [05:34:33]MH_I2C_Read... [05:34:33]Read from MH i2c: E2 03 00 [05:34:33]MH_I2C_Read... [05:34:33]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [05:34:33]RAPDU: 90 00 [05:34:33]wFMCommunicate OK [05:34:33]wFMCommunicate request_size=4 [05:34:33]MH_SAM_APDU [05:34:33]CAPDU: 80 11 00 00 [05:34:33]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [05:34:33]Write i2c OK [05:34:33]MH_I2C_Read... [05:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:34:33]Read from MH i2c: E2 [05:34:33]MH_I2C_Read... [05:34:33]Read from MH i2c: E2 17 00 [05:34:33]MH_I2C_Read... [05:34:33]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D6 [05:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:34:33]wFMCommunicate OK [05:34:33]DocumentArchiveInit [05:34:33]Start Httpd... [05:34:33]Httpd thread 3067268452 created [05:34:33]Write to MH i2c: 01 00 00 0F 00 0F [05:34:33]Write i2c OK [05:34:33]MH_I2C_Read... [05:34:33]Read from MH i2c: 01 [05:34:33]MH_I2C_Read... [05:34:33]Read from MH i2c: 01 07 00 [05:34:33]MH_I2C_Read... [05:34:33]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [05:34:33]MH Int Process started [05:34:33]Allocated Socket 7 [05:34:33]Bind OK [05:34:33]Listen OK [05:34:33]httpd running on port 8080 [05:34:33]Waiting for new connection... [05:34:34]OFD Sender: No OFD packet to send [05:34:34]accept exits with 8 [05:34:34]New connection [05:34:34]New thread 3066981732 created [05:34:34]Waiting for new connection... [05:34:34] Sock 8.Parse request [05:34:34]Sock 8.Check first char [05:34:34]Sock 8.First char is OK [05:34:34]request: POST /json_proto HTTP/1.0 [05:34:34]Method: POST [05:34:34]URL: /json_proto [05:34:34]Method is POST - this is cgi request [05:34:34]url: /json_proto [05:34:34]query_string will be loaded in cgi processing [05:34:34]execute_cgi json_proto POST (null) [05:34:34]execute_cgi path=json_proto method=POST [05:34:34]POST find Content-Length [05:34:34]Host: 172.17.41.136:8080 [05:34:34]Content-Length: 215 [05:34:34]Content-Type: application/json [05:34:34] [05:34:34]POST finish read [05:34:34]Found Content-Length = 215 [05:34:34]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" ] } } [05:34:34]execute_script... [05:34:34]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" ] } } [05:34:34]POST & json_proto [05:34:34]process_json_proto [05:34:34]json parsed OK: [05:34:34]protocol is kg_v1.0 [05:34:34]action value=get_value [05:34:34]process_action get_value [05:34:34]cmd_get_value [05:34:34]process_action get_value done [05:34:34]requested_data is exist [05:34:34]produce_requested_data [05:34:34]requested_item kkm.sn is exist - process it [05:34:34]requested_item kkm.ver is exist - process it [05:34:34]requested_item fm.sn is exist - process it [05:34:34]wFMCommunicate request_size=4 [05:34:34]MH_SAM_APDU [05:34:34]CAPDU: 80 11 00 00 [05:34:34]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [05:34:34]Write i2c OK [05:34:34]MH_I2C_Read... [05:34:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:34:34]Read from MH i2c: E2 [05:34:34]MH_I2C_Read... [05:34:34]Read from MH i2c: E2 17 00 [05:34:34]MH_I2C_Read... [05:34:34]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D8 [05:34:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:34:34]wFMCommunicate OK [05:34:34]requested_item fd.num is exist - process it [05:34:34]SAM_PROTO_GetFieldsCounters [05:34:34]wFMCommunicate request_size=4 [05:34:34]MH_SAM_APDU [05:34:34]CAPDU: 80 13 00 00 [05:34:34]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [05:34:34]Write i2c OK [05:34:34]MH_I2C_Read... [05:34:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:34:35]Read from MH i2c: E2 [05:34:35]MH_I2C_Read... [05:34:35]Read from MH i2c: E2 62 00 [05:34:35]MH_I2C_Read... [05:34:35]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6E C2 01 00 0E 04 04 00 D7 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 03 [05:34:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6E C2 01 00 0E 04 04 00 D7 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 [05:34:35]wFMCommunicate OK [05:34:35]SAM_PROTO_GetFieldsCounters done [05:34:35]requested_item shift.num is exist - process it [05:34:35]requested_item shift.opened is exist - process it [05:34:35]req_shift_opened [05:34:35]FM_GetShiftState [05:34:35]SAM_PROTO_GetShiftState [05:34:35]wFMCommunicate request_size=4 [05:34:35]MH_SAM_APDU [05:34:35]CAPDU: 80 13 01 00 [05:34:35]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [05:34:35]Write i2c OK [05:34:35]MH_I2C_Read... [05:34:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:34:35]Read from MH i2c: E2 [05:34:35]MH_I2C_Read... [05:34:35]Read from MH i2c: E2 0E 00 [05:34:35]MH_I2C_Read... [05:34:35]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A8 [05:34:35]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [05:34:35]wFMCommunicate OK [05:34:35]SAM_PROTO_GetShiftState done [05:34:35]FM_GetShiftState done [05:34:35]req_shift_opened done [05:34:35]requested_item shift.open_date is exist - process it [05:34:35]req_shift_open_date [05:34:35]req_shift_open_date done [05:34:35]produce_requested_data done [05:34:35]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115310,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [05:34:35]process_action_free get_value [05:34:35]json_value_free [05:34:35]json_value_free done [05:34:35]process_json_proto returns [05:34:35]Send response to host [05:34:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115310,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [05:34:35]free response buf [05:34:35]execute_script done [05:34:35]execute_script returns [05:34:35]free content buf [05:34:35]Sock 8.Close socket [05:34:35]Sock 8.Thread stoped [05:34:35]accept exits with 5 [05:34:35]New connection [05:34:35]New thread 3066838372 created [05:34:35]Thread 3066981732 joined [05:34:35]Waiting for new connection... [05:34:35] Sock 5.Parse request [05:34:35]Sock 5.Check first char [05:34:35]Sock 5.First char is OK [05:34:35]request: POST /json_proto HTTP/1.0 [05:34:35]Method: POST [05:34:35]URL: /json_proto [05:34:35]Method is POST - this is cgi request [05:34:35]url: /json_proto [05:34:35]query_string will be loaded in cgi processing [05:34:35]execute_cgi json_proto POST (null) [05:34:35]execute_cgi path=json_proto method=POST [05:34:35]POST find Content-Length [05:34:35]Host: 172.17.41.136:8080 [05:34:35]Content-Length: 331 [05:34:35]Content-Type: application/json [05:34:35] [05:34:35]POST finish read [05:34:35]Found Content-Length = 331 [05:34:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [05:34:35]execute_script... [05:34:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [05:34:35]POST & json_proto [05:34:35]process_json_proto [05:34:35]json parsed OK: [05:34:35]protocol is kg_v1.0 [05:34:35]action value=get_value [05:34:35]process_action get_value [05:34:35]cmd_get_value [05:34:35]process_action get_value done [05:34:35]requested_data is exist [05:34:35]produce_requested_data [05:34:35]requested_item fm.sale.total is exist - process it [05:34:35]SAM_PROTO_GetFMData [05:34:35]wFMCommunicate request_size=4 [05:34:35]MH_SAM_APDU [05:34:35]CAPDU: 80 13 03 00 [05:34:35]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [05:34:35]Write i2c OK [05:34:35]MH_I2C_Read... [05:34:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [05:34:35]Read from MH i2c: E2 [05:34:35]MH_I2C_Read... [05:34:35]Read from MH i2c: E2 FD 00 [05:34:35]MH_I2C_Read... [05:34:35]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 BF BE 01 00 69 04 A3 00 6F 04 04 00 42 BD 01 00 B1 04 05 00 D4 3E 7B 80 01 70 04 05 00 35 5A F7 46 01 72 04 04 00 9F E4 83 39 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 21 55 D6 28 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 93 FB 66 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 80 [05:34:35]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BF BE 01 00 69 04 A3 00 6F 04 04 00 42 BD 01 00 B1 04 05 00 D4 3E 7B 80 01 70 04 05 00 35 5A F7 46 01 72 04 04 00 9F E4 83 39 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 21 55 D6 28 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 93 FB 66 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 [05:34:35]wFMCommunicate OK [05:34:35]wFMCommunicate request_size=4 [05:34:35]MH_SAM_APDU [05:34:35]CAPDU: 80 17 00 00 [05:34:35]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [05:34:35]Write i2c OK [05:34:35]MH_I2C_Read... [05:34:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:34:36]Read from MH i2c: E2 [05:34:36]MH_I2C_Read... [05:34:36]Read from MH i2c: E2 FD 00 [05:34:36]MH_I2C_Read... [05:34:36]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 81 [05:34:36]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [05:34:36]wFMCommunicate OK [05:34:36]wFMCommunicate request_size=4 [05:34:36]MH_SAM_APDU [05:34:36]CAPDU: 80 17 00 00 [05:34:36]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [05:34:36]Write i2c OK [05:34:36]MH_I2C_Read... [05:34:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:34:36]Read from MH i2c: E2 [05:34:36]MH_I2C_Read... [05:34:36]Read from MH i2c: E2 FD 00 [05:34:36]MH_I2C_Read... [05:34:36]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [05:34:36]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [05:34:36]wFMCommunicate OK [05:34:36]wFMCommunicate request_size=4 [05:34:36]MH_SAM_APDU [05:34:36]CAPDU: 80 17 00 00 [05:34:36]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [05:34:36]Write i2c OK [05:34:36]MH_I2C_Read... [05:34:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:34:36]Read from MH i2c: E2 [05:34:36]MH_I2C_Read... [05:34:36]Read from MH i2c: E2 FD 00 [05:34:36]MH_I2C_Read... [05:34:36]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [05:34: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 [05:34:36]wFMCommunicate OK [05:34:36]wFMCommunicate request_size=4 [05:34:36]MH_SAM_APDU [05:34:36]CAPDU: 80 17 00 00 [05:34:36]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [05:34:36]Write i2c OK [05:34:36]MH_I2C_Read... [05:34:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [05:34:36]Read from MH i2c: E2 [05:34:36]MH_I2C_Read... [05:34:36]Read from MH i2c: E2 E2 00 [05:34:36]MH_I2C_Read... [05:34:36]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [05:34: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 [05:34:36]wFMCommunicate OK [05:34:36]SAM_PROTO_GetFMData done [05:34:36]requested_item fm.sale_refund.total is exist - process it [05:34:36]requested_item fm.buy.total is exist - process it [05:34:36]requested_item shift.sale.total is exist - process it [05:34:36]SAM_PROTO_GetShiftData [05:34:36]wFMCommunicate request_size=4 [05:34:36]MH_SAM_APDU [05:34:36]CAPDU: 80 13 02 00 [05:34:36]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [05:34:36]Write i2c OK [05:34:36]MH_I2C_Read... [05:34:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [05:34:37]Read from MH i2c: E2 [05:34:37]MH_I2C_Read... [05:34:37]Read from MH i2c: E2 FD 00 [05:34:37]MH_I2C_Read... [05:34:37]Read from MH i2c: E2 FD 00 18 00 00 AD 04 AA 04 A9 04 6E 04 04 00 1C 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 18 12 0D 70 04 03 00 24 93 0C 72 04 02 00 F4 7E 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 54 63 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 96 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 65 [05:34:37]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 1C 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 18 12 0D 70 04 03 00 24 93 0C 72 04 02 00 F4 7E 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 54 63 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 96 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [05:34:37]wFMCommunicate OK [05:34:37]wFMCommunicate request_size=4 [05:34:37]MH_SAM_APDU [05:34:37]CAPDU: 80 17 00 00 [05:34:37]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [05:34:37]Write i2c OK [05:34:37]MH_I2C_Read... [05:34:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:34:37]Read from MH i2c: E2 [05:34:37]MH_I2C_Read... [05:34:37]Read from MH i2c: E2 FD 00 [05:34:37]MH_I2C_Read... [05:34:37]Read from MH i2c: E2 FD 00 19 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AB [05:34:37]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [05:34:37]wFMCommunicate OK [05:34:37]wFMCommunicate request_size=4 [05:34:37]MH_SAM_APDU [05:34:37]CAPDU: 80 17 00 00 [05:34:37]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [05:34:37]Write i2c OK [05:34:37]MH_I2C_Read... [05:34:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:34:37]Read from MH i2c: E2 [05:34:37]MH_I2C_Read... [05:34:37]Read from MH i2c: E2 FD 00 [05:34:37]MH_I2C_Read... [05:34:37]Read from MH i2c: E2 FD 00 1A 00 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5E [05:34:38]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [05:34:38]wFMCommunicate OK [05:34:38]wFMCommunicate request_size=4 [05:34:38]MH_SAM_APDU [05:34:38]CAPDU: 80 17 00 00 [05:34:38]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [05:34:38]Write i2c OK [05:34:38]MH_I2C_Read... [05:34:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:34:38]Read from MH i2c: E2 [05:34:38]MH_I2C_Read... [05:34:38]Read from MH i2c: E2 FD 00 [05:34:38]MH_I2C_Read... [05:34:38]Read from MH i2c: E2 FD 00 1B 00 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 90 00 10 [05:34:38]RAPDU: 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 90 00 [05:34:38]wFMCommunicate OK [05:34:38]wFMCommunicate request_size=4 [05:34:38]MH_SAM_APDU [05:34:38]CAPDU: 80 17 00 00 [05:34:38]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [05:34:38]Write i2c OK [05:34:38]MH_I2C_Read... [05:34:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [05:34:38]Read from MH i2c: E2 [05:34:38]MH_I2C_Read... [05:34:38]Read from MH i2c: E2 CA 00 [05:34:38]MH_I2C_Read... [05:34:38]Read from MH i2c: E2 CA 00 1C 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [05:34:38]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 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 [05:34:38]wFMCommunicate OK [05:34:38]SAM_PROTO_GetShiftData done [05:34:38]requested_item shift.sale.total_cash is exist - process it [05:34:38]requested_item shift.sale_refund.total is exist - process it [05:34:38]requested_item shift.sale_refund.total_cash is exist - process it [05:34:38]requested_item shift.buy.total is exist - process it [05:34:38]requested_item shift.buy.total_cash is exist - process it [05:34:38]produce_requested_data done [05:34:38]produce_requested_data return {"fm.sale.total":64505279.56,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":8566.00,"shift.sale.total_cash":8241.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} [05:34:38]process_action_free get_value [05:34:38]json_value_free [05:34:38]json_value_free done [05:34:38]process_json_proto returns [05:34:38]Send response to host [05:34:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64505279.56,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":8566.00,"shift.sale.total_cash":8241.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}}} [05:34:38]free response buf [05:34:38]execute_script done [05:34:38]execute_script returns [05:34:38]free content buf [05:34:38]Sock 5.Close socket [05:34:38]Sock 5.Thread stoped [05:34:39]OFD Sender: No OFD packet to send [05:34:42]int [05:34:42]Write to MH i2c: 01 00 00 1D 00 1D [05:34:42]*** FLAG_PRN_KEY set [05:34:42]Write i2c OK [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: 01 [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: 01 07 00 [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: 01 07 00 1D 00 00 08 00 00 00 FF 0F 3A [05:34:42]state=0 [05:34:42]Key pressed [05:34:42]Feed [05:34:42]Write to MH i2c: D8 00 00 1E 00 F5 [05:34:42]Write i2c OK [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: D8 [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: D8 01 00 [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: D8 01 00 1E 00 00 F6 [05:34:42]int [05:34:42]Write to MH i2c: 01 00 00 1F 00 1F [05:34:42]Write i2c OK [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: 01 [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: 01 07 00 [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: 01 07 00 1F 00 00 48 00 00 00 3D 00 AB [05:34:42]state=2 [05:34:42]Key pressed [05:34:42]int [05:34:42]Write to MH i2c: 01 00 00 20 00 20 [05:34:42]*** FLAG_PRN_KEY reset [05:34:42]Write i2c OK [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: 01 [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: 01 07 00 [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: 01 07 00 20 00 00 00 00 00 00 F9 0F 2F [05:34:42]state=2 [05:34:42]Stop feed [05:34:42]int [05:34:42]Write to MH i2c: 01 00 00 21 00 21 [05:34:42]*** FLAG_PRN_KEY set [05:34:42]Write i2c OK [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: 01 [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: 01 07 00 [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: 01 07 00 21 00 00 08 00 00 00 FF 0F 3E [05:34:42]state=0 [05:34:42]Key pressed [05:34:42]Feed [05:34:42]Write to MH i2c: D8 00 00 22 00 F9 [05:34:42]Write i2c OK [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: D8 [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: D8 01 00 [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: D8 01 00 22 00 00 FA [05:34:42]int [05:34:42]Write to MH i2c: 01 00 00 23 00 23 [05:34:42]Write i2c OK [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: 01 [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: 01 07 00 [05:34:42]MH_I2C_Read... [05:34:42]Read from MH i2c: 01 07 00 23 00 00 48 00 00 00 3C 00 AE [05:34:42]state=2 [05:34:42]Key pressed [05:34:43]int [05:34:43]Write to MH i2c: 01 00 00 24 00 24 [05:34:43]*** FLAG_PRN_KEY reset [05:34:43]Write i2c OK [05:34:43]MH_I2C_Read... [05:34:43]Read from MH i2c: 01 [05:34:43]MH_I2C_Read... [05:34:43]Read from MH i2c: 01 07 00 [05:34:43]MH_I2C_Read... [05:34:43]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [05:34:43]state=2 [05:34:43]Stop feed [05:34:43]int [05:34:43]Write to MH i2c: 01 00 00 25 00 25 [05:34:43]*** FLAG_PRN_KEY set [05:34:43]Write i2c OK [05:34:43]MH_I2C_Read... [05:34:43]Read from MH i2c: 01 [05:34:43]MH_I2C_Read... [05:34:43]Read from MH i2c: 01 07 00 [05:34:43]MH_I2C_Read... [05:34:43]Read from MH i2c: 01 07 00 25 00 00 08 00 00 00 FF 0F 42 [05:34:43]state=0 [05:34:43]Key pressed [05:34:43]Feed [05:34:43]Write to MH i2c: D8 00 00 26 00 FD [05:34:43]Write i2c OK [05:34:43]MH_I2C_Read... [05:34:43]Read from MH i2c: D8 [05:34:43]MH_I2C_Read... [05:34:43]Read from MH i2c: D8 01 00 [05:34:43]MH_I2C_Read... [05:34:43]Read from MH i2c: D8 01 00 26 00 00 FE [05:34:43]int [05:34:43]Write to MH i2c: 01 00 00 27 00 27 [05:34:43]Write i2c OK [05:34:43]MH_I2C_Read... [05:34:43]Read from MH i2c: 01 [05:34:43]MH_I2C_Read... [05:34:43]Read from MH i2c: 01 07 00 [05:34:43]MH_I2C_Read... [05:34:43]Read from MH i2c: 01 07 00 27 00 00 48 00 00 00 3D 00 B3 [05:34:43]state=2 [05:34:43]Key pressed [05:34:44]OFD Sender: No OFD packet to send [05:34:44]int [05:34:44]Write to MH i2c: 01 00 00 28 00 28 [05:34:44]*** FLAG_PRN_KEY reset [05:34:44]Write i2c OK [05:34:44]MH_I2C_Read... [05:34:44]Read from MH i2c: 01 [05:34:44]MH_I2C_Read... [05:34:44]Read from MH i2c: 01 07 00 [05:34:44]MH_I2C_Read... [05:34:44]Read from MH i2c: 01 07 00 28 00 00 00 00 00 00 F9 0F 37 [05:34:44]state=2 [05:34:44]Stop feed [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:38]accept exits with 8 [05:52:38]New connection [05:52:38]New thread 3066981732 created [05:52:38]Thread 3066838372 joined [05:52:38]Waiting for new connection... [05:52:38] Sock 8.Parse request [05:52:38]Sock 8.Check first char [05:52:38]Sock 8.First char is OK [05:52:38]request: POST /json_proto HTTP/1.0 [05:52:38]Method: POST [05:52:38]URL: /json_proto [05:52:38]Method is POST - this is cgi request [05:52:38]url: /json_proto [05:52:38]query_string will be loaded in cgi processing [05:52:38]execute_cgi json_proto POST (null) [05:52:38]execute_cgi path=json_proto method=POST [05:52:38]POST find Content-Length [05:52:38]Host: 172.17.41.136:8080 [05:52:38]Content-Length: 633 [05:52:38]Content-Type: application/json [05:52:38] [05:52:38]POST finish read [05:52:38]Found Content-Length = 633 [05:52:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343770", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:52:38]execute_script... [05:52:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343770", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:52:38]POST & json_proto [05:52:38]process_json_proto [05:52:38]json parsed OK: [05:52:38]protocol is kg_v1.0 [05:52:38]action value=close_receipt [05:52:38]process_action close_receipt [05:52:38]cmd_close_receipt [05:52:38]MH_GetDate [05:52:38]Write to MH i2c: F0 00 00 29 00 18 [05:52:38]Write i2c OK [05:52:38]MH_I2C_Read... [05:52:38]Read from MH i2c: F0 [05:52:38]MH_I2C_Read... [05:52:38]Read from MH i2c: F0 09 00 [05:52:38]MH_I2C_Read... [05:52:38]Read from MH i2c: F0 09 00 29 00 00 A6 B0 EF 66 1B D0 5A 64 75 [05:52:38]GetLastDocTimeStamp 1726981715 [05:52:38]current date 1726984358 [05:52:38]FM_GetShiftState [05:52:38]SAM_PROTO_GetShiftState [05:52:38]wFMCommunicate request_size=4 [05:52:38]MH_SAM_APDU [05:52:38]CAPDU: 80 13 01 00 [05:52:38]Write to MH i2c: E2 08 00 2A 00 80 13 01 00 00 00 00 00 A7 [05:52:38]Write i2c OK [05:52:38]MH_I2C_Read... [05:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:52:38]Read from MH i2c: E2 [05:52:38]MH_I2C_Read... [05:52:38]Read from MH i2c: E2 0E 00 [05:52:38]MH_I2C_Read... [05:52:38]Read from MH i2c: E2 0E 00 2A 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C0 [05:52:38]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [05:52:38]wFMCommunicate OK [05:52:38]SAM_PROTO_GetShiftState done [05:52:38]FM_GetShiftState done [05:52:38]opened in 1726965840 [05:52:38]opened+sec_in_day 1727052240 [05:52:38]quantity*price = 7500 [05:52:38]sum+1 = 7501 [05:52:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 29 22.09.2024 05:52 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115311 ФПД: 119494562899884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T055238&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115311&fm=119494562899884&tin=02508201610067®Number=0000000000091831&sum=7500 0 [05:52:39]StoreToDocumentArchive [05:52:39]shift 471 fd 115311 [05:52:39]save to /storage/0471/doc_00115311 [05:52:39]save last doc name /storage/0471/doc_00115311 to /storage/kkm_last_doc_name [05:52:39]save OK [05:52:39]Clear old archive folders... [05:52:39]ProcessDocumentItem done err = 0, tmpTLVsize=268 [05:52:39]tlvbuf is 0179C730 [05:52:39]SAM_PROTO_ClearQueue [05:52:39]wFMCommunicate request_size=4 [05:52:39]MH_SAM_APDU [05:52:39]CAPDU: 80 09 00 00 [05:52:39]Write to MH i2c: E2 08 00 37 00 80 09 00 00 00 00 00 00 A9 [05:52:39]Write i2c OK [05:52:39]MH_I2C_Read... [05:52:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:52:39]Read from MH i2c: E2 [05:52:39]MH_I2C_Read... [05:52:39]Read from MH i2c: E2 03 00 [05:52:39]MH_I2C_Read... [05:52:39]Read from MH i2c: E2 03 00 37 00 00 90 00 AB [05:52:39]RAPDU: 90 00 [05:52:39]wFMCommunicate OK [05:52:39]SAM_PROTO_ClearQueue done [05:52:39]KKMCreateOFDPacket [05:52:39]OFDProtocolAddRootSTLVToBuf [05:52:39]FM_MakeSignedData [05:52:39]FM_MakeSignedData [05:52:39]SAM_PROTO_SignData [05:52:39]wFMCommunicate request_size=4 [05:52:39]MH_SAM_APDU [05:52:39]CAPDU: 80 0D 01 02 [05:52:39]Write to MH i2c: E2 08 00 38 00 80 0D 01 02 00 00 00 00 B1 [05:52:39]Write i2c OK [05:52:39]MH_I2C_Read... [05:52:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:52:39]Read from MH i2c: E2 [05:52:39]MH_I2C_Read... [05:52:39]Read from MH i2c: E2 03 00 [05:52:39]MH_I2C_Read... [05:52:39]Read from MH i2c: E2 03 00 38 00 00 90 00 AC [05:52:39]RAPDU: 90 00 [05:52:39]wFMCommunicate OK [05:52:39]wFMCommunicate request_size=255 [05:52:39]MH_SAM_APDU [05:52:39]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 A6 B0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [05:52:39]Write to MH i2c: E2 02 01 39 00 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 A6 B0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 A9 [05:52:39]Write i2c OK [05:52:39]MH_I2C_Read... [05:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:52:40]Read from MH i2c: E2 [05:52:40]MH_I2C_Read... [05:52:40]Read from MH i2c: E2 03 00 [05:52:40]MH_I2C_Read... [05:52:40]Read from MH i2c: E2 03 00 39 00 00 90 00 AD [05:52:40]RAPDU: 90 00 [05:52:40]wFMCommunicate OK [05:52:40]wFMCommunicate request_size=27 [05:52:40]MH_SAM_APDU [05:52:40]CAPDU: 80 0D 02 02 16 31 38 33 30 10 04 04 00 6F C2 01 00 35 04 06 00 6C AD FE F9 67 AC [05:52:40]Write to MH i2c: E2 1E 00 3A 00 80 0D 02 02 16 00 31 38 33 30 10 04 04 00 6F C2 01 00 35 04 06 00 6C AD FE F9 67 AC 00 00 58 [05:52:40]Write i2c OK [05:52:40]MH_I2C_Read... [05:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:52:40]Read from MH i2c: E2 [05:52:40]MH_I2C_Read... [05:52:40]Read from MH i2c: E2 03 00 [05:52:40]MH_I2C_Read... [05:52:40]Read from MH i2c: E2 03 00 3A 00 00 90 00 AE [05:52:40]RAPDU: 90 00 [05:52:40]wFMCommunicate OK [05:52:40]wFMCommunicate request_size=4 [05:52:40]MH_SAM_APDU [05:52:40]CAPDU: 80 0D 03 02 [05:52:40]Write to MH i2c: E2 08 00 3B 00 80 0D 03 02 00 00 00 00 B6 [05:52:40]Write i2c OK [05:52:40]MH_I2C_Read... [05:52:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:52:40]Read from MH i2c: E2 [05:52:40]MH_I2C_Read... [05:52:40]Read from MH i2c: E2 0B 00 [05:52:40]MH_I2C_Read... [05:52:40]Read from MH i2c: E2 0B 00 3B 00 00 53 A4 A6 89 E1 B1 D9 A3 90 00 EB [05:52:40]RAPDU: 53 A4 A6 89 E1 B1 D9 A3 90 00 [05:52:40]wFMCommunicate OK [05:52:40]SAM_PROTO_SignData done [05:52:40]FM_MakeSignedData done [05:52:40]CreateOFDProtocolMessage [05:52:40]wFMCommunicate request_size=4 [05:52:40]MH_SAM_APDU [05:52:40]CAPDU: 80 11 00 00 [05:52:40]Write to MH i2c: E2 08 00 3C 00 80 11 00 00 00 00 00 00 B6 [05:52:40]Write i2c OK [05:52:40]MH_I2C_Read... [05:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:52:40]Read from MH i2c: E2 [05:52:40]MH_I2C_Read... [05:52:40]Read from MH i2c: E2 17 00 [05:52:40]MH_I2C_Read... [05:52:40]Read from MH i2c: E2 17 00 3C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 04 [05:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:52:40]wFMCommunicate OK [05:52:40]CreateOFDProtocolMessage done [05:52:40]OFDSenderStorePacket 115311 [05:52:40]StoreOFDPacket docnum=115311 [05:52:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 20 01 00 00 A6 DF 18 01 2B DB 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 A6 B0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6F C2 01 00 35 04 06 00 6C AD FE F9 67 AC 53 A4 A6 89 E1 B1 D9 A3 [05:52:40]CheckFolder [05:52:40]dirname=/storage/ofd_packets [05:52:40]CheckFolder done [05:52:40]ProducePacketName [05:52:40]name=ofd_packets/00115311 [05:52:40]NVStorageSaveData ofd_packets/00115311 [05:52:40]File name is /storage/ofd_packets/00115311 [05:52:40]Write 318 bytes [05:52:40]NVStorageSaveData done [05:52:40]OFDSenderStorePacket done [05:52:40]KKMCreateOFDPacket done [05:52:40]NVStorageSaveData kkm_last_timestamp [05:52:40]File name is /storage/kkm_last_timestamp [05:52:40]Write 4 bytes [05:52:40]NVStorageSaveData done [05:52:40]ExternCall_PrintAddStr [05:52:40]wPrintStart [05:52:40]Write to MH i2c: 01 00 00 3D 00 3D [05:52:40]Write i2c OK [05:52:40]MH_I2C_Read... [05:52:40]Read from MH i2c: 01 [05:52:40]MH_I2C_Read... [05:52:40]Read from MH i2c: 01 07 00 [05:52:40]MH_I2C_Read... [05:52:40]Read from MH i2c: 01 07 00 3D 00 00 00 00 00 00 FF 0F 52 [05:52:40]RasterBufferAndPrint [05:52:40]line Счет N : (3)343770 [05:52:40]line ИНН: 02508201610067 [05:52:40]line Контрольно-Кассовый Чек [05:52:40]line ПРОДАЖА [05:52:40]line Товар: 40822938 [05:52:40]line Напиток Фанта 0,5л [05:52:40]line 1.000 * 75.00 [05:52:40]line = 75.00 [05:52:40]line НДС 12% НСП 1% [05:52:40]line > о реализуемом товаре [05:52:40]line ИТОГО: 75.00 [05:52:40]line НСП 1% : 0.66 [05:52:40]line НДС 12% : 7.96 [05:52:40]line Наличными: 75.00 [05:52:40]line Безнал.: 0.00 [05:52:40]line Место: АЗС № 90 "Партнер Нефть" [05:52:40]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [05:52:40]line СНО: Общий режим [05:52:40]line Чек 29 22.09.2024 05:52 [05:52:40]line Смена: 471 ФФД: 1.0 [05:52:40]line ЗНМ: 0300000120 [05:52:40]line РНМ: 0000000000091831 [05:52:40]line Версия ККМ: 001 [05:52:40]line ФМ: 0000000000871830 [05:52:40]line ФД: 115311 [05:52:40]line ФПД: 119494562899884 [05:52:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T055238&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115311&fm=119494562899884&tin=02508201610067®Number=0000000000091831&sum=7500 [05:52:40]line 0 [05:52:40]OFD Sender: Processing packet 115311 [packets to send 481, broken 480] [05:52:40]ProducePacketName [05:52:40]name=ofd_packets/00115311 [05:52:40]written 0, free lines is 4095 [05:52:40]OFD Sender: To server: pG, [05:52:40]CommunicateWithHost lk.salyk.kg:30040 [05:52:40]ConnectInit lk.salyk.kg [05:52:40]Connected sock=10 [05:52:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 20 01 00 00 A6 DF 18 01 2B DB 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 A6 B0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6F C2 01 00 35 04 06 00 6C AD FE F9 67 AC 53 A4 A6 89 E1 B1 D9 A3 [05:52:40]Write to MH i2c: 01 00 00 64 00 64 [05:52:40]Write i2c OK [05:52:40]MH_I2C_Read... [05:52:40]Read from MH i2c: 01 [05:52:40]MH_I2C_Read... [05:52:40]Read from MH i2c: 01 07 00 [05:52:40]MH_I2C_Read... [05:52:40]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 86 0C FD [05:52:40]RasterBufferAndPrint [05:52:40]line [05:52:40]line [05:52:40]line [05:52:40]line [05:52:40]line [05:52:40]written 0, free lines is 3211 [05:52:40]MH_Cut [05:52:40]Write to MH i2c: D1 01 00 6B 00 01 3D [05:52:40]Write i2c OK [05:52:40]MH_I2C_Read... [05:52:40]Read from MH i2c: D1 [05:52:40]MH_I2C_Read... [05:52:40]Read from MH i2c: D1 01 00 [05:52:40]MH_I2C_Read... [05:52:40]Read from MH i2c: D1 01 00 6B 00 00 3C [05:52:40]Write to MH i2c: 01 00 00 6C 00 6C [05:52:40]Write i2c OK [05:52:40]MH_I2C_Read... [05:52:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 4A 26 47 00 B3 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6F C2 01 00 F4 03 04 00 ED 55 EF 66 B6 04 01 00 00 5F F8 F9 A8 7E 8E FB 0A [05:52:40]CommunicateWithHost err = 0 [05:52:40]CheckOFDResponse [05:52:40]1017 (14) - 77093643461234 [05:52:40]1041 (16) - 0000000000871830 [05:52:40]1040 (4) - 115311 [05:52:40]1012 (4) - 21.09.2024 23:25 [05:52:40]1206 (1) - 0 [05:52:40]OFD Sender: Remove packet 115311 [05:52:40]ProducePacketName [05:52:40]name=ofd_packets/00115311 [05:52:40]NVStorageDeleteData [05:52:41]OFD Sender: No OFD packet to send [05:52:42]*** Cut start [05:52:42]*** Partial cut [05:52:42]*** CUTSNS_PIN = 1 [05:52:42]*** CUTSNS_PIN = 0 [05:52:42]*** Brake cut motor [05:52:42]Read from MH i2c: 01 [05:52:42]MH_I2C_Read... [05:52:42]*** Stop cut motor [05:52:42]*** Cut end [05:52:42]Read from MH i2c: 01 07 00 [05:52:42]MH_I2C_Read... [05:52:42]Read from MH i2c: 01 07 00 6C 00 00 00 00 00 00 FF 0F 81 [05:52:42]process_action close_receipt done [05:52:42]requested_data is exist [05:52:42]produce_requested_data [05:52:42]requested_item fm.sn is exist - process it [05:52:42]wFMCommunicate request_size=4 [05:52:42]MH_SAM_APDU [05:52:42]CAPDU: 80 11 00 00 [05:52:42]Write to MH i2c: E2 08 00 6D 00 80 11 00 00 00 00 00 00 E7 [05:52:42]Write i2c OK [05:52:42]MH_I2C_Read... [05:52:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:52:42]Read from MH i2c: E2 [05:52:42]MH_I2C_Read... [05:52:42]Read from MH i2c: E2 17 00 [05:52:42]MH_I2C_Read... [05:52:42]Read from MH i2c: E2 17 00 6D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 35 [05:52:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:52:42]wFMCommunicate OK [05:52:42]requested_item fd.num is exist - process it [05:52:42]SAM_PROTO_GetFieldsCounters [05:52:42]wFMCommunicate request_size=4 [05:52:42]MH_SAM_APDU [05:52:42]CAPDU: 80 13 00 00 [05:52:42]Write to MH i2c: E2 08 00 6E 00 80 13 00 00 00 00 00 00 EA [05:52:42]Write i2c OK [05:52:42]MH_I2C_Read... [05:52:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:52:42]Read from MH i2c: E2 [05:52:42]MH_I2C_Read... [05:52:42]Read from MH i2c: E2 62 00 [05:52:42]MH_I2C_Read... [05:52:42]Read from MH i2c: E2 62 00 6E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6F C2 01 00 0E 04 04 00 D7 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 64 [05:52:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6F C2 01 00 0E 04 04 00 D7 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 [05:52:42]wFMCommunicate OK [05:52:42]SAM_PROTO_GetFieldsCounters done [05:52:42]requested_item shift.num is exist - process it [05:52:42]requested_item shift.opened is exist - process it [05:52:42]req_shift_opened [05:52:42]FM_GetShiftState [05:52:42]SAM_PROTO_GetShiftState [05:52:42]wFMCommunicate request_size=4 [05:52:42]MH_SAM_APDU [05:52:42]CAPDU: 80 13 01 00 [05:52:42]Write to MH i2c: E2 08 00 6F 00 80 13 01 00 00 00 00 00 EC [05:52:42]Write i2c OK [05:52:42]MH_I2C_Read... [05:52:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:52:42]Read from MH i2c: E2 [05:52:42]MH_I2C_Read... [05:52:42]Read from MH i2c: E2 0E 00 [05:52:42]MH_I2C_Read... [05:52:42]Read from MH i2c: E2 0E 00 6F 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 05 [05:52:42]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [05:52:42]wFMCommunicate OK [05:52:42]SAM_PROTO_GetShiftState done [05:52:42]FM_GetShiftState done [05:52:42]req_shift_opened done [05:52:42]requested_item shift.open_date is exist - process it [05:52:42]req_shift_open_date [05:52:42]req_shift_open_date done [05:52:42]produce_requested_data done [05:52:42]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115311,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [05:52:42]process_action_free close_receipt [05:52:42]json_value_free [05:52:42]json_value_free done [05:52:42]process_json_proto returns [05:52:42]Send response to host [05:52:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115311,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [05:52:42]free response buf [05:52:42]execute_script done [05:52:42]execute_script returns [05:52:42]free content buf [05:52:42]Sock 8.Close socket [05:52:42]Sock 8.Thread stoped [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:25]accept exits with 9 [05:54:25]New connection [05:54:25]New thread 3066838372 created [05:54:25]Thread 3066981732 joined [05:54:25]Waiting for new connection... [05:54:25] Sock 9.Parse request [05:54:25]Sock 9.Check first char [05:54:25]Sock 9.First char is OK [05:54:25]request: POST /json_proto HTTP/1.0 [05:54:25]Method: POST [05:54:25]URL: /json_proto [05:54:25]Method is POST - this is cgi request [05:54:25]url: /json_proto [05:54:25]query_string will be loaded in cgi processing [05:54:25]execute_cgi json_proto POST (null) [05:54:25]execute_cgi path=json_proto method=POST [05:54:25]POST find Content-Length [05:54:25]Host: 172.17.41.136:8080 [05:54:25]Content-Length: 784 [05:54:25]Content-Type: application/json [05:54:25] [05:54:25]POST finish read [05:54:25]Found Content-Length = 784 [05:54:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343771", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:54:25]execute_script... [05:54:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343771", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:54:25]POST & json_proto [05:54:25]process_json_proto [05:54:25]json parsed OK: [05:54:25]protocol is kg_v1.0 [05:54:25]action value=close_receipt [05:54:25]process_action close_receipt [05:54:25]cmd_close_receipt [05:54:25]MH_GetDate [05:54:25]Write to MH i2c: F0 00 00 70 00 5F [05:54:25]Write i2c OK [05:54:25]MH_I2C_Read... [05:54:25]Read from MH i2c: F0 [05:54:25]MH_I2C_Read... [05:54:25]Read from MH i2c: F0 09 00 [05:54:25]MH_I2C_Read... [05:54:25]Read from MH i2c: F0 09 00 70 00 00 12 B1 EF 66 1B D0 5A 64 29 [05:54:25]GetLastDocTimeStamp 1726984358 [05:54:25]current date 1726984466 [05:54:25]FM_GetShiftState [05:54:25]SAM_PROTO_GetShiftState [05:54:25]wFMCommunicate request_size=4 [05:54:25]MH_SAM_APDU [05:54:25]CAPDU: 80 13 01 00 [05:54:25]Write to MH i2c: E2 08 00 71 00 80 13 01 00 00 00 00 00 EE [05:54:25]Write i2c OK [05:54:25]MH_I2C_Read... [05:54:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:54:25]Read from MH i2c: E2 [05:54:25]MH_I2C_Read... [05:54:25]Read from MH i2c: E2 0E 00 [05:54:25]MH_I2C_Read... [05:54:25]Read from MH i2c: E2 0E 00 71 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 07 [05:54:25]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [05:54:25]wFMCommunicate OK [05:54:25]SAM_PROTO_GetShiftState done [05:54:25]FM_GetShiftState done [05:54:25]opened in 1726965840 [05:54:25]opened+sec_in_day 1727052240 [05:54:25]quantity*price = 14400 [05:54:25]sum+1 = 14401 [05:54:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 30 22.09.2024 05:54 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115312 ФПД: 255531635393909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T055426&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115312&fm=255531635393909&tin=02508201610067®Number=0000000000091831&sum=14400 0 [05:54:26]StoreToDocumentArchive [05:54:26]shift 471 fd 115312 [05:54:26]save to /storage/0471/doc_00115312 [05:54:26]save last doc name /storage/0471/doc_00115312 to /storage/kkm_last_doc_name [05:54:26]save OK [05:54:26]Clear old archive folders... [05:54:26]ProcessDocumentItem done err = 0, tmpTLVsize=275 [05:54:26]tlvbuf is 0179C780 [05:54:26]SAM_PROTO_ClearQueue [05:54:26]wFMCommunicate request_size=4 [05:54:26]MH_SAM_APDU [05:54:26]CAPDU: 80 09 00 00 [05:54:26]Write to MH i2c: E2 08 00 7E 00 80 09 00 00 00 00 00 00 F0 [05:54:26]Write i2c OK [05:54:26]MH_I2C_Read... [05:54:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:54:26]Read from MH i2c: E2 [05:54:26]MH_I2C_Read... [05:54:26]Read from MH i2c: E2 03 00 [05:54:26]MH_I2C_Read... [05:54:26]Read from MH i2c: E2 03 00 7E 00 00 90 00 F2 [05:54:26]RAPDU: 90 00 [05:54:26]wFMCommunicate OK [05:54:26]SAM_PROTO_ClearQueue done [05:54:26]KKMCreateOFDPacket [05:54:26]OFDProtocolAddRootSTLVToBuf [05:54:26]FM_MakeSignedData [05:54:26]FM_MakeSignedData [05:54:26]SAM_PROTO_SignData [05:54:26]wFMCommunicate request_size=4 [05:54:26]MH_SAM_APDU [05:54:26]CAPDU: 80 0D 01 02 [05:54:26]Write to MH i2c: E2 08 00 7F 00 80 0D 01 02 00 00 00 00 F8 [05:54:26]Write i2c OK [05:54:26]MH_I2C_Read... [05:54:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:54:26]Read from MH i2c: E2 [05:54:26]MH_I2C_Read... [05:54:26]Read from MH i2c: E2 03 00 [05:54:26]MH_I2C_Read... [05:54:26]Read from MH i2c: E2 03 00 7F 00 00 90 00 F3 [05:54:26]RAPDU: 90 00 [05:54:26]wFMCommunicate OK [05:54:26]wFMCommunicate request_size=255 [05:54:26]MH_SAM_APDU [05:54:26]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 12 B1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 [05:54:26]Write to MH i2c: E2 02 01 80 00 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 12 B1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 00 00 08 [05:54:27]Write i2c OK [05:54:27]MH_I2C_Read... [05:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:54:27]Read from MH i2c: E2 [05:54:27]MH_I2C_Read... [05:54:27]Read from MH i2c: E2 03 00 [05:54:27]MH_I2C_Read... [05:54:27]Read from MH i2c: E2 03 00 80 00 00 90 00 F4 [05:54:27]RAPDU: 90 00 [05:54:27]wFMCommunicate OK [05:54:27]wFMCommunicate request_size=34 [05:54:27]MH_SAM_APDU [05:54:27]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 70 C2 01 00 35 04 06 00 E8 67 98 5B 45 75 [05:54:27]Write to MH i2c: E2 25 00 81 00 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 70 C2 01 00 35 04 06 00 E8 67 98 5B 45 75 00 00 E6 [05:54:27]Write i2c OK [05:54:27]MH_I2C_Read... [05:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:54:27]Read from MH i2c: E2 [05:54:27]MH_I2C_Read... [05:54:27]Read from MH i2c: E2 03 00 [05:54:27]MH_I2C_Read... [05:54:27]Read from MH i2c: E2 03 00 81 00 00 90 00 F5 [05:54:27]RAPDU: 90 00 [05:54:27]wFMCommunicate OK [05:54:27]wFMCommunicate request_size=4 [05:54:27]MH_SAM_APDU [05:54:27]CAPDU: 80 0D 03 02 [05:54:27]Write to MH i2c: E2 08 00 82 00 80 0D 03 02 00 00 00 00 FD [05:54:27]Write i2c OK [05:54:27]MH_I2C_Read... [05:54:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:54:27]Read from MH i2c: E2 [05:54:27]MH_I2C_Read... [05:54:27]Read from MH i2c: E2 0B 00 [05:54:27]MH_I2C_Read... [05:54:27]Read from MH i2c: E2 0B 00 82 00 00 2E B8 6C 3A E2 CB 7B C0 90 00 72 [05:54:27]RAPDU: 2E B8 6C 3A E2 CB 7B C0 90 00 [05:54:27]wFMCommunicate OK [05:54:27]SAM_PROTO_SignData done [05:54:27]FM_MakeSignedData done [05:54:27]CreateOFDProtocolMessage [05:54:27]wFMCommunicate request_size=4 [05:54:27]MH_SAM_APDU [05:54:27]CAPDU: 80 11 00 00 [05:54:27]Write to MH i2c: E2 08 00 83 00 80 11 00 00 00 00 00 00 FD [05:54:27]Write i2c OK [05:54:27]MH_I2C_Read... [05:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:54:27]Read from MH i2c: E2 [05:54:27]MH_I2C_Read... [05:54:27]Read from MH i2c: E2 17 00 [05:54:27]MH_I2C_Read... [05:54:27]Read from MH i2c: E2 17 00 83 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4B [05:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:54:27]wFMCommunicate OK [05:54:27]CreateOFDProtocolMessage done [05:54:27]OFDSenderStorePacket 115312 [05:54:27]StoreOFDPacket docnum=115312 [05:54:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 17 84 1F 01 12 3D 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 12 B1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 70 C2 01 00 35 04 06 00 E8 67 98 5B 45 75 2E B8 6C 3A E2 CB 7B C0 [05:54:27]CheckFolder [05:54:27]dirname=/storage/ofd_packets [05:54:27]CheckFolder done [05:54:27]ProducePacketName [05:54:27]name=ofd_packets/00115312 [05:54:27]NVStorageSaveData ofd_packets/00115312 [05:54:27]File name is /storage/ofd_packets/00115312 [05:54:27]Write 325 bytes [05:54:27]NVStorageSaveData done [05:54:27]OFDSenderStorePacket done [05:54:27]KKMCreateOFDPacket done [05:54:27]NVStorageSaveData kkm_last_timestamp [05:54:27]File name is /storage/kkm_last_timestamp [05:54:27]Write 4 bytes [05:54:27]NVStorageSaveData done [05:54:27]ExternCall_PrintAddStr [05:54:27]wPrintStart [05:54:27]Write to MH i2c: 01 00 00 84 00 84 [05:54:27]Write i2c OK [05:54:27]MH_I2C_Read... [05:54:27]Read from MH i2c: 01 [05:54:27]MH_I2C_Read... [05:54:27]Read from MH i2c: 01 07 00 [05:54:27]MH_I2C_Read... [05:54:27]Read from MH i2c: 01 07 00 84 00 00 00 00 00 00 FF 0F 99 [05:54:27]RasterBufferAndPrint [05:54:27]line Счет N : (3)343771 [05:54:27]line ИНН: 02508201610067 [05:54:27]line Контрольно-Кассовый Чек [05:54:27]line ПРОДАЖА [05:54:27]line Товар: 48743587 [05:54:27]line Сигареты Winston XStyle Silver [05:54:27]line 1.000 * 144.00 [05:54:27]line = 144.00 [05:54:27]line НДС 12% НСП 1% [05:54:27]line > о реализуемом товаре [05:54:27]line ИТОГО: 144.00 [05:54:27]line НСП 1% : 1.27 [05:54:27]line НДС 12% : 15.29 [05:54:27]line Наличными: 0.00 [05:54:27]line Безнал.: 144.00 [05:54:27]line Место: АЗС № 90 "Партнер Нефть" [05:54:27]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [05:54:27]line СНО: Общий режим [05:54:27]line Чек 30 22.09.2024 05:54 [05:54:27]line Смена: 471 ФФД: 1.0 [05:54:27]line ЗНМ: 0300000120 [05:54:27]line РНМ: 0000000000091831 [05:54:27]line Версия ККМ: 001 [05:54:27]line Платежная система: O! деньги [05:54:27]line ФМ: 0000000000871830 [05:54:27]line ФД: 115312 [05:54:27]line ФПД: 255531635393909 [05:54:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T055426&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115312&fm=255531635393909&tin=02508201610067®Number=0000000000091831&sum=14400 [05:54:27]line 0 [05:54:27]OFD Sender: Processing packet 115312 [packets to send 481, broken 480] [05:54:27]ProducePacketName [05:54:27]name=ofd_packets/00115312 [05:54:27]OFD Sender: To server: pG, [05:54:27]CommunicateWithHost lk.salyk.kg:30040 [05:54:27]ConnectInit lk.salyk.kg [05:54:27]written 0, free lines is 4095 [05:54:27]Connected sock=10 [05:54:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 17 84 1F 01 12 3D 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 12 B1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 70 C2 01 00 35 04 06 00 E8 67 98 5B 45 75 2E B8 6C 3A E2 CB 7B C0 [05:54:28]Write to MH i2c: 01 00 00 AE 00 AE [05:54:28]Write i2c OK [05:54:28]MH_I2C_Read... [05:54:28]Read from MH i2c: 01 [05:54:28]MH_I2C_Read... [05:54:28]Read from MH i2c: 01 07 00 [05:54:28]MH_I2C_Read... [05:54:28]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 35 0C F6 [05:54:28]RasterBufferAndPrint [05:54:28]line [05:54:28]line [05:54:28]line [05:54:28]line [05:54:28]line [05:54:28]written 0, free lines is 3128 [05:54:28]MH_Cut [05:54:28]Write to MH i2c: D1 01 00 B5 00 01 87 [05:54:28]Write i2c OK [05:54:28]MH_I2C_Read... [05:54:28]Read from MH i2c: D1 [05:54:28]MH_I2C_Read... [05:54:28]Read from MH i2c: D1 01 00 [05:54:28]MH_I2C_Read... [05:54:28]Read from MH i2c: D1 01 00 B5 00 00 86 [05:54:28]Write to MH i2c: 01 00 00 B6 00 B6 [05:54:28]Write i2c OK [05:54:28]MH_I2C_Read... [05:54:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 94 86 47 00 22 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 31 38 33 30 10 04 04 00 70 C2 01 00 F4 03 04 00 58 56 EF 66 B6 04 01 00 00 B2 11 4B 1C F1 9F E9 0E [05:54:28]CommunicateWithHost err = 0 [05:54:28]CheckOFDResponse [05:54:28]1017 (14) - 77093643461234 [05:54:28]1041 (16) - 0000000000871830 [05:54:28]1040 (4) - 115312 [05:54:28]1012 (4) - 21.09.2024 23:27 [05:54:28]1206 (1) - 0 [05:54:28]OFD Sender: Remove packet 115312 [05:54:28]ProducePacketName [05:54:28]name=ofd_packets/00115312 [05:54:28]NVStorageDeleteData [05:54:28]OFD Sender: No OFD packet to send [05:54:29]*** Cut start [05:54:29]*** Partial cut [05:54:29]*** CUTSNS_PIN = 1 [05:54:29]*** CUTSNS_PIN = 0 [05:54:29]*** Brake cut motor [05:54:30]Read from MH i2c: 01 [05:54:30]MH_I2C_Read... [05:54:30]*** Stop cut motor [05:54:30]*** Cut end [05:54:30]Read from MH i2c: 01 07 00 [05:54:30]MH_I2C_Read... [05:54:30]Read from MH i2c: 01 07 00 B6 00 00 00 00 00 00 FF 0F CB [05:54:30]process_action close_receipt done [05:54:30]requested_data is exist [05:54:30]produce_requested_data [05:54:30]requested_item fm.sn is exist - process it [05:54:30]wFMCommunicate request_size=4 [05:54:30]MH_SAM_APDU [05:54:30]CAPDU: 80 11 00 00 [05:54:30]Write to MH i2c: E2 08 00 B7 00 80 11 00 00 00 00 00 00 31 [05:54:30]Write i2c OK [05:54:30]MH_I2C_Read... [05:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:54:30]Read from MH i2c: E2 [05:54:30]MH_I2C_Read... [05:54:30]Read from MH i2c: E2 17 00 [05:54:30]MH_I2C_Read... [05:54:30]Read from MH i2c: E2 17 00 B7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7F [05:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:54:30]wFMCommunicate OK [05:54:30]requested_item fd.num is exist - process it [05:54:30]SAM_PROTO_GetFieldsCounters [05:54:30]wFMCommunicate request_size=4 [05:54:30]MH_SAM_APDU [05:54:30]CAPDU: 80 13 00 00 [05:54:30]Write to MH i2c: E2 08 00 B8 00 80 13 00 00 00 00 00 00 34 [05:54:30]Write i2c OK [05:54:30]MH_I2C_Read... [05:54:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:54:30]Read from MH i2c: E2 [05:54:30]MH_I2C_Read... [05:54:30]Read from MH i2c: E2 62 00 [05:54:30]MH_I2C_Read... [05:54:30]Read from MH i2c: E2 62 00 B8 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 70 C2 01 00 0E 04 04 00 D7 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 B2 [05:54:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 70 C2 01 00 0E 04 04 00 D7 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 [05:54:30]wFMCommunicate OK [05:54:30]SAM_PROTO_GetFieldsCounters done [05:54:30]requested_item shift.num is exist - process it [05:54:30]requested_item shift.opened is exist - process it [05:54:30]req_shift_opened [05:54:30]FM_GetShiftState [05:54:30]SAM_PROTO_GetShiftState [05:54:30]wFMCommunicate request_size=4 [05:54:30]MH_SAM_APDU [05:54:30]CAPDU: 80 13 01 00 [05:54:30]Write to MH i2c: E2 08 00 B9 00 80 13 01 00 00 00 00 00 36 [05:54:30]Write i2c OK [05:54:30]MH_I2C_Read... [05:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:54:30]Read from MH i2c: E2 [05:54:30]MH_I2C_Read... [05:54:30]Read from MH i2c: E2 0E 00 [05:54:30]MH_I2C_Read... [05:54:30]Read from MH i2c: E2 0E 00 B9 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 4F [05:54:30]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [05:54:30]wFMCommunicate OK [05:54:30]SAM_PROTO_GetShiftState done [05:54:30]FM_GetShiftState done [05:54:30]req_shift_opened done [05:54:30]requested_item shift.open_date is exist - process it [05:54:30]req_shift_open_date [05:54:30]req_shift_open_date done [05:54:30]produce_requested_data done [05:54:30]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115312,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [05:54:30]process_action_free close_receipt [05:54:30]json_value_free [05:54:30]json_value_free done [05:54:30]process_json_proto returns [05:54:30]Send response to host [05:54:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115312,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [05:54:30]free response buf [05:54:30]execute_script done [05:54:30]execute_script returns [05:54:30]free content buf [05:54:30]Sock 9.Close socket [05:54:30]Sock 9.Thread stoped [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:54]accept exits with 8 [05:55:54]New connection [05:55:54]New thread 3066981732 created [05:55:54]Thread 3066838372 joined [05:55:54]Waiting for new connection... [05:55:54] Sock 8.Parse request [05:55:54]Sock 8.Check first char [05:55:54]Sock 8.First char is OK [05:55:54]request: POST /json_proto HTTP/1.0 [05:55:54]Method: POST [05:55:54]URL: /json_proto [05:55:54]Method is POST - this is cgi request [05:55:54]url: /json_proto [05:55:54]query_string will be loaded in cgi processing [05:55:54]execute_cgi json_proto POST (null) [05:55:54]execute_cgi path=json_proto method=POST [05:55:54]POST find Content-Length [05:55:54]Host: 172.17.41.136:8080 [05:55:54]Content-Length: 1055 [05:55:54]Content-Type: application/json [05:55:54] [05:55:54]POST finish read [05:55:54]Found Content-Length = 1055 [05:55:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343772", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:55:54]execute_script... [05:55:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343772", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:55:54]POST & json_proto [05:55:54]process_json_proto [05:55:54]json parsed OK: [05:55:54]protocol is kg_v1.0 [05:55:54]action value=close_receipt [05:55:54]process_action close_receipt [05:55:54]cmd_close_receipt [05:55:54]MH_GetDate [05:55:54]Write to MH i2c: F0 00 00 BA 00 A9 [05:55:54]Write i2c OK [05:55:54]MH_I2C_Read... [05:55:54]Read from MH i2c: F0 [05:55:54]MH_I2C_Read... [05:55:54]Read from MH i2c: F0 09 00 [05:55:54]MH_I2C_Read... [05:55:54]Read from MH i2c: F0 09 00 BA 00 00 6B B1 EF 66 1B D0 5A 64 CC [05:55:54]GetLastDocTimeStamp 1726984466 [05:55:54]current date 1726984555 [05:55:54]FM_GetShiftState [05:55:54]SAM_PROTO_GetShiftState [05:55:54]wFMCommunicate request_size=4 [05:55:54]MH_SAM_APDU [05:55:54]CAPDU: 80 13 01 00 [05:55:54]Write to MH i2c: E2 08 00 BB 00 80 13 01 00 00 00 00 00 38 [05:55:54]Write i2c OK [05:55:54]MH_I2C_Read... [05:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:55:54]Read from MH i2c: E2 [05:55:54]MH_I2C_Read... [05:55:54]Read from MH i2c: E2 0E 00 [05:55:54]MH_I2C_Read... [05:55:54]Read from MH i2c: E2 0E 00 BB 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 51 [05:55:54]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [05:55:54]wFMCommunicate OK [05:55:54]SAM_PROTO_GetShiftState done [05:55:54]FM_GetShiftState done [05:55:54]opened in 1726965840 [05:55:54]opened+sec_in_day 1727052240 [05:55:54]quantity*price = 12500 [05:55:54]sum+1 = 12501 [05:55:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.04 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 31 22.09.2024 05:55 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115313 ФПД: 45455025024304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T055555&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115313&fm=45455025024304&tin=02508201610067®Number=0000000000091831&sum=23000 0 [05:55:55]StoreToDocumentArchive [05:55:55]shift 471 fd 115313 [05:55:55]save to /storage/0471/doc_00115313 [05:55:55]save last doc name /storage/0471/doc_00115313 to /storage/kkm_last_doc_name [05:55:55]save OK [05:55:55]Clear old archive folders... [05:55:55]ProcessDocumentItem done err = 0, tmpTLVsize=441 [05:55:55]tlvbuf is 017A0BB0 [05:55:55]SAM_PROTO_ClearQueue [05:55:55]wFMCommunicate request_size=4 [05:55:55]MH_SAM_APDU [05:55:55]CAPDU: 80 09 00 00 [05:55:55]Write to MH i2c: E2 08 00 C8 00 80 09 00 00 00 00 00 00 3A [05:55:55]Write i2c OK [05:55:55]MH_I2C_Read... [05:55:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:55:55]Read from MH i2c: E2 [05:55:55]MH_I2C_Read... [05:55:55]Read from MH i2c: E2 03 00 [05:55:55]MH_I2C_Read... [05:55:55]Read from MH i2c: E2 03 00 C8 00 00 90 00 3C [05:55:55]RAPDU: 90 00 [05:55:55]wFMCommunicate OK [05:55:55]SAM_PROTO_ClearQueue done [05:55:55]KKMCreateOFDPacket [05:55:55]OFDProtocolAddRootSTLVToBuf [05:55:55]FM_MakeSignedData [05:55:55]FM_MakeSignedData [05:55:55]SAM_PROTO_SignData [05:55:55]wFMCommunicate request_size=4 [05:55:55]MH_SAM_APDU [05:55:55]CAPDU: 80 0D 01 02 [05:55:55]Write to MH i2c: E2 08 00 C9 00 80 0D 01 02 00 00 00 00 42 [05:55:55]Write i2c OK [05:55:55]MH_I2C_Read... [05:55:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:55:56]Read from MH i2c: E2 [05:55:56]MH_I2C_Read... [05:55:56]Read from MH i2c: E2 03 00 [05:55:56]MH_I2C_Read... [05:55:56]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [05:55:56]RAPDU: 90 00 [05:55:56]wFMCommunicate OK [05:55:56]wFMCommunicate request_size=255 [05:55:56]MH_SAM_APDU [05:55:56]CAPDU: 80 0D 02 02 FA 03 00 B9 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 [05:55:56]Write to MH i2c: E2 02 01 CA 00 80 0D 02 02 FA 00 03 00 B9 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 00 00 D8 [05:55:56]Write i2c OK [05:55:56]MH_I2C_Read... [05:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:55:56]Read from MH i2c: E2 [05:55:56]MH_I2C_Read... [05:55:56]Read from MH i2c: E2 03 00 [05:55:56]MH_I2C_Read... [05:55:56]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [05:55:56]RAPDU: 90 00 [05:55:56]wFMCommunicate OK [05:55:56]wFMCommunicate request_size=200 [05:55:56]MH_SAM_APDU [05:55:56]CAPDU: 80 0D 02 02 C3 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 6B B1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 71 C2 01 00 35 04 06 00 29 57 52 9E AD 30 [05:55:56]Write to MH i2c: E2 CB 00 CB 00 80 0D 02 02 C3 00 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 6B B1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 71 C2 01 00 35 04 06 00 29 57 52 9E AD 30 00 00 D6 [05:55:56]Write i2c OK [05:55:56]MH_I2C_Read... [05:55:56]Read from MH i2c: E2 [05:55:56]MH_I2C_Read... [05:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:55:56]Read from MH i2c: E2 03 00 [05:55:56]MH_I2C_Read... [05:55:56]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [05:55:56]RAPDU: 90 00 [05:55:56]wFMCommunicate OK [05:55:56]wFMCommunicate request_size=4 [05:55:56]MH_SAM_APDU [05:55:56]CAPDU: 80 0D 03 02 [05:55:56]Write to MH i2c: E2 08 00 CC 00 80 0D 03 02 00 00 00 00 47 [05:55:56]Write i2c OK [05:55:56]MH_I2C_Read... [05:55:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:55:56]Read from MH i2c: E2 [05:55:56]MH_I2C_Read... [05:55:56]Read from MH i2c: E2 0B 00 [05:55:56]MH_I2C_Read... [05:55:56]Read from MH i2c: E2 0B 00 CC 00 00 6B 99 51 6F A0 09 CA F5 90 00 74 [05:55:56]RAPDU: 6B 99 51 6F A0 09 CA F5 90 00 [05:55:56]wFMCommunicate OK [05:55:56]SAM_PROTO_SignData done [05:55:56]FM_MakeSignedData done [05:55:56]CreateOFDProtocolMessage [05:55:56]wFMCommunicate request_size=4 [05:55:56]MH_SAM_APDU [05:55:56]CAPDU: 80 11 00 00 [05:55:56]Write to MH i2c: E2 08 00 CD 00 80 11 00 00 00 00 00 00 47 [05:55:56]Write i2c OK [05:55:56]MH_I2C_Read... [05:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:55:56]Read from MH i2c: E2 [05:55:56]MH_I2C_Read... [05:55:56]Read from MH i2c: E2 17 00 [05:55:56]MH_I2C_Read... [05:55:56]Read from MH i2c: E2 17 00 CD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 95 [05:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:55:56]wFMCommunicate OK [05:55:56]CreateOFDProtocolMessage done [05:55:56]OFDSenderStorePacket 115313 [05:55:56]StoreOFDPacket docnum=115313 [05:55:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 CD 01 00 00 41 1A C5 01 A7 49 5A 03 01 00 03 00 B9 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 6B B1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 71 C2 01 00 35 04 06 00 29 57 52 9E AD 30 6B 99 51 6F A0 09 CA F5 [05:55:56]CheckFolder [05:55:56]dirname=/storage/ofd_packets [05:55:56]CheckFolder done [05:55:56]ProducePacketName [05:55:56]name=ofd_packets/00115313 [05:55:56]NVStorageSaveData ofd_packets/00115313 [05:55:56]File name is /storage/ofd_packets/00115313 [05:55:56]Write 491 bytes [05:55:56]NVStorageSaveData done [05:55:56]OFDSenderStorePacket done [05:55:56]KKMCreateOFDPacket done [05:55:56]NVStorageSaveData kkm_last_timestamp [05:55:56]File name is /storage/kkm_last_timestamp [05:55:56]Write 4 bytes [05:55:56]NVStorageSaveData done [05:55:56]ExternCall_PrintAddStr [05:55:56]wPrintStart [05:55:56]Write to MH i2c: 01 00 00 CE 00 CE [05:55:56]Write i2c OK [05:55:56]MH_I2C_Read... [05:55:56]Read from MH i2c: 01 [05:55:56]MH_I2C_Read... [05:55:56]Read from MH i2c: 01 07 00 [05:55:56]MH_I2C_Read... [05:55:56]Read from MH i2c: 01 07 00 CE 00 00 00 00 00 00 FF 0F E3 [05:55:56]RasterBufferAndPrint [05:55:56]line Счет N : (3)343772 [05:55:56]line ИНН: 02508201610067 [05:55:56]line Контрольно-Кассовый Чек [05:55:56]line ПРОДАЖА [05:55:56]line Товар: 4870202521216 [05:55:56]line Напиток MAXI чай 1,2 зел.лимон (новый) [05:55:56]line 1.000 * 125.00 [05:55:56]line = 125.00 [05:55:56]line НДС 12% НСП 1% [05:55:56]line > о реализуемом товаре [05:55:56]line Товар: 5449000027474 [05:55:56]line Напиток FuzeTea зел чай манго,ромашка 1л [05:55:56]line 1.000 * 105.00 [05:55:56]line = 105.00 [05:55:56]line НДС 12% НСП 1% [05:55:56]line > о реализуемом товаре [05:55:56]line ИТОГО: 230.00 [05:55:56]line НСП 1% : 2.04 [05:55:56]line НДС 12% : 24.42 [05:55:56]line Наличными: 230.00 [05:55:56]line Безнал.: 0.00 [05:55:56]line Место: АЗС № 90 "Партнер Нефть" [05:55:56]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [05:55:56]line СНО: Общий режим [05:55:56]line Чек 31 22.09.2024 05:55 [05:55:56]line Смена: 471 ФФД: 1.0 [05:55:56]line ЗНМ: 0300000120 [05:55:56]line РНМ: 0000000000091831 [05:55:56]line Версия ККМ: 001 [05:55:56]line ФМ: 0000000000871830 [05:55:56]line ФД: 115313 [05:55:56]line ФПД: 45455025024304 [05:55:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T055555&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115313&fm=45455025024304&tin=02508201610067®Number=0000000000091831&sum=23000 [05:55:56]line 0 [05:55:56]OFD Sender: Processing packet 115313 [packets to send 481, broken 480] [05:55:56]ProducePacketName [05:55:56]name=ofd_packets/00115313 [05:55:56]OFD Sender: To server: pG, [05:55:56]CommunicateWithHost lk.salyk.kg:30040 [05:55:56]ConnectInit lk.salyk.kg [05:55:56]written 0, free lines is 4095 [05:55:57]Connected sock=10 [05: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 31 38 33 30 CD 01 00 00 41 1A C5 01 A7 49 5A 03 01 00 03 00 B9 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 6B B1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 71 C2 01 00 35 04 06 00 29 57 52 9E AD 30 6B 99 51 6F A0 09 CA F5 [05:55:57]Write to MH i2c: 01 00 00 FD 00 FD [05:55:57]Write i2c OK [05:55:57]MH_I2C_Read... [05:55:57]Read from MH i2c: 01 [05:55:57]MH_I2C_Read... [05:55:57]Read from MH i2c: 01 07 00 [05:55:57]MH_I2C_Read... [05:55:57]Read from MH i2c: 01 07 00 FD 00 00 00 00 00 00 D4 0B E3 [05:55:57]RasterBufferAndPrint [05:55:57]line [05:55:57]line [05:55:57]line [05:55:57]line [05:55:57]line [05:55:57]written 0, free lines is 3032 [05:55:57]MH_Cut [05:55:57]Write to MH i2c: D1 01 00 04 01 01 D7 [05:55:57]Write i2c OK [05:55:57]MH_I2C_Read... [05:55:57]Read from MH i2c: D1 [05:55:57]MH_I2C_Read... [05:55:57]Read from MH i2c: D1 01 00 [05:55:57]MH_I2C_Read... [05:55:57]Read from MH i2c: D1 01 00 04 01 00 D6 [05:55:57]Write to MH i2c: 01 00 00 05 01 06 [05:55:57]Write i2c OK [05:55:57]MH_I2C_Read... [05:55:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 2D A5 47 00 F1 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 71 C2 01 00 F4 03 04 00 B2 56 EF 66 B6 04 01 00 00 C5 E8 A3 78 CC AF 8D 52 [05:55:57]CommunicateWithHost err = 0 [05:55:57]CheckOFDResponse [05:55:57]1017 (14) - 77093643461234 [05:55:57]1041 (16) - 0000000000871830 [05:55:57]1040 (4) - 115313 [05:55:57]1012 (4) - 21.09.2024 23:28 [05:55:57]1206 (1) - 0 [05:55:57]OFD Sender: Remove packet 115313 [05:55:57]ProducePacketName [05:55:57]name=ofd_packets/00115313 [05:55:57]NVStorageDeleteData [05:55:58]OFD Sender: No OFD packet to send [05:55:59]*** Cut start [05:55:59]*** Partial cut [05:55:59]*** CUTSNS_PIN = 1 [05:55:59]*** CUTSNS_PIN = 0 [05:55:59]*** Brake cut motor [05:55:59]Read from MH i2c: 01 [05:55:59]MH_I2C_Read... [05:55:59]*** Stop cut motor [05:55:59]*** Cut end [05:55:59]Read from MH i2c: 01 07 00 [05:55:59]MH_I2C_Read... [05:55:59]Read from MH i2c: 01 07 00 05 01 00 00 00 00 00 FF 0F 1B [05:55:59]process_action close_receipt done [05:55:59]requested_data is exist [05:55:59]produce_requested_data [05:55:59]requested_item fm.sn is exist - process it [05:55:59]wFMCommunicate request_size=4 [05:55:59]MH_SAM_APDU [05:55:59]CAPDU: 80 11 00 00 [05:55:59]Write to MH i2c: E2 08 00 06 01 80 11 00 00 00 00 00 00 81 [05:55:59]Write i2c OK [05:55:59]MH_I2C_Read... [05:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:55:59]Read from MH i2c: E2 [05:55:59]MH_I2C_Read... [05:55:59]Read from MH i2c: E2 17 00 [05:55:59]MH_I2C_Read... [05:55:59]Read from MH i2c: E2 17 00 06 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CF [05:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:55:59]wFMCommunicate OK [05:55:59]requested_item fd.num is exist - process it [05:55:59]SAM_PROTO_GetFieldsCounters [05:55:59]wFMCommunicate request_size=4 [05:55:59]MH_SAM_APDU [05:55:59]CAPDU: 80 13 00 00 [05:55:59]Write to MH i2c: E2 08 00 07 01 80 13 00 00 00 00 00 00 84 [05:55:59]Write i2c OK [05:55:59]MH_I2C_Read... [05:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:55:59]Read from MH i2c: E2 [05:55:59]MH_I2C_Read... [05:55:59]Read from MH i2c: E2 62 00 [05:55:59]MH_I2C_Read... [05:55:59]Read from MH i2c: E2 62 00 07 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 71 C2 01 00 0E 04 04 00 D7 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 [05: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 71 C2 01 00 0E 04 04 00 D7 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 [05:55:59]wFMCommunicate OK [05:55:59]SAM_PROTO_GetFieldsCounters done [05:55:59]requested_item shift.num is exist - process it [05:55:59]requested_item shift.opened is exist - process it [05:55:59]req_shift_opened [05:55:59]FM_GetShiftState [05:55:59]SAM_PROTO_GetShiftState [05:55:59]wFMCommunicate request_size=4 [05:55:59]MH_SAM_APDU [05:55:59]CAPDU: 80 13 01 00 [05:55:59]Write to MH i2c: E2 08 00 08 01 80 13 01 00 00 00 00 00 86 [05:55:59]Write i2c OK [05:55:59]MH_I2C_Read... [05:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:55:59]Read from MH i2c: E2 [05:55:59]MH_I2C_Read... [05:55:59]Read from MH i2c: E2 0E 00 [05:55:59]MH_I2C_Read... [05:55:59]Read from MH i2c: E2 0E 00 08 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 9F [05:55:59]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [05:55:59]wFMCommunicate OK [05:55:59]SAM_PROTO_GetShiftState done [05:55:59]FM_GetShiftState done [05:55:59]req_shift_opened done [05:55:59]requested_item shift.open_date is exist - process it [05:55:59]req_shift_open_date [05:55:59]req_shift_open_date done [05:55:59]produce_requested_data done [05:55:59]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115313,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [05:55:59]process_action_free close_receipt [05:55:59]json_value_free [05:55:59]json_value_free done [05:55:59]process_json_proto returns [05:55:59]Send response to host [05:55:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115313,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [05:55:59]free response buf [05:55:59]execute_script done [05:55:59]execute_script returns [05:55:59]free content buf [05:55:59]Sock 8.Close socket [05:55:59]Sock 8.Thread stoped [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:19]accept exits with 9 [05:57:19]New connection [05:57:19]New thread 3066838372 created [05:57:19]Thread 3066981732 joined [05:57:19]Waiting for new connection... [05:57:19] Sock 9.Parse request [05:57:19]Sock 9.Check first char [05:57:19]Sock 9.First char is OK [05:57:19]request: POST /json_proto HTTP/1.0 [05:57:19]Method: POST [05:57:19]URL: /json_proto [05:57:19]Method is POST - this is cgi request [05:57:19]url: /json_proto [05:57:19]query_string will be loaded in cgi processing [05:57:19]execute_cgi json_proto POST (null) [05:57:19]execute_cgi path=json_proto method=POST [05:57:19]POST find Content-Length [05:57:19]Host: 172.17.41.136:8080 [05:57:19]Content-Length: 641 [05:57:19]Content-Type: application/json [05:57:19] [05:57:19]POST finish read [05:57:19]Found Content-Length = 641 [05:57:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343773", "tax_sys" : 0, "items" : [ { "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 3.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:57:19]execute_script... [05:57:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343773", "tax_sys" : 0, "items" : [ { "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 3.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:57:19]POST & json_proto [05:57:19]process_json_proto [05:57:19]json parsed OK: [05:57:19]protocol is kg_v1.0 [05:57:19]action value=close_receipt [05:57:19]process_action close_receipt [05:57:19]cmd_close_receipt [05:57:19]MH_GetDate [05:57:19]Write to MH i2c: F0 00 00 09 01 F9 [05:57:19]Write i2c OK [05:57:19]MH_I2C_Read... [05:57:19]Read from MH i2c: F0 [05:57:19]MH_I2C_Read... [05:57:19]Read from MH i2c: F0 09 00 [05:57:19]MH_I2C_Read... [05:57:19]Read from MH i2c: F0 09 00 09 01 00 BF B1 EF 66 1B D0 5A 64 70 [05:57:19]GetLastDocTimeStamp 1726984555 [05:57:19]current date 1726984639 [05:57:19]FM_GetShiftState [05:57:19]SAM_PROTO_GetShiftState [05:57:19]wFMCommunicate request_size=4 [05:57:19]MH_SAM_APDU [05:57:19]CAPDU: 80 13 01 00 [05:57:19]Write to MH i2c: E2 08 00 0A 01 80 13 01 00 00 00 00 00 88 [05:57:19]Write i2c OK [05:57:19]MH_I2C_Read... [05:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:57:19]Read from MH i2c: E2 [05:57:19]MH_I2C_Read... [05:57:19]Read from MH i2c: E2 0E 00 [05:57:19]MH_I2C_Read... [05:57:19]Read from MH i2c: E2 0E 00 0A 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A1 [05:57:19]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [05:57:19]wFMCommunicate OK [05:57:19]SAM_PROTO_GetShiftState done [05:57:19]FM_GetShiftState done [05:57:19]opened in 1726965840 [05:57:19]opened+sec_in_day 1727052240 [05:57:19]quantity*price = 9000 [05:57:19]sum+1 = 9001 [05:57:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 32 22.09.2024 05:57 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115314 ФПД: 176025892292134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T055719&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115314&fm=176025892292134&tin=02508201610067®Number=0000000000091831&sum=9000 0 [05:57:20]StoreToDocumentArchive [05:57:20]shift 471 fd 115314 [05:57:20]save to /storage/0471/doc_00115314 [05:57:20]save last doc name /storage/0471/doc_00115314 to /storage/kkm_last_doc_name [05:57:20]save OK [05:57:20]Clear old archive folders... [05:57:20]ProcessDocumentItem done err = 0, tmpTLVsize=276 [05:57:20]tlvbuf is 0178BD90 [05:57:20]SAM_PROTO_ClearQueue [05:57:20]wFMCommunicate request_size=4 [05:57:20]MH_SAM_APDU [05:57:20]CAPDU: 80 09 00 00 [05:57:20]Write to MH i2c: E2 08 00 17 01 80 09 00 00 00 00 00 00 8A [05:57:20]Write i2c OK [05:57:20]MH_I2C_Read... [05:57:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:57:20]Read from MH i2c: E2 [05:57:20]MH_I2C_Read... [05:57:20]Read from MH i2c: E2 03 00 [05:57:20]MH_I2C_Read... [05:57:20]Read from MH i2c: E2 03 00 17 01 00 90 00 8C [05:57:20]RAPDU: 90 00 [05:57:20]wFMCommunicate OK [05:57:20]SAM_PROTO_ClearQueue done [05:57:20]KKMCreateOFDPacket [05:57:20]OFDProtocolAddRootSTLVToBuf [05:57:20]FM_MakeSignedData [05:57:20]FM_MakeSignedData [05:57:20]SAM_PROTO_SignData [05:57:20]wFMCommunicate request_size=4 [05:57:20]MH_SAM_APDU [05:57:20]CAPDU: 80 0D 01 02 [05:57:20]Write to MH i2c: E2 08 00 18 01 80 0D 01 02 00 00 00 00 92 [05:57:20]Write i2c OK [05:57:20]MH_I2C_Read... [05:57:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:57:20]Read from MH i2c: E2 [05:57:20]MH_I2C_Read... [05:57:20]Read from MH i2c: E2 03 00 [05:57:20]MH_I2C_Read... [05:57:20]Read from MH i2c: E2 03 00 18 01 00 90 00 8D [05:57:20]RAPDU: 90 00 [05:57:20]wFMCommunicate OK [05:57:20]wFMCommunicate request_size=255 [05:57:20]MH_SAM_APDU [05:57:20]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 BF B1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 [05:57:20]Write to MH i2c: E2 02 01 19 01 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 BF B1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 00 00 24 [05:57:20]Write i2c OK [05:57:20]MH_I2C_Read... [05:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:57:21]Read from MH i2c: E2 [05:57:21]MH_I2C_Read... [05:57:21]Read from MH i2c: E2 03 00 [05:57:21]MH_I2C_Read... [05:57:21]Read from MH i2c: E2 03 00 19 01 00 90 00 8E [05:57:21]RAPDU: 90 00 [05:57:21]wFMCommunicate OK [05:57:21]wFMCommunicate request_size=35 [05:57:21]MH_SAM_APDU [05:57:21]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 72 C2 01 00 35 04 06 00 A0 18 38 C8 06 26 [05:57:21]Write to MH i2c: E2 26 00 1A 01 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 72 C2 01 00 35 04 06 00 A0 18 38 C8 06 26 00 00 9C [05:57:21]Write i2c OK [05:57:21]MH_I2C_Read... [05:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:57:21]Read from MH i2c: E2 [05:57:21]MH_I2C_Read... [05:57:21]Read from MH i2c: E2 03 00 [05:57:21]MH_I2C_Read... [05:57:21]Read from MH i2c: E2 03 00 1A 01 00 90 00 8F [05:57:21]RAPDU: 90 00 [05:57:21]wFMCommunicate OK [05:57:21]wFMCommunicate request_size=4 [05:57:21]MH_SAM_APDU [05:57:21]CAPDU: 80 0D 03 02 [05:57:21]Write to MH i2c: E2 08 00 1B 01 80 0D 03 02 00 00 00 00 97 [05:57:21]Write i2c OK [05:57:21]MH_I2C_Read... [05:57:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:57:21]Read from MH i2c: E2 [05:57:21]MH_I2C_Read... [05:57:21]Read from MH i2c: E2 0B 00 [05:57:21]MH_I2C_Read... [05:57:21]Read from MH i2c: E2 0B 00 1B 01 00 B4 1A 32 8E A2 5E 7F F0 90 00 95 [05:57:21]RAPDU: B4 1A 32 8E A2 5E 7F F0 90 00 [05:57:21]wFMCommunicate OK [05:57:21]SAM_PROTO_SignData done [05:57:21]FM_MakeSignedData done [05:57:21]CreateOFDProtocolMessage [05:57:21]wFMCommunicate request_size=4 [05:57:21]MH_SAM_APDU [05:57:21]CAPDU: 80 11 00 00 [05:57:21]Write to MH i2c: E2 08 00 1C 01 80 11 00 00 00 00 00 00 97 [05:57:21]Write i2c OK [05:57:21]MH_I2C_Read... [05:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:57:21]Read from MH i2c: E2 [05:57:21]MH_I2C_Read... [05:57:21]Read from MH i2c: E2 17 00 [05:57:21]MH_I2C_Read... [05:57:21]Read from MH i2c: E2 17 00 1C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E5 [05:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:57:21]wFMCommunicate OK [05:57:21]CreateOFDProtocolMessage done [05:57:21]OFDSenderStorePacket 115314 [05:57:21]StoreOFDPacket docnum=115314 [05:57:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 FA 50 20 01 E1 D1 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 BF B1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 72 C2 01 00 35 04 06 00 A0 18 38 C8 06 26 B4 1A 32 8E A2 5E 7F F0 [05:57:21]CheckFolder [05:57:21]dirname=/storage/ofd_packets [05:57:21]CheckFolder done [05:57:21]ProducePacketName [05:57:21]name=ofd_packets/00115314 [05:57:21]NVStorageSaveData ofd_packets/00115314 [05:57:21]File name is /storage/ofd_packets/00115314 [05:57:21]Write 326 bytes [05:57:21]NVStorageSaveData done [05:57:21]OFDSenderStorePacket done [05:57:21]KKMCreateOFDPacket done [05:57:21]NVStorageSaveData kkm_last_timestamp [05:57:21]File name is /storage/kkm_last_timestamp [05:57:21]Write 4 bytes [05:57:21]NVStorageSaveData done [05:57:21]ExternCall_PrintAddStr [05:57:21]wPrintStart [05:57:21]Write to MH i2c: 01 00 00 1D 01 1E [05:57:21]Write i2c OK [05:57:21]MH_I2C_Read... [05:57:21]Read from MH i2c: 01 [05:57:21]MH_I2C_Read... [05:57:21]Read from MH i2c: 01 07 00 [05:57:21]MH_I2C_Read... [05:57:21]Read from MH i2c: 01 07 00 1D 01 00 00 00 00 00 FF 0F 33 [05:57:21]RasterBufferAndPrint [05:57:21]line Счет N : (3)343773 [05:57:21]line ИНН: 02508201610067 [05:57:21]line Контрольно-Кассовый Чек [05:57:21]line ПРОДАЖА [05:57:21]line Товар: 2000032800010 [05:57:21]line Сочник DC творог 75 г [05:57:21]line 3.000 * 30.00 [05:57:21]line = 90.00 [05:57:21]line НДС 12% НСП 1% [05:57:21]line > о реализуемом товаре [05:57:21]line ИТОГО: 90.00 [05:57:21]line НСП 1% : 0.80 [05:57:21]line НДС 12% : 9.56 [05:57:21]line Наличными: 90.00 [05:57:21]line Безнал.: 0.00 [05:57:21]line Место: АЗС № 90 "Партнер Нефть" [05:57:21]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [05:57:21]line СНО: Общий режим [05:57:21]line Чек 32 22.09.2024 05:57 [05:57:21]line Смена: 471 ФФД: 1.0 [05:57:21]line ЗНМ: 0300000120 [05:57:21]line РНМ: 0000000000091831 [05:57:21]line Версия ККМ: 001 [05:57:21]line ФМ: 0000000000871830 [05:57:21]line ФД: 115314 [05:57:21]line ФПД: 176025892292134 [05:57:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T055719&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115314&fm=176025892292134&tin=02508201610067®Number=0000000000091831&sum=9000 [05:57:21]line 0 [05:57:21]OFD Sender: Processing packet 115314 [packets to send 481, broken 480] [05:57:21]ProducePacketName [05:57:21]name=ofd_packets/00115314 [05:57:21]OFD Sender: To server: pG, [05:57:21]CommunicateWithHost lk.salyk.kg:30040 [05:57:21]ConnectInit lk.salyk.kg [05:57:21]written 0, free lines is 4095 [05:57:21]Connected sock=11 [05:57:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 FA 50 20 01 E1 D1 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 BF B1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 72 C2 01 00 35 04 06 00 A0 18 38 C8 06 26 B4 1A 32 8E A2 5E 7F F0 [05:57:22]Write to MH i2c: 01 00 00 44 01 45 [05:57:22]Write i2c OK [05:57:22]MH_I2C_Read... [05:57:22]Read from MH i2c: 01 [05:57:22]MH_I2C_Read... [05:57:22]Read from MH i2c: 01 07 00 [05:57:22]MH_I2C_Read... [05:57:22]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 87 0C DF [05:57:22]RasterBufferAndPrint [05:57:22]line [05:57:22]line [05:57:22]line [05:57:22]line [05:57:22]line [05:57:22]written 0, free lines is 3211 [05:57:22]MH_Cut [05:57:22]Write to MH i2c: D1 01 00 4B 01 01 1E [05:57:22]Write i2c OK [05:57:22]MH_I2C_Read... [05:57:22]Read from MH i2c: D1 [05:57:22]MH_I2C_Read... [05:57:22]Read from MH i2c: D1 01 00 [05:57:22]MH_I2C_Read... [05:57:22]Read from MH i2c: D1 01 00 4B 01 00 1D [05:57:22]Write to MH i2c: 01 00 00 4C 01 4D [05:57:22]Write i2c OK [05:57:22]MH_I2C_Read... [05:57:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 DD 35 47 00 D0 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 72 C2 01 00 F4 03 04 00 06 57 EF 66 B6 04 01 00 00 3D BA F1 01 A1 36 EA 89 [05:57:22]CommunicateWithHost err = 0 [05:57:22]CheckOFDResponse [05:57:22]1017 (14) - 77093643461234 [05:57:22]1041 (16) - 0000000000871830 [05:57:22]1040 (4) - 115314 [05:57:22]1012 (4) - 21.09.2024 23:30 [05:57:22]1206 (1) - 0 [05:57:22]OFD Sender: Remove packet 115314 [05:57:22]ProducePacketName [05:57:22]name=ofd_packets/00115314 [05:57:22]NVStorageDeleteData [05:57:22]OFD Sender: No OFD packet to send [05:57:23]*** Cut start [05:57:23]*** Partial cut [05:57:23]*** CUTSNS_PIN = 1 [05:57:23]*** CUTSNS_PIN = 0 [05:57:23]*** Brake cut motor [05:57:23]Read from MH i2c: 01 [05:57:23]MH_I2C_Read... [05:57:23]*** Stop cut motor [05:57:23]*** Cut end [05:57:23]Read from MH i2c: 01 07 00 [05:57:23]MH_I2C_Read... [05:57:23]Read from MH i2c: 01 07 00 4C 01 00 00 00 00 00 FF 0F 62 [05:57:23]process_action close_receipt done [05:57:23]requested_data is exist [05:57:23]produce_requested_data [05:57:23]requested_item fm.sn is exist - process it [05:57:23]wFMCommunicate request_size=4 [05:57:23]MH_SAM_APDU [05:57:23]CAPDU: 80 11 00 00 [05:57:23]Write to MH i2c: E2 08 00 4D 01 80 11 00 00 00 00 00 00 C8 [05:57:23]Write i2c OK [05:57:23]MH_I2C_Read... [05:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:57:24]Read from MH i2c: E2 [05:57:24]MH_I2C_Read... [05:57:24]Read from MH i2c: E2 17 00 [05:57:24]MH_I2C_Read... [05:57:24]Read from MH i2c: E2 17 00 4D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 16 [05:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:57:24]wFMCommunicate OK [05:57:24]requested_item fd.num is exist - process it [05:57:24]SAM_PROTO_GetFieldsCounters [05:57:24]wFMCommunicate request_size=4 [05:57:24]MH_SAM_APDU [05:57:24]CAPDU: 80 13 00 00 [05:57:24]Write to MH i2c: E2 08 00 4E 01 80 13 00 00 00 00 00 00 CB [05:57:24]Write i2c OK [05:57:24]MH_I2C_Read... [05:57:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:57:24]Read from MH i2c: E2 [05:57:24]MH_I2C_Read... [05:57:24]Read from MH i2c: E2 62 00 [05:57:24]MH_I2C_Read... [05:57:24]Read from MH i2c: E2 62 00 4E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 72 C2 01 00 0E 04 04 00 D7 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 51 [05:57:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 72 C2 01 00 0E 04 04 00 D7 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 [05:57:24]wFMCommunicate OK [05:57:24]SAM_PROTO_GetFieldsCounters done [05:57:24]requested_item shift.num is exist - process it [05:57:24]requested_item shift.opened is exist - process it [05:57:24]req_shift_opened [05:57:24]FM_GetShiftState [05:57:24]SAM_PROTO_GetShiftState [05:57:24]wFMCommunicate request_size=4 [05:57:24]MH_SAM_APDU [05:57:24]CAPDU: 80 13 01 00 [05:57:24]Write to MH i2c: E2 08 00 4F 01 80 13 01 00 00 00 00 00 CD [05:57:24]Write i2c OK [05:57:24]MH_I2C_Read... [05:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:57:24]Read from MH i2c: E2 [05:57:24]MH_I2C_Read... [05:57:24]Read from MH i2c: E2 0E 00 [05:57:24]MH_I2C_Read... [05:57:24]Read from MH i2c: E2 0E 00 4F 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 E6 [05:57:24]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [05:57:24]wFMCommunicate OK [05:57:24]SAM_PROTO_GetShiftState done [05:57:24]FM_GetShiftState done [05:57:24]req_shift_opened done [05:57:24]requested_item shift.open_date is exist - process it [05:57:24]req_shift_open_date [05:57:24]req_shift_open_date done [05:57:24]produce_requested_data done [05:57:24]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115314,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [05:57:24]process_action_free close_receipt [05:57:24]json_value_free [05:57:24]json_value_free done [05:57:24]process_json_proto returns [05:57:24]Send response to host [05:57:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115314,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [05:57:24]free response buf [05:57:24]execute_script done [05:57:24]execute_script returns [05:57:24]free content buf [05:57:24]Sock 9.Close socket [05:57:24]Sock 9.Thread stoped [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:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]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:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:27]accept exits with 8 [06:35:27]New connection [06:35:27]New thread 3066981732 created [06:35:27]Thread 3066838372 joined [06:35:27]Waiting for new connection... [06:35:27] Sock 8.Parse request [06:35:27]Sock 8.Check first char [06:35:27]Sock 8.First char is OK [06:35:27]request: POST /json_proto HTTP/1.0 [06:35:27]Method: POST [06:35:27]URL: /json_proto [06:35:27]Method is POST - this is cgi request [06:35:27]url: /json_proto [06:35:27]query_string will be loaded in cgi processing [06:35:27]execute_cgi json_proto POST (null) [06:35:27]execute_cgi path=json_proto method=POST [06:35:27]POST find Content-Length [06:35:27]Host: 172.17.41.136:8080 [06:35:27]Content-Length: 1054 [06:35:27]Content-Type: application/json [06:35:27] [06:35:27]POST finish read [06:35:27]Found Content-Length = 1054 [06:35:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343774", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4036021101200", "name": "MM Mannol Classic SAE 10W40 1\u043B", "price" : 720.00, "quantity" : 1.000, "sum" : 720.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" : 860.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:35:27]execute_script... [06:35:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343774", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4036021101200", "name": "MM Mannol Classic SAE 10W40 1\u043B", "price" : 720.00, "quantity" : 1.000, "sum" : 720.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" : 860.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:35:27]POST & json_proto [06:35:27]process_json_proto [06:35:27]json parsed OK: [06:35:27]protocol is kg_v1.0 [06:35:27]action value=close_receipt [06:35:27]process_action close_receipt [06:35:27]cmd_close_receipt [06:35:27]MH_GetDate [06:35:27]Write to MH i2c: F0 00 00 50 01 40 [06:35:27]Write i2c OK [06:35:27]MH_I2C_Read... [06:35:27]Read from MH i2c: F0 [06:35:27]MH_I2C_Read... [06:35:27]Read from MH i2c: F0 09 00 [06:35:27]MH_I2C_Read... [06:35:27]Read from MH i2c: F0 09 00 50 01 00 B0 BA EF 66 1B D0 5A 64 B1 [06:35:27]GetLastDocTimeStamp 1726984639 [06:35:27]current date 1726986928 [06:35:27]FM_GetShiftState [06:35:27]SAM_PROTO_GetShiftState [06:35:27]wFMCommunicate request_size=4 [06:35:27]MH_SAM_APDU [06:35:27]CAPDU: 80 13 01 00 [06:35:27]Write to MH i2c: E2 08 00 51 01 80 13 01 00 00 00 00 00 CF [06:35:27]Write i2c OK [06:35:27]MH_I2C_Read... [06:35:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:27]Read from MH i2c: E2 [06:35:27]MH_I2C_Read... [06:35:27]Read from MH i2c: E2 0E 00 [06:35:27]MH_I2C_Read... [06:35:27]Read from MH i2c: E2 0E 00 51 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 E8 [06:35:27]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [06:35:27]wFMCommunicate OK [06:35:27]SAM_PROTO_GetShiftState done [06:35:27]FM_GetShiftState done [06:35:27]opened in 1726965840 [06:35:27]opened+sec_in_day 1727052240 [06:35:27]quantity*price = 14000 [06:35:27]sum+1 = 14001 [06:35:27]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4036021101200 MM Mannol Classic SAE 10W40 1л 1.000 * 720.00 = 720.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 860.00 НСП 1% : 7.61 НДС 12% : 91.33 Наличными: 0.00 Безнал.: 860.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 33 22.09.2024 06:35 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115315 ФПД: 171235409216912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T063528&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115315&fm=171235409216912&tin=02508201610067®Number=0000000000091831&sum=86000 0 [06:35:28]StoreToDocumentArchive [06:35:28]shift 471 fd 115315 [06:35:28]save to /storage/0471/doc_00115315 [06:35:28]save last doc name /storage/0471/doc_00115315 to /storage/kkm_last_doc_name [06:35:28]save OK [06:35:28]Clear old archive folders... [06:35:28]ProcessDocumentItem done err = 0, tmpTLVsize=396 [06:35:28]tlvbuf is 017989C0 [06:35:28]SAM_PROTO_ClearQueue [06:35:28]wFMCommunicate request_size=4 [06:35:28]MH_SAM_APDU [06:35:28]CAPDU: 80 09 00 00 [06:35:28]Write to MH i2c: E2 08 00 5E 01 80 09 00 00 00 00 00 00 D1 [06:35:28]Write i2c OK [06:35:28]MH_I2C_Read... [06:35:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:35:29]Read from MH i2c: E2 [06:35:29]MH_I2C_Read... [06:35:29]Read from MH i2c: E2 03 00 [06:35:29]MH_I2C_Read... [06:35:29]Read from MH i2c: E2 03 00 5E 01 00 90 00 D3 [06:35:29]RAPDU: 90 00 [06:35:29]wFMCommunicate OK [06:35:29]SAM_PROTO_ClearQueue done [06:35:29]KKMCreateOFDPacket [06:35:29]OFDProtocolAddRootSTLVToBuf [06:35:29]FM_MakeSignedData [06:35:29]FM_MakeSignedData [06:35:29]SAM_PROTO_SignData [06:35:29]wFMCommunicate request_size=4 [06:35:29]MH_SAM_APDU [06:35:29]CAPDU: 80 0D 01 02 [06:35:29]Write to MH i2c: E2 08 00 5F 01 80 0D 01 02 00 00 00 00 D9 [06:35:29]Write i2c OK [06:35:29]MH_I2C_Read... [06:35:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:35:29]Read from MH i2c: E2 [06:35:29]MH_I2C_Read... [06:35:29]Read from MH i2c: E2 03 00 [06:35:29]MH_I2C_Read... [06:35:29]Read from MH i2c: E2 03 00 5F 01 00 90 00 D4 [06:35:29]RAPDU: 90 00 [06:35:29]wFMCommunicate OK [06:35:29]wFMCommunicate request_size=255 [06:35:29]MH_SAM_APDU [06:35:29]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 31 32 30 30 06 04 1F 00 4D 4D 20 4D 61 6E 6E 6F 6C 20 43 6C 61 73 73 69 63 20 53 41 45 20 31 30 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 19 01 00 00 00 13 04 06 00 40 19 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 [06:35:29]Write to MH i2c: E2 02 01 60 01 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 31 32 30 30 06 04 1F 00 4D 4D 20 4D 61 6E 6E 6F 6C 20 43 6C 61 73 73 69 63 20 53 41 45 20 31 30 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 19 01 00 00 00 13 04 06 00 40 19 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 00 00 11 [06:35:29]Write i2c OK [06:35:29]MH_I2C_Read... [06:35:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:29]Read from MH i2c: E2 [06:35:29]MH_I2C_Read... [06:35:29]Read from MH i2c: E2 03 00 [06:35:29]MH_I2C_Read... [06:35:29]Read from MH i2c: E2 03 00 60 01 00 90 00 D5 [06:35:29]RAPDU: 90 00 [06:35:29]wFMCommunicate OK [06:35:29]wFMCommunicate request_size=155 [06:35:29]MH_SAM_APDU [06:35:29]CAPDU: 80 0D 02 02 96 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 AD 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 4F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B0 BA EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 73 C2 01 00 35 04 06 00 9B BC D9 BD 45 90 [06:35:29]Write to MH i2c: E2 9E 00 61 01 80 0D 02 02 96 00 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 AD 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 4F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B0 BA EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 73 C2 01 00 35 04 06 00 9B BC D9 BD 45 90 00 00 F5 [06:35:29]Write i2c OK [06:35:29]MH_I2C_Read... [06:35:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:29]Read from MH i2c: E2 [06:35:29]MH_I2C_Read... [06:35:29]Read from MH i2c: E2 03 00 [06:35:29]MH_I2C_Read... [06:35:29]Read from MH i2c: E2 03 00 61 01 00 90 00 D6 [06:35:29]RAPDU: 90 00 [06:35:29]wFMCommunicate OK [06:35:29]wFMCommunicate request_size=4 [06:35:29]MH_SAM_APDU [06:35:29]CAPDU: 80 0D 03 02 [06:35:29]Write to MH i2c: E2 08 00 62 01 80 0D 03 02 00 00 00 00 DE [06:35:29]Write i2c OK [06:35:29]MH_I2C_Read... [06:35:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:35:29]Read from MH i2c: E2 [06:35:29]MH_I2C_Read... [06:35:29]Read from MH i2c: E2 0B 00 [06:35:29]MH_I2C_Read... [06:35:29]Read from MH i2c: E2 0B 00 62 01 00 74 56 EA E9 C4 86 04 AD 90 00 77 [06:35:29]RAPDU: 74 56 EA E9 C4 86 04 AD 90 00 [06:35:29]wFMCommunicate OK [06:35:29]SAM_PROTO_SignData done [06:35:29]FM_MakeSignedData done [06:35:29]CreateOFDProtocolMessage [06:35:29]wFMCommunicate request_size=4 [06:35:29]MH_SAM_APDU [06:35:29]CAPDU: 80 11 00 00 [06:35:29]Write to MH i2c: E2 08 00 63 01 80 11 00 00 00 00 00 00 DE [06:35:29]Write i2c OK [06:35:29]MH_I2C_Read... [06:35:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:29]Read from MH i2c: E2 [06:35:29]MH_I2C_Read... [06:35:29]Read from MH i2c: E2 17 00 [06:35:29]MH_I2C_Read... [06:35:29]Read from MH i2c: E2 17 00 63 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2C [06:35:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [06:35:29]wFMCommunicate OK [06:35:29]CreateOFDProtocolMessage done [06:35:29]OFDSenderStorePacket 115315 [06:35:29]StoreOFDPacket docnum=115315 [06:35:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A0 01 00 00 3C 71 98 01 0F 1D 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 31 32 30 30 06 04 1F 00 4D 4D 20 4D 61 6E 6E 6F 6C 20 43 6C 61 73 73 69 63 20 53 41 45 20 31 30 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 19 01 00 00 00 13 04 06 00 40 19 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 AD 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 4F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B0 BA EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 73 C2 01 00 35 04 06 00 9B BC D9 BD 45 90 74 56 EA E9 C4 86 04 AD [06:35:29]CheckFolder [06:35:29]dirname=/storage/ofd_packets [06:35:29]CheckFolder done [06:35:29]ProducePacketName [06:35:29]name=ofd_packets/00115315 [06:35:29]NVStorageSaveData ofd_packets/00115315 [06:35:29]File name is /storage/ofd_packets/00115315 [06:35:29]Write 446 bytes [06:35:29]NVStorageSaveData done [06:35:29]OFDSenderStorePacket done [06:35:29]KKMCreateOFDPacket done [06:35:29]NVStorageSaveData kkm_last_timestamp [06:35:29]File name is /storage/kkm_last_timestamp [06:35:29]Write 4 bytes [06:35:29]NVStorageSaveData done [06:35:29]OFD Sender: Processing packet 115315 [packets to send 481, broken 480] [06:35:29]ProducePacketName [06:35:29]name=ofd_packets/00115315 [06:35:29]OFD Sender: To server: pG, [06:35:29]CommunicateWithHost lk.salyk.kg:30040 [06:35:29]ConnectInit lk.salyk.kg [06:35:29]ExternCall_PrintAddStr [06:35:29]wPrintStart [06:35:29]Write to MH i2c: 01 00 00 64 01 65 [06:35:29]Write i2c OK [06:35:29]MH_I2C_Read... [06:35:29]Read from MH i2c: 01 [06:35:29]MH_I2C_Read... [06:35:29]Read from MH i2c: 01 07 00 [06:35:29]MH_I2C_Read... [06:35:29]Read from MH i2c: 01 07 00 64 01 00 00 00 00 00 FF 0F 7A [06:35:29]RasterBufferAndPrint [06:35:29]line Счет N : (3)343774 [06:35:29]line ИНН: 02508201610067 [06:35:29]line Контрольно-Кассовый Чек [06:35:29]line ПРОДАЖА [06:35:29]line Товар: 4870202521148 [06:35:29]line Напиток MAXI чай зел лимон 0.45л [06:35:29]line 2.000 * 70.00 [06:35:29]line = 140.00 [06:35:29]line НДС 12% НСП 1% [06:35:29]line > о реализуемом товаре [06:35:29]line Товар: 4036021101200 [06:35:29]line MM Mannol Classic SAE 10W40 1л [06:35:29]line 1.000 * 720.00 [06:35:29]line = 720.00 [06:35:29]line НДС 12% НСП 1% [06:35:29]line > о реализуемом товаре [06:35:29]line ИТОГО: 860.00 [06:35:29]line НСП 1% : 7.61 [06:35:29]line НДС 12% : 91.33 [06:35:29]line Наличными: 0.00 [06:35:29]line Безнал.: 860.00 [06:35:29]line Место: АЗС № 90 "Партнер Нефть" [06:35:29]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [06:35:29]line СНО: Общий режим [06:35:29]line Чек 33 22.09.2024 06:35 [06:35:29]line Смена: 471 ФФД: 1.0 [06:35:29]line ЗНМ: 0300000120 [06:35:29]line РНМ: 0000000000091831 [06:35:29]line Версия ККМ: 001 [06:35:29]line Платежная система: O! деньги [06:35:29]line ФМ: 0000000000871830 [06:35:29]line ФД: 115315 [06:35:29]line ФПД: 171235409216912 [06:35:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T063528&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115315&fm=171235409216912&tin=02508201610067®Number=0000000000091831&sum=86000 [06:35:29]line 0 [06:35:29]written 0, free lines is 4095 [06:35:30]Connected sock=11 [06:35:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A0 01 00 00 3C 71 98 01 0F 1D 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 31 32 30 30 06 04 1F 00 4D 4D 20 4D 61 6E 6E 6F 6C 20 43 6C 61 73 73 69 63 20 53 41 45 20 31 30 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 19 01 00 00 00 13 04 06 00 40 19 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 AD 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 4F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B0 BA EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 73 C2 01 00 35 04 06 00 9B BC D9 BD 45 90 74 56 EA E9 C4 86 04 AD [06:35:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F1 F2 47 00 86 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 73 C2 01 00 F4 03 04 00 F7 5F EF 66 B6 04 01 00 00 8D 2B A3 8D 6B 28 F6 E7 [06:35:30]CommunicateWithHost err = 0 [06:35:30]CheckOFDResponse [06:35:30]1017 (14) - 77093643461234 [06:35:30]1041 (16) - 0000000000871830 [06:35:30]1040 (4) - 115315 [06:35:30]1012 (4) - 22.09.2024 00:08 [06:35:30]1206 (1) - 0 [06:35:30]OFD Sender: Remove packet 115315 [06:35:30]ProducePacketName [06:35:30]name=ofd_packets/00115315 [06:35:30]NVStorageDeleteData [06:35:30]Write to MH i2c: 01 00 00 95 01 96 [06:35:30]Write i2c OK [06:35:30]MH_I2C_Read... [06:35:30]Read from MH i2c: 01 [06:35:30]MH_I2C_Read... [06:35:30]Read from MH i2c: 01 07 00 [06:35:30]MH_I2C_Read... [06:35:30]Read from MH i2c: 01 07 00 95 01 00 00 00 00 00 B8 0B 60 [06:35:30]RasterBufferAndPrint [06:35:30]line [06:35:30]line [06:35:30]line [06:35:30]line [06:35:30]line [06:35:30]written 0, free lines is 3003 [06:35:30]MH_Cut [06:35:30]Write to MH i2c: D1 01 00 9C 01 01 6F [06:35:30]Write i2c OK [06:35:30]MH_I2C_Read... [06:35:30]Read from MH i2c: D1 [06:35:30]MH_I2C_Read... [06:35:30]Read from MH i2c: D1 01 00 [06:35:30]MH_I2C_Read... [06:35:30]Read from MH i2c: D1 01 00 9C 01 00 6E [06:35:30]Write to MH i2c: 01 00 00 9D 01 9E [06:35:30]Write i2c OK [06:35:30]MH_I2C_Read... [06:35:30]OFD Sender: No OFD packet to send [06:35:32]*** Cut start [06:35:32]*** Partial cut [06:35:32]*** CUTSNS_PIN = 1 [06:35:32]*** CUTSNS_PIN = 0 [06:35:32]*** Brake cut motor [06:35:32]Read from MH i2c: 01 [06:35:32]MH_I2C_Read... [06:35:32]*** Stop cut motor [06:35:32]*** Cut end [06:35:32]Read from MH i2c: 01 07 00 [06:35:32]MH_I2C_Read... [06:35:32]Read from MH i2c: 01 07 00 9D 01 00 00 00 00 00 FF 0F B3 [06:35:32]process_action close_receipt done [06:35:32]requested_data is exist [06:35:32]produce_requested_data [06:35:32]requested_item fm.sn is exist - process it [06:35:32]wFMCommunicate request_size=4 [06:35:32]MH_SAM_APDU [06:35:32]CAPDU: 80 11 00 00 [06:35:32]Write to MH i2c: E2 08 00 9E 01 80 11 00 00 00 00 00 00 19 [06:35:32]Write i2c OK [06:35:32]MH_I2C_Read... [06:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:32]Read from MH i2c: E2 [06:35:32]MH_I2C_Read... [06:35:32]Read from MH i2c: E2 17 00 [06:35:32]MH_I2C_Read... [06:35:32]Read from MH i2c: E2 17 00 9E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 67 [06:35:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [06:35:32]wFMCommunicate OK [06:35:32]requested_item fd.num is exist - process it [06:35:32]SAM_PROTO_GetFieldsCounters [06:35:32]wFMCommunicate request_size=4 [06:35:32]MH_SAM_APDU [06:35:32]CAPDU: 80 13 00 00 [06:35:32]Write to MH i2c: E2 08 00 9F 01 80 13 00 00 00 00 00 00 1C [06:35:32]Write i2c OK [06:35:32]MH_I2C_Read... [06:35:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:35:32]Read from MH i2c: E2 [06:35:32]MH_I2C_Read... [06:35:32]Read from MH i2c: E2 62 00 [06:35:32]MH_I2C_Read... [06:35:32]Read from MH i2c: E2 62 00 9F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 73 C2 01 00 0E 04 04 00 D7 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 A6 [06:35: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 73 C2 01 00 0E 04 04 00 D7 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 [06:35:32]wFMCommunicate OK [06:35:32]SAM_PROTO_GetFieldsCounters done [06:35:32]requested_item shift.num is exist - process it [06:35:32]requested_item shift.opened is exist - process it [06:35:32]req_shift_opened [06:35:32]FM_GetShiftState [06:35:32]SAM_PROTO_GetShiftState [06:35:32]wFMCommunicate request_size=4 [06:35:32]MH_SAM_APDU [06:35:32]CAPDU: 80 13 01 00 [06:35:32]Write to MH i2c: E2 08 00 A0 01 80 13 01 00 00 00 00 00 1E [06:35:32]Write i2c OK [06:35:32]MH_I2C_Read... [06:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:32]Read from MH i2c: E2 [06:35:32]MH_I2C_Read... [06:35:32]Read from MH i2c: E2 0E 00 [06:35:32]MH_I2C_Read... [06:35:32]Read from MH i2c: E2 0E 00 A0 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 37 [06:35:32]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [06:35:32]wFMCommunicate OK [06:35:32]SAM_PROTO_GetShiftState done [06:35:32]FM_GetShiftState done [06:35:32]req_shift_opened done [06:35:32]requested_item shift.open_date is exist - process it [06:35:32]req_shift_open_date [06:35:32]req_shift_open_date done [06:35:32]produce_requested_data done [06:35:32]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115315,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [06:35:32]process_action_free close_receipt [06:35:32]json_value_free [06:35:32]json_value_free done [06:35:32]process_json_proto returns [06:35:32]Send response to host [06:35:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115315,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [06:35:32]free response buf [06:35:32]execute_script done [06:35:32]execute_script returns [06:35:32]free content buf [06:35:32]Sock 8.Close socket [06:35:32]Sock 8.Thread stoped [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:46]accept exits with 9 [06:35:46]New connection [06:35:46]New thread 3066838372 created [06:35:46]Thread 3066981732 joined [06:35:46]Waiting for new connection... [06:35:46] Sock 9.Parse request [06:35:46]Sock 9.Check first char [06:35:46]Sock 9.First char is OK [06:35:46]request: POST /json_proto HTTP/1.0 [06:35:46]Method: POST [06:35:46]URL: /json_proto [06:35:46]Method is POST - this is cgi request [06:35:46]url: /json_proto [06:35:46]query_string will be loaded in cgi processing [06:35:46]execute_cgi json_proto POST (null) [06:35:46]execute_cgi path=json_proto method=POST [06:35:46]POST find Content-Length [06:35:46]Host: 172.17.41.136:8080 [06:35:46]Content-Length: 868 [06:35:46]Content-Type: application/json [06:35:46] [06:35:46]POST finish read [06:35:46]Found Content-Length = 868 [06:35:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343775", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:35:46]execute_script... [06:35:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343775", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:35:46]POST & json_proto [06:35:46]process_json_proto [06:35:46]json parsed OK: [06:35:46]protocol is kg_v1.0 [06:35:46]action value=close_receipt [06:35:46]process_action close_receipt [06:35:46]cmd_close_receipt [06:35:46]MH_GetDate [06:35:46]Write to MH i2c: F0 00 00 A1 01 91 [06:35:46]Write i2c OK [06:35:46]MH_I2C_Read... [06:35:46]Read from MH i2c: F0 [06:35:46]MH_I2C_Read... [06:35:46]Read from MH i2c: F0 09 00 [06:35:46]MH_I2C_Read... [06:35:46]Read from MH i2c: F0 09 00 A1 01 00 C3 BA EF 66 1B D0 5A 64 15 [06:35:46]GetLastDocTimeStamp 1726986928 [06:35:46]current date 1726986947 [06:35:46]FM_GetShiftState [06:35:46]SAM_PROTO_GetShiftState [06:35:46]wFMCommunicate request_size=4 [06:35:46]MH_SAM_APDU [06:35:46]CAPDU: 80 13 01 00 [06:35:46]Write to MH i2c: E2 08 00 A2 01 80 13 01 00 00 00 00 00 20 [06:35:46]Write i2c OK [06:35:46]MH_I2C_Read... [06:35:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:46]Read from MH i2c: E2 [06:35:46]MH_I2C_Read... [06:35:46]Read from MH i2c: E2 0E 00 [06:35:46]MH_I2C_Read... [06:35:46]Read from MH i2c: E2 0E 00 A2 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 39 [06:35:46]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [06:35:46]wFMCommunicate OK [06:35:46]SAM_PROTO_GetShiftState done [06:35:46]FM_GetShiftState done [06:35:46]opened in 1726965840 [06:35:46]opened+sec_in_day 1727052240 [06:35:46]quantity*price = 14400 [06:35:46]sum+1 = 14401 [06:35:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 194.00 НСП 1% : 1.71 НДС 12% : 20.60 Наличными: 194.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 34 22.09.2024 06:35 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115316 ФПД: 268649356995127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T063547&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115316&fm=268649356995127&tin=02508201610067®Number=0000000000091831&sum=19400 0 [06:35:47]StoreToDocumentArchive [06:35:47]shift 471 fd 115316 [06:35:47]save to /storage/0471/doc_00115316 [06:35:47]save last doc name /storage/0471/doc_00115316 to /storage/kkm_last_doc_name [06:35:47]save OK [06:35:47]Clear old archive folders... [06:35:47]ProcessDocumentItem done err = 0, tmpTLVsize=372 [06:35:47]tlvbuf is 017A2660 [06:35:47]SAM_PROTO_ClearQueue [06:35:47]wFMCommunicate request_size=4 [06:35:47]MH_SAM_APDU [06:35:47]CAPDU: 80 09 00 00 [06:35:47]Write to MH i2c: E2 08 00 AF 01 80 09 00 00 00 00 00 00 22 [06:35:47]Write i2c OK [06:35:47]MH_I2C_Read... [06:35:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:35:47]Read from MH i2c: E2 [06:35:47]MH_I2C_Read... [06:35:47]Read from MH i2c: E2 03 00 [06:35:47]MH_I2C_Read... [06:35:47]Read from MH i2c: E2 03 00 AF 01 00 90 00 24 [06:35:47]RAPDU: 90 00 [06:35:47]wFMCommunicate OK [06:35:47]SAM_PROTO_ClearQueue done [06:35:47]KKMCreateOFDPacket [06:35:47]OFDProtocolAddRootSTLVToBuf [06:35:47]FM_MakeSignedData [06:35:47]FM_MakeSignedData [06:35:47]SAM_PROTO_SignData [06:35:47]wFMCommunicate request_size=4 [06:35:47]MH_SAM_APDU [06:35:47]CAPDU: 80 0D 01 02 [06:35:47]Write to MH i2c: E2 08 00 B0 01 80 0D 01 02 00 00 00 00 2A [06:35:47]Write i2c OK [06:35:47]MH_I2C_Read... [06:35:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:35:47]Read from MH i2c: E2 [06:35:47]MH_I2C_Read... [06:35:47]Read from MH i2c: E2 03 00 [06:35:47]MH_I2C_Read... [06:35:47]Read from MH i2c: E2 03 00 B0 01 00 90 00 25 [06:35:47]RAPDU: 90 00 [06:35:47]wFMCommunicate OK [06:35:47]wFMCommunicate request_size=255 [06:35:47]MH_SAM_APDU [06:35:47]CAPDU: 80 0D 02 02 FA 03 00 74 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 [06:35:47]Write to MH i2c: E2 02 01 B1 01 80 0D 02 02 FA 00 03 00 74 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 00 00 C8 [06:35:47]Write i2c OK [06:35:47]MH_I2C_Read... [06:35:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:48]Read from MH i2c: E2 [06:35:48]MH_I2C_Read... [06:35:48]Read from MH i2c: E2 03 00 [06:35:48]MH_I2C_Read... [06:35:48]Read from MH i2c: E2 03 00 B1 01 00 90 00 26 [06:35:48]RAPDU: 90 00 [06:35:48]wFMCommunicate OK [06:35:48]wFMCommunicate request_size=131 [06:35:48]MH_SAM_APDU [06:35:48]CAPDU: 80 0D 02 02 7E 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C3 BA EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 74 C2 01 00 35 04 06 00 F4 55 CD 7E 2A 37 [06:35:48]Write to MH i2c: E2 86 00 B2 01 80 0D 02 02 7E 00 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C3 BA EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 74 C2 01 00 35 04 06 00 F4 55 CD 7E 2A 37 00 00 78 [06:35:48]Write i2c OK [06:35:48]MH_I2C_Read... [06:35:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:48]Read from MH i2c: E2 [06:35:48]MH_I2C_Read... [06:35:48]Read from MH i2c: E2 03 00 [06:35:48]MH_I2C_Read... [06:35:48]Read from MH i2c: E2 03 00 B2 01 00 90 00 27 [06:35:48]RAPDU: 90 00 [06:35:48]wFMCommunicate OK [06:35:48]wFMCommunicate request_size=4 [06:35:48]MH_SAM_APDU [06:35:48]CAPDU: 80 0D 03 02 [06:35:48]Write to MH i2c: E2 08 00 B3 01 80 0D 03 02 00 00 00 00 2F [06:35:48]Write i2c OK [06:35:48]MH_I2C_Read... [06:35:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:35:48]Read from MH i2c: E2 [06:35:48]MH_I2C_Read... [06:35:48]Read from MH i2c: E2 0B 00 [06:35:48]MH_I2C_Read... [06:35:48]Read from MH i2c: E2 0B 00 B3 01 00 6F 30 58 1C 10 CB F0 1B 90 00 29 [06:35:48]RAPDU: 6F 30 58 1C 10 CB F0 1B 90 00 [06:35:48]wFMCommunicate OK [06:35:48]SAM_PROTO_SignData done [06:35:48]FM_MakeSignedData done [06:35:48]CreateOFDProtocolMessage [06:35:48]wFMCommunicate request_size=4 [06:35:48]MH_SAM_APDU [06:35:48]CAPDU: 80 11 00 00 [06:35:48]Write to MH i2c: E2 08 00 B4 01 80 11 00 00 00 00 00 00 2F [06:35:48]Write i2c OK [06:35:48]MH_I2C_Read... [06:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:48]Read from MH i2c: E2 [06:35:48]MH_I2C_Read... [06:35:48]Read from MH i2c: E2 17 00 [06:35:48]MH_I2C_Read... [06:35:48]Read from MH i2c: E2 17 00 B4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7D [06:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [06:35:48]wFMCommunicate OK [06:35:48]CreateOFDProtocolMessage done [06:35:48]OFDSenderStorePacket 115316 [06:35:48]StoreOFDPacket docnum=115316 [06:35:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 88 01 00 00 38 04 80 01 30 8F 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C3 BA EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 74 C2 01 00 35 04 06 00 F4 55 CD 7E 2A 37 6F 30 58 1C 10 CB F0 1B [06:35:48]CheckFolder [06:35:48]dirname=/storage/ofd_packets [06:35:48]CheckFolder done [06:35:48]ProducePacketName [06:35:48]name=ofd_packets/00115316 [06:35:48]NVStorageSaveData ofd_packets/00115316 [06:35:48]File name is /storage/ofd_packets/00115316 [06:35:48]Write 422 bytes [06:35:48]NVStorageSaveData done [06:35:48]OFDSenderStorePacket done [06:35:48]KKMCreateOFDPacket done [06:35:48]NVStorageSaveData kkm_last_timestamp [06:35:48]File name is /storage/kkm_last_timestamp [06:35:48]Write 4 bytes [06:35:48]NVStorageSaveData done [06:35:48]ExternCall_PrintAddStr [06:35:48]wPrintStart [06:35:48]Write to MH i2c: 01 00 00 B5 01 B6 [06:35:48]Write i2c OK [06:35:48]MH_I2C_Read... [06:35:48]Read from MH i2c: 01 [06:35:48]MH_I2C_Read... [06:35:48]Read from MH i2c: 01 07 00 [06:35:48]MH_I2C_Read... [06:35:48]Read from MH i2c: 01 07 00 B5 01 00 00 00 00 00 FF 0F CB [06:35:48]RasterBufferAndPrint [06:35:48]line Счет N : (3)343775 [06:35:48]line ИНН: 02508201610067 [06:35:48]line Контрольно-Кассовый Чек [06:35:48]line ПРОДАЖА [06:35:48]line Товар: 48743570 [06:35:48]line Сигареты Winston XStyle Blue [06:35:48]line 1.000 * 144.00 [06:35:48]line = 144.00 [06:35:48]line НДС 12% НСП 1% [06:35:48]line > о реализуемом товаре [06:35:48]line Товар: 4700000160358 [06:35:48]line Вода Легенда 1л [06:35:48]line 1.000 * 50.00 [06:35:48]line = 50.00 [06:35:48]line НДС 12% НСП 1% [06:35:48]line > о реализуемом товаре [06:35:48]line ИТОГО: 194.00 [06:35:48]line НСП 1% : 1.71 [06:35:48]line НДС 12% : 20.60 [06:35:48]line Наличными: 194.00 [06:35:48]line Безнал.: 0.00 [06:35:48]line Место: АЗС № 90 "Партнер Нефть" [06:35:48]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [06:35:48]line СНО: Общий режим [06:35:48]line Чек 34 22.09.2024 06:35 [06:35:48]line Смена: 471 ФФД: 1.0 [06:35:48]line ЗНМ: 0300000120 [06:35:48]line РНМ: 0000000000091831 [06:35:48]line Версия ККМ: 001 [06:35:48]line ФМ: 0000000000871830 [06:35:48]line ФД: 115316 [06:35:48]line ФПД: 268649356995127 [06:35:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T063547&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115316&fm=268649356995127&tin=02508201610067®Number=0000000000091831&sum=19400 [06:35:48]line 0 [06:35:48]OFD Sender: Processing packet 115316 [packets to send 481, broken 480] [06:35:48]ProducePacketName [06:35:48]name=ofd_packets/00115316 [06:35:48]OFD Sender: To server: pG, [06:35:48]CommunicateWithHost lk.salyk.kg:30040 [06:35:48]ConnectInit lk.salyk.kg [06:35:48]written 0, free lines is 4095 [06:35:49]Connected sock=11 [06:35:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 88 01 00 00 38 04 80 01 30 8F 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C3 BA EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 74 C2 01 00 35 04 06 00 F4 55 CD 7E 2A 37 6F 30 58 1C 10 CB F0 1B [06:35:49]Write to MH i2c: 01 00 00 E2 01 E3 [06:35:49]Write i2c OK [06:35:49]MH_I2C_Read... [06:35:49]Read from MH i2c: 01 [06:35:49]MH_I2C_Read... [06:35:49]Read from MH i2c: 01 07 00 [06:35:49]MH_I2C_Read... [06:35:49]Read from MH i2c: 01 07 00 E2 01 00 00 00 00 00 0D 0C 03 [06:35:49]RasterBufferAndPrint [06:35:49]line [06:35:49]line [06:35:49]line [06:35:49]line [06:35:49]line [06:35:49]written 0, free lines is 3088 [06:35:49]MH_Cut [06:35:49]Write to MH i2c: D1 01 00 E9 01 01 BC [06:35:49]Write i2c OK [06:35:49]MH_I2C_Read... [06:35:49]Read from MH i2c: D1 [06:35:49]MH_I2C_Read... [06:35:49]Read from MH i2c: D1 01 00 [06:35:49]MH_I2C_Read... [06:35:49]Read from MH i2c: D1 01 00 E9 01 00 BB [06:35:49]Write to MH i2c: 01 00 00 EA 01 EB [06:35:49]Write i2c OK [06:35:49]MH_I2C_Read... [06:35:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B0 CD 47 00 51 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 74 C2 01 00 F4 03 04 00 0A 60 EF 66 B6 04 01 00 00 8C 25 3B 9B 7A F9 B7 28 [06:35:49]CommunicateWithHost err = 0 [06:35:49]CheckOFDResponse [06:35:49]1017 (14) - 77093643461234 [06:35:49]1041 (16) - 0000000000871830 [06:35:49]1040 (4) - 115316 [06:35:49]1012 (4) - 22.09.2024 00:08 [06:35:49]1206 (1) - 0 [06:35:49]OFD Sender: Remove packet 115316 [06:35:49]ProducePacketName [06:35:49]name=ofd_packets/00115316 [06:35:49]NVStorageDeleteData [06:35:49]OFD Sender: No OFD packet to send [06:35:50]*** Cut start [06:35:50]*** Partial cut [06:35:50]*** CUTSNS_PIN = 1 [06:35:50]*** CUTSNS_PIN = 0 [06:35:51]*** Brake cut motor [06:35:51]Read from MH i2c: 01 [06:35:51]MH_I2C_Read... [06:35:51]*** Stop cut motor [06:35:51]*** Cut end [06:35:51]Read from MH i2c: 01 07 00 [06:35:51]MH_I2C_Read... [06:35:51]Read from MH i2c: 01 07 00 EA 01 00 00 00 00 00 FF 0F 00 [06:35:51]process_action close_receipt done [06:35:51]requested_data is exist [06:35:51]produce_requested_data [06:35:51]requested_item fm.sn is exist - process it [06:35:51]wFMCommunicate request_size=4 [06:35:51]MH_SAM_APDU [06:35:51]CAPDU: 80 11 00 00 [06:35:51]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [06:35:51]Write i2c OK [06:35:51]MH_I2C_Read... [06:35:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:51]Read from MH i2c: E2 [06:35:51]MH_I2C_Read... [06:35:51]Read from MH i2c: E2 17 00 [06:35:51]MH_I2C_Read... [06:35:51]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B4 [06:35:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [06:35:51]wFMCommunicate OK [06:35:51]requested_item fd.num is exist - process it [06:35:51]SAM_PROTO_GetFieldsCounters [06:35:51]wFMCommunicate request_size=4 [06:35:51]MH_SAM_APDU [06:35:51]CAPDU: 80 13 00 00 [06:35:51]Write to MH i2c: E2 08 00 EC 01 80 13 00 00 00 00 00 00 69 [06:35:51]Write i2c OK [06:35:51]MH_I2C_Read... [06:35:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:35:51]Read from MH i2c: E2 [06:35:51]MH_I2C_Read... [06:35:51]Read from MH i2c: E2 62 00 [06:35:51]MH_I2C_Read... [06:35:51]Read from MH i2c: E2 62 00 EC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 74 C2 01 00 0E 04 04 00 D7 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 F7 [06:35:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 74 C2 01 00 0E 04 04 00 D7 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 [06:35:51]wFMCommunicate OK [06:35:51]SAM_PROTO_GetFieldsCounters done [06:35:51]requested_item shift.num is exist - process it [06:35:51]requested_item shift.opened is exist - process it [06:35:51]req_shift_opened [06:35:51]FM_GetShiftState [06:35:51]SAM_PROTO_GetShiftState [06:35:51]wFMCommunicate request_size=4 [06:35:51]MH_SAM_APDU [06:35:51]CAPDU: 80 13 01 00 [06:35:51]Write to MH i2c: E2 08 00 ED 01 80 13 01 00 00 00 00 00 6B [06:35:51]Write i2c OK [06:35:51]MH_I2C_Read... [06:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:51]Read from MH i2c: E2 [06:35:51]MH_I2C_Read... [06:35:51]Read from MH i2c: E2 0E 00 [06:35:51]MH_I2C_Read... [06:35:51]Read from MH i2c: E2 0E 00 ED 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 84 [06:35:51]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [06:35:51]wFMCommunicate OK [06:35:51]SAM_PROTO_GetShiftState done [06:35:51]FM_GetShiftState done [06:35:51]req_shift_opened done [06:35:51]requested_item shift.open_date is exist - process it [06:35:51]req_shift_open_date [06:35:51]req_shift_open_date done [06:35:51]produce_requested_data done [06:35:51]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115316,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [06:35:51]process_action_free close_receipt [06:35:51]json_value_free [06:35:51]json_value_free done [06:35:51]process_json_proto returns [06:35:51]Send response to host [06:35:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115316,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [06:35:51]free response buf [06:35:51]execute_script done [06:35:51]execute_script returns [06:35:51]free content buf [06:35:51]Sock 9.Close socket [06:35:51]Sock 9.Thread stoped [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:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:37]int [06:39:37]Write to MH i2c: 01 00 00 EE 01 EF [06:39:37]*** FLAG_PRN_KEY set [06:39:37]Write i2c OK [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: 01 [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: 01 07 00 [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: 01 07 00 EE 01 00 08 00 00 00 FF 0F 0C [06:39:37]state=0 [06:39:37]Key pressed [06:39:37]Feed [06:39:37]Write to MH i2c: D8 00 00 EF 01 C7 [06:39:37]Write i2c OK [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: D8 [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: D8 01 00 [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: D8 01 00 EF 01 00 C8 [06:39:37]int [06:39:37]Write to MH i2c: 01 00 00 F0 01 F1 [06:39:37]Write i2c OK [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: 01 [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: 01 07 00 [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: 01 07 00 F0 01 00 48 00 00 00 3C 00 7C [06:39:37]state=2 [06:39:37]Key pressed [06:39:37]int [06:39:37]Write to MH i2c: 01 00 00 F1 01 F2 [06:39:37]*** FLAG_PRN_KEY reset [06:39:37]Write i2c OK [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: 01 [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: 01 07 00 [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: 01 07 00 F1 01 00 00 00 00 00 FD 0F 05 [06:39:37]state=2 [06:39:37]Stop feed [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [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: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:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:49]ConnectInit Can't connect to host [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:45]accept exits with 8 [07:00:45]New connection [07:00:45]New thread 3066981732 created [07:00:45]Thread 3066838372 joined [07:00:45]Waiting for new connection... [07:00:45] Sock 8.Parse request [07:00:45]Sock 8.Check first char [07:00:45]Sock 8.First char is OK [07:00:45]request: POST /json_proto HTTP/1.0 [07:00:45]Method: POST [07:00:45]URL: /json_proto [07:00:45]Method is POST - this is cgi request [07:00:45]url: /json_proto [07:00:45]query_string will be loaded in cgi processing [07:00:45]execute_cgi json_proto POST (null) [07:00:45]execute_cgi path=json_proto method=POST [07:00:45]POST find Content-Length [07:00:45]Host: 172.17.41.136:8080 [07:00:45]Content-Length: 670 [07:00:45]Content-Type: application/json [07:00:45] [07:00:45]POST finish read [07:00:45]Found Content-Length = 670 [07:00:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343776", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:00:45]execute_script... [07:00:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343776", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:00:45]POST & json_proto [07:00:45]process_json_proto [07:00:45]json parsed OK: [07:00:45]protocol is kg_v1.0 [07:00:45]action value=close_receipt [07:00:45]process_action close_receipt [07:00:45]cmd_close_receipt [07:00:45]MH_GetDate [07:00:45]Write to MH i2c: F0 00 00 F2 01 E2 [07:00:45]Write i2c OK [07:00:45]MH_I2C_Read... [07:00:45]Read from MH i2c: F0 [07:00:45]MH_I2C_Read... [07:00:45]Read from MH i2c: F0 09 00 [07:00:45]MH_I2C_Read... [07:00:45]Read from MH i2c: F0 09 00 F2 01 00 9E C0 EF 66 1B D0 5A 64 47 [07:00:45]GetLastDocTimeStamp 1726986947 [07:00:45]current date 1726988446 [07:00:45]FM_GetShiftState [07:00:45]SAM_PROTO_GetShiftState [07:00:45]wFMCommunicate request_size=4 [07:00:45]MH_SAM_APDU [07:00:45]CAPDU: 80 13 01 00 [07:00:45]Write to MH i2c: E2 08 00 F3 01 80 13 01 00 00 00 00 00 71 [07:00:45]Write i2c OK [07:00:45]MH_I2C_Read... [07:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:00:45]Read from MH i2c: E2 [07:00:45]MH_I2C_Read... [07:00:45]Read from MH i2c: E2 0E 00 [07:00:45]MH_I2C_Read... [07:00:45]Read from MH i2c: E2 0E 00 F3 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 8A [07:00:45]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [07:00:45]wFMCommunicate OK [07:00:45]SAM_PROTO_GetShiftState done [07:00:45]FM_GetShiftState done [07:00:45]opened in 1726965840 [07:00:45]opened+sec_in_day 1727052240 [07:00:45]quantity*price = 9500 [07:00:45]sum+1 = 9501 [07:00:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 35 22.09.2024 07:00 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115317 ФПД: 139923974491335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T070046&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115317&fm=139923974491335&tin=02508201610067®Number=0000000000091831&sum=9500 0 [07:00:46]StoreToDocumentArchive [07:00:46]shift 471 fd 115317 [07:00:46]save to /storage/0471/doc_00115317 [07:00:46]save last doc name /storage/0471/doc_00115317 to /storage/kkm_last_doc_name [07:00:46]save OK [07:00:46]Clear old archive folders... [07:00:46]ProcessDocumentItem done err = 0, tmpTLVsize=293 [07:00:46]tlvbuf is 017B0110 [07:00:46]SAM_PROTO_ClearQueue [07:00:46]wFMCommunicate request_size=4 [07:00:46]MH_SAM_APDU [07:00:46]CAPDU: 80 09 00 00 [07:00:46]Write to MH i2c: E2 08 00 00 02 80 09 00 00 00 00 00 00 74 [07:00:46]Write i2c OK [07:00:46]MH_I2C_Read... [07:00:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:00:46]Read from MH i2c: E2 [07:00:46]MH_I2C_Read... [07:00:46]Read from MH i2c: E2 03 00 [07:00:46]MH_I2C_Read... [07:00:46]Read from MH i2c: E2 03 00 00 02 00 90 00 76 [07:00:46]RAPDU: 90 00 [07:00:46]wFMCommunicate OK [07:00:46]SAM_PROTO_ClearQueue done [07:00:46]KKMCreateOFDPacket [07:00:46]OFDProtocolAddRootSTLVToBuf [07:00:46]FM_MakeSignedData [07:00:46]FM_MakeSignedData [07:00:46]SAM_PROTO_SignData [07:00:46]wFMCommunicate request_size=4 [07:00:46]MH_SAM_APDU [07:00:46]CAPDU: 80 0D 01 02 [07:00:46]Write to MH i2c: E2 08 00 01 02 80 0D 01 02 00 00 00 00 7C [07:00:46]Write i2c OK [07:00:46]MH_I2C_Read... [07:00:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:00:46]Read from MH i2c: E2 [07:00:46]MH_I2C_Read... [07:00:46]Read from MH i2c: E2 03 00 [07:00:46]MH_I2C_Read... [07:00:46]Read from MH i2c: E2 03 00 01 02 00 90 00 77 [07:00:46]RAPDU: 90 00 [07:00:46]wFMCommunicate OK [07:00:46]wFMCommunicate request_size=255 [07:00:46]MH_SAM_APDU [07:00:46]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 9E C0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [07:00:46]Write to MH i2c: E2 02 01 02 02 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 9E C0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 22 [07:00:46]Write i2c OK [07:00:46]MH_I2C_Read... [07:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:00:47]Read from MH i2c: E2 [07:00:47]MH_I2C_Read... [07:00:47]Read from MH i2c: E2 03 00 [07:00:47]MH_I2C_Read... [07:00:47]Read from MH i2c: E2 03 00 02 02 00 90 00 78 [07:00:47]RAPDU: 90 00 [07:00:47]wFMCommunicate OK [07:00:47]wFMCommunicate request_size=52 [07:00:47]MH_SAM_APDU [07:00:47]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 75 C2 01 00 35 04 06 00 7F 42 96 CB 8C C7 [07:00:47]Write to MH i2c: E2 37 00 03 02 80 0D 02 02 2F 00 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 75 C2 01 00 35 04 06 00 7F 42 96 CB 8C C7 00 00 E7 [07:00:47]Write i2c OK [07:00:47]MH_I2C_Read... [07:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:00:47]Read from MH i2c: E2 [07:00:47]MH_I2C_Read... [07:00:47]Read from MH i2c: E2 03 00 [07:00:47]MH_I2C_Read... [07:00:47]Read from MH i2c: E2 03 00 03 02 00 90 00 79 [07:00:47]RAPDU: 90 00 [07:00:47]wFMCommunicate OK [07:00:47]wFMCommunicate request_size=4 [07:00:47]MH_SAM_APDU [07:00:47]CAPDU: 80 0D 03 02 [07:00:47]Write to MH i2c: E2 08 00 04 02 80 0D 03 02 00 00 00 00 81 [07:00:47]Write i2c OK [07:00:47]MH_I2C_Read... [07:00:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:00:47]Read from MH i2c: E2 [07:00:47]MH_I2C_Read... [07:00:47]Read from MH i2c: E2 0B 00 [07:00:47]MH_I2C_Read... [07:00:47]Read from MH i2c: E2 0B 00 04 02 00 3F 3E 3C 8A 80 46 50 2A 90 00 05 [07:00:47]RAPDU: 3F 3E 3C 8A 80 46 50 2A 90 00 [07:00:47]wFMCommunicate OK [07:00:47]SAM_PROTO_SignData done [07:00:47]FM_MakeSignedData done [07:00:47]CreateOFDProtocolMessage [07:00:47]wFMCommunicate request_size=4 [07:00:47]MH_SAM_APDU [07:00:47]CAPDU: 80 11 00 00 [07:00:47]Write to MH i2c: E2 08 00 05 02 80 11 00 00 00 00 00 00 81 [07:00:47]Write i2c OK [07:00:47]MH_I2C_Read... [07:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:00:47]Read from MH i2c: E2 [07:00:47]MH_I2C_Read... [07:00:47]Read from MH i2c: E2 17 00 [07:00:47]MH_I2C_Read... [07:00:47]Read from MH i2c: E2 17 00 05 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CF [07:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:00:47]wFMCommunicate OK [07:00:47]CreateOFDProtocolMessage done [07:00:47]OFDSenderStorePacket 115317 [07:00:47]StoreOFDPacket docnum=115317 [07:00:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 39 01 00 00 D2 AF 31 01 11 33 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 9E C0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 75 C2 01 00 35 04 06 00 7F 42 96 CB 8C C7 3F 3E 3C 8A 80 46 50 2A [07:00:47]CheckFolder [07:00:47]dirname=/storage/ofd_packets [07:00:47]CheckFolder done [07:00:47]ProducePacketName [07:00:47]name=ofd_packets/00115317 [07:00:47]NVStorageSaveData ofd_packets/00115317 [07:00:47]File name is /storage/ofd_packets/00115317 [07:00:47]Write 343 bytes [07:00:47]NVStorageSaveData done [07:00:47]OFDSenderStorePacket done [07:00:47]KKMCreateOFDPacket done [07:00:47]NVStorageSaveData kkm_last_timestamp [07:00:47]File name is /storage/kkm_last_timestamp [07:00:47]Write 4 bytes [07:00:47]NVStorageSaveData done [07:00:47]ExternCall_PrintAddStr [07:00:47]wPrintStart [07:00:47]Write to MH i2c: 01 00 00 06 02 08 [07:00:47]Write i2c OK [07:00:47]MH_I2C_Read... [07:00:47]Read from MH i2c: 01 [07:00:47]MH_I2C_Read... [07:00:47]Read from MH i2c: 01 07 00 [07:00:47]MH_I2C_Read... [07:00:47]Read from MH i2c: 01 07 00 06 02 00 00 00 00 00 FF 0F 1D [07:00:47]RasterBufferAndPrint [07:00:47]line Счет N : (3)343776 [07:00:47]line ИНН: 02508201610067 [07:00:47]line Контрольно-Кассовый Чек [07:00:47]line ПРОДАЖА [07:00:47]line Товар: 4700003010056 [07:00:47]line Чай хол Let`s Go! зел лим ПЭТ 1,25л [07:00:47]line 1.000 * 95.00 [07:00:47]line = 95.00 [07:00:47]line НДС 12% НСП 1% [07:00:47]line > о реализуемом товаре [07:00:47]line ИТОГО: 95.00 [07:00:47]line НСП 1% : 0.84 [07:00:47]line НДС 12% : 10.09 [07:00:47]line Наличными: 95.00 [07:00:47]line Безнал.: 0.00 [07:00:47]line Место: АЗС № 90 "Партнер Нефть" [07:00:47]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [07:00:47]line СНО: Общий режим [07:00:47]line Чек 35 22.09.2024 07:00 [07:00:47]line Смена: 471 ФФД: 1.0 [07:00:47]line ЗНМ: 0300000120 [07:00:47]line РНМ: 0000000000091831 [07:00:47]line Версия ККМ: 001 [07:00:47]line ФМ: 0000000000871830 [07:00:47]line ФД: 115317 [07:00:47]line ФПД: 139923974491335 [07:00:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T070046&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115317&fm=139923974491335&tin=02508201610067®Number=0000000000091831&sum=9500 [07:00:47]line 0 [07:00:47]OFD Sender: Processing packet 115317 [packets to send 481, broken 480] [07:00:47]ProducePacketName [07:00:47]name=ofd_packets/00115317 [07:00:47]OFD Sender: To server: pG, [07:00:47]CommunicateWithHost lk.salyk.kg:30040 [07:00:47]ConnectInit lk.salyk.kg [07:00:47]written 0, free lines is 4095 [07:00:47]Connected sock=10 [07:00:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 39 01 00 00 D2 AF 31 01 11 33 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 9E C0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 75 C2 01 00 35 04 06 00 7F 42 96 CB 8C C7 3F 3E 3C 8A 80 46 50 2A [07:00:48]Write to MH i2c: 01 00 00 2E 02 30 [07:00:48]Write i2c OK [07:00:48]MH_I2C_Read... [07:00:48]Read from MH i2c: 01 [07:00:48]MH_I2C_Read... [07:00:48]Read from MH i2c: 01 07 00 [07:00:48]MH_I2C_Read... [07:00:48]Read from MH i2c: 01 07 00 2E 02 00 00 00 00 00 5A 0C 9D [07:00:48]RasterBufferAndPrint [07:00:48]line [07:00:48]line [07:00:48]line [07:00:48]line [07:00:48]line [07:00:48]written 0, free lines is 3166 [07:00:48]MH_Cut [07:00:48]Write to MH i2c: D1 01 00 35 02 01 09 [07:00:48]Write i2c OK [07:00:48]MH_I2C_Read... [07:00:48]Read from MH i2c: D1 [07:00:48]MH_I2C_Read... [07:00:48]Read from MH i2c: D1 01 00 [07:00:48]MH_I2C_Read... [07:00:48]Read from MH i2c: D1 01 00 35 02 00 08 [07:00:48]Write to MH i2c: 01 00 00 36 02 38 [07:00:48]Write i2c OK [07:00:48]MH_I2C_Read... [07:00:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 49 3E 47 00 67 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 75 C2 01 00 F4 03 04 00 E4 65 EF 66 B6 04 01 00 00 B5 0B 15 B5 6B 5B F5 32 [07:00:48]CommunicateWithHost err = 0 [07:00:48]CheckOFDResponse [07:00:48]1017 (14) - 77093643461234 [07:00:48]1041 (16) - 0000000000871830 [07:00:48]1040 (4) - 115317 [07:00:48]1012 (4) - 22.09.2024 00:33 [07:00:48]1206 (1) - 0 [07:00:48]OFD Sender: Remove packet 115317 [07:00:48]ProducePacketName [07:00:48]name=ofd_packets/00115317 [07:00:48]NVStorageDeleteData [07:00:48]OFD Sender: No OFD packet to send [07:00:49]*** Cut start [07:00:49]*** Partial cut [07:00:49]*** CUTSNS_PIN = 1 [07:00:49]*** CUTSNS_PIN = 0 [07:00:49]*** Brake cut motor [07:00:50]Read from MH i2c: 01 [07:00:50]MH_I2C_Read... [07:00:50]*** Stop cut motor [07:00:50]*** Cut end [07:00:50]Read from MH i2c: 01 07 00 [07:00:50]MH_I2C_Read... [07:00:50]Read from MH i2c: 01 07 00 36 02 00 00 00 00 00 FF 0F 4D [07:00:50]process_action close_receipt done [07:00:50]requested_data is exist [07:00:50]produce_requested_data [07:00:50]requested_item fm.sn is exist - process it [07:00:50]wFMCommunicate request_size=4 [07:00:50]MH_SAM_APDU [07:00:50]CAPDU: 80 11 00 00 [07:00:50]Write to MH i2c: E2 08 00 37 02 80 11 00 00 00 00 00 00 B3 [07:00:50]Write i2c OK [07:00:50]MH_I2C_Read... [07:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:00:50]Read from MH i2c: E2 [07:00:50]MH_I2C_Read... [07:00:50]Read from MH i2c: E2 17 00 [07:00:50]MH_I2C_Read... [07:00:50]Read from MH i2c: E2 17 00 37 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 01 [07:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:00:50]wFMCommunicate OK [07:00:50]requested_item fd.num is exist - process it [07:00:50]SAM_PROTO_GetFieldsCounters [07:00:50]wFMCommunicate request_size=4 [07:00:50]MH_SAM_APDU [07:00:50]CAPDU: 80 13 00 00 [07:00:50]Write to MH i2c: E2 08 00 38 02 80 13 00 00 00 00 00 00 B6 [07:00:50]Write i2c OK [07:00:50]MH_I2C_Read... [07:00:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:00:50]Read from MH i2c: E2 [07:00:50]MH_I2C_Read... [07:00:50]Read from MH i2c: E2 62 00 [07:00:50]MH_I2C_Read... [07:00:50]Read from MH i2c: E2 62 00 38 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 75 C2 01 00 0E 04 04 00 D7 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 48 [07:00:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 75 C2 01 00 0E 04 04 00 D7 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:00:50]wFMCommunicate OK [07:00:50]SAM_PROTO_GetFieldsCounters done [07:00:50]requested_item shift.num is exist - process it [07:00:50]requested_item shift.opened is exist - process it [07:00:50]req_shift_opened [07:00:50]FM_GetShiftState [07:00:50]SAM_PROTO_GetShiftState [07:00:50]wFMCommunicate request_size=4 [07:00:50]MH_SAM_APDU [07:00:50]CAPDU: 80 13 01 00 [07:00:50]Write to MH i2c: E2 08 00 39 02 80 13 01 00 00 00 00 00 B8 [07:00:50]Write i2c OK [07:00:50]MH_I2C_Read... [07:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:00:50]Read from MH i2c: E2 [07:00:50]MH_I2C_Read... [07:00:50]Read from MH i2c: E2 0E 00 [07:00:50]MH_I2C_Read... [07:00:50]Read from MH i2c: E2 0E 00 39 02 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D1 [07:00:50]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [07:00:50]wFMCommunicate OK [07:00:50]SAM_PROTO_GetShiftState done [07:00:50]FM_GetShiftState done [07:00:50]req_shift_opened done [07:00:50]requested_item shift.open_date is exist - process it [07:00:50]req_shift_open_date [07:00:50]req_shift_open_date done [07:00:50]produce_requested_data done [07:00:50]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115317,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [07:00:50]process_action_free close_receipt [07:00:50]json_value_free [07:00:50]json_value_free done [07:00:50]process_json_proto returns [07:00:50]Send response to host [07:00:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115317,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [07:00:50]free response buf [07:00:50]execute_script done [07:00:50]execute_script returns [07:00:50]free content buf [07:00:50]Sock 8.Close socket [07:00:50]Sock 8.Thread stoped [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:29]OFD Sender: No OFD packet to send [07:02:34]OFD Sender: No OFD packet to send [07:02:39]OFD Sender: No OFD packet to send [07:02:44]OFD Sender: No OFD packet to send [07:02:49]OFD Sender: No OFD packet to send [07:02:54]OFD Sender: No OFD packet to send [07:02:59]OFD Sender: No OFD packet to send [07:03:04]OFD Sender: No OFD packet to send [07:03:09]OFD Sender: No OFD packet to send [07:03:14]OFD Sender: No OFD packet to send [07:03:19]OFD Sender: No OFD packet to send [07:03:24]OFD Sender: No OFD packet to send [07:03:29]OFD Sender: No OFD packet to send [07:03:34]OFD Sender: No OFD packet to send [07:03:39]OFD Sender: No OFD packet to send [07:03:42]accept exits with 9 [07:03:42]New connection [07:03:42]New thread 3066838372 created [07:03:42]Thread 3066981732 joined [07:03:42]Waiting for new connection... [07:03:42] Sock 9.Parse request [07:03:42]Sock 9.Check first char [07:03:42]Sock 9.First char is OK [07:03:42]request: POST /json_proto HTTP/1.0 [07:03:42]Method: POST [07:03:42]URL: /json_proto [07:03:42]Method is POST - this is cgi request [07:03:42]url: /json_proto [07:03:42]query_string will be loaded in cgi processing [07:03:42]execute_cgi json_proto POST (null) [07:03:42]execute_cgi path=json_proto method=POST [07:03:42]POST find Content-Length [07:03:42]Host: 172.17.41.136:8080 [07:03:42]Content-Length: 1224 [07:03:42]Content-Type: application/json [07:03:42] [07:03:42]POST finish read [07:03:42]Found Content-Length = 1224 [07:03:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343777", "tax_sys" : 0, "items" : [ { "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607084351361", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 4\u0448\u0442", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 364.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:03:42]execute_script... [07:03:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343777", "tax_sys" : 0, "items" : [ { "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607084351361", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 4\u0448\u0442", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 364.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:03:42]POST & json_proto [07:03:42]process_json_proto [07:03:42]json parsed OK: [07:03:42]protocol is kg_v1.0 [07:03:42]action value=close_receipt [07:03:42]process_action close_receipt [07:03:42]cmd_close_receipt [07:03:42]MH_GetDate [07:03:42]Write to MH i2c: F0 00 00 3A 02 2B [07:03:42]Write i2c OK [07:03:42]MH_I2C_Read... [07:03:42]Read from MH i2c: F0 [07:03:42]MH_I2C_Read... [07:03:42]Read from MH i2c: F0 09 00 [07:03:42]MH_I2C_Read... [07:03:42]Read from MH i2c: F0 09 00 3A 02 00 4F C1 EF 66 1B D0 5A 64 42 [07:03:42]GetLastDocTimeStamp 1726988446 [07:03:42]current date 1726988623 [07:03:42]FM_GetShiftState [07:03:42]SAM_PROTO_GetShiftState [07:03:42]wFMCommunicate request_size=4 [07:03:42]MH_SAM_APDU [07:03:42]CAPDU: 80 13 01 00 [07:03:42]Write to MH i2c: E2 08 00 3B 02 80 13 01 00 00 00 00 00 BA [07:03:42]Write i2c OK [07:03:42]MH_I2C_Read... [07:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:03:42]Read from MH i2c: E2 [07:03:42]MH_I2C_Read... [07:03:42]Read from MH i2c: E2 0E 00 [07:03:42]MH_I2C_Read... [07:03:42]Read from MH i2c: E2 0E 00 3B 02 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D3 [07:03:42]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [07:03:42]wFMCommunicate OK [07:03:42]SAM_PROTO_GetShiftState done [07:03:42]FM_GetShiftState done [07:03:42]opened in 1726965840 [07:03:42]opened+sec_in_day 1727052240 [07:03:42]quantity*price = 9000 [07:03:42]sum+1 = 9001 [07:03:42]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607084351361 Бисквит Чоко пай 4шт 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 364.00 НСП 1% : 3.22 НДС 12% : 38.65 Наличными: 364.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 36 22.09.2024 07:03 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115318 ФПД: 217645125881741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T070343&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115318&fm=217645125881741&tin=02508201610067®Number=0000000000091831&sum=36400 0 [07:03:44]StoreToDocumentArchive [07:03:44]shift 471 fd 115318 [07:03:44]save to /storage/0471/doc_00115318 [07:03:44]save last doc name /storage/0471/doc_00115318 to /storage/kkm_last_doc_name [07:03:44]save OK [07:03:44]Clear old archive folders... [07:03:44]ProcessDocumentItem done err = 0, tmpTLVsize=518 [07:03:44]tlvbuf is 017B49B0 [07:03:44]SAM_PROTO_ClearQueue [07:03:44]wFMCommunicate request_size=4 [07:03:44]MH_SAM_APDU [07:03:44]CAPDU: 80 09 00 00 [07:03:44]Write to MH i2c: E2 08 00 48 02 80 09 00 00 00 00 00 00 BC [07:03:44]Write i2c OK [07:03:44]MH_I2C_Read... [07:03:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:03:44]Read from MH i2c: E2 [07:03:44]MH_I2C_Read... [07:03:44]Read from MH i2c: E2 03 00 [07:03:44]MH_I2C_Read... [07:03:44]Read from MH i2c: E2 03 00 48 02 00 90 00 BE [07:03:44]RAPDU: 90 00 [07:03:44]wFMCommunicate OK [07:03:44]SAM_PROTO_ClearQueue done [07:03:44]KKMCreateOFDPacket [07:03:44]OFDProtocolAddRootSTLVToBuf [07:03:44]FM_MakeSignedData [07:03:44]FM_MakeSignedData [07:03:44]SAM_PROTO_SignData [07:03:44]wFMCommunicate request_size=4 [07:03:44]MH_SAM_APDU [07:03:44]CAPDU: 80 0D 01 02 [07:03:44]Write to MH i2c: E2 08 00 49 02 80 0D 01 02 00 00 00 00 C4 [07:03:44]Write i2c OK [07:03:44]MH_I2C_Read... [07:03:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:03:44]Read from MH i2c: E2 [07:03:44]MH_I2C_Read... [07:03:44]Read from MH i2c: E2 03 00 [07:03:44]MH_I2C_Read... [07:03:44]Read from MH i2c: E2 03 00 49 02 00 90 00 BF [07:03:44]RAPDU: 90 00 [07:03:44]wFMCommunicate OK [07:03:44]wFMCommunicate request_size=255 [07:03:44]MH_SAM_APDU [07:03:44]CAPDU: 80 0D 02 02 FA 03 00 06 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 [07:03:44]Write to MH i2c: E2 02 01 4A 02 80 0D 02 02 FA 00 03 00 06 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 00 00 C0 [07:03:44]OFD Sender: No OFD packet to send [07:03:44]Write i2c OK [07:03:44]MH_I2C_Read... [07:03:44]Read from MH i2c: E2 [07:03:44]MH_I2C_Read... [07:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:44]Read from MH i2c: E2 03 00 [07:03:44]MH_I2C_Read... [07:03:44]Read from MH i2c: E2 03 00 4A 02 00 90 00 C0 [07:03:44]RAPDU: 90 00 [07:03:44]wFMCommunicate OK [07:03:44]wFMCommunicate request_size=255 [07:03:44]MH_SAM_APDU [07:03:44]CAPDU: 80 0D 02 02 FA 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 36 31 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 34 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 4F C1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [07:03:44]Write to MH i2c: E2 02 01 4B 02 80 0D 02 02 FA 00 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 36 31 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 34 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 4F C1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 05 [07:03:44]Write i2c OK [07:03:44]MH_I2C_Read... [07:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:44]Read from MH i2c: E2 [07:03:44]MH_I2C_Read... [07:03:44]Read from MH i2c: E2 03 00 [07:03:44]MH_I2C_Read... [07:03:44]Read from MH i2c: E2 03 00 4B 02 00 90 00 C1 [07:03:44]RAPDU: 90 00 [07:03:44]wFMCommunicate OK [07:03:44]wFMCommunicate request_size=27 [07:03:44]MH_SAM_APDU [07:03:44]CAPDU: 80 0D 02 02 16 31 38 33 30 10 04 04 00 76 C2 01 00 35 04 06 00 C5 F2 74 6A 4F 8D [07:03:44]Write to MH i2c: E2 1E 00 4C 02 80 0D 02 02 16 00 31 38 33 30 10 04 04 00 76 C2 01 00 35 04 06 00 C5 F2 74 6A 4F 8D 00 00 C1 [07:03:44]Write i2c OK [07:03:44]MH_I2C_Read... [07:03:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:45]Read from MH i2c: E2 [07:03:45]MH_I2C_Read... [07:03:45]Read from MH i2c: E2 03 00 [07:03:45]MH_I2C_Read... [07:03:45]Read from MH i2c: E2 03 00 4C 02 00 90 00 C2 [07:03:45]RAPDU: 90 00 [07:03:45]wFMCommunicate OK [07:03:45]wFMCommunicate request_size=4 [07:03:45]MH_SAM_APDU [07:03:45]CAPDU: 80 0D 03 02 [07:03:45]Write to MH i2c: E2 08 00 4D 02 80 0D 03 02 00 00 00 00 CA [07:03:45]Write i2c OK [07:03:45]MH_I2C_Read... [07:03:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:03:45]Read from MH i2c: E2 [07:03:45]MH_I2C_Read... [07:03:45]Read from MH i2c: E2 0B 00 [07:03:45]MH_I2C_Read... [07:03:45]Read from MH i2c: E2 0B 00 4D 02 00 6B 03 85 3A 05 5D 12 48 90 00 B4 [07:03:45]RAPDU: 6B 03 85 3A 05 5D 12 48 90 00 [07:03:45]wFMCommunicate OK [07:03:45]SAM_PROTO_SignData done [07:03:45]FM_MakeSignedData done [07:03:45]CreateOFDProtocolMessage [07:03:45]wFMCommunicate request_size=4 [07:03:45]MH_SAM_APDU [07:03:45]CAPDU: 80 11 00 00 [07:03:45]Write to MH i2c: E2 08 00 4E 02 80 11 00 00 00 00 00 00 CA [07:03:45]Write i2c OK [07:03:45]MH_I2C_Read... [07:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:03:45]Read from MH i2c: E2 [07:03:45]MH_I2C_Read... [07:03:45]Read from MH i2c: E2 17 00 [07:03:45]MH_I2C_Read... [07:03:45]Read from MH i2c: E2 17 00 4E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 18 [07:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:03:45]wFMCommunicate OK [07:03:45]CreateOFDProtocolMessage done [07:03:45]OFDSenderStorePacket 115318 [07:03:45]StoreOFDPacket docnum=115318 [07:03:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1A 02 00 00 F9 C1 12 02 92 55 5A 03 01 00 03 00 06 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 36 31 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 34 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 4F C1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 76 C2 01 00 35 04 06 00 C5 F2 74 6A 4F 8D 6B 03 85 3A 05 5D 12 48 [07:03:45]CheckFolder [07:03:45]dirname=/storage/ofd_packets [07:03:45]CheckFolder done [07:03:45]ProducePacketName [07:03:45]name=ofd_packets/00115318 [07:03:45]NVStorageSaveData ofd_packets/00115318 [07:03:45]File name is /storage/ofd_packets/00115318 [07:03:45]Write 568 bytes [07:03:45]NVStorageSaveData done [07:03:45]OFDSenderStorePacket done [07:03:45]KKMCreateOFDPacket done [07:03:45]NVStorageSaveData kkm_last_timestamp [07:03:45]File name is /storage/kkm_last_timestamp [07:03:45]Write 4 bytes [07:03:45]NVStorageSaveData done [07:03:45]ExternCall_PrintAddStr [07:03:45]wPrintStart [07:03:45]Write to MH i2c: 01 00 00 4F 02 51 [07:03:45]Write i2c OK [07:03:45]MH_I2C_Read... [07:03:45]Read from MH i2c: 01 [07:03:45]MH_I2C_Read... [07:03:45]Read from MH i2c: 01 07 00 [07:03:45]MH_I2C_Read... [07:03:45]Read from MH i2c: 01 07 00 4F 02 00 00 00 00 00 FF 0F 66 [07:03:45]RasterBufferAndPrint [07:03:45]line Счет N : (3)343777 [07:03:45]line ИНН: 02508201610067 [07:03:45]line Контрольно-Кассовый Чек [07:03:45]line ПРОДАЖА [07:03:45]line Товар: 4650243870968 [07:03:45]line Напиток Gorilla ж/б 0,45л Персик Абрикос [07:03:45]line 1.000 * 90.00 [07:03:45]line = 90.00 [07:03:45]line НДС 12% НСП 1% [07:03:45]line > о реализуемом товаре [07:03:45]line Товар: 48743587 [07:03:45]line Сигареты Winston XStyle Silver [07:03:45]line 1.000 * 144.00 [07:03:45]line = 144.00 [07:03:45]line НДС 12% НСП 1% [07:03:45]line > о реализуемом товаре [07:03:45]line Товар: 4607084351361 [07:03:45]line Бисквит Чоко пай 4шт [07:03:45]line 1.000 * 130.00 [07:03:45]line = 130.00 [07:03:45]line НДС 12% НСП 1% [07:03:45]line > о реализуемом товаре [07:03:45]line ИТОГО: 364.00 [07:03:45]line НСП 1% : 3.22 [07:03:45]line НДС 12% : 38.65 [07:03:45]line Наличными: 364.00 [07:03:45]line Безнал.: 0.00 [07:03:45]line Место: АЗС № 90 "Партнер Нефть" [07:03:45]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [07:03:45]line СНО: Общий режим [07:03:45]line Чек 36 22.09.2024 07:03 [07:03:45]line Смена: 471 ФФД: 1.0 [07:03:45]line ЗНМ: 0300000120 [07:03:45]line РНМ: 0000000000091831 [07:03:45]line Версия ККМ: 001 [07:03:45]line ФМ: 0000000000871830 [07:03:45]line ФД: 115318 [07:03:45]line ФПД: 217645125881741 [07:03:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T070343&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115318&fm=217645125881741&tin=02508201610067®Number=0000000000091831&sum=36400 [07:03:45]line 0 [07:03:45]OFD Sender: Processing packet 115318 [packets to send 481, broken 480] [07:03:45]ProducePacketName [07:03:45]name=ofd_packets/00115318 [07:03:45]OFD Sender: To server: pG, [07:03:45]CommunicateWithHost lk.salyk.kg:30040 [07:03:45]ConnectInit lk.salyk.kg [07:03:45]written 0, free lines is 4095 [07:03:45]Connected sock=10 [07:03:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1A 02 00 00 F9 C1 12 02 92 55 5A 03 01 00 03 00 06 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 36 31 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 34 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 4F C1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 76 C2 01 00 35 04 06 00 C5 F2 74 6A 4F 8D 6B 03 85 3A 05 5D 12 48 [07:03:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E4 DE 47 00 AB 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 31 38 33 30 10 04 04 00 76 C2 01 00 F4 03 04 00 96 66 EF 66 B6 04 01 00 00 80 1E 69 DA 8B 00 47 FE [07:03:45]CommunicateWithHost err = 0 [07:03:45]CheckOFDResponse [07:03:45]1017 (14) - 77093643461234 [07:03:45]1041 (16) - 0000000000871830 [07:03:45]1040 (4) - 115318 [07:03:45]1012 (4) - 22.09.2024 00:36 [07:03:45]1206 (1) - 0 [07:03:45]OFD Sender: Remove packet 115318 [07:03:45]ProducePacketName [07:03:45]name=ofd_packets/00115318 [07:03:45]NVStorageDeleteData [07:03:46]Write to MH i2c: 01 00 00 84 02 86 [07:03:46]Write i2c OK [07:03:46]MH_I2C_Read... [07:03:46]Read from MH i2c: 01 [07:03:46]MH_I2C_Read... [07:03:46]Read from MH i2c: 01 07 00 [07:03:46]MH_I2C_Read... [07:03:46]Read from MH i2c: 01 07 00 84 02 00 00 00 00 00 4C 0B E4 [07:03:46]RasterBufferAndPrint [07:03:46]line [07:03:46]line [07:03:46]line [07:03:46]line [07:03:46]line [07:03:46]written 0, free lines is 2894 [07:03:46]MH_Cut [07:03:46]Write to MH i2c: D1 01 00 8B 02 01 5F [07:03:46]Write i2c OK [07:03:46]MH_I2C_Read... [07:03:46]Read from MH i2c: D1 [07:03:46]MH_I2C_Read... [07:03:46]Read from MH i2c: D1 01 00 [07:03:46]MH_I2C_Read... [07:03:46]Read from MH i2c: D1 01 00 8B 02 00 5E [07:03:46]Write to MH i2c: 01 00 00 8C 02 8E [07:03:46]Write i2c OK [07:03:46]MH_I2C_Read... [07:03:46]OFD Sender: No OFD packet to send [07:03:47]*** Cut start [07:03:47]*** Partial cut [07:03:47]*** CUTSNS_PIN = 1 [07:03:47]*** CUTSNS_PIN = 0 [07:03:48]*** Brake cut motor [07:03:48]Read from MH i2c: 01 [07:03:48]MH_I2C_Read... [07:03:48]*** Stop cut motor [07:03:48]*** Cut end [07:03:48]Read from MH i2c: 01 07 00 [07:03:48]MH_I2C_Read... [07:03:48]Read from MH i2c: 01 07 00 8C 02 00 00 00 00 00 FF 0F A3 [07:03:48]process_action close_receipt done [07:03:48]requested_data is exist [07:03:48]produce_requested_data [07:03:48]requested_item fm.sn is exist - process it [07:03:48]wFMCommunicate request_size=4 [07:03:48]MH_SAM_APDU [07:03:48]CAPDU: 80 11 00 00 [07:03:48]Write to MH i2c: E2 08 00 8D 02 80 11 00 00 00 00 00 00 09 [07:03:48]Write i2c OK [07:03:48]MH_I2C_Read... [07:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:03:48]Read from MH i2c: E2 [07:03:48]MH_I2C_Read... [07:03:48]Read from MH i2c: E2 17 00 [07:03:48]MH_I2C_Read... [07:03:48]Read from MH i2c: E2 17 00 8D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 57 [07:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:03:48]wFMCommunicate OK [07:03:48]requested_item fd.num is exist - process it [07:03:48]SAM_PROTO_GetFieldsCounters [07:03:48]wFMCommunicate request_size=4 [07:03:48]MH_SAM_APDU [07:03:48]CAPDU: 80 13 00 00 [07:03:48]Write to MH i2c: E2 08 00 8E 02 80 13 00 00 00 00 00 00 0C [07:03:48]Write i2c OK [07:03:48]MH_I2C_Read... [07:03:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:03:48]Read from MH i2c: E2 [07:03:48]MH_I2C_Read... [07:03:48]Read from MH i2c: E2 62 00 [07:03:48]MH_I2C_Read... [07:03:48]Read from MH i2c: E2 62 00 8E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 76 C2 01 00 0E 04 04 00 D7 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 A2 [07:03:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 76 C2 01 00 0E 04 04 00 D7 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 [07:03:48]wFMCommunicate OK [07:03:48]SAM_PROTO_GetFieldsCounters done [07:03:48]requested_item shift.num is exist - process it [07:03:48]requested_item shift.opened is exist - process it [07:03:48]req_shift_opened [07:03:48]FM_GetShiftState [07:03:48]SAM_PROTO_GetShiftState [07:03:48]wFMCommunicate request_size=4 [07:03:48]MH_SAM_APDU [07:03:48]CAPDU: 80 13 01 00 [07:03:48]Write to MH i2c: E2 08 00 8F 02 80 13 01 00 00 00 00 00 0E [07:03:48]Write i2c OK [07:03:48]MH_I2C_Read... [07:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:03:48]Read from MH i2c: E2 [07:03:48]MH_I2C_Read... [07:03:48]Read from MH i2c: E2 0E 00 [07:03:48]MH_I2C_Read... [07:03:48]Read from MH i2c: E2 0E 00 8F 02 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 27 [07:03:48]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [07:03:48]wFMCommunicate OK [07:03:48]SAM_PROTO_GetShiftState done [07:03:48]FM_GetShiftState done [07:03:48]req_shift_opened done [07:03:48]requested_item shift.open_date is exist - process it [07:03:48]req_shift_open_date [07:03:48]req_shift_open_date done [07:03:48]produce_requested_data done [07:03:48]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115318,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [07:03:48]process_action_free close_receipt [07:03:48]json_value_free [07:03:48]json_value_free done [07:03:48]process_json_proto returns [07:03:48]Send response to host [07:03:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115318,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [07:03:48]free response buf [07:03:48]execute_script done [07:03:48]execute_script returns [07:03:48]free content buf [07:03:48]Sock 9.Close socket [07:03:48]Sock 9.Thread stoped [07:03:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]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:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]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:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]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:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:06]OFD Sender: No OFD packet to send [07:38:11]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:21]OFD Sender: No OFD packet to send [07:38:26]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:36]OFD Sender: No OFD packet to send [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41: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:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44: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:40]accept exits with 8 [07:45:40]New connection [07:45:40]New thread 3066981732 created [07:45:40]Thread 3066838372 joined [07:45:40]Waiting for new connection... [07:45:40] Sock 8.Parse request [07:45:40]Sock 8.Check first char [07:45:40]Sock 8.First char is OK [07:45:40]request: POST /json_proto HTTP/1.0 [07:45:40]Method: POST [07:45:40]URL: /json_proto [07:45:40]Method is POST - this is cgi request [07:45:40]url: /json_proto [07:45:40]query_string will be loaded in cgi processing [07:45:40]execute_cgi json_proto POST (null) [07:45:40]execute_cgi path=json_proto method=POST [07:45:40]POST find Content-Length [07:45:40]Host: 172.17.41.136:8080 [07:45:40]Content-Length: 655 [07:45:40]Content-Type: application/json [07:45:40] [07:45:40]POST finish read [07:45:40]Found Content-Length = 655 [07:45:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343778", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:40]execute_script... [07:45:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343778", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:40]POST & json_proto [07:45:40]process_json_proto [07:45:40]json parsed OK: [07:45:40]protocol is kg_v1.0 [07:45:40]action value=close_receipt [07:45:40]process_action close_receipt [07:45:40]cmd_close_receipt [07:45:40]MH_GetDate [07:45:40]Write to MH i2c: F0 00 00 90 02 81 [07:45:40]Write i2c OK [07:45:40]MH_I2C_Read... [07:45:40]Read from MH i2c: F0 [07:45:40]MH_I2C_Read... [07:45:40]Read from MH i2c: F0 09 00 [07:45:40]MH_I2C_Read... [07:45:40]Read from MH i2c: F0 09 00 90 02 00 25 CB EF 66 1B D0 5A 64 78 [07:45:40]GetLastDocTimeStamp 1726988623 [07:45:40]current date 1726991141 [07:45:40]FM_GetShiftState [07:45:40]SAM_PROTO_GetShiftState [07:45:40]wFMCommunicate request_size=4 [07:45:40]MH_SAM_APDU [07:45:40]CAPDU: 80 13 01 00 [07:45:40]Write to MH i2c: E2 08 00 91 02 80 13 01 00 00 00 00 00 10 [07:45:40]Write i2c OK [07:45:40]MH_I2C_Read... [07:45:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:40]Read from MH i2c: E2 [07:45:40]MH_I2C_Read... [07:45:40]Read from MH i2c: E2 0E 00 [07:45:40]MH_I2C_Read... [07:45:40]Read from MH i2c: E2 0E 00 91 02 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 29 [07:45:40]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [07:45:40]wFMCommunicate OK [07:45:40]SAM_PROTO_GetShiftState done [07:45:40]FM_GetShiftState done [07:45:40]opened in 1726965840 [07:45:40]opened+sec_in_day 1727052240 [07:45:40]quantity*price = 8500 [07:45:40]sum+1 = 8501 [07:45:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 37 22.09.2024 07:45 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115319 ФПД: 92160349663956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T074541&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115319&fm=92160349663956&tin=02508201610067®Number=0000000000091831&sum=8500 0 [07:45:41]StoreToDocumentArchive [07:45:41]shift 471 fd 115319 [07:45:41]save to /storage/0471/doc_00115319 [07:45:41]save last doc name /storage/0471/doc_00115319 to /storage/kkm_last_doc_name [07:45:41]save OK [07:45:41]Clear old archive folders... [07:45:41]ProcessDocumentItem done err = 0, tmpTLVsize=294 [07:45:41]tlvbuf is 01792510 [07:45:41]SAM_PROTO_ClearQueue [07:45:41]wFMCommunicate request_size=4 [07:45:41]MH_SAM_APDU [07:45:41]CAPDU: 80 09 00 00 [07:45:41]Write to MH i2c: E2 08 00 9E 02 80 09 00 00 00 00 00 00 12 [07:45:41]Write i2c OK [07:45:41]MH_I2C_Read... [07:45:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:45:41]Read from MH i2c: E2 [07:45:41]MH_I2C_Read... [07:45:41]Read from MH i2c: E2 03 00 [07:45:41]MH_I2C_Read... [07:45:41]Read from MH i2c: E2 03 00 9E 02 00 90 00 14 [07:45:41]RAPDU: 90 00 [07:45:41]wFMCommunicate OK [07:45:41]SAM_PROTO_ClearQueue done [07:45:41]KKMCreateOFDPacket [07:45:41]OFDProtocolAddRootSTLVToBuf [07:45:41]FM_MakeSignedData [07:45:41]FM_MakeSignedData [07:45:41]SAM_PROTO_SignData [07:45:41]wFMCommunicate request_size=4 [07:45:41]MH_SAM_APDU [07:45:41]CAPDU: 80 0D 01 02 [07:45:41]Write to MH i2c: E2 08 00 9F 02 80 0D 01 02 00 00 00 00 1A [07:45:41]Write i2c OK [07:45:41]MH_I2C_Read... [07:45:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:45:41]Read from MH i2c: E2 [07:45:41]MH_I2C_Read... [07:45:41]Read from MH i2c: E2 03 00 [07:45:41]MH_I2C_Read... [07:45:41]Read from MH i2c: E2 03 00 9F 02 00 90 00 15 [07:45:41]RAPDU: 90 00 [07:45:41]wFMCommunicate OK [07:45:41]wFMCommunicate request_size=255 [07:45:41]MH_SAM_APDU [07:45:41]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 25 CB EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [07:45:41]Write to MH i2c: E2 02 01 A0 02 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 25 CB EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 40 [07:45:41]Write i2c OK [07:45:41]MH_I2C_Read... [07:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:41]Read from MH i2c: E2 [07:45:41]MH_I2C_Read... [07:45:41]Read from MH i2c: E2 03 00 [07:45:41]MH_I2C_Read... [07:45:41]Read from MH i2c: E2 03 00 A0 02 00 90 00 16 [07:45:41]RAPDU: 90 00 [07:45:41]wFMCommunicate OK [07:45:41]wFMCommunicate request_size=53 [07:45:41]MH_SAM_APDU [07:45:41]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 77 C2 01 00 35 04 06 00 53 D1 C0 E7 72 D4 [07:45:41]Write to MH i2c: E2 38 00 A1 02 80 0D 02 02 30 00 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 77 C2 01 00 35 04 06 00 53 D1 C0 E7 72 D4 00 00 55 [07:45:41]Write i2c OK [07:45:41]MH_I2C_Read... [07:45:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:42]Read from MH i2c: E2 [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: E2 03 00 [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: E2 03 00 A1 02 00 90 00 17 [07:45:42]RAPDU: 90 00 [07:45:42]wFMCommunicate OK [07:45:42]wFMCommunicate request_size=4 [07:45:42]MH_SAM_APDU [07:45:42]CAPDU: 80 0D 03 02 [07:45:42]Write to MH i2c: E2 08 00 A2 02 80 0D 03 02 00 00 00 00 1F [07:45:42]Write i2c OK [07:45:42]MH_I2C_Read... [07:45:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:45:42]Read from MH i2c: E2 [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: E2 0B 00 [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: E2 0B 00 A2 02 00 D9 DF 0B AB 2D FD A5 FD 90 00 5A [07:45:42]RAPDU: D9 DF 0B AB 2D FD A5 FD 90 00 [07:45:42]wFMCommunicate OK [07:45:42]SAM_PROTO_SignData done [07:45:42]FM_MakeSignedData done [07:45:42]CreateOFDProtocolMessage [07:45:42]wFMCommunicate request_size=4 [07:45:42]MH_SAM_APDU [07:45:42]CAPDU: 80 11 00 00 [07:45:42]Write to MH i2c: E2 08 00 A3 02 80 11 00 00 00 00 00 00 1F [07:45:42]Write i2c OK [07:45:42]MH_I2C_Read... [07:45:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:42]Read from MH i2c: E2 [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: E2 17 00 [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: E2 17 00 A3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6D [07:45:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:45:42]wFMCommunicate OK [07:45:42]CreateOFDProtocolMessage done [07:45:42]OFDSenderStorePacket 115319 [07:45:42]StoreOFDPacket docnum=115319 [07:45:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3A 01 00 00 4D 3C 32 01 59 5E 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 25 CB EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 77 C2 01 00 35 04 06 00 53 D1 C0 E7 72 D4 D9 DF 0B AB 2D FD A5 FD [07:45:42]CheckFolder [07:45:42]dirname=/storage/ofd_packets [07:45:42]CheckFolder done [07:45:42]ProducePacketName [07:45:42]name=ofd_packets/00115319 [07:45:42]NVStorageSaveData ofd_packets/00115319 [07:45:42]File name is /storage/ofd_packets/00115319 [07:45:42]Write 344 bytes [07:45:42]NVStorageSaveData done [07:45:42]OFDSenderStorePacket done [07:45:42]KKMCreateOFDPacket done [07:45:42]NVStorageSaveData kkm_last_timestamp [07:45:42]File name is /storage/kkm_last_timestamp [07:45:42]Write 4 bytes [07:45:42]NVStorageSaveData done [07:45:42]ExternCall_PrintAddStr [07:45:42]wPrintStart [07:45:42]Write to MH i2c: 01 00 00 A4 02 A6 [07:45:42]OFD Sender: Processing packet 115319 [packets to send 481, broken 480] [07:45:42]ProducePacketName [07:45:42]name=ofd_packets/00115319 [07:45:42]OFD Sender: To server: pG, [07:45:42]CommunicateWithHost lk.salyk.kg:30040 [07:45:42]ConnectInit lk.salyk.kg [07:45:42]Write i2c OK [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: 01 [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: 01 07 00 [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: 01 07 00 A4 02 00 00 00 00 00 FF 0F BB [07:45:42]RasterBufferAndPrint [07:45:42]line Счет N : (3)343778 [07:45:42]line ИНН: 02508201610067 [07:45:42]line Контрольно-Кассовый Чек [07:45:42]line ПРОДАЖА [07:45:42]line Товар: 4600682557456 [07:45:42]line Напиток FLash up energy эн ж/б 0,5/0,45л [07:45:42]line 1.000 * 85.00 [07:45:42]line = 85.00 [07:45:42]line НДС 12% НСП 1% [07:45:42]line > о реализуемом товаре [07:45:42]line ИТОГО: 85.00 [07:45:42]line НСП 1% : 0.75 [07:45:42]line НДС 12% : 9.03 [07:45:42]line Наличными: 85.00 [07:45:42]line Безнал.: 0.00 [07:45:42]line Место: АЗС № 90 "Партнер Нефть" [07:45:42]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [07:45:42]line СНО: Общий режим [07:45:42]line Чек 37 22.09.2024 07:45 [07:45:42]line Смена: 471 ФФД: 1.0 [07:45:42]line ЗНМ: 0300000120 [07:45:42]line РНМ: 0000000000091831 [07:45:42]line Версия ККМ: 001 [07:45:42]line ФМ: 0000000000871830 [07:45:42]line ФД: 115319 [07:45:42]line ФПД: 92160349663956 [07:45:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T074541&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115319&fm=92160349663956&tin=02508201610067®Number=0000000000091831&sum=8500 [07:45:42]line 0 [07:45:42]Connected sock=10 [07:45:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3A 01 00 00 4D 3C 32 01 59 5E 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 25 CB EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 77 C2 01 00 35 04 06 00 53 D1 C0 E7 72 D4 D9 DF 0B AB 2D FD A5 FD [07:45:42]written 0, free lines is 4095 [07:45:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 8B 3F 47 00 ED 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 77 C2 01 00 F4 03 04 00 6B 70 EF 66 B6 04 01 00 00 62 51 EC 11 29 67 4D 9C [07:45:42]CommunicateWithHost err = 0 [07:45:42]CheckOFDResponse [07:45:42]1017 (14) - 77093643461234 [07:45:42]1041 (16) - 0000000000871830 [07:45:42]1040 (4) - 115319 [07:45:42]1012 (4) - 22.09.2024 01:18 [07:45:42]1206 (1) - 0 [07:45:42]OFD Sender: Remove packet 115319 [07:45:42]ProducePacketName [07:45:42]name=ofd_packets/00115319 [07:45:42]NVStorageDeleteData [07:45:42]Write to MH i2c: 01 00 00 CC 02 CE [07:45:42]Write i2c OK [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: 01 [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: 01 07 00 [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: 01 07 00 CC 02 00 00 00 00 00 58 0C 39 [07:45:42]RasterBufferAndPrint [07:45:42]line [07:45:42]line [07:45:42]line [07:45:42]line [07:45:42]line [07:45:42]written 0, free lines is 3164 [07:45:42]MH_Cut [07:45:42]Write to MH i2c: D1 01 00 D3 02 01 A7 [07:45:42]Write i2c OK [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: D1 [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: D1 01 00 [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: D1 01 00 D3 02 00 A6 [07:45:42]Write to MH i2c: 01 00 00 D4 02 D6 [07:45:42]Write i2c OK [07:45:42]MH_I2C_Read... [07:45:43]OFD Sender: No OFD packet to send [07:45:44]*** Cut start [07:45:44]*** Partial cut [07:45:44]*** CUTSNS_PIN = 1 [07:45:44]*** CUTSNS_PIN = 0 [07:45:44]*** Brake cut motor [07:45:44]Read from MH i2c: 01 [07:45:44]MH_I2C_Read... [07:45:44]*** Stop cut motor [07:45:44]*** Cut end [07:45:44]Read from MH i2c: 01 07 00 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: 01 07 00 D4 02 00 00 00 00 00 FF 0F EB [07:45:44]process_action close_receipt done [07:45:44]requested_data is exist [07:45:44]produce_requested_data [07:45:44]requested_item fm.sn is exist - process it [07:45:44]wFMCommunicate request_size=4 [07:45:44]MH_SAM_APDU [07:45:44]CAPDU: 80 11 00 00 [07:45:44]Write to MH i2c: E2 08 00 D5 02 80 11 00 00 00 00 00 00 51 [07:45:44]Write i2c OK [07:45:44]MH_I2C_Read... [07:45:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:44]Read from MH i2c: E2 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: E2 17 00 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: E2 17 00 D5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9F [07:45:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:45:44]wFMCommunicate OK [07:45:44]requested_item fd.num is exist - process it [07:45:44]SAM_PROTO_GetFieldsCounters [07:45:44]wFMCommunicate request_size=4 [07:45:44]MH_SAM_APDU [07:45:44]CAPDU: 80 13 00 00 [07:45:44]Write to MH i2c: E2 08 00 D6 02 80 13 00 00 00 00 00 00 54 [07:45:44]Write i2c OK [07:45:44]MH_I2C_Read... [07:45:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:45:45]Read from MH i2c: E2 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 62 00 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 62 00 D6 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 77 C2 01 00 0E 04 04 00 D7 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 EE [07:45:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 77 C2 01 00 0E 04 04 00 D7 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 [07:45:45]wFMCommunicate OK [07:45:45]SAM_PROTO_GetFieldsCounters done [07:45:45]requested_item shift.num is exist - process it [07:45:45]requested_item shift.opened is exist - process it [07:45:45]req_shift_opened [07:45:45]FM_GetShiftState [07:45:45]SAM_PROTO_GetShiftState [07:45:45]wFMCommunicate request_size=4 [07:45:45]MH_SAM_APDU [07:45:45]CAPDU: 80 13 01 00 [07:45:45]Write to MH i2c: E2 08 00 D7 02 80 13 01 00 00 00 00 00 56 [07:45:45]Write i2c OK [07:45:45]MH_I2C_Read... [07:45:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:45]Read from MH i2c: E2 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 0E 00 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 0E 00 D7 02 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 6F [07:45:45]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [07:45:45]wFMCommunicate OK [07:45:45]SAM_PROTO_GetShiftState done [07:45:45]FM_GetShiftState done [07:45:45]req_shift_opened done [07:45:45]requested_item shift.open_date is exist - process it [07:45:45]req_shift_open_date [07:45:45]req_shift_open_date done [07:45:45]produce_requested_data done [07:45:45]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115319,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [07:45:45]process_action_free close_receipt [07:45:45]json_value_free [07:45:45]json_value_free done [07:45:45]process_json_proto returns [07:45:45]Send response to host [07:45:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115319,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [07:45:45]free response buf [07:45:45]execute_script done [07:45:45]execute_script returns [07:45:45]free content buf [07:45:45]Sock 8.Close socket [07:45:45]Sock 8.Thread stoped [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:50]accept exits with 9 [07:46:50]New connection [07:46:50]New thread 3066838372 created [07:46:50]Thread 3066981732 joined [07:46:50]Waiting for new connection... [07:46:50] Sock 9.Parse request [07:46:50]Sock 9.Check first char [07:46:50]Sock 9.First char is OK [07:46:50]request: POST /json_proto HTTP/1.0 [07:46:50]Method: POST [07:46:50]URL: /json_proto [07:46:50]Method is POST - this is cgi request [07:46:50]url: /json_proto [07:46:50]query_string will be loaded in cgi processing [07:46:50]execute_cgi json_proto POST (null) [07:46:50]execute_cgi path=json_proto method=POST [07:46:50]POST find Content-Length [07:46:50]Host: 172.17.41.136:8080 [07:46:50]Content-Length: 860 [07:46:50]Content-Type: application/json [07:46:50] [07:46:50]POST finish read [07:46:50]Found Content-Length = 860 [07:46:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343780", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871781", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 234.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:50]execute_script... [07:46:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343780", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871781", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 234.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:50]POST & json_proto [07:46:50]process_json_proto [07:46:50]json parsed OK: [07:46:50]protocol is kg_v1.0 [07:46:50]action value=close_receipt [07:46:50]process_action close_receipt [07:46:50]cmd_close_receipt [07:46:50]MH_GetDate [07:46:50]Write to MH i2c: F0 00 00 D8 02 C9 [07:46:50]Write i2c OK [07:46:50]MH_I2C_Read... [07:46:50]Read from MH i2c: F0 [07:46:50]MH_I2C_Read... [07:46:50]Read from MH i2c: F0 09 00 [07:46:50]MH_I2C_Read... [07:46:50]Read from MH i2c: F0 09 00 D8 02 00 6B CB EF 66 1B D0 5A 64 06 [07:46:50]GetLastDocTimeStamp 1726991141 [07:46:50]current date 1726991211 [07:46:50]FM_GetShiftState [07:46:50]SAM_PROTO_GetShiftState [07:46:50]wFMCommunicate request_size=4 [07:46:50]MH_SAM_APDU [07:46:50]CAPDU: 80 13 01 00 [07:46:50]Write to MH i2c: E2 08 00 D9 02 80 13 01 00 00 00 00 00 58 [07:46:50]Write i2c OK [07:46:50]MH_I2C_Read... [07:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:50]Read from MH i2c: E2 [07:46:50]MH_I2C_Read... [07:46:50]Read from MH i2c: E2 0E 00 [07:46:50]MH_I2C_Read... [07:46:50]Read from MH i2c: E2 0E 00 D9 02 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 71 [07:46:50]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [07:46:50]wFMCommunicate OK [07:46:50]SAM_PROTO_GetShiftState done [07:46:50]FM_GetShiftState done [07:46:50]opened in 1726965840 [07:46:50]opened+sec_in_day 1727052240 [07:46:50]quantity*price = 14400 [07:46:50]sum+1 = 14401 [07:46:50]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4650243871781 Gorilla эн нап Orange 0,45 ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 234.00 НСП 1% : 2.07 НДС 12% : 24.85 Наличными: 234.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 38 22.09.2024 07:46 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115320 ФПД: 218484907657784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T074651&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115320&fm=218484907657784&tin=02508201610067®Number=0000000000091831&sum=23400 0 [07:46:51]StoreToDocumentArchive [07:46:51]shift 471 fd 115320 [07:46:51]save to /storage/0471/doc_00115320 [07:46:51]save last doc name /storage/0471/doc_00115320 to /storage/kkm_last_doc_name [07:46:51]save OK [07:46:51]Clear old archive folders... [07:46:51]ProcessDocumentItem done err = 0, tmpTLVsize=384 [07:46:51]tlvbuf is 01792150 [07:46:51]SAM_PROTO_ClearQueue [07:46:51]wFMCommunicate request_size=4 [07:46:51]MH_SAM_APDU [07:46:51]CAPDU: 80 09 00 00 [07:46:51]Write to MH i2c: E2 08 00 E6 02 80 09 00 00 00 00 00 00 5A [07:46:51]Write i2c OK [07:46:51]MH_I2C_Read... [07:46:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:51]Read from MH i2c: E2 [07:46:51]MH_I2C_Read... [07:46:51]Read from MH i2c: E2 03 00 [07:46:51]MH_I2C_Read... [07:46:51]Read from MH i2c: E2 03 00 E6 02 00 90 00 5C [07:46:51]RAPDU: 90 00 [07:46:51]wFMCommunicate OK [07:46:51]SAM_PROTO_ClearQueue done [07:46:51]KKMCreateOFDPacket [07:46:51]OFDProtocolAddRootSTLVToBuf [07:46:51]FM_MakeSignedData [07:46:51]FM_MakeSignedData [07:46:51]SAM_PROTO_SignData [07:46:51]wFMCommunicate request_size=4 [07:46:51]MH_SAM_APDU [07:46:51]CAPDU: 80 0D 01 02 [07:46:51]Write to MH i2c: E2 08 00 E7 02 80 0D 01 02 00 00 00 00 62 [07:46:51]Write i2c OK [07:46:51]MH_I2C_Read... [07:46:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:51]Read from MH i2c: E2 [07:46:51]MH_I2C_Read... [07:46:51]Read from MH i2c: E2 03 00 [07:46:51]MH_I2C_Read... [07:46:51]Read from MH i2c: E2 03 00 E7 02 00 90 00 5D [07:46:51]RAPDU: 90 00 [07:46:51]wFMCommunicate OK [07:46:51]wFMCommunicate request_size=255 [07:46:51]MH_SAM_APDU [07:46:51]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [07:46:51]Write to MH i2c: E2 02 01 E8 02 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 6E [07:46:51]Write i2c OK [07:46:51]MH_I2C_Read... [07:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:52]Read from MH i2c: E2 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 03 00 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 03 00 E8 02 00 90 00 5E [07:46:52]RAPDU: 90 00 [07:46:52]wFMCommunicate OK [07:46:52]wFMCommunicate request_size=143 [07:46:52]MH_SAM_APDU [07:46:52]CAPDU: 80 0D 02 02 8A CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 09 00 00 00 00 07 04 06 00 68 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 6B CB EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 78 C2 01 00 35 04 06 00 C6 B5 FB 4F 4A 38 [07:46:52]Write to MH i2c: E2 92 00 E9 02 80 0D 02 02 8A 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 09 00 00 00 00 07 04 06 00 68 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 6B CB EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 78 C2 01 00 35 04 06 00 C6 B5 FB 4F 4A 38 00 00 F9 [07:46:52]Write i2c OK [07:46:52]MH_I2C_Read... [07:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:52]Read from MH i2c: E2 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 03 00 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 03 00 E9 02 00 90 00 5F [07:46:52]RAPDU: 90 00 [07:46:52]wFMCommunicate OK [07:46:52]wFMCommunicate request_size=4 [07:46:52]MH_SAM_APDU [07:46:52]CAPDU: 80 0D 03 02 [07:46:52]Write to MH i2c: E2 08 00 EA 02 80 0D 03 02 00 00 00 00 67 [07:46:52]Write i2c OK [07:46:52]MH_I2C_Read... [07:46:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:52]Read from MH i2c: E2 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 0B 00 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 0B 00 EA 02 00 F8 C2 42 AF EA C1 40 5E 90 00 5C [07:46:52]RAPDU: F8 C2 42 AF EA C1 40 5E 90 00 [07:46:52]wFMCommunicate OK [07:46:52]SAM_PROTO_SignData done [07:46:52]FM_MakeSignedData done [07:46:52]CreateOFDProtocolMessage [07:46:52]wFMCommunicate request_size=4 [07:46:52]MH_SAM_APDU [07:46:52]CAPDU: 80 11 00 00 [07:46:52]Write to MH i2c: E2 08 00 EB 02 80 11 00 00 00 00 00 00 67 [07:46:52]Write i2c OK [07:46:52]MH_I2C_Read... [07:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:52]Read from MH i2c: E2 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 17 00 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: E2 17 00 EB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B5 [07:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:46:52]wFMCommunicate OK [07:46:52]CreateOFDProtocolMessage done [07:46:52]OFDSenderStorePacket 115320 [07:46:52]StoreOFDPacket docnum=115320 [07:46:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 94 01 00 00 8A 69 8C 01 EA A7 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 09 00 00 00 00 07 04 06 00 68 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 6B CB EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 78 C2 01 00 35 04 06 00 C6 B5 FB 4F 4A 38 F8 C2 42 AF EA C1 40 5E [07:46:52]CheckFolder [07:46:52]dirname=/storage/ofd_packets [07:46:52]CheckFolder done [07:46:52]ProducePacketName [07:46:52]name=ofd_packets/00115320 [07:46:52]NVStorageSaveData ofd_packets/00115320 [07:46:52]File name is /storage/ofd_packets/00115320 [07:46:52]Write 434 bytes [07:46:52]NVStorageSaveData done [07:46:52]OFDSenderStorePacket done [07:46:52]KKMCreateOFDPacket done [07:46:52]NVStorageSaveData kkm_last_timestamp [07:46:52]File name is /storage/kkm_last_timestamp [07:46:52]Write 4 bytes [07:46:52]NVStorageSaveData done [07:46:52]ExternCall_PrintAddStr [07:46:52]wPrintStart [07:46:52]Write to MH i2c: 01 00 00 EC 02 EE [07:46:52]Write i2c OK [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: 01 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: 01 07 00 [07:46:52]MH_I2C_Read... [07:46:52]Read from MH i2c: 01 07 00 EC 02 00 00 00 00 00 FF 0F 03 [07:46:52]RasterBufferAndPrint [07:46:52]line Счет N : (3)343780 [07:46:52]line ИНН: 02508201610067 [07:46:52]line Контрольно-Кассовый Чек [07:46:52]line ПРОДАЖА [07:46:52]line Товар: 48743587 [07:46:52]line Сигареты Winston XStyle Silver [07:46:52]line 1.000 * 144.00 [07:46:52]line = 144.00 [07:46:52]line НДС 12% НСП 1% [07:46:52]line > о реализуемом товаре [07:46:52]line Товар: 4650243871781 [07:46:52]line Gorilla эн нап Orange 0,45 ж/б [07:46:52]line 1.000 * 90.00 [07:46:52]line = 90.00 [07:46:52]line НДС 12% НСП 1% [07:46:52]line > о реализуемом товаре [07:46:52]line ИТОГО: 234.00 [07:46:52]line НСП 1% : 2.07 [07:46:52]line НДС 12% : 24.85 [07:46:52]line Наличными: 234.00 [07:46:52]line Безнал.: 0.00 [07:46:52]line Место: АЗС № 90 "Партнер Нефть" [07:46:52]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [07:46:52]line СНО: Общий режим [07:46:52]line Чек 38 22.09.2024 07:46 [07:46:52]line Смена: 471 ФФД: 1.0 [07:46:52]line ЗНМ: 0300000120 [07:46:52]line РНМ: 0000000000091831 [07:46:52]line Версия ККМ: 001 [07:46:52]line ФМ: 0000000000871830 [07:46:52]line ФД: 115320 [07:46:52]line ФПД: 218484907657784 [07:46:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T074651&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115320&fm=218484907657784&tin=02508201610067®Number=0000000000091831&sum=23400 [07:46:52]OFD Sender: Processing packet 115320 [packets to send 481, broken 480] [07:46:52]ProducePacketName [07:46:52]name=ofd_packets/00115320 [07:46:52]OFD Sender: To server: pG, [07:46:52]CommunicateWithHost lk.salyk.kg:30040 [07:46:52]ConnectInit lk.salyk.kg [07:46:52]line 0 [07:46:52]written 0, free lines is 4095 [07:46:52]Connected sock=10 [07:46:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 94 01 00 00 8A 69 8C 01 EA A7 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 09 00 00 00 00 07 04 06 00 68 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 6B CB EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 78 C2 01 00 35 04 06 00 C6 B5 FB 4F 4A 38 F8 C2 42 AF EA C1 40 5E [07:46:53]Write to MH i2c: 01 00 00 1A 03 1D [07:46:53]Write i2c OK [07:46:53]MH_I2C_Read... [07:46:53]Read from MH i2c: 01 [07:46:53]MH_I2C_Read... [07:46:53]Read from MH i2c: 01 07 00 [07:46:53]MH_I2C_Read... [07:46:53]Read from MH i2c: 01 07 00 1A 03 00 00 00 00 00 FA 0B 29 [07:46:53]RasterBufferAndPrint [07:46:53]line [07:46:53]line [07:46:53]line [07:46:53]line [07:46:53]line [07:46:53]written 0, free lines is 3070 [07:46:53]MH_Cut [07:46:53]Write to MH i2c: D1 01 00 21 03 01 F6 [07:46:53]Write i2c OK [07:46:53]MH_I2C_Read... [07:46:53]Read from MH i2c: D1 [07:46:53]MH_I2C_Read... [07:46:53]Read from MH i2c: D1 01 00 [07:46:53]MH_I2C_Read... [07:46:53]Read from MH i2c: D1 01 00 21 03 00 F5 [07:46:53]Write to MH i2c: 01 00 00 22 03 25 [07:46:53]Write i2c OK [07:46:53]MH_I2C_Read... [07:46:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B0 2F 47 00 2D 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 78 C2 01 00 F4 03 04 00 B2 70 EF 66 B6 04 01 00 00 1B 41 80 63 07 DF 2A FD [07:46:53]CommunicateWithHost err = 0 [07:46:53]CheckOFDResponse [07:46:53]1017 (14) - 77093643461234 [07:46:53]1041 (16) - 0000000000871830 [07:46:53]1040 (4) - 115320 [07:46:53]1012 (4) - 22.09.2024 01:19 [07:46:53]1206 (1) - 0 [07:46:53]OFD Sender: Remove packet 115320 [07:46:53]ProducePacketName [07:46:53]name=ofd_packets/00115320 [07:46:53]NVStorageDeleteData [07:46:53]OFD Sender: No OFD packet to send [07:46:54]*** Cut start [07:46:54]*** Partial cut [07:46:54]*** CUTSNS_PIN = 1 [07:46:54]*** CUTSNS_PIN = 0 [07:46:54]*** Brake cut motor [07:46:55]Read from MH i2c: 01 [07:46:55]MH_I2C_Read... [07:46:55]*** Stop cut motor [07:46:55]*** Cut end [07:46:55]Read from MH i2c: 01 07 00 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: 01 07 00 22 03 00 00 00 00 00 FF 0F 3A [07:46:55]process_action close_receipt done [07:46:55]requested_data is exist [07:46:55]produce_requested_data [07:46:55]requested_item fm.sn is exist - process it [07:46:55]wFMCommunicate request_size=4 [07:46:55]MH_SAM_APDU [07:46:55]CAPDU: 80 11 00 00 [07:46:55]Write to MH i2c: E2 08 00 23 03 80 11 00 00 00 00 00 00 A0 [07:46:55]Write i2c OK [07:46:55]MH_I2C_Read... [07:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:55]Read from MH i2c: E2 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: E2 17 00 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: E2 17 00 23 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EE [07:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:46:55]wFMCommunicate OK [07:46:55]requested_item fd.num is exist - process it [07:46:55]SAM_PROTO_GetFieldsCounters [07:46:55]wFMCommunicate request_size=4 [07:46:55]MH_SAM_APDU [07:46:55]CAPDU: 80 13 00 00 [07:46:55]Write to MH i2c: E2 08 00 24 03 80 13 00 00 00 00 00 00 A3 [07:46:55]Write i2c OK [07:46:55]MH_I2C_Read... [07:46:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:55]Read from MH i2c: E2 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: E2 62 00 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: E2 62 00 24 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 78 C2 01 00 0E 04 04 00 D7 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 41 [07:46:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 78 C2 01 00 0E 04 04 00 D7 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 [07:46:55]wFMCommunicate OK [07:46:55]SAM_PROTO_GetFieldsCounters done [07:46:55]requested_item shift.num is exist - process it [07:46:55]requested_item shift.opened is exist - process it [07:46:55]req_shift_opened [07:46:55]FM_GetShiftState [07:46:55]SAM_PROTO_GetShiftState [07:46:55]wFMCommunicate request_size=4 [07:46:55]MH_SAM_APDU [07:46:55]CAPDU: 80 13 01 00 [07:46:55]Write to MH i2c: E2 08 00 25 03 80 13 01 00 00 00 00 00 A5 [07:46:55]Write i2c OK [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: E2 [07:46:55]MH_I2C_Read... [07:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:55]Read from MH i2c: E2 0E 00 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: E2 0E 00 25 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 BE [07:46:55]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [07:46:55]wFMCommunicate OK [07:46:55]SAM_PROTO_GetShiftState done [07:46:55]FM_GetShiftState done [07:46:55]req_shift_opened done [07:46:55]requested_item shift.open_date is exist - process it [07:46:55]req_shift_open_date [07:46:55]req_shift_open_date done [07:46:55]produce_requested_data done [07:46:55]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115320,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [07:46:55]process_action_free close_receipt [07:46:55]json_value_free [07:46:55]json_value_free done [07:46:55]process_json_proto returns [07:46:55]Send response to host [07:46:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115320,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [07:46:55]free response buf [07:46:55]execute_script done [07:46:55]execute_script returns [07:46:55]free content buf [07:46:55]Sock 9.Close socket [07:46:55]Sock 9.Thread stoped [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]accept exits with 8 [07:53:39]New connection [07:53:39]New thread 3066981732 created [07:53:39]Thread 3066838372 joined [07:53:39]Waiting for new connection... [07:53:39] Sock 8.Parse request [07:53:39]Sock 8.Check first char [07:53:39]Sock 8.First char is OK [07:53:39]request: POST /json_proto HTTP/1.0 [07:53:39]Method: POST [07:53:39]URL: /json_proto [07:53:39]Method is POST - this is cgi request [07:53:39]url: /json_proto [07:53:39]query_string will be loaded in cgi processing [07:53:39]execute_cgi json_proto POST (null) [07:53:39]execute_cgi path=json_proto method=POST [07:53:39]POST find Content-Length [07:53:39]Host: 172.17.41.136:8080 [07:53:39]Content-Length: 892 [07:53:39]Content-Type: application/json [07:53:39] [07:53:39]POST finish read [07:53:39]Found Content-Length = 892 [07:53:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343781", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742344", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Pink", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 211.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:39]execute_script... [07: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 : (3)343781", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742344", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Pink", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 211.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:39]POST & json_proto [07:53:39]process_json_proto [07:53:39]json parsed OK: [07:53:39]protocol is kg_v1.0 [07:53:39]action value=close_receipt [07:53:39]process_action close_receipt [07:53:39]cmd_close_receipt [07:53:39]MH_GetDate [07:53:39]Write to MH i2c: F0 00 00 26 03 18 [07:53:39]Write i2c OK [07:53:39]MH_I2C_Read... [07:53:39]Read from MH i2c: F0 [07:53:39]MH_I2C_Read... [07:53:39]Read from MH i2c: F0 09 00 [07:53:39]MH_I2C_Read... [07:53:39]Read from MH i2c: F0 09 00 26 03 00 04 CD EF 66 1B D0 5A 64 F0 [07:53:39]GetLastDocTimeStamp 1726991211 [07:53:39]current date 1726991620 [07:53:39]FM_GetShiftState [07:53:39]SAM_PROTO_GetShiftState [07:53:39]wFMCommunicate request_size=4 [07:53:39]MH_SAM_APDU [07:53:39]CAPDU: 80 13 01 00 [07:53:39]Write to MH i2c: E2 08 00 27 03 80 13 01 00 00 00 00 00 A7 [07:53:39]Write i2c OK [07:53:39]MH_I2C_Read... [07:53:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:39]Read from MH i2c: E2 [07:53:39]MH_I2C_Read... [07:53:39]Read from MH i2c: E2 0E 00 [07:53:39]MH_I2C_Read... [07:53:39]Read from MH i2c: E2 0E 00 27 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C0 [07:53:39]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [07:53:39]wFMCommunicate OK [07:53:39]SAM_PROTO_GetShiftState done [07:53:39]FM_GetShiftState done [07:53:39]opened in 1726965840 [07:53:39]opened+sec_in_day 1727052240 [07:53:39]quantity*price = 7700 [07:53:39]sum+1 = 7701 [07:53:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48742344 Сигареты LD Super Slims Pink 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 211.00 НСП 1% : 1.87 НДС 12% : 22.41 Наличными: 211.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 39 22.09.2024 07:53 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115321 ФПД: 164849014570540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T075340&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115321&fm=164849014570540&tin=02508201610067®Number=0000000000091831&sum=21100 0 [07:53:40]StoreToDocumentArchive [07:53:40]shift 471 fd 115321 [07:53:40]save to /storage/0471/doc_00115321 [07:53:40]save last doc name /storage/0471/doc_00115321 to /storage/kkm_last_doc_name [07:53:40]save OK [07:53:40]Clear old archive folders... [07:53:40]ProcessDocumentItem done err = 0, tmpTLVsize=396 [07:53:40]tlvbuf is 017B2EA0 [07:53:40]SAM_PROTO_ClearQueue [07:53:40]wFMCommunicate request_size=4 [07:53:40]MH_SAM_APDU [07:53:40]CAPDU: 80 09 00 00 [07:53:40]Write to MH i2c: E2 08 00 34 03 80 09 00 00 00 00 00 00 A9 [07:53:40]Write i2c OK [07:53:40]MH_I2C_Read... [07:53:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:40]Read from MH i2c: E2 [07:53:40]MH_I2C_Read... [07:53:40]Read from MH i2c: E2 03 00 [07:53:40]MH_I2C_Read... [07:53:40]Read from MH i2c: E2 03 00 34 03 00 90 00 AB [07:53:40]RAPDU: 90 00 [07:53:40]wFMCommunicate OK [07:53:40]SAM_PROTO_ClearQueue done [07:53:40]KKMCreateOFDPacket [07:53:40]OFDProtocolAddRootSTLVToBuf [07:53:40]FM_MakeSignedData [07:53:40]FM_MakeSignedData [07:53:40]SAM_PROTO_SignData [07:53:40]wFMCommunicate request_size=4 [07:53:40]MH_SAM_APDU [07:53:40]CAPDU: 80 0D 01 02 [07:53:40]Write to MH i2c: E2 08 00 35 03 80 0D 01 02 00 00 00 00 B1 [07:53:40]Write i2c OK [07:53:40]MH_I2C_Read... [07:53:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:40]Read from MH i2c: E2 [07:53:40]MH_I2C_Read... [07:53:40]Read from MH i2c: E2 03 00 [07:53:40]MH_I2C_Read... [07:53:40]Read from MH i2c: E2 03 00 35 03 00 90 00 AC [07:53:40]RAPDU: 90 00 [07:53:40]wFMCommunicate OK [07:53:40]wFMCommunicate request_size=255 [07:53:40]MH_SAM_APDU [07:53:40]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 32 33 34 34 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 50 69 6E 6B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF [07:53:40]Write to MH i2c: E2 02 01 36 03 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 32 33 34 34 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 50 69 6E 6B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 00 00 07 [07:53:40]Write i2c OK [07:53:40]MH_I2C_Read... [07:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:41]Read from MH i2c: E2 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 03 00 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 03 00 36 03 00 90 00 AD [07:53:41]RAPDU: 90 00 [07:53:41]wFMCommunicate OK [07:53:41]wFMCommunicate request_size=155 [07:53:41]MH_SAM_APDU [07:53:41]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 08 00 00 00 00 07 04 06 00 6C 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 27 00 00 00 F4 03 04 00 04 CD EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 79 C2 01 00 35 04 06 00 95 ED E6 F4 7E 2C [07:53:41]Write to MH i2c: E2 9E 00 37 03 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 08 00 00 00 00 07 04 06 00 6C 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 27 00 00 00 F4 03 04 00 04 CD EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 79 C2 01 00 35 04 06 00 95 ED E6 F4 7E 2C 00 00 BB [07:53:41]Write i2c OK [07:53:41]MH_I2C_Read... [07:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:41]Read from MH i2c: E2 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 03 00 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 03 00 37 03 00 90 00 AE [07:53:41]RAPDU: 90 00 [07:53:41]wFMCommunicate OK [07:53:41]wFMCommunicate request_size=4 [07:53:41]MH_SAM_APDU [07:53:41]CAPDU: 80 0D 03 02 [07:53:41]Write to MH i2c: E2 08 00 38 03 80 0D 03 02 00 00 00 00 B6 [07:53:41]Write i2c OK [07:53:41]MH_I2C_Read... [07:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:41]Read from MH i2c: E2 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 0B 00 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 0B 00 38 03 00 C2 5A 98 38 90 7B 4A 08 90 00 00 [07:53:41]RAPDU: C2 5A 98 38 90 7B 4A 08 90 00 [07:53:41]wFMCommunicate OK [07:53:41]SAM_PROTO_SignData done [07:53:41]FM_MakeSignedData done [07:53:41]CreateOFDProtocolMessage [07:53:41]wFMCommunicate request_size=4 [07:53:41]MH_SAM_APDU [07:53:41]CAPDU: 80 11 00 00 [07:53:41]Write to MH i2c: E2 08 00 39 03 80 11 00 00 00 00 00 00 B6 [07:53:41]Write i2c OK [07:53:41]MH_I2C_Read... [07:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:41]Read from MH i2c: E2 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 17 00 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 17 00 39 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 04 [07:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:53:41]wFMCommunicate OK [07:53:41]CreateOFDProtocolMessage done [07:53:41]OFDSenderStorePacket 115321 [07:53:41]StoreOFDPacket docnum=115321 [07:53:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A0 01 00 00 CC 2B 98 01 0A 58 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 32 33 34 34 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 50 69 6E 6B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 08 00 00 00 00 07 04 06 00 6C 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 27 00 00 00 F4 03 04 00 04 CD EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 79 C2 01 00 35 04 06 00 95 ED E6 F4 7E 2C C2 5A 98 38 90 7B 4A 08 [07:53:41]CheckFolder [07:53:41]dirname=/storage/ofd_packets [07:53:41]CheckFolder done [07:53:41]ProducePacketName [07:53:41]name=ofd_packets/00115321 [07:53:41]NVStorageSaveData ofd_packets/00115321 [07:53:41]File name is /storage/ofd_packets/00115321 [07:53:41]Write 446 bytes [07:53:41]NVStorageSaveData done [07:53:41]OFDSenderStorePacket done [07:53:41]KKMCreateOFDPacket done [07:53:41]NVStorageSaveData kkm_last_timestamp [07:53:41]File name is /storage/kkm_last_timestamp [07:53:41]Write 4 bytes [07:53:41]NVStorageSaveData done [07:53:41]ExternCall_PrintAddStr [07:53:41]wPrintStart [07:53:41]Write to MH i2c: 01 00 00 3A 03 3D [07:53:41]Write i2c OK [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: 01 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: 01 07 00 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: 01 07 00 3A 03 00 00 00 00 00 FF 0F 52 [07:53:41]RasterBufferAndPrint [07:53:41]line Счет N : (3)343781 [07:53:41]line ИНН: 02508201610067 [07:53:41]line Контрольно-Кассовый Чек [07:53:41]line ПРОДАЖА [07:53:41]line Товар: 4700000480050 [07:53:41]line Напиток Nitro Energy эн green ж/б 0,45л [07:53:41]line 1.000 * 77.00 [07:53:41]line = 77.00 [07:53:41]line НДС 12% НСП 1% [07:53:41]line > о реализуемом товаре [07:53:41]line Товар: 48742344 [07:53:41]line Сигареты LD Super Slims Pink [07:53:41]line 1.000 * 134.00 [07:53:41]line = 134.00 [07:53:41]line НДС 12% НСП 1% [07:53:41]line > о реализуемом товаре [07:53:41]line ИТОГО: 211.00 [07:53:41]line НСП 1% : 1.87 [07:53:41]line НДС 12% : 22.41 [07:53:41]line Наличными: 211.00 [07:53:41]line Безнал.: 0.00 [07:53:41]line Место: АЗС № 90 "Партнер Нефть" [07:53:41]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [07:53:41]line СНО: Общий режим [07:53:41]line Чек 39 22.09.2024 07:53 [07:53:41]line Смена: 471 ФФД: 1.0 [07:53:41]line ЗНМ: 0300000120 [07:53:41]line РНМ: 0000000000091831 [07:53:41]line Версия ККМ: 001 [07:53:41]line ФМ: 0000000000871830 [07:53:41]line ФД: 115321 [07:53:41]line ФПД: 164849014570540 [07:53:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T075340&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115321&fm=164849014570540&tin=02508201610067®Number=0000000000091831&sum=21100 [07:53:41]line 0 [07:53:41]OFD Sender: Processing packet 115321 [packets to send 481, broken 480] [07:53:41]ProducePacketName [07:53:41]name=ofd_packets/00115321 [07:53:41]OFD Sender: To server: pG, [07:53:41]CommunicateWithHost lk.salyk.kg:30040 [07:53:41]ConnectInit lk.salyk.kg [07:53:41]written 0, free lines is 4095 [07:53:41]Connected sock=10 [07: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 31 38 33 30 A0 01 00 00 CC 2B 98 01 0A 58 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 32 33 34 34 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 50 69 6E 6B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 08 00 00 00 00 07 04 06 00 6C 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 27 00 00 00 F4 03 04 00 04 CD EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 79 C2 01 00 35 04 06 00 95 ED E6 F4 7E 2C C2 5A 98 38 90 7B 4A 08 [07:53:42]Write to MH i2c: 01 00 00 68 03 6B [07:53:42]Write i2c OK [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: 01 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: 01 07 00 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: 01 07 00 68 03 00 00 00 00 00 E0 0B 5D [07:53:42]RasterBufferAndPrint [07:53:42]line [07:53:42]line [07:53:42]line [07:53:42]line [07:53:42]line [07:53:42]written 0, free lines is 3045 [07:53:42]MH_Cut [07:53:42]Write to MH i2c: D1 01 00 6F 03 01 44 [07:53:42]Write i2c OK [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: D1 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: D1 01 00 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: D1 01 00 6F 03 00 43 [07:53:42]Write to MH i2c: 01 00 00 70 03 73 [07:53:42]Write i2c OK [07:53:42]MH_I2C_Read... [07:53:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 56 A0 47 00 78 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 79 C2 01 00 F4 03 04 00 4B 72 EF 66 B6 04 01 00 00 CA 9D D6 10 FF 1D D4 46 [07:53:42]CommunicateWithHost err = 0 [07:53:42]CheckOFDResponse [07:53:42]1017 (14) - 77093643461234 [07:53:42]1041 (16) - 0000000000871830 [07:53:42]1040 (4) - 115321 [07:53:42]1012 (4) - 22.09.2024 01:26 [07:53:42]1206 (1) - 0 [07:53:42]OFD Sender: Remove packet 115321 [07:53:42]ProducePacketName [07:53:42]name=ofd_packets/00115321 [07:53:42]NVStorageDeleteData [07:53:42]OFD Sender: No OFD packet to send [07:53:43]*** Cut start [07:53:43]*** Partial cut [07:53:43]*** CUTSNS_PIN = 1 [07:53:43]*** CUTSNS_PIN = 0 [07:53:44]*** Brake cut motor [07:53:44]Read from MH i2c: 01 [07:53:44]MH_I2C_Read... [07:53:44]*** Stop cut motor [07:53:44]*** Cut end [07:53:44]Read from MH i2c: 01 07 00 [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: 01 07 00 70 03 00 00 00 00 00 FF 0F 88 [07:53:44]process_action close_receipt done [07:53:44]requested_data is exist [07:53:44]produce_requested_data [07:53:44]requested_item fm.sn is exist - process it [07:53:44]wFMCommunicate request_size=4 [07:53:44]MH_SAM_APDU [07:53:44]CAPDU: 80 11 00 00 [07:53:44]Write to MH i2c: E2 08 00 71 03 80 11 00 00 00 00 00 00 EE [07:53:44]Write i2c OK [07:53:44]MH_I2C_Read... [07:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:44]Read from MH i2c: E2 [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: E2 17 00 [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: E2 17 00 71 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3C [07:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:53:44]wFMCommunicate OK [07:53:44]requested_item fd.num is exist - process it [07:53:44]SAM_PROTO_GetFieldsCounters [07:53:44]wFMCommunicate request_size=4 [07:53:44]MH_SAM_APDU [07:53:44]CAPDU: 80 13 00 00 [07:53:44]Write to MH i2c: E2 08 00 72 03 80 13 00 00 00 00 00 00 F1 [07:53:44]Write i2c OK [07:53:44]MH_I2C_Read... [07:53:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:44]Read from MH i2c: E2 [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: E2 62 00 [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: E2 62 00 72 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 79 C2 01 00 0E 04 04 00 D7 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 93 [07: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 79 C2 01 00 0E 04 04 00 D7 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 [07:53:44]wFMCommunicate OK [07:53:44]SAM_PROTO_GetFieldsCounters done [07:53:44]requested_item shift.num is exist - process it [07:53:44]requested_item shift.opened is exist - process it [07:53:44]req_shift_opened [07:53:44]FM_GetShiftState [07:53:44]SAM_PROTO_GetShiftState [07:53:44]wFMCommunicate request_size=4 [07:53:44]MH_SAM_APDU [07:53:44]CAPDU: 80 13 01 00 [07:53:44]Write to MH i2c: E2 08 00 73 03 80 13 01 00 00 00 00 00 F3 [07:53:44]Write i2c OK [07:53:44]MH_I2C_Read... [07:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:44]Read from MH i2c: E2 [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: E2 0E 00 [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: E2 0E 00 73 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 0C [07:53:44]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [07:53:44]wFMCommunicate OK [07:53:44]SAM_PROTO_GetShiftState done [07:53:44]FM_GetShiftState done [07:53:44]req_shift_opened done [07:53:44]requested_item shift.open_date is exist - process it [07:53:44]req_shift_open_date [07:53:44]req_shift_open_date done [07:53:44]produce_requested_data done [07:53:44]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115321,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [07:53:44]process_action_free close_receipt [07:53:44]json_value_free [07:53:44]json_value_free done [07:53:44]process_json_proto returns [07:53:44]Send response to host [07:53:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115321,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [07:53:44]free response buf [07:53:44]execute_script done [07:53:44]execute_script returns [07:53:44]free content buf [07:53:44]Sock 8.Close socket [07:53:44]Sock 8.Thread stoped [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:34]accept exits with 9 [07:56:34]New connection [07:56:34]New thread 3066838372 created [07:56:34]Thread 3066981732 joined [07:56:34]Waiting for new connection... [07:56:34] Sock 9.Parse request [07:56:34]Sock 9.Check first char [07:56:34]Sock 9.First char is OK [07:56:34]request: POST /json_proto HTTP/1.0 [07:56:34]Method: POST [07:56:34]URL: /json_proto [07:56:34]Method is POST - this is cgi request [07:56:34]url: /json_proto [07:56:34]query_string will be loaded in cgi processing [07:56:34]execute_cgi json_proto POST (null) [07:56:34]execute_cgi path=json_proto method=POST [07:56:34]POST find Content-Length [07:56:34]Host: 172.17.41.136:8080 [07:56:34]Content-Length: 705 [07:56:34]Content-Type: application/json [07:56:34] [07:56:34]POST finish read [07:56:34]Found Content-Length = 705 [07:56:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343782", "tax_sys" : 0, "items" : [ { "code": "4601025117702", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D 0,5", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:34]execute_script... [07:56:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343782", "tax_sys" : 0, "items" : [ { "code": "4601025117702", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D 0,5", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:34]POST & json_proto [07:56:34]process_json_proto [07:56:34]json parsed OK: [07:56:34]protocol is kg_v1.0 [07:56:34]action value=close_receipt [07:56:34]process_action close_receipt [07:56:34]cmd_close_receipt [07:56:34]MH_GetDate [07:56:34]Write to MH i2c: F0 00 00 74 03 66 [07:56:34]Write i2c OK [07:56:34]MH_I2C_Read... [07:56:34]Read from MH i2c: F0 [07:56:34]MH_I2C_Read... [07:56:34]Read from MH i2c: F0 09 00 [07:56:34]MH_I2C_Read... [07:56:34]Read from MH i2c: F0 09 00 74 03 00 B3 CD EF 66 1B D0 5A 64 ED [07:56:34]GetLastDocTimeStamp 1726991620 [07:56:34]current date 1726991795 [07:56:34]FM_GetShiftState [07:56:34]SAM_PROTO_GetShiftState [07:56:34]wFMCommunicate request_size=4 [07:56:34]MH_SAM_APDU [07:56:34]CAPDU: 80 13 01 00 [07:56:34]Write to MH i2c: E2 08 00 75 03 80 13 01 00 00 00 00 00 F5 [07:56:34]Write i2c OK [07:56:34]MH_I2C_Read... [07:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:34]Read from MH i2c: E2 [07:56:34]MH_I2C_Read... [07:56:34]Read from MH i2c: E2 0E 00 [07:56:34]MH_I2C_Read... [07:56:34]Read from MH i2c: E2 0E 00 75 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 0E [07:56:34]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [07:56:34]wFMCommunicate OK [07:56:34]SAM_PROTO_GetShiftState done [07:56:34]FM_GetShiftState done [07:56:34]opened in 1726965840 [07:56:34]opened+sec_in_day 1727052240 [07:56:34]quantity*price = 8500 [07:56:34]sum+1 = 8501 [07:56:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 40 22.09.2024 07:56 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115322 ФПД: 270372738677593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T075635&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115322&fm=270372738677593&tin=02508201610067®Number=0000000000091831&sum=8500 0 [07:56:35]StoreToDocumentArchive [07:56:35]shift 471 fd 115322 [07:56:35]save to /storage/0471/doc_00115322 [07:56:35]save last doc name /storage/0471/doc_00115322 to /storage/kkm_last_doc_name [07:56:35]save OK [07:56:35]Clear old archive folders... [07:56:35]ProcessDocumentItem done err = 0, tmpTLVsize=296 [07:56:35]tlvbuf is 017AE930 [07:56:35]SAM_PROTO_ClearQueue [07:56:35]wFMCommunicate request_size=4 [07:56:35]MH_SAM_APDU [07:56:35]CAPDU: 80 09 00 00 [07:56:35]Write to MH i2c: E2 08 00 82 03 80 09 00 00 00 00 00 00 F7 [07:56:35]Write i2c OK [07:56:35]MH_I2C_Read... [07:56:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:35]Read from MH i2c: E2 [07:56:35]MH_I2C_Read... [07:56:35]Read from MH i2c: E2 03 00 [07:56:35]MH_I2C_Read... [07:56:35]Read from MH i2c: E2 03 00 82 03 00 90 00 F9 [07:56:35]RAPDU: 90 00 [07:56:35]wFMCommunicate OK [07:56:35]SAM_PROTO_ClearQueue done [07:56:35]KKMCreateOFDPacket [07:56:35]OFDProtocolAddRootSTLVToBuf [07:56:35]FM_MakeSignedData [07:56:35]FM_MakeSignedData [07:56:35]SAM_PROTO_SignData [07:56:35]wFMCommunicate request_size=4 [07:56:35]MH_SAM_APDU [07:56:35]CAPDU: 80 0D 01 02 [07:56:35]Write to MH i2c: E2 08 00 83 03 80 0D 01 02 00 00 00 00 FF [07:56:35]Write i2c OK [07:56:35]MH_I2C_Read... [07:56:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:35]Read from MH i2c: E2 [07:56:35]MH_I2C_Read... [07:56:35]Read from MH i2c: E2 03 00 [07:56:35]MH_I2C_Read... [07:56:35]Read from MH i2c: E2 03 00 83 03 00 90 00 FA [07:56:35]RAPDU: 90 00 [07:56:35]wFMCommunicate OK [07:56:35]wFMCommunicate request_size=255 [07:56:35]MH_SAM_APDU [07:56:35]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 B3 CD EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [07:56:35]Write to MH i2c: E2 02 01 84 03 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 B3 CD EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 D1 [07:56:35]Write i2c OK [07:56:35]MH_I2C_Read... [07:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:35]Read from MH i2c: E2 [07:56:35]MH_I2C_Read... [07:56:35]Read from MH i2c: E2 03 00 [07:56:35]MH_I2C_Read... [07:56:35]Read from MH i2c: E2 03 00 84 03 00 90 00 FB [07:56:35]RAPDU: 90 00 [07:56:35]wFMCommunicate OK [07:56:35]wFMCommunicate request_size=55 [07:56:35]MH_SAM_APDU [07:56:35]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7A C2 01 00 35 04 06 00 F5 E7 0F 0B BB 59 [07:56:35]Write to MH i2c: E2 3A 00 85 03 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7A C2 01 00 35 04 06 00 F5 E7 0F 0B BB 59 00 00 9A [07:56:35]Write i2c OK [07:56:35]MH_I2C_Read... [07:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:35]Read from MH i2c: E2 [07:56:35]MH_I2C_Read... [07:56:35]Read from MH i2c: E2 03 00 [07:56:35]MH_I2C_Read... [07:56:35]Read from MH i2c: E2 03 00 85 03 00 90 00 FC [07:56:35]RAPDU: 90 00 [07:56:35]wFMCommunicate OK [07:56:35]wFMCommunicate request_size=4 [07:56:35]MH_SAM_APDU [07:56:35]CAPDU: 80 0D 03 02 [07:56:35]Write to MH i2c: E2 08 00 86 03 80 0D 03 02 00 00 00 00 04 [07:56:35]Write i2c OK [07:56:35]MH_I2C_Read... [07:56:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:35]Read from MH i2c: E2 [07:56:35]MH_I2C_Read... [07:56:35]Read from MH i2c: E2 0B 00 [07:56:35]MH_I2C_Read... [07:56:35]Read from MH i2c: E2 0B 00 86 03 00 12 56 79 99 16 B7 67 C4 90 00 77 [07:56:35]RAPDU: 12 56 79 99 16 B7 67 C4 90 00 [07:56:35]wFMCommunicate OK [07:56:35]SAM_PROTO_SignData done [07:56:35]FM_MakeSignedData done [07:56:35]CreateOFDProtocolMessage [07:56:35]wFMCommunicate request_size=4 [07:56:35]MH_SAM_APDU [07:56:35]CAPDU: 80 11 00 00 [07:56:35]Write to MH i2c: E2 08 00 87 03 80 11 00 00 00 00 00 00 04 [07:56:35]Write i2c OK [07:56:35]MH_I2C_Read... [07:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:36]Read from MH i2c: E2 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: E2 17 00 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: E2 17 00 87 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 52 [07:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:56:36]wFMCommunicate OK [07:56:36]CreateOFDProtocolMessage done [07:56:36]OFDSenderStorePacket 115322 [07:56:36]StoreOFDPacket docnum=115322 [07:56:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3C 01 00 00 49 31 34 01 B8 BC 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 B3 CD EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7A C2 01 00 35 04 06 00 F5 E7 0F 0B BB 59 12 56 79 99 16 B7 67 C4 [07:56:36]CheckFolder [07:56:36]dirname=/storage/ofd_packets [07:56:36]CheckFolder done [07:56:36]ProducePacketName [07:56:36]name=ofd_packets/00115322 [07:56:36]NVStorageSaveData ofd_packets/00115322 [07:56:36]File name is /storage/ofd_packets/00115322 [07:56:36]Write 346 bytes [07:56:36]NVStorageSaveData done [07:56:36]OFDSenderStorePacket done [07:56:36]KKMCreateOFDPacket done [07:56:36]NVStorageSaveData kkm_last_timestamp [07:56:36]File name is /storage/kkm_last_timestamp [07:56:36]Write 4 bytes [07:56:36]NVStorageSaveData done [07:56:36]ExternCall_PrintAddStr [07:56:36]wPrintStart [07:56:36]Write to MH i2c: 01 00 00 88 03 8B [07:56:36]Write i2c OK [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: 01 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: 01 07 00 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: 01 07 00 88 03 00 00 00 00 00 FF 0F A0 [07:56:36]RasterBufferAndPrint [07:56:36]line Счет N : (3)343782 [07:56:36]line ИНН: 02508201610067 [07:56:36]line Контрольно-Кассовый Чек [07:56:36]line ПРОДАЖА [07:56:36]line Товар: 4601025117702 [07:56:36]line Напиток Фрутмотив апельсин 0,5 [07:56:36]line 1.000 * 85.00 [07:56:36]line = 85.00 [07:56:36]line НДС 12% НСП 1% [07:56:36]line > о реализуемом товаре [07:56:36]line ИТОГО: 85.00 [07:56:36]line НСП 1% : 0.75 [07:56:36]line НДС 12% : 9.03 [07:56:36]line Наличными: 85.00 [07:56:36]line Безнал.: 0.00 [07:56:36]line Место: АЗС № 90 "Партнер Нефть" [07:56:36]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [07:56:36]line СНО: Общий режим [07:56:36]line Чек 40 22.09.2024 07:56 [07:56:36]line Смена: 471 ФФД: 1.0 [07:56:36]line ЗНМ: 0300000120 [07:56:36]line РНМ: 0000000000091831 [07:56:36]line Версия ККМ: 001 [07:56:36]line ФМ: 0000000000871830 [07:56:36]line ФД: 115322 [07:56:36]line ФПД: 270372738677593 [07:56:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T075635&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115322&fm=270372738677593&tin=02508201610067®Number=0000000000091831&sum=8500 [07:56:36]line 0 [07:56:36]OFD Sender: Processing packet 115322 [packets to send 481, broken 480] [07:56:36]ProducePacketName [07:56:36]name=ofd_packets/00115322 [07:56:36]OFD Sender: To server: pG, [07:56:36]CommunicateWithHost lk.salyk.kg:30040 [07:56:36]ConnectInit lk.salyk.kg [07:56:36]written 0, free lines is 4095 [07:56:36]Write to MH i2c: 01 00 00 B0 03 B3 [07:56:36]Write i2c OK [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: 01 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: 01 07 00 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: 01 07 00 B0 03 00 00 00 00 00 4B 0C 11 [07:56:36]RasterBufferAndPrint [07:56:36]line [07:56:36]line [07:56:36]line [07:56:36]line [07:56:36]line [07:56:36]written 0, free lines is 3149 [07:56:36]MH_Cut [07:56:36]Write to MH i2c: D1 01 00 B7 03 01 8C [07:56:36]Write i2c OK [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: D1 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: D1 01 00 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: D1 01 00 B7 03 00 8B [07:56:36]Write to MH i2c: 01 00 00 B8 03 BB [07:56:36]Write i2c OK [07:56:36]MH_I2C_Read... [07:56:38]*** Cut start [07:56:38]*** Partial cut [07:56:38]*** CUTSNS_PIN = 1 [07:56:38]*** CUTSNS_PIN = 0 [07:56:38]*** Brake cut motor [07:56:38]Read from MH i2c: 01 [07:56:38]MH_I2C_Read... [07:56:38]*** Stop cut motor [07:56:38]*** Cut end [07:56:38]Read from MH i2c: 01 07 00 [07:56:38]MH_I2C_Read... [07:56:38]Read from MH i2c: 01 07 00 B8 03 00 00 00 00 00 FF 0F D0 [07:56:38]process_action close_receipt done [07:56:38]requested_data is exist [07:56:38]produce_requested_data [07:56:38]requested_item fm.sn is exist - process it [07:56:38]wFMCommunicate request_size=4 [07:56:38]MH_SAM_APDU [07:56:38]CAPDU: 80 11 00 00 [07:56:38]Write to MH i2c: E2 08 00 B9 03 80 11 00 00 00 00 00 00 36 [07:56:38]Write i2c OK [07:56:38]MH_I2C_Read... [07:56:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:38]Read from MH i2c: E2 [07:56:38]MH_I2C_Read... [07:56:38]Read from MH i2c: E2 17 00 [07:56:38]MH_I2C_Read... [07:56:38]Read from MH i2c: E2 17 00 B9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 84 [07:56:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:56:38]wFMCommunicate OK [07:56:38]requested_item fd.num is exist - process it [07:56:38]SAM_PROTO_GetFieldsCounters [07:56:38]wFMCommunicate request_size=4 [07:56:38]MH_SAM_APDU [07:56:38]CAPDU: 80 13 00 00 [07:56:38]Write to MH i2c: E2 08 00 BA 03 80 13 00 00 00 00 00 00 39 [07:56:38]Write i2c OK [07:56:38]MH_I2C_Read... [07:56:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:38]Read from MH i2c: E2 [07:56:38]MH_I2C_Read... [07:56:38]Read from MH i2c: E2 62 00 [07:56:38]MH_I2C_Read... [07:56:38]Read from MH i2c: E2 62 00 BA 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7A C2 01 00 0E 04 04 00 D7 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 DF [07:56:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7A C2 01 00 0E 04 04 00 D7 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 [07:56:38]wFMCommunicate OK [07:56:38]SAM_PROTO_GetFieldsCounters done [07:56:38]requested_item shift.num is exist - process it [07:56:38]requested_item shift.opened is exist - process it [07:56:38]req_shift_opened [07:56:38]FM_GetShiftState [07:56:38]SAM_PROTO_GetShiftState [07:56:38]wFMCommunicate request_size=4 [07:56:38]MH_SAM_APDU [07:56:38]CAPDU: 80 13 01 00 [07:56:38]Write to MH i2c: E2 08 00 BB 03 80 13 01 00 00 00 00 00 3B [07:56:38]Write i2c OK [07:56:38]MH_I2C_Read... [07:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:39]Read from MH i2c: E2 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: E2 0E 00 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: E2 0E 00 BB 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 54 [07:56:39]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [07:56:39]wFMCommunicate OK [07:56:39]SAM_PROTO_GetShiftState done [07:56:39]FM_GetShiftState done [07:56:39]req_shift_opened done [07:56:39]requested_item shift.open_date is exist - process it [07:56:39]req_shift_open_date [07:56:39]req_shift_open_date done [07:56:39]produce_requested_data done [07:56:39]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115322,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [07:56:39]process_action_free close_receipt [07:56:39]json_value_free [07:56:39]json_value_free done [07:56:39]process_json_proto returns [07:56:39]Send response to host [07:56:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115322,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [07:56:39]free response buf [07:56:39]execute_script done [07:56:39]execute_script returns [07:56:39]free content buf [07:56:39]Sock 9.Close socket [07:56:39]Sock 9.Thread stoped [07:58:50]ConnectInit Can't connect to host [07:58:50]CommunicateWithHost connect error [07:58:50]CommunicateWithHost err = -1 [07:58:50]OFD Sender: Server communicate error [07:58:55]OFD Sender: Processing packet 115322 [packets to send 481, broken 480] [07:58:55]ProducePacketName [07:58:55]name=ofd_packets/00115322 [07:58:55]OFD Sender: To server: pG, [07:58:55]CommunicateWithHost lk.salyk.kg:30040 [07:58:55]ConnectInit lk.salyk.kg [07:58:55]Connected sock=9 [07:58:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3C 01 00 00 49 31 34 01 B8 BC 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 B3 CD EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7A C2 01 00 35 04 06 00 F5 E7 0F 0B BB 59 12 56 79 99 16 B7 67 C4 [07:58:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 8B 30 47 00 02 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7A C2 01 00 F4 03 04 00 84 73 EF 66 B6 04 01 00 00 6D 74 8F 02 EE 03 77 F0 [07:58:55]CommunicateWithHost err = 0 [07:58:55]CheckOFDResponse [07:58:55]1017 (14) - 77093643461234 [07:58:55]1041 (16) - 0000000000871830 [07:58:55]1040 (4) - 115322 [07:58:55]1012 (4) - 22.09.2024 01:31 [07:58:55]1206 (1) - 0 [07:58:55]OFD Sender: Remove packet 115322 [07:58:55]ProducePacketName [07:58:55]name=ofd_packets/00115322 [07:58:55]NVStorageDeleteData [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:00:59]accept exits with 8 [08:00:59]New connection [08:00:59]New thread 3066981732 created [08:00:59]Thread 3066838372 joined [08:00:59]Waiting for new connection... [08:00:59] Sock 8.Parse request [08:00:59]Sock 8.Check first char [08:00:59]Sock 8.First char is OK [08:00:59]request: POST /json_proto HTTP/1.0 [08:00:59]Method: POST [08:00:59]URL: /json_proto [08:00:59]Method is POST - this is cgi request [08:00:59]url: /json_proto [08:00:59]query_string will be loaded in cgi processing [08:00:59]execute_cgi json_proto POST (null) [08:00:59]execute_cgi path=json_proto method=POST [08:00:59]POST find Content-Length [08:00:59]Host: 172.17.41.136:8080 [08:00:59]Content-Length: 645 [08:00:59]Content-Type: application/json [08:00:59] [08:00:59]POST finish read [08:00:59]Found Content-Length = 645 [08:00:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343783", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:59]execute_script... [08:00:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343783", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:59]POST & json_proto [08:00:59]process_json_proto [08:00:59]json parsed OK: [08:00:59]protocol is kg_v1.0 [08:00:59]action value=close_receipt [08:00:59]process_action close_receipt [08:00:59]cmd_close_receipt [08:00:59]MH_GetDate [08:00:59]Write to MH i2c: F0 00 00 BC 03 AE [08:00:59]Write i2c OK [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: F0 [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: F0 09 00 [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: F0 09 00 BC 03 00 BC CE EF 66 1B D0 5A 64 3F [08:00:59]GetLastDocTimeStamp 1726991795 [08:00:59]current date 1726992060 [08:00:59]FM_GetShiftState [08:00:59]SAM_PROTO_GetShiftState [08:00:59]wFMCommunicate request_size=4 [08:00:59]MH_SAM_APDU [08:00:59]CAPDU: 80 13 01 00 [08:00:59]Write to MH i2c: E2 08 00 BD 03 80 13 01 00 00 00 00 00 3D [08:00:59]Write i2c OK [08:00:59]MH_I2C_Read... [08:00:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:59]Read from MH i2c: E2 [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: E2 0E 00 [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: E2 0E 00 BD 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 56 [08:00:59]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [08:00:59]wFMCommunicate OK [08:00:59]SAM_PROTO_GetShiftState done [08:00:59]FM_GetShiftState done [08:00:59]opened in 1726965840 [08:00:59]opened+sec_in_day 1727052240 [08:00:59]quantity*price = 6500 [08:00:59]sum+1 = 6501 [08:00:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 41 22.09.2024 08:01 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115323 ФПД: 73668335135600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T080100&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115323&fm=73668335135600&tin=02508201610067®Number=0000000000091831&sum=6500 0 [08:01:00]StoreToDocumentArchive [08:01:00]shift 471 fd 115323 [08:01:00]save to /storage/0471/doc_00115323 [08:01:00]save last doc name /storage/0471/doc_00115323 to /storage/kkm_last_doc_name [08:01:00]save OK [08:01:00]Clear old archive folders... [08:01:00]ProcessDocumentItem done err = 0, tmpTLVsize=272 [08:01:00]tlvbuf is 017AF260 [08:01:00]SAM_PROTO_ClearQueue [08:01:00]wFMCommunicate request_size=4 [08:01:00]MH_SAM_APDU [08:01:00]CAPDU: 80 09 00 00 [08:01:00]Write to MH i2c: E2 08 00 CA 03 80 09 00 00 00 00 00 00 3F [08:01:00]Write i2c OK [08:01:00]MH_I2C_Read... [08:01:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:00]Read from MH i2c: E2 [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: E2 03 00 [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: E2 03 00 CA 03 00 90 00 41 [08:01:00]RAPDU: 90 00 [08:01:00]wFMCommunicate OK [08:01:00]SAM_PROTO_ClearQueue done [08:01:00]KKMCreateOFDPacket [08:01:00]OFDProtocolAddRootSTLVToBuf [08:01:00]FM_MakeSignedData [08:01:00]FM_MakeSignedData [08:01:00]SAM_PROTO_SignData [08:01:00]wFMCommunicate request_size=4 [08:01:00]MH_SAM_APDU [08:01:00]CAPDU: 80 0D 01 02 [08:01:00]Write to MH i2c: E2 08 00 CB 03 80 0D 01 02 00 00 00 00 47 [08:01:00]Write i2c OK [08:01:00]MH_I2C_Read... [08:01:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:00]Read from MH i2c: E2 [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: E2 03 00 [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: E2 03 00 CB 03 00 90 00 42 [08:01:00]RAPDU: 90 00 [08:01:00]wFMCommunicate OK [08:01:00]wFMCommunicate request_size=255 [08:01:00]MH_SAM_APDU [08:01:00]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 BC CE EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [08:01:00]Write to MH i2c: E2 02 01 CC 03 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 BC CE EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 70 [08:01:00]Write i2c OK [08:01:00]MH_I2C_Read... [08:01:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:00]Read from MH i2c: E2 [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: E2 03 00 [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: E2 03 00 CC 03 00 90 00 43 [08:01:00]RAPDU: 90 00 [08:01:00]wFMCommunicate OK [08:01:00]wFMCommunicate request_size=31 [08:01:00]MH_SAM_APDU [08:01:00]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 33 30 10 04 04 00 7B C2 01 00 35 04 06 00 43 00 3E F2 6B 70 [08:01:00]Write to MH i2c: E2 22 00 CD 03 80 0D 02 02 1A 00 30 30 38 37 31 38 33 30 10 04 04 00 7B C2 01 00 35 04 06 00 43 00 3E F2 6B 70 00 00 FC [08:01:00]Write i2c OK [08:01:00]MH_I2C_Read... [08:01:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:00]Read from MH i2c: E2 [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: E2 03 00 [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: E2 03 00 CD 03 00 90 00 44 [08:01:00]RAPDU: 90 00 [08:01:00]wFMCommunicate OK [08:01:00]wFMCommunicate request_size=4 [08:01:00]MH_SAM_APDU [08:01:00]CAPDU: 80 0D 03 02 [08:01:00]Write to MH i2c: E2 08 00 CE 03 80 0D 03 02 00 00 00 00 4C [08:01:00]Write i2c OK [08:01:00]MH_I2C_Read... [08:01:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:00]Read from MH i2c: E2 [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: E2 0B 00 [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: E2 0B 00 CE 03 00 FE 29 13 FB AD C6 E1 FE 90 00 D4 [08:01:00]RAPDU: FE 29 13 FB AD C6 E1 FE 90 00 [08:01:00]wFMCommunicate OK [08:01:00]SAM_PROTO_SignData done [08:01:00]FM_MakeSignedData done [08:01:00]CreateOFDProtocolMessage [08:01:00]wFMCommunicate request_size=4 [08:01:00]MH_SAM_APDU [08:01:00]CAPDU: 80 11 00 00 [08:01:00]Write to MH i2c: E2 08 00 CF 03 80 11 00 00 00 00 00 00 4C [08:01:00]Write i2c OK [08:01:00]MH_I2C_Read... [08:01:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:01]Read from MH i2c: E2 [08:01:01]MH_I2C_Read... [08:01:01]Read from MH i2c: E2 17 00 [08:01:01]MH_I2C_Read... [08:01:01]Read from MH i2c: E2 17 00 CF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9A [08:01:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:01:01]wFMCommunicate OK [08:01:01]CreateOFDProtocolMessage done [08:01:01]OFDSenderStorePacket 115323 [08:01:01]StoreOFDPacket docnum=115323 [08:01:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 F5 9F 1C 01 E6 3C 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 BC CE EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7B C2 01 00 35 04 06 00 43 00 3E F2 6B 70 FE 29 13 FB AD C6 E1 FE [08:01:01]CheckFolder [08:01:01]dirname=/storage/ofd_packets [08:01:01]CheckFolder done [08:01:01]ProducePacketName [08:01:01]name=ofd_packets/00115323 [08:01:01]NVStorageSaveData ofd_packets/00115323 [08:01:01]File name is /storage/ofd_packets/00115323 [08:01:01]Write 322 bytes [08:01:01]NVStorageSaveData done [08:01:01]OFDSenderStorePacket done [08:01:01]KKMCreateOFDPacket done [08:01:01]NVStorageSaveData kkm_last_timestamp [08:01:01]File name is /storage/kkm_last_timestamp [08:01:01]Write 4 bytes [08:01:01]NVStorageSaveData done [08:01:01]ExternCall_PrintAddStr [08:01:01]wPrintStart [08:01:01]Write to MH i2c: 01 00 00 D0 03 D3 [08:01:01]Write i2c OK [08:01:01]MH_I2C_Read... [08:01:01]Read from MH i2c: 01 [08:01:01]MH_I2C_Read... [08:01:01]Read from MH i2c: 01 07 00 [08:01:01]MH_I2C_Read... [08:01:01]Read from MH i2c: 01 07 00 D0 03 00 00 00 00 00 FF 0F E8 [08:01:01]RasterBufferAndPrint [08:01:01]line Счет N : (3)343783 [08:01:01]line ИНН: 02508201610067 [08:01:01]line Контрольно-Кассовый Чек [08:01:01]line ПРОДАЖА [08:01:01]line Товар: 47011656 [08:01:01]line Водка Пшеничная 0,1л [08:01:01]line 1.000 * 65.00 [08:01:01]line = 65.00 [08:01:01]line НДС 12% НСП 1% [08:01:01]line > о реализуемом товаре [08:01:01]line ИТОГО: 65.00 [08:01:01]line НСП 1% : 0.57 [08:01:01]line НДС 12% : 6.90 [08:01:01]line Наличными: 65.00 [08:01:01]line Безнал.: 0.00 [08:01:01]line Место: АЗС № 90 "Партнер Нефть" [08:01:01]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [08:01:01]line СНО: Общий режим [08:01:01]line Чек 41 22.09.2024 08:01 [08:01:01]line Смена: 471 ФФД: 1.0 [08:01:01]line ЗНМ: 0300000120 [08:01:01]line РНМ: 0000000000091831 [08:01:01]line Версия ККМ: 001 [08:01:01]line ФМ: 0000000000871830 [08:01:01]line ФД: 115323 [08:01:01]line ФПД: 73668335135600 [08:01:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T080100&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115323&fm=73668335135600&tin=02508201610067®Number=0000000000091831&sum=6500 [08:01:01]line 0 [08:01:01]written 0, free lines is 4095 [08:01:01]OFD Sender: Processing packet 115323 [packets to send 481, broken 480] [08:01:01]ProducePacketName [08:01:01]name=ofd_packets/00115323 [08:01:01]OFD Sender: To server: pG, [08:01:01]CommunicateWithHost lk.salyk.kg:30040 [08:01:01]ConnectInit lk.salyk.kg [08:01:01]Connected sock=10 [08:01:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 F5 9F 1C 01 E6 3C 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 BC CE EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7B C2 01 00 35 04 06 00 43 00 3E F2 6B 70 FE 29 13 FB AD C6 E1 FE [08:01:01]Write to MH i2c: 01 00 00 F7 03 FA [08:01:01]Write i2c OK [08:01:01]MH_I2C_Read... [08:01:01]Read from MH i2c: 01 [08:01:01]MH_I2C_Read... [08:01:01]Read from MH i2c: 01 07 00 [08:01:01]MH_I2C_Read... [08:01:01]Read from MH i2c: 01 07 00 F7 03 00 00 00 00 00 83 0C 90 [08:01:01]RasterBufferAndPrint [08:01:01]line [08:01:01]line [08:01:01]line [08:01:01]line [08:01:01]line [08:01:01]written 0, free lines is 3207 [08:01:01]MH_Cut [08:01:01]Write to MH i2c: D1 01 00 FE 03 01 D3 [08:01:01]Write i2c OK [08:01:01]MH_I2C_Read... [08:01:01]Read from MH i2c: D1 [08:01:01]MH_I2C_Read... [08:01:01]Read from MH i2c: D1 01 00 [08:01:01]MH_I2C_Read... [08:01:01]Read from MH i2c: D1 01 00 FE 03 00 D2 [08:01:01]Write to MH i2c: 01 00 00 FF 03 02 [08:01:01]Write i2c OK [08:01:01]MH_I2C_Read... [08:01:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C5 84 47 00 26 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7B C2 01 00 F4 03 04 00 02 74 EF 66 B6 04 01 00 00 0A 77 F1 9B 00 64 B1 CA [08:01:01]CommunicateWithHost err = 0 [08:01:01]CheckOFDResponse [08:01:01]1017 (14) - 77093643461234 [08:01:01]1041 (16) - 0000000000871830 [08:01:01]1040 (4) - 115323 [08:01:01]1012 (4) - 22.09.2024 01:33 [08:01:01]1206 (1) - 0 [08:01:01]OFD Sender: Remove packet 115323 [08:01:01]ProducePacketName [08:01:01]name=ofd_packets/00115323 [08:01:01]NVStorageDeleteData [08:01:02]OFD Sender: No OFD packet to send [08:01:02]*** Cut start [08:01:02]*** Partial cut [08:01:02]*** CUTSNS_PIN = 1 [08:01:02]*** CUTSNS_PIN = 0 [08:01:03]*** Brake cut motor [08:01:03]Read from MH i2c: 01 [08:01:03]MH_I2C_Read... [08:01:03]Read from MH i2c: 01 07 00 [08:01:03]MH_I2C_Read... [08:01:03]Read from MH i2c: 01 07 00 FF 03 00 00 00 00 00 FF 0F 17 [08:01:03]process_action close_receipt done [08:01:03]requested_data is exist [08:01:03]produce_requested_data [08:01:03]requested_item fm.sn is exist - process it [08:01:03]wFMCommunicate request_size=4 [08:01:03]MH_SAM_APDU [08:01:03]CAPDU: 80 11 00 00 [08:01:03]Write to MH i2c: E2 08 00 00 04 80 11 00 00 00 00 00 00 7E [08:01:03]*** Stop cut motor [08:01:03]*** Cut end [08:01:03]Write i2c OK [08:01:03]MH_I2C_Read... [08:01:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:03]Read from MH i2c: E2 [08:01:03]MH_I2C_Read... [08:01:03]Read from MH i2c: E2 17 00 [08:01:03]MH_I2C_Read... [08:01:03]Read from MH i2c: E2 17 00 00 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CC [08:01:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:01:03]wFMCommunicate OK [08:01:03]requested_item fd.num is exist - process it [08:01:03]SAM_PROTO_GetFieldsCounters [08:01:03]wFMCommunicate request_size=4 [08:01:03]MH_SAM_APDU [08:01:03]CAPDU: 80 13 00 00 [08:01:03]Write to MH i2c: E2 08 00 01 04 80 13 00 00 00 00 00 00 81 [08:01:03]Write i2c OK [08:01:03]MH_I2C_Read... [08:01:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:03]Read from MH i2c: E2 [08:01:03]MH_I2C_Read... [08:01:03]Read from MH i2c: E2 62 00 [08:01:03]MH_I2C_Read... [08:01:03]Read from MH i2c: E2 62 00 01 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7B C2 01 00 0E 04 04 00 D7 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 2B [08:01:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7B C2 01 00 0E 04 04 00 D7 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:01:03]wFMCommunicate OK [08:01:03]SAM_PROTO_GetFieldsCounters done [08:01:03]requested_item shift.num is exist - process it [08:01:03]requested_item shift.opened is exist - process it [08:01:03]req_shift_opened [08:01:03]FM_GetShiftState [08:01:03]SAM_PROTO_GetShiftState [08:01:03]wFMCommunicate request_size=4 [08:01:03]MH_SAM_APDU [08:01:03]CAPDU: 80 13 01 00 [08:01:03]Write to MH i2c: E2 08 00 02 04 80 13 01 00 00 00 00 00 83 [08:01:03]Write i2c OK [08:01:03]MH_I2C_Read... [08:01:03]Read from MH i2c: E2 [08:01:03]MH_I2C_Read... [08:01:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:03]Read from MH i2c: E2 0E 00 [08:01:03]MH_I2C_Read... [08:01:03]Read from MH i2c: E2 0E 00 02 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 9C [08:01:03]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [08:01:03]wFMCommunicate OK [08:01:03]SAM_PROTO_GetShiftState done [08:01:03]FM_GetShiftState done [08:01:03]req_shift_opened done [08:01:03]requested_item shift.open_date is exist - process it [08:01:03]req_shift_open_date [08:01:03]req_shift_open_date done [08:01:03]produce_requested_data done [08:01:03]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115323,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [08:01:03]process_action_free close_receipt [08:01:03]json_value_free [08:01:03]json_value_free done [08:01:03]process_json_proto returns [08:01:03]Send response to host [08:01:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115323,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [08:01:03]free response buf [08:01:03]execute_script done [08:01:03]execute_script returns [08:01:03]free content buf [08:01:03]Sock 8.Close socket [08:01:03]Sock 8.Thread stoped [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]accept exits with 9 [08:11:23]New connection [08:11:23]New thread 3066838372 created [08:11:23]Thread 3066981732 joined [08:11:23]Waiting for new connection... [08:11:23] Sock 9.Parse request [08:11:23]Sock 9.Check first char [08:11:23]Sock 9.First char is OK [08:11:23]request: POST /json_proto HTTP/1.0 [08:11:23]Method: POST [08:11:23]URL: /json_proto [08:11:23]Method is POST - this is cgi request [08:11:23]url: /json_proto [08:11:23]query_string will be loaded in cgi processing [08:11:23]execute_cgi json_proto POST (null) [08:11:23]execute_cgi path=json_proto method=POST [08:11:23]POST find Content-Length [08:11:23]Host: 172.17.41.136:8080 [08:11:23]Content-Length: 623 [08:11:23]Content-Type: application/json [08:11:23] [08:11:23]POST finish read [08:11:23]Found Content-Length = 623 [08:11:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343784", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:23]execute_script... [08:11:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343784", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:23]POST & json_proto [08:11:23]process_json_proto [08:11:23]json parsed OK: [08:11:23]protocol is kg_v1.0 [08:11:23]action value=close_receipt [08:11:23]process_action close_receipt [08:11:23]cmd_close_receipt [08:11:23]MH_GetDate [08:11:23]Write to MH i2c: F0 00 00 03 04 F6 [08:11:23]Write i2c OK [08:11:23]MH_I2C_Read... [08:11:23]Read from MH i2c: F0 [08:11:23]MH_I2C_Read... [08:11:23]Read from MH i2c: F0 09 00 [08:11:23]MH_I2C_Read... [08:11:23]Read from MH i2c: F0 09 00 03 04 00 2C D1 EF 66 1B D0 5A 64 FA [08:11:23]GetLastDocTimeStamp 1726992060 [08:11:23]current date 1726992684 [08:11:23]FM_GetShiftState [08:11:23]SAM_PROTO_GetShiftState [08:11:23]wFMCommunicate request_size=4 [08:11:23]MH_SAM_APDU [08:11:23]CAPDU: 80 13 01 00 [08:11:23]Write to MH i2c: E2 08 00 04 04 80 13 01 00 00 00 00 00 85 [08:11:23]Write i2c OK [08:11:23]MH_I2C_Read... [08:11:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:23]Read from MH i2c: E2 [08:11:23]MH_I2C_Read... [08:11:23]Read from MH i2c: E2 0E 00 [08:11:23]MH_I2C_Read... [08:11:23]Read from MH i2c: E2 0E 00 04 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 9E [08:11:23]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [08:11:23]wFMCommunicate OK [08:11:23]SAM_PROTO_GetShiftState done [08:11:23]FM_GetShiftState done [08:11:23]opened in 1726965840 [08:11:23]opened+sec_in_day 1727052240 [08:11:23]quantity*price = 14400 [08:11:23]sum+1 = 14401 [08:11:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 42 22.09.2024 08:11 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115324 ФПД: 142009771227102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T081124&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115324&fm=142009771227102&tin=02508201610067®Number=0000000000091831&sum=14400 0 [08:11:24]StoreToDocumentArchive [08:11:24]shift 471 fd 115324 [08:11:24]save to /storage/0471/doc_00115324 [08:11:24]save last doc name /storage/0471/doc_00115324 to /storage/kkm_last_doc_name [08:11:24]save OK [08:11:24]Clear old archive folders... [08:11:24]ProcessDocumentItem done err = 0, tmpTLVsize=275 [08:11:24]tlvbuf is 017C5D80 [08:11:24]SAM_PROTO_ClearQueue [08:11:24]wFMCommunicate request_size=4 [08:11:24]MH_SAM_APDU [08:11:24]CAPDU: 80 09 00 00 [08:11:24]Write to MH i2c: E2 08 00 11 04 80 09 00 00 00 00 00 00 87 [08:11:24]Write i2c OK [08:11:24]MH_I2C_Read... [08:11:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:24]Read from MH i2c: E2 [08:11:24]MH_I2C_Read... [08:11:24]Read from MH i2c: E2 03 00 [08:11:24]MH_I2C_Read... [08:11:24]Read from MH i2c: E2 03 00 11 04 00 90 00 89 [08:11:24]RAPDU: 90 00 [08:11:24]wFMCommunicate OK [08:11:24]SAM_PROTO_ClearQueue done [08:11:24]KKMCreateOFDPacket [08:11:24]OFDProtocolAddRootSTLVToBuf [08:11:24]FM_MakeSignedData [08:11:24]FM_MakeSignedData [08:11:24]SAM_PROTO_SignData [08:11:24]wFMCommunicate request_size=4 [08:11:24]MH_SAM_APDU [08:11:24]CAPDU: 80 0D 01 02 [08:11:24]Write to MH i2c: E2 08 00 12 04 80 0D 01 02 00 00 00 00 8F [08:11:24]Write i2c OK [08:11:24]MH_I2C_Read... [08:11:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:24]Read from MH i2c: E2 [08:11:24]MH_I2C_Read... [08:11:24]Read from MH i2c: E2 03 00 [08:11:24]MH_I2C_Read... [08:11:24]Read from MH i2c: E2 03 00 12 04 00 90 00 8A [08:11:24]RAPDU: 90 00 [08:11:24]wFMCommunicate OK [08:11:24]wFMCommunicate request_size=255 [08:11:24]MH_SAM_APDU [08:11:24]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 2A 00 00 00 F4 03 04 00 2C D1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 [08:11:24]Write to MH i2c: E2 02 01 13 04 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 2A 00 00 00 F4 03 04 00 2C D1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 00 00 E5 [08:11:24]Write i2c OK [08:11:24]MH_I2C_Read... [08:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:24]Read from MH i2c: E2 [08:11:24]MH_I2C_Read... [08:11:24]Read from MH i2c: E2 03 00 [08:11:24]MH_I2C_Read... [08:11:24]Read from MH i2c: E2 03 00 13 04 00 90 00 8B [08:11:24]RAPDU: 90 00 [08:11:24]wFMCommunicate OK [08:11:24]wFMCommunicate request_size=34 [08:11:24]MH_SAM_APDU [08:11:24]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7C C2 01 00 35 04 06 00 81 28 39 F7 F7 DE [08:11:24]Write to MH i2c: E2 25 00 14 04 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7C C2 01 00 35 04 06 00 81 28 39 F7 F7 DE 00 00 3B [08:11:24]Write i2c OK [08:11:24]MH_I2C_Read... [08:11:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:25]Read from MH i2c: E2 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: E2 03 00 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: E2 03 00 14 04 00 90 00 8C [08:11:25]RAPDU: 90 00 [08:11:25]wFMCommunicate OK [08:11:25]wFMCommunicate request_size=4 [08:11:25]MH_SAM_APDU [08:11:25]CAPDU: 80 0D 03 02 [08:11:25]Write to MH i2c: E2 08 00 15 04 80 0D 03 02 00 00 00 00 94 [08:11:25]Write i2c OK [08:11:25]MH_I2C_Read... [08:11:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:25]Read from MH i2c: E2 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: E2 0B 00 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: E2 0B 00 15 04 00 0D F2 D5 08 D2 23 AC C2 90 00 D4 [08:11:25]RAPDU: 0D F2 D5 08 D2 23 AC C2 90 00 [08:11:25]wFMCommunicate OK [08:11:25]SAM_PROTO_SignData done [08:11:25]FM_MakeSignedData done [08:11:25]CreateOFDProtocolMessage [08:11:25]wFMCommunicate request_size=4 [08:11:25]MH_SAM_APDU [08:11:25]CAPDU: 80 11 00 00 [08:11:25]Write to MH i2c: E2 08 00 16 04 80 11 00 00 00 00 00 00 94 [08:11:25]Write i2c OK [08:11:25]MH_I2C_Read... [08:11:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:25]Read from MH i2c: E2 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: E2 17 00 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: E2 17 00 16 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E2 [08:11:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:11:25]wFMCommunicate OK [08:11:25]CreateOFDProtocolMessage done [08:11:25]OFDSenderStorePacket 115324 [08:11:25]StoreOFDPacket docnum=115324 [08:11:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 D0 BA 1F 01 98 28 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 2A 00 00 00 F4 03 04 00 2C D1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7C C2 01 00 35 04 06 00 81 28 39 F7 F7 DE 0D F2 D5 08 D2 23 AC C2 [08:11:25]CheckFolder [08:11:25]dirname=/storage/ofd_packets [08:11:25]CheckFolder done [08:11:25]ProducePacketName [08:11:25]name=ofd_packets/00115324 [08:11:25]NVStorageSaveData ofd_packets/00115324 [08:11:25]File name is /storage/ofd_packets/00115324 [08:11:25]Write 325 bytes [08:11:25]NVStorageSaveData done [08:11:25]OFDSenderStorePacket done [08:11:25]KKMCreateOFDPacket done [08:11:25]NVStorageSaveData kkm_last_timestamp [08:11:25]File name is /storage/kkm_last_timestamp [08:11:25]Write 4 bytes [08:11:25]NVStorageSaveData done [08:11:25]ExternCall_PrintAddStr [08:11:25]wPrintStart [08:11:25]Write to MH i2c: 01 00 00 17 04 1B [08:11:25]Write i2c OK [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: 01 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: 01 07 00 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: 01 07 00 17 04 00 00 00 00 00 FF 0F 30 [08:11:25]RasterBufferAndPrint [08:11:25]line Счет N : (3)343784 [08:11:25]line ИНН: 02508201610067 [08:11:25]line Контрольно-Кассовый Чек [08:11:25]line ПРОДАЖА [08:11:25]line Товар: 48743587 [08:11:25]line Сигареты Winston XStyle Silver [08:11:25]line 1.000 * 144.00 [08:11:25]line = 144.00 [08:11:25]line НДС 12% НСП 1% [08:11:25]line > о реализуемом товаре [08:11:25]line ИТОГО: 144.00 [08:11:25]line НСП 1% : 1.27 [08:11:25]line НДС 12% : 15.29 [08:11:25]line Наличными: 144.00 [08:11:25]line Безнал.: 0.00 [08:11:25]line Место: АЗС № 90 "Партнер Нефть" [08:11:25]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [08:11:25]line СНО: Общий режим [08:11:25]line Чек 42 22.09.2024 08:11 [08:11:25]line Смена: 471 ФФД: 1.0 [08:11:25]line ЗНМ: 0300000120 [08:11:25]line РНМ: 0000000000091831 [08:11:25]line Версия ККМ: 001 [08:11:25]line ФМ: 0000000000871830 [08:11:25]line ФД: 115324 [08:11:25]line ФПД: 142009771227102 [08:11:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T081124&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115324&fm=142009771227102&tin=02508201610067®Number=0000000000091831&sum=14400 [08:11:25]line 0 [08:11:25]written 0, free lines is 4095 [08:11:25]OFD Sender: Processing packet 115324 [packets to send 481, broken 480] [08:11:25]ProducePacketName [08:11:25]name=ofd_packets/00115324 [08:11:25]OFD Sender: To server: pG, [08:11:25]CommunicateWithHost lk.salyk.kg:30040 [08:11:25]ConnectInit lk.salyk.kg [08:11:25]Connected sock=10 [08:11:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 D0 BA 1F 01 98 28 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 2A 00 00 00 F4 03 04 00 2C D1 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7C C2 01 00 35 04 06 00 81 28 39 F7 F7 DE 0D F2 D5 08 D2 23 AC C2 [08:11:25]Write to MH i2c: 01 00 00 3F 04 43 [08:11:25]Write i2c OK [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: 01 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: 01 07 00 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: 01 07 00 3F 04 00 00 00 00 00 5B 0C B1 [08:11:25]RasterBufferAndPrint [08:11:25]line [08:11:25]line [08:11:25]line [08:11:25]line [08:11:25]line [08:11:25]written 0, free lines is 3166 [08:11:25]MH_Cut [08:11:25]Write to MH i2c: D1 01 00 46 04 01 1C [08:11:25]Write i2c OK [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: D1 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: D1 01 00 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: D1 01 00 46 04 00 1B [08:11:25]Write to MH i2c: 01 00 00 47 04 4B [08:11:25]Write i2c OK [08:11:25]MH_I2C_Read... [08:11:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E6 52 47 00 74 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7C C2 01 00 F4 03 04 00 72 76 EF 66 B6 04 01 00 00 A0 C1 5E AB C2 59 28 F2 [08:11:25]CommunicateWithHost err = 0 [08:11:25]CheckOFDResponse [08:11:25]1017 (14) - 77093643461234 [08:11:25]1041 (16) - 0000000000871830 [08:11:25]1040 (4) - 115324 [08:11:25]1012 (4) - 22.09.2024 01:44 [08:11:25]1206 (1) - 0 [08:11:25]OFD Sender: Remove packet 115324 [08:11:25]ProducePacketName [08:11:25]name=ofd_packets/00115324 [08:11:25]NVStorageDeleteData [08:11:26]OFD Sender: No OFD packet to send [08:11:26]*** Cut start [08:11:26]*** Partial cut [08:11:26]*** CUTSNS_PIN = 1 [08:11:27]*** CUTSNS_PIN = 0 [08:11:27]*** Brake cut motor [08:11:27]Read from MH i2c: 01 [08:11:27]MH_I2C_Read... [08:11:27]*** Stop cut motor [08:11:27]*** Cut end [08:11:27]Read from MH i2c: 01 07 00 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: 01 07 00 47 04 00 00 00 00 00 FF 0F 60 [08:11:27]process_action close_receipt done [08:11:27]requested_data is exist [08:11:27]produce_requested_data [08:11:27]requested_item fm.sn is exist - process it [08:11:27]wFMCommunicate request_size=4 [08:11:27]MH_SAM_APDU [08:11:27]CAPDU: 80 11 00 00 [08:11:27]Write to MH i2c: E2 08 00 48 04 80 11 00 00 00 00 00 00 C6 [08:11:27]Write i2c OK [08:11:27]MH_I2C_Read... [08:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:27]Read from MH i2c: E2 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: E2 17 00 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: E2 17 00 48 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 14 [08:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:11:27]wFMCommunicate OK [08:11:27]requested_item fd.num is exist - process it [08:11:27]SAM_PROTO_GetFieldsCounters [08:11:27]wFMCommunicate request_size=4 [08:11:27]MH_SAM_APDU [08:11:27]CAPDU: 80 13 00 00 [08:11:27]Write to MH i2c: E2 08 00 49 04 80 13 00 00 00 00 00 00 C9 [08:11:27]Write i2c OK [08:11:27]MH_I2C_Read... [08:11:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:27]Read from MH i2c: E2 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: E2 62 00 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: E2 62 00 49 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7C C2 01 00 0E 04 04 00 D7 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 77 [08:11:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7C C2 01 00 0E 04 04 00 D7 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:11:27]wFMCommunicate OK [08:11:27]SAM_PROTO_GetFieldsCounters done [08:11:27]requested_item shift.num is exist - process it [08:11:27]requested_item shift.opened is exist - process it [08:11:27]req_shift_opened [08:11:27]FM_GetShiftState [08:11:27]SAM_PROTO_GetShiftState [08:11:27]wFMCommunicate request_size=4 [08:11:27]MH_SAM_APDU [08:11:27]CAPDU: 80 13 01 00 [08:11:27]Write to MH i2c: E2 08 00 4A 04 80 13 01 00 00 00 00 00 CB [08:11:27]Write i2c OK [08:11:27]MH_I2C_Read... [08:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:27]Read from MH i2c: E2 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: E2 0E 00 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: E2 0E 00 4A 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 E4 [08:11:27]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [08:11:27]wFMCommunicate OK [08:11:27]SAM_PROTO_GetShiftState done [08:11:27]FM_GetShiftState done [08:11:27]req_shift_opened done [08:11:27]requested_item shift.open_date is exist - process it [08:11:27]req_shift_open_date [08:11:27]req_shift_open_date done [08:11:27]produce_requested_data done [08:11:27]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115324,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [08:11:27]process_action_free close_receipt [08:11:27]json_value_free [08:11:27]json_value_free done [08:11:27]process_json_proto returns [08:11:27]Send response to host [08:11:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115324,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [08:11:27]free response buf [08:11:27]execute_script done [08:11:27]execute_script returns [08:11:27]free content buf [08:11:27]Sock 9.Close socket [08:11:27]Sock 9.Thread stoped [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:33]OFD Sender: No OFD packet to send [08:25:38]OFD Sender: No OFD packet to send [08:25:43]OFD Sender: No OFD packet to send [08:25:48]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:28]OFD Sender: No OFD packet to send [08:26:33]OFD Sender: No OFD packet to send [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]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:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:49]OFD Sender: No OFD packet to send [08:32:54]OFD Sender: No OFD packet to send [08:32:59]OFD Sender: No OFD packet to send [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:14]accept exits with 8 [08:44:14]New connection [08:44:14]New thread 3066981732 created [08:44:14]Thread 3066838372 joined [08:44:14]Waiting for new connection... [08:44:14] Sock 8.Parse request [08:44:14]Sock 8.Check first char [08:44:14]Sock 8.First char is OK [08:44:14]request: POST /json_proto HTTP/1.0 [08:44:14]Method: POST [08:44:14]URL: /json_proto [08:44:14]Method is POST - this is cgi request [08:44:14]url: /json_proto [08:44:14]query_string will be loaded in cgi processing [08:44:14]execute_cgi json_proto POST (null) [08:44:14]execute_cgi path=json_proto method=POST [08:44:14]POST find Content-Length [08:44:14]Host: 172.17.41.136:8080 [08:44:14]Content-Length: 665 [08:44:14]Content-Type: application/json [08:44:14] [08:44:14]POST finish read [08:44:14]Found Content-Length = 665 [08:44:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 17.320, "sum" : 1200.28, "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" ] } } [08:44:14]execute_script... [08:44:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 17.320, "sum" : 1200.28, "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" ] } } [08:44:14]POST & json_proto [08:44:14]process_json_proto [08:44:14]json parsed OK: [08:44:14]protocol is kg_v1.0 [08:44:14]action value=close_receipt [08:44:14]process_action close_receipt [08:44:14]cmd_close_receipt [08:44:14]MH_GetDate [08:44:14]Write to MH i2c: F0 00 00 4B 04 3E [08:44:14]Write i2c OK [08:44:14]MH_I2C_Read... [08:44:14]Read from MH i2c: F0 [08:44:14]MH_I2C_Read... [08:44:14]Read from MH i2c: F0 09 00 [08:44:14]MH_I2C_Read... [08:44:14]Read from MH i2c: F0 09 00 4B 04 00 DF D8 EF 66 1B D0 5A 64 FC [08:44:14]GetLastDocTimeStamp 1726992684 [08:44:14]current date 1726994655 [08:44:14]FM_GetShiftState [08:44:14]SAM_PROTO_GetShiftState [08:44:14]wFMCommunicate request_size=4 [08:44:14]MH_SAM_APDU [08:44:14]CAPDU: 80 13 01 00 [08:44:14]Write to MH i2c: E2 08 00 4C 04 80 13 01 00 00 00 00 00 CD [08:44:14]Write i2c OK [08:44:14]MH_I2C_Read... [08:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:14]Read from MH i2c: E2 [08:44:14]MH_I2C_Read... [08:44:14]Read from MH i2c: E2 0E 00 [08:44:14]MH_I2C_Read... [08:44:14]Read from MH i2c: E2 0E 00 4C 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 E6 [08:44:14]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [08:44:14]wFMCommunicate OK [08:44:14]SAM_PROTO_GetShiftState done [08:44:14]FM_GetShiftState done [08:44:14]opened in 1726965840 [08:44:14]opened+sec_in_day 1727052240 [08:44:14]quantity*price = 120027 [08:44:14]sum+1 = 120029 [08:44:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.46 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 43 22.09.2024 08:44 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115325 ФПД: 152236872496730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T084415&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115325&fm=152236872496730&tin=02508201610067®Number=0000000000091831&sum=120000 [08:44:15]StoreToDocumentArchive [08:44:15]shift 471 fd 115325 [08:44:15]save to /storage/0471/doc_00115325 [08:44:15]save last doc name /storage/0471/doc_00115325 to /storage/kkm_last_doc_name [08:44:15]save OK [08:44:15]Clear old archive folders... [08:44:15]ProcessDocumentItem done err = 0, tmpTLVsize=244 [08:44:15]tlvbuf is 0178FE40 [08:44:15]SAM_PROTO_ClearQueue [08:44:15]wFMCommunicate request_size=4 [08:44:15]MH_SAM_APDU [08:44:15]CAPDU: 80 09 00 00 [08:44:15]Write to MH i2c: E2 08 00 59 04 80 09 00 00 00 00 00 00 CF [08:44:15]Write i2c OK [08:44:15]MH_I2C_Read... [08:44:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:15]Read from MH i2c: E2 [08:44:15]MH_I2C_Read... [08:44:15]Read from MH i2c: E2 03 00 [08:44:15]MH_I2C_Read... [08:44:15]Read from MH i2c: E2 03 00 59 04 00 90 00 D1 [08:44:15]RAPDU: 90 00 [08:44:15]wFMCommunicate OK [08:44:15]SAM_PROTO_ClearQueue done [08:44:15]KKMCreateOFDPacket [08:44:15]OFDProtocolAddRootSTLVToBuf [08:44:15]FM_MakeSignedData [08:44:15]FM_MakeSignedData [08:44:15]SAM_PROTO_SignData [08:44:15]wFMCommunicate request_size=4 [08:44:15]MH_SAM_APDU [08:44:15]CAPDU: 80 0D 01 02 [08:44:15]Write to MH i2c: E2 08 00 5A 04 80 0D 01 02 00 00 00 00 D7 [08:44:15]Write i2c OK [08:44:15]MH_I2C_Read... [08:44:15]OFD Sender: No OFD packet to send [08:44:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:15]Read from MH i2c: E2 [08:44:15]MH_I2C_Read... [08:44:15]Read from MH i2c: E2 03 00 [08:44:15]MH_I2C_Read... [08:44:15]Read from MH i2c: E2 03 00 5A 04 00 90 00 D2 [08:44:15]RAPDU: 90 00 [08:44:15]wFMCommunicate OK [08:44:15]wFMCommunicate request_size=253 [08:44:15]MH_SAM_APDU [08:44:15]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 A8 43 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 DC 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 CA 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 2B 00 00 00 F4 03 04 00 DF D8 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7D C2 01 00 35 04 06 00 8A 75 68 B4 F6 5A [08:44:15]Write to MH i2c: E2 00 01 5B 04 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 A8 43 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 DC 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 CA 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 2B 00 00 00 F4 03 04 00 DF D8 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7D C2 01 00 35 04 06 00 8A 75 68 B4 F6 5A 00 00 59 [08:44:15]Write i2c OK [08:44:15]MH_I2C_Read... [08:44:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:16]Read from MH i2c: E2 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: E2 03 00 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: E2 03 00 5B 04 00 90 00 D3 [08:44:16]RAPDU: 90 00 [08:44:16]wFMCommunicate OK [08:44:16]wFMCommunicate request_size=4 [08:44:16]MH_SAM_APDU [08:44:16]CAPDU: 80 0D 03 02 [08:44:16]Write to MH i2c: E2 08 00 5C 04 80 0D 03 02 00 00 00 00 DB [08:44:16]Write i2c OK [08:44:16]MH_I2C_Read... [08:44:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:16]Read from MH i2c: E2 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: E2 0B 00 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: E2 0B 00 5C 04 00 D0 02 5C EF 38 2C BD 8F 90 00 A9 [08:44:16]RAPDU: D0 02 5C EF 38 2C BD 8F 90 00 [08:44:16]wFMCommunicate OK [08:44:16]SAM_PROTO_SignData done [08:44:16]FM_MakeSignedData done [08:44:16]CreateOFDProtocolMessage [08:44:16]wFMCommunicate request_size=4 [08:44:16]MH_SAM_APDU [08:44:16]CAPDU: 80 11 00 00 [08:44:16]Write to MH i2c: E2 08 00 5D 04 80 11 00 00 00 00 00 00 DB [08:44:16]Write i2c OK [08:44:16]MH_I2C_Read... [08:44:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:16]Read from MH i2c: E2 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: E2 17 00 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: E2 17 00 5D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 29 [08:44:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:44:16]wFMCommunicate OK [08:44:16]CreateOFDProtocolMessage done [08:44:16]OFDSenderStorePacket 115325 [08:44:16]StoreOFDPacket docnum=115325 [08:44:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 7E 94 00 01 88 8C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 A8 43 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 DC 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 CA 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 2B 00 00 00 F4 03 04 00 DF D8 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7D C2 01 00 35 04 06 00 8A 75 68 B4 F6 5A D0 02 5C EF 38 2C BD 8F [08:44:16]CheckFolder [08:44:16]dirname=/storage/ofd_packets [08:44:16]CheckFolder done [08:44:16]ProducePacketName [08:44:16]name=ofd_packets/00115325 [08:44:16]NVStorageSaveData ofd_packets/00115325 [08:44:16]File name is /storage/ofd_packets/00115325 [08:44:16]Write 294 bytes [08:44:16]NVStorageSaveData done [08:44:16]OFDSenderStorePacket done [08:44:16]KKMCreateOFDPacket done [08:44:16]NVStorageSaveData kkm_last_timestamp [08:44:16]File name is /storage/kkm_last_timestamp [08:44:16]Write 4 bytes [08:44:16]NVStorageSaveData done [08:44:16]ExternCall_PrintAddStr [08:44:16]wPrintStart [08:44:16]Write to MH i2c: 01 00 00 5E 04 62 [08:44:16]Write i2c OK [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: 01 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: 01 07 00 [08:44:16]MH_I2C_Read... [08:44:16]Read from MH i2c: 01 07 00 5E 04 00 00 00 00 00 FF 0F 77 [08:44:16]RasterBufferAndPrint [08:44:16]line Счет N : (1)24616519 [08:44:16]line ИНН: 02508201610067 [08:44:16]line Контрольно-Кассовый Чек [08:44:16]line ПРОДАЖА [08:44:16]line ТРК (МРК, ГНК) : 64 [08:44:16]line Товар: 2710124130 [08:44:16]line SU-92 [08:44:16]line 17.320 * 69.30 [08:44:16]line = 1200.28 [08:44:16]line НДС 12% НСП 1% [08:44:16]line > о реализуемом товаре [08:44:16]line ОКРУГЛЕНИЕ: -0.28 [08:44:16]line ИТОГО: 1200.00 [08:44:16]line Внесено: 1200.00 [08:44:16]line СДАЧА: 0.00 [08:44:16]line НСП 1% : 10.62 [08:44:16]line НДС 12% : 127.46 [08:44:16]line Наличными: 1200.00 [08:44:16]line Безнал.: 0.00 [08:44:16]line Место: АЗС № 90 "Партнер Нефть" [08:44:16]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [08:44:16]line СНО: Общий режим [08:44:16]line Чек 43 22.09.2024 08:44 [08:44:16]line Смена: 471 ФФД: 1.0 [08:44:16]line ЗНМ: 0300000120 [08:44:16]line РНМ: 0000000000091831 [08:44:16]line Версия ККМ: 001 [08:44:16]line ФМ: 0000000000871830 [08:44:16]line ФД: 115325 [08:44:16]line ФПД: 152236872496730 [08:44:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T084415&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115325&fm=152236872496730&tin=02508201610067®Number=0000000000091831&sum=120000 [08:44:16]OFD Sender: Processing packet 115325 [packets to send 481, broken 480] [08:44:16]ProducePacketName [08:44:16]name=ofd_packets/00115325 [08:44:16]OFD Sender: To server: pG, [08:44:16]CommunicateWithHost lk.salyk.kg:30040 [08:44:16]ConnectInit lk.salyk.kg [08:44:16]written 0, free lines is 4095 [08:44:16]Connected sock=11 [08:44:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 7E 94 00 01 88 8C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 A8 43 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 DC 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 CA 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 2B 00 00 00 F4 03 04 00 DF D8 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7D C2 01 00 35 04 06 00 8A 75 68 B4 F6 5A D0 02 5C EF 38 2C BD 8F [08:44:17]Write to MH i2c: 01 00 00 88 04 8C [08:44:17]Write i2c OK [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: 01 [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: 01 07 00 [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: 01 07 00 88 04 00 00 00 00 00 55 0C F4 [08:44:17]RasterBufferAndPrint [08:44:17]line [08:44:17]line [08:44:17]line [08:44:17]line [08:44:17]line [08:44:17]written 0, free lines is 3161 [08:44:17]MH_Cut [08:44:17]Write to MH i2c: D1 01 00 8F 04 01 65 [08:44:17]Write i2c OK [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: D1 [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: D1 01 00 [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: D1 01 00 8F 04 00 64 [08:44:17]Write to MH i2c: 01 00 00 90 04 94 [08:44:17]Write i2c OK [08:44:17]MH_I2C_Read... [08:44:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 25 97 47 00 41 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 31 38 33 30 10 04 04 00 7D C2 01 00 F4 03 04 00 26 7E EF 66 B6 04 01 00 00 8F 15 DC 94 E3 A9 04 CE [08:44:17]CommunicateWithHost err = 0 [08:44:17]CheckOFDResponse [08:44:17]1017 (14) - 77093643461234 [08:44:17]1041 (16) - 0000000000871830 [08:44:17]1040 (4) - 115325 [08:44:17]1012 (4) - 22.09.2024 02:17 [08:44:17]1206 (1) - 0 [08:44:17]OFD Sender: Remove packet 115325 [08:44:17]ProducePacketName [08:44:17]name=ofd_packets/00115325 [08:44:17]NVStorageDeleteData [08:44:17]OFD Sender: No OFD packet to send [08:44:18]*** Cut start [08:44:18]*** Partial cut [08:44:18]*** CUTSNS_PIN = 1 [08:44:18]*** CUTSNS_PIN = 0 [08:44:18]*** Brake cut motor [08:44:19]Read from MH i2c: 01 [08:44:19]MH_I2C_Read... [08:44:19]*** Stop cut motor [08:44:19]*** Cut end [08:44:19]Read from MH i2c: 01 07 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: 01 07 00 90 04 00 00 00 00 00 FF 0F A9 [08:44:19]process_action close_receipt done [08:44:19]requested_data is exist [08:44:19]produce_requested_data [08:44:19]requested_item fm.sn is exist - process it [08:44:19]wFMCommunicate request_size=4 [08:44:19]MH_SAM_APDU [08:44:19]CAPDU: 80 11 00 00 [08:44:19]Write to MH i2c: E2 08 00 91 04 80 11 00 00 00 00 00 00 0F [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:19]Read from MH i2c: E2 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 17 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 17 00 91 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5D [08:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:44:19]wFMCommunicate OK [08:44:19]requested_item fd.num is exist - process it [08:44:19]SAM_PROTO_GetFieldsCounters [08:44:19]wFMCommunicate request_size=4 [08:44:19]MH_SAM_APDU [08:44:19]CAPDU: 80 13 00 00 [08:44:19]Write to MH i2c: E2 08 00 92 04 80 13 00 00 00 00 00 00 12 [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:19]Read from MH i2c: E2 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 62 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 62 00 92 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7D C2 01 00 0E 04 04 00 D7 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 C4 [08:44: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7D C2 01 00 0E 04 04 00 D7 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:44:19]wFMCommunicate OK [08:44:19]SAM_PROTO_GetFieldsCounters done [08:44:19]requested_item shift.num is exist - process it [08:44:19]requested_item shift.opened is exist - process it [08:44:19]req_shift_opened [08:44:19]FM_GetShiftState [08:44:19]SAM_PROTO_GetShiftState [08:44:19]wFMCommunicate request_size=4 [08:44:19]MH_SAM_APDU [08:44:19]CAPDU: 80 13 01 00 [08:44:19]Write to MH i2c: E2 08 00 93 04 80 13 01 00 00 00 00 00 14 [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:19]Read from MH i2c: E2 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 0E 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 0E 00 93 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 2D [08:44:19]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [08:44:19]wFMCommunicate OK [08:44:19]SAM_PROTO_GetShiftState done [08:44:19]FM_GetShiftState done [08:44:19]req_shift_opened done [08:44:19]requested_item shift.open_date is exist - process it [08:44:19]req_shift_open_date [08:44:19]req_shift_open_date done [08:44:19]produce_requested_data done [08:44:19]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115325,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [08:44:19]process_action_free close_receipt [08:44:19]json_value_free [08:44:19]json_value_free done [08:44:19]process_json_proto returns [08:44:19]Send response to host [08:44:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115325,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [08:44:19]free response buf [08:44:19]execute_script done [08:44:19]execute_script returns [08:44:19]free content buf [08:44:19]Sock 8.Close socket [08:44:19]Sock 8.Thread stoped [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:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]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:16]accept exits with 9 [08:47:16]New connection [08:47:16]New thread 3066838372 created [08:47:16]Thread 3066981732 joined [08:47:16]Waiting for new connection... [08:47:16] Sock 9.Parse request [08:47:16]Sock 9.Check first char [08:47:16]Sock 9.First char is OK [08:47:16]request: POST /json_proto HTTP/1.0 [08:47:16]Method: POST [08:47:16]URL: /json_proto [08:47:16]Method is POST - this is cgi request [08:47:16]url: /json_proto [08:47:16]query_string will be loaded in cgi processing [08:47:16]execute_cgi json_proto POST (null) [08:47:16]execute_cgi path=json_proto method=POST [08:47:16]POST find Content-Length [08:47:16]Host: 172.17.41.136:8080 [08:47:16]Content-Length: 1138 [08:47:16]Content-Type: application/json [08:47:16] [08:47:16]POST finish read [08:47:16]Found Content-Length = 1138 [08:47:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343785", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 319.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:16]execute_script... [08:47:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343785", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 319.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:16]POST & json_proto [08:47:16]process_json_proto [08:47:16]json parsed OK: [08:47:16]protocol is kg_v1.0 [08:47:16]action value=close_receipt [08:47:16]process_action close_receipt [08:47:16]cmd_close_receipt [08:47:16]MH_GetDate [08:47:16]Write to MH i2c: F0 00 00 94 04 87 [08:47:16]Write i2c OK [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: F0 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: F0 09 00 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: F0 09 00 94 04 00 95 D9 EF 66 1B D0 5A 64 FC [08:47:16]GetLastDocTimeStamp 1726994655 [08:47:16]current date 1726994837 [08:47:16]FM_GetShiftState [08:47:16]SAM_PROTO_GetShiftState [08:47:16]wFMCommunicate request_size=4 [08:47:16]MH_SAM_APDU [08:47:16]CAPDU: 80 13 01 00 [08:47:16]Write to MH i2c: E2 08 00 95 04 80 13 01 00 00 00 00 00 16 [08:47:16]Write i2c OK [08:47:16]MH_I2C_Read... [08:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:16]Read from MH i2c: E2 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 0E 00 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 0E 00 95 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 2F [08:47:16]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [08:47:16]wFMCommunicate OK [08:47:16]SAM_PROTO_GetShiftState done [08:47:16]FM_GetShiftState done [08:47:16]opened in 1726965840 [08:47:16]opened+sec_in_day 1727052240 [08:47:16]quantity*price = 5000 [08:47:16]sum+1 = 5001 [08:47:16]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741231 Сигареты Winston Super Slims Silver 1.000 * 139.00 = 139.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 47011656 Водка Пшеничная 0,1л 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 319.00 НСП 1% : 2.82 НДС 12% : 33.87 Наличными: 319.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 44 22.09.2024 08:47 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115326 ФПД: 179612982716134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T084717&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115326&fm=179612982716134&tin=02508201610067®Number=0000000000091831&sum=31900 0 [08:47:17]StoreToDocumentArchive [08:47:17]shift 471 fd 115326 [08:47:17]save to /storage/0471/doc_00115326 [08:47:17]save last doc name /storage/0471/doc_00115326 to /storage/kkm_last_doc_name [08:47:18]save OK [08:47:18]Clear old archive folders... [08:47:18]ProcessDocumentItem done err = 0, tmpTLVsize=481 [08:47:18]tlvbuf is 0178F0A0 [08:47:18]SAM_PROTO_ClearQueue [08:47:18]wFMCommunicate request_size=4 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 09 00 00 [08:47:18]Write to MH i2c: E2 08 00 A2 04 80 09 00 00 00 00 00 00 18 [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 A2 04 00 90 00 1A [08:47:18]RAPDU: 90 00 [08:47:18]wFMCommunicate OK [08:47:18]SAM_PROTO_ClearQueue done [08:47:18]KKMCreateOFDPacket [08:47:18]OFDProtocolAddRootSTLVToBuf [08:47:18]FM_MakeSignedData [08:47:18]FM_MakeSignedData [08:47:18]SAM_PROTO_SignData [08:47:18]wFMCommunicate request_size=4 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 0D 01 02 [08:47:18]Write to MH i2c: E2 08 00 A3 04 80 0D 01 02 00 00 00 00 20 [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 A3 04 00 90 00 1B [08:47:18]RAPDU: 90 00 [08:47:18]wFMCommunicate OK [08:47:18]wFMCommunicate request_size=255 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 0D 02 02 FA 03 00 E1 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 [08:47:18]Write to MH i2c: E2 02 01 A4 04 80 0D 02 02 FA 00 03 00 E1 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 00 00 90 [08:47:18]OFD Sender: No OFD packet to send [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 A4 04 00 90 00 1C [08:47:18]RAPDU: 90 00 [08:47:18]wFMCommunicate OK [08:47:18]wFMCommunicate request_size=240 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 0D 02 02 EB 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 0D 00 00 00 00 07 04 06 00 9C 7C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 95 D9 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7E C2 01 00 35 04 06 00 A3 5B 68 08 26 E6 [08:47:18]Write to MH i2c: E2 F3 00 A5 04 80 0D 02 02 EB 00 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 0D 00 00 00 00 07 04 06 00 9C 7C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 95 D9 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7E C2 01 00 35 04 06 00 A3 5B 68 08 26 E6 00 00 44 [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 A5 04 00 90 00 1D [08:47:18]RAPDU: 90 00 [08:47:18]wFMCommunicate OK [08:47:18]wFMCommunicate request_size=4 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 0D 03 02 [08:47:18]Write to MH i2c: E2 08 00 A6 04 80 0D 03 02 00 00 00 00 25 [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:19]Read from MH i2c: E2 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 0B 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 0B 00 A6 04 00 09 7E 7E FE CC 02 B1 97 90 00 3F [08:47:19]RAPDU: 09 7E 7E FE CC 02 B1 97 90 00 [08:47:19]wFMCommunicate OK [08:47:19]SAM_PROTO_SignData done [08:47:19]FM_MakeSignedData done [08:47:19]CreateOFDProtocolMessage [08:47:19]wFMCommunicate request_size=4 [08:47:19]MH_SAM_APDU [08:47:19]CAPDU: 80 11 00 00 [08:47:19]Write to MH i2c: E2 08 00 A7 04 80 11 00 00 00 00 00 00 25 [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:19]Read from MH i2c: E2 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 17 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 17 00 A7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 73 [08:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:47:19]wFMCommunicate OK [08:47:19]CreateOFDProtocolMessage done [08:47:19]OFDSenderStorePacket 115326 [08:47:19]StoreOFDPacket docnum=115326 [08:47:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F5 01 00 00 94 A4 ED 01 A5 F3 5A 03 01 00 03 00 E1 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 0D 00 00 00 00 07 04 06 00 9C 7C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 95 D9 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7E C2 01 00 35 04 06 00 A3 5B 68 08 26 E6 09 7E 7E FE CC 02 B1 97 [08:47:19]CheckFolder [08:47:19]dirname=/storage/ofd_packets [08:47:19]CheckFolder done [08:47:19]ProducePacketName [08:47:19]name=ofd_packets/00115326 [08:47:19]NVStorageSaveData ofd_packets/00115326 [08:47:19]File name is /storage/ofd_packets/00115326 [08:47:19]Write 531 bytes [08:47:19]NVStorageSaveData done [08:47:19]OFDSenderStorePacket done [08:47:19]KKMCreateOFDPacket done [08:47:19]NVStorageSaveData kkm_last_timestamp [08:47:19]File name is /storage/kkm_last_timestamp [08:47:19]Write 4 bytes [08:47:19]NVStorageSaveData done [08:47:19]ExternCall_PrintAddStr [08:47:19]wPrintStart [08:47:19]Write to MH i2c: 01 00 00 A8 04 AC [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 07 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 07 00 A8 04 00 00 00 00 00 FF 0F C1 [08:47:19]RasterBufferAndPrint [08:47:19]line Счет N : (3)343785 [08:47:19]line ИНН: 02508201610067 [08:47:19]line Контрольно-Кассовый Чек [08:47:19]line ПРОДАЖА [08:47:19]line Товар: 4700000160358 [08:47:19]line Вода Легенда 1л [08:47:19]line 1.000 * 50.00 [08:47:19]line = 50.00 [08:47:19]line НДС 12% НСП 1% [08:47:19]line > о реализуемом товаре [08:47:19]line Товар: 48741231 [08:47:19]line Сигареты Winston Super Slims Silver [08:47:19]line 1.000 * 139.00 [08:47:19]line = 139.00 [08:47:19]line НДС 12% НСП 1% [08:47:19]line > о реализуемом товаре [08:47:19]line Товар: 47011656 [08:47:19]line Водка Пшеничная 0,1л [08:47:19]line 2.000 * 65.00 [08:47:19]line = 130.00 [08:47:19]line НДС 12% НСП 1% [08:47:19]line > о реализуемом товаре [08:47:19]line ИТОГО: 319.00 [08:47:19]line НСП 1% : 2.82 [08:47:19]line НДС 12% : 33.87 [08:47:19]line Наличными: 319.00 [08:47:19]line Безнал.: 0.00 [08:47:19]line Место: АЗС № 90 "Партнер Нефть" [08:47:19]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [08:47:19]line СНО: Общий режим [08:47:19]line Чек 44 22.09.2024 08:47 [08:47:19]line Смена: 471 ФФД: 1.0 [08:47:19]line ЗНМ: 0300000120 [08:47:19]line РНМ: 0000000000091831 [08:47:19]line Версия ККМ: 001 [08:47:19]line ФМ: 0000000000871830 [08:47:19]line ФД: 115326 [08:47:19]line ФПД: 179612982716134 [08:47:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T084717&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115326&fm=179612982716134&tin=02508201610067®Number=0000000000091831&sum=31900 [08:47:19]line 0 [08:47:19]written 0, free lines is 4095 [08:47:19]OFD Sender: Processing packet 115326 [packets to send 481, broken 480] [08:47:19]ProducePacketName [08:47:19]name=ofd_packets/00115326 [08:47:19]OFD Sender: To server: pG, [08:47:19]CommunicateWithHost lk.salyk.kg:30040 [08:47:19]ConnectInit lk.salyk.kg [08:47:19]Connected sock=10 [08:47:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F5 01 00 00 94 A4 ED 01 A5 F3 5A 03 01 00 03 00 E1 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 0D 00 00 00 00 07 04 06 00 9C 7C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 95 D9 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7E C2 01 00 35 04 06 00 A3 5B 68 08 26 E6 09 7E 7E FE CC 02 B1 97 [08:47:19]Write to MH i2c: 01 00 00 DC 04 E0 [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 07 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 07 00 DC 04 00 00 00 00 00 69 0B 5B [08:47:19]RasterBufferAndPrint [08:47:19]line [08:47:19]line [08:47:19]line [08:47:19]line [08:47:19]line [08:47:19]written 0, free lines is 2925 [08:47:19]MH_Cut [08:47:19]Write to MH i2c: D1 01 00 E3 04 01 B9 [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: D1 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: D1 01 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: D1 01 00 E3 04 00 B8 [08:47:19]Write to MH i2c: 01 00 00 E4 04 E8 [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 78 B8 47 00 F7 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 31 38 33 30 10 04 04 00 7E C2 01 00 F4 03 04 00 DC 7E EF 66 B6 04 01 00 00 D0 74 B3 4B 00 67 0B 11 [08:47:19]CommunicateWithHost err = 0 [08:47:19]CheckOFDResponse [08:47:19]1017 (14) - 77093643461234 [08:47:19]1041 (16) - 0000000000871830 [08:47:19]1040 (4) - 115326 [08:47:19]1012 (4) - 22.09.2024 02:20 [08:47:19]1206 (1) - 0 [08:47:19]OFD Sender: Remove packet 115326 [08:47:19]ProducePacketName [08:47:19]name=ofd_packets/00115326 [08:47:19]NVStorageDeleteData [08:47:20]OFD Sender: No OFD packet to send [08:47:21]*** Cut start [08:47:21]*** Partial cut [08:47:21]*** CUTSNS_PIN = 1 [08:47:21]*** CUTSNS_PIN = 0 [08:47:21]*** Brake cut motor [08:47:21]Read from MH i2c: 01 [08:47:21]MH_I2C_Read... [08:47:21]*** Stop cut motor [08:47:21]*** Cut end [08:47:21]Read from MH i2c: 01 07 00 [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: 01 07 00 E4 04 00 00 00 00 00 FF 0F FD [08:47:21]process_action close_receipt done [08:47:21]requested_data is exist [08:47:21]produce_requested_data [08:47:21]requested_item fm.sn is exist - process it [08:47:21]wFMCommunicate request_size=4 [08:47:21]MH_SAM_APDU [08:47:21]CAPDU: 80 11 00 00 [08:47:21]Write to MH i2c: E2 08 00 E5 04 80 11 00 00 00 00 00 00 63 [08:47:21]Write i2c OK [08:47:21]MH_I2C_Read... [08:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:21]Read from MH i2c: E2 [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: E2 17 00 [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: E2 17 00 E5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B1 [08:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:47:21]wFMCommunicate OK [08:47:21]requested_item fd.num is exist - process it [08:47:21]SAM_PROTO_GetFieldsCounters [08:47:21]wFMCommunicate request_size=4 [08:47:21]MH_SAM_APDU [08:47:21]CAPDU: 80 13 00 00 [08:47:21]Write to MH i2c: E2 08 00 E6 04 80 13 00 00 00 00 00 00 66 [08:47:21]Write i2c OK [08:47:21]MH_I2C_Read... [08:47:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:22]Read from MH i2c: E2 [08:47:22]MH_I2C_Read... [08:47:22]Read from MH i2c: E2 62 00 [08:47:22]MH_I2C_Read... [08:47:22]Read from MH i2c: E2 62 00 E6 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7E C2 01 00 0E 04 04 00 D7 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 1C [08: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7E C2 01 00 0E 04 04 00 D7 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:47:22]wFMCommunicate OK [08:47:22]SAM_PROTO_GetFieldsCounters done [08:47:22]requested_item shift.num is exist - process it [08:47:22]requested_item shift.opened is exist - process it [08:47:22]req_shift_opened [08:47:22]FM_GetShiftState [08:47:22]SAM_PROTO_GetShiftState [08:47:22]wFMCommunicate request_size=4 [08:47:22]MH_SAM_APDU [08:47:22]CAPDU: 80 13 01 00 [08:47:22]Write to MH i2c: E2 08 00 E7 04 80 13 01 00 00 00 00 00 68 [08:47:22]Write i2c OK [08:47:22]MH_I2C_Read... [08:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:22]Read from MH i2c: E2 [08:47:22]MH_I2C_Read... [08:47:22]Read from MH i2c: E2 0E 00 [08:47:22]MH_I2C_Read... [08:47:22]Read from MH i2c: E2 0E 00 E7 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 81 [08:47:22]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [08:47:22]wFMCommunicate OK [08:47:22]SAM_PROTO_GetShiftState done [08:47:22]FM_GetShiftState done [08:47:22]req_shift_opened done [08:47:22]requested_item shift.open_date is exist - process it [08:47:22]req_shift_open_date [08:47:22]req_shift_open_date done [08:47:22]produce_requested_data done [08:47:22]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115326,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [08:47:22]process_action_free close_receipt [08:47:22]json_value_free [08:47:22]json_value_free done [08:47:22]process_json_proto returns [08:47:22]Send response to host [08:47:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115326,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [08:47:22]free response buf [08:47:22]execute_script done [08:47:22]execute_script returns [08:47:22]free content buf [08:47:22]Sock 9.Close socket [08:47:22]Sock 9.Thread stoped [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 5E [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725B9 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 43322498+1683673115=1726995613 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x334f0623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 5F [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 38 00 FF FF 8E [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 9D DC EF 66 1B D0 5A 64 76 [09:00:13]Current date/time: 22.09.2024 09:00 [09:00:13]FM_Init [09:00:13]wFMConnect [09:00:13]MH_SAM_On [09:00:13]Write to MH i2c: E0 00 00 08 00 E7 [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:13]*** iso7816_init finished! [09:00:13]*** atr: [09:00:13]*** 0F 3B D5 18 FF 81 91 FE [09:00:13]*** 1F C3 80 73 C8 21 10 0A [09:00:13]*** 00 00 00 00 00 00 00 00 [09:00:13]*** 00 00 00 00 00 00 00 00 [09:00:13]*** 00 00 00 00 00 00 00 00 [09:00:13]*** 00 00 00 00 00 00 00 00 [09:00:13]*** 00 00 00 00 00 00 00 00 [09:00:13]*** 00 00 00 00 00 00 00 00 [09:00:13]Read from MH i2c: E0 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E0 10 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [09:00:13]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:00:13]wFMCommunicate request_size=10 [09:00:13]MH_SAM_APDU [09:00:13]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:00:13]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:13]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:00:13]Read from MH i2c: E2 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 03 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:00:13]RAPDU: 90 00 [09:00:13]wFMCommunicate OK [09:00:13]wFMCommunicate request_size=4 [09:00:13]MH_SAM_APDU [09:00:13]CAPDU: 80 11 00 00 [09:00:13]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:13]Read from MH i2c: E2 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 17 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [09:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:00:13]wFMCommunicate OK [09:00:13]Detected FM SN is 0000000000871830 [09:00:13]Stored FM SN is 0000000000871830 [09:00:13]wFMCommunicate request_size=9 [09:00:13]MH_SAM_APDU [09:00:13]CAPDU: 80 16 00 00 04 2B 08 01 00 [09:00:13]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 2B 08 01 00 00 00 C6 [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:13]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:00:13]Read from MH i2c: E2 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 03 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:00:13]RAPDU: 90 00 [09:00:13]wFMCommunicate OK [09:00:13]FM PIN OK [09:00:13]wFMCommunicate request_size=8 [09:00:13]MH_SAM_APDU [09:00:13]CAPDU: 80 14 04 00 03 02 00 01 [09:00:13]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:13]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:00:13]Read from MH i2c: E2 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 03 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:00:13]RAPDU: 90 00 [09:00:13]wFMCommunicate OK [09:00:13]wFMCommunicate request_size=13 [09:00:13]MH_SAM_APDU [09:00:13]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:00:13]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:13]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:00:13]Read from MH i2c: E2 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 03 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:00:13]RAPDU: 90 00 [09:00:13]wFMCommunicate OK [09:00:13]wFMCommunicate request_size=4 [09:00:13]MH_SAM_APDU [09:00:13]CAPDU: 80 11 00 00 [09:00:13]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:13]Read from MH i2c: E2 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 17 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D6 [09:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:00:13]wFMCommunicate OK [09:00:13]DocumentArchiveInit [09:00:13]Start Httpd... [09:00:13]Httpd thread 3067460964 created [09:00:13]Write to MH i2c: 01 00 00 0F 00 0F [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: 01 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: 01 07 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [09:00:13]MH Int Process started [09:00:13]Allocated Socket 8 [09:00:13]Bind OK [09:00:13]Listen OK [09:00:13]httpd running on port 8080 [09:00:13]Waiting for new connection... [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:44]accept exits with 9 [09:00:44]New connection [09:00:44]New thread 3067174244 created [09:00:44]Waiting for new connection... [09:00:44] Sock 9.Parse request [09:00:44]Sock 9.Check first char [09:00:44]Sock 9.First char is OK [09:00:44]request: POST /json_proto HTTP/1.0 [09:00:44]Method: POST [09:00:44]URL: /json_proto [09:00:44]Method is POST - this is cgi request [09:00:44]url: /json_proto [09:00:44]query_string will be loaded in cgi processing [09:00:44]execute_cgi json_proto POST (null) [09:00:44]execute_cgi path=json_proto method=POST [09:00:44]POST find Content-Length [09:00:44]Host: 172.17.41.136:8080 [09:00:44]Content-Length: 215 [09:00:44]Content-Type: application/json [09:00:44] [09:00:44]POST finish read [09:00:44]Found Content-Length = 215 [09:00:44]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" ] } } [09:00:44]execute_script... [09:00:44]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" ] } } [09:00:44]POST & json_proto [09:00:44]process_json_proto [09:00:44]json parsed OK: [09:00:44]protocol is kg_v1.0 [09:00:44]action value=get_value [09:00:44]process_action get_value [09:00:44]cmd_get_value [09:00:44]process_action get_value done [09:00:44]requested_data is exist [09:00:44]produce_requested_data [09:00:44]requested_item kkm.sn is exist - process it [09:00:44]requested_item kkm.ver is exist - process it [09:00:44]requested_item fm.sn is exist - process it [09:00:44]wFMCommunicate request_size=4 [09:00:44]MH_SAM_APDU [09:00:44]CAPDU: 80 11 00 00 [09:00:44]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:00:44]Write i2c OK [09:00:44]MH_I2C_Read... [09:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:44]Read from MH i2c: E2 [09:00:44]MH_I2C_Read... [09:00:44]Read from MH i2c: E2 17 00 [09:00:44]MH_I2C_Read... [09:00:44]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D8 [09:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:00:44]wFMCommunicate OK [09:00:44]requested_item fd.num is exist - process it [09:00:44]SAM_PROTO_GetFieldsCounters [09:00:44]wFMCommunicate request_size=4 [09:00:44]MH_SAM_APDU [09:00:44]CAPDU: 80 13 00 00 [09:00:44]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:00:44]Write i2c OK [09:00:44]MH_I2C_Read... [09:00:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:44]Read from MH i2c: E2 [09:00:44]MH_I2C_Read... [09:00:44]Read from MH i2c: E2 62 00 [09:00:44]MH_I2C_Read... [09:00:44]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7E C2 01 00 0E 04 04 00 D7 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 43 [09:00:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7E C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:44]wFMCommunicate OK [09:00:44]SAM_PROTO_GetFieldsCounters done [09:00:44]requested_item shift.num is exist - process it [09:00:44]requested_item shift.opened is exist - process it [09:00:44]req_shift_opened [09:00:44]FM_GetShiftState [09:00:44]SAM_PROTO_GetShiftState [09:00:44]wFMCommunicate request_size=4 [09:00:44]MH_SAM_APDU [09:00:44]CAPDU: 80 13 01 00 [09:00:44]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:00:44]Write i2c OK [09:00:44]MH_I2C_Read... [09:00:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:44]Read from MH i2c: E2 [09:00:44]MH_I2C_Read... [09:00:44]Read from MH i2c: E2 0E 00 [09:00:44]MH_I2C_Read... [09:00:44]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A8 [09:00:44]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [09:00:44]wFMCommunicate OK [09:00:44]SAM_PROTO_GetShiftState done [09:00:44]FM_GetShiftState done [09:00:44]req_shift_opened done [09:00:44]requested_item shift.open_date is exist - process it [09:00:44]req_shift_open_date [09:00:44]req_shift_open_date done [09:00:44]produce_requested_data done [09:00:44]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115326,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [09:00:44]process_action_free get_value [09:00:44]json_value_free [09:00:44]json_value_free done [09:00:44]process_json_proto returns [09:00:44]Send response to host [09:00:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115326,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [09:00:44]free response buf [09:00:44]execute_script done [09:00:44]execute_script returns [09:00:44]free content buf [09:00:44]Sock 9.Close socket [09:00:44]Sock 9.Thread stoped [09:00:44]accept exits with 7 [09:00:44]New connection [09:00:44]New thread 3067030884 created [09:00:44]Thread 3067174244 joined [09:00:44]Waiting for new connection... [09:00:44] Sock 7.Parse request [09:00:44]Sock 7.Check first char [09:00:44]Sock 7.First char is OK [09:00:44]request: POST /json_proto HTTP/1.0 [09:00:44]Method: POST [09:00:44]URL: /json_proto [09:00:44]Method is POST - this is cgi request [09:00:44]url: /json_proto [09:00:44]query_string will be loaded in cgi processing [09:00:44]execute_cgi json_proto POST (null) [09:00:44]execute_cgi path=json_proto method=POST [09:00:44]POST find Content-Length [09:00:44]Host: 172.17.41.136:8080 [09:00:44]Content-Length: 331 [09:00:44]Content-Type: application/json [09:00:44] [09:00:44]POST finish read [09:00:44]Found Content-Length = 331 [09:00:44]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" ] } } [09:00:44]execute_script... [09:00:44]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" ] } } [09:00:44]POST & json_proto [09:00:44]process_json_proto [09:00:44]json parsed OK: [09:00:44]protocol is kg_v1.0 [09:00:44]action value=get_value [09:00:44]process_action get_value [09:00:44]cmd_get_value [09:00:44]process_action get_value done [09:00:44]requested_data is exist [09:00:44]produce_requested_data [09:00:44]requested_item fm.sale.total is exist - process it [09:00:44]SAM_PROTO_GetFMData [09:00:44]wFMCommunicate request_size=4 [09:00:44]MH_SAM_APDU [09:00:44]CAPDU: 80 13 03 00 [09:00:44]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [09:00:44]Write i2c OK [09:00:44]MH_I2C_Read... [09:00:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:00:45]Read from MH i2c: E2 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 FD 00 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 CF BE 01 00 69 04 A3 00 6F 04 04 00 52 BD 01 00 B1 04 05 00 A0 F3 81 80 01 70 04 05 00 D1 86 FC 46 01 72 04 04 00 CF 6C 85 39 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 73 0B D7 28 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 C2 0A 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 F6 [09:00:45]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 CF BE 01 00 69 04 A3 00 6F 04 04 00 52 BD 01 00 B1 04 05 00 A0 F3 81 80 01 70 04 05 00 D1 86 FC 46 01 72 04 04 00 CF 6C 85 39 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 73 0B D7 28 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 C2 0A 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 [09:00:45]wFMCommunicate OK [09:00:45]wFMCommunicate request_size=4 [09:00:45]MH_SAM_APDU [09:00:45]CAPDU: 80 17 00 00 [09:00:45]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [09:00:45]Write i2c OK [09:00:45]MH_I2C_Read... [09:00:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:00:45]Read from MH i2c: E2 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 FD 00 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 81 [09:00:45]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:00:45]wFMCommunicate OK [09:00:45]wFMCommunicate request_size=4 [09:00:45]MH_SAM_APDU [09:00:45]CAPDU: 80 17 00 00 [09:00:45]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [09:00:45]Write i2c OK [09:00:45]MH_I2C_Read... [09:00:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:00:45]Read from MH i2c: E2 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 FD 00 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [09:00:45]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [09:00:45]wFMCommunicate OK [09:00:45]wFMCommunicate request_size=4 [09:00:45]MH_SAM_APDU [09:00:45]CAPDU: 80 17 00 00 [09:00:45]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [09:00:45]Write i2c OK [09:00:45]MH_I2C_Read... [09:00:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:00:45]Read from MH i2c: E2 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 FD 00 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [09:00:45]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 [09:00:45]wFMCommunicate OK [09:00:45]wFMCommunicate request_size=4 [09:00:45]MH_SAM_APDU [09:00:45]CAPDU: 80 17 00 00 [09:00:45]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:00:45]Write i2c OK [09:00:45]MH_I2C_Read... [09:00:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [09:00:46]Read from MH i2c: E2 [09:00:46]MH_I2C_Read... [09:00:46]Read from MH i2c: E2 E2 00 [09:00:46]MH_I2C_Read... [09:00:46]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [09:00:46]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:00:46]wFMCommunicate OK [09:00:46]SAM_PROTO_GetFMData done [09:00:46]requested_item fm.sale_refund.total is exist - process it [09:00:46]requested_item fm.buy.total is exist - process it [09:00:46]requested_item shift.sale.total is exist - process it [09:00:46]SAM_PROTO_GetShiftData [09:00:46]wFMCommunicate request_size=4 [09:00:46]MH_SAM_APDU [09:00:46]CAPDU: 80 13 02 00 [09:00:46]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:00:46]Write i2c OK [09:00:46]MH_I2C_Read... [09:00:46]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:00:46]Read from MH i2c: E2 [09:00:46]MH_I2C_Read... [09:00:46]Read from MH i2c: E2 FD 00 [09:00:46]MH_I2C_Read... [09:00:46]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 2C 00 00 00 69 04 9B 00 6F 04 04 00 2C 00 00 00 B1 04 03 00 E4 C6 13 70 04 03 00 C0 BF 11 72 04 03 00 24 07 02 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 A6 19 02 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 C5 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DB [09:00:46]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 2C 00 00 00 69 04 9B 00 6F 04 04 00 2C 00 00 00 B1 04 03 00 E4 C6 13 70 04 03 00 C0 BF 11 72 04 03 00 24 07 02 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 A6 19 02 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 C5 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:00:46]wFMCommunicate OK [09:00:46]wFMCommunicate request_size=4 [09:00:46]MH_SAM_APDU [09:00:46]CAPDU: 80 17 00 00 [09:00:46]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:00:46]Write i2c OK [09:00:46]MH_I2C_Read... [09:00:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:00:46]Read from MH i2c: E2 [09:00:46]MH_I2C_Read... [09:00:46]Read from MH i2c: E2 FD 00 [09:00:46]MH_I2C_Read... [09:00:46]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BB [09:00:46]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:00:46]wFMCommunicate OK [09:00:46]wFMCommunicate request_size=4 [09:00:46]MH_SAM_APDU [09:00:46]CAPDU: 80 17 00 00 [09:00:46]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [09:00:46]Write i2c OK [09:00:46]MH_I2C_Read... [09:00:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:00:47]Read from MH i2c: E2 [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: E2 FD 00 [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [09:00:47]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:00:47]wFMCommunicate OK [09:00:47]wFMCommunicate request_size=4 [09:00:47]MH_SAM_APDU [09:00:47]CAPDU: 80 17 00 00 [09:00:47]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [09:00:47]Write i2c OK [09:00:47]MH_I2C_Read... [09:00:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:00:47]Read from MH i2c: E2 [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: E2 FD 00 [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 0D [09:00:47]RAPDU: 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 90 00 [09:00:47]wFMCommunicate OK [09:00:47]wFMCommunicate request_size=4 [09:00:47]MH_SAM_APDU [09:00:47]CAPDU: 80 17 00 00 [09:00:47]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:00:47]Write i2c OK [09:00:47]MH_I2C_Read... [09:00:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:00:47]Read from MH i2c: E2 [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: E2 CB 00 [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 85 [09:00:47]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:00:47]wFMCommunicate OK [09:00:47]SAM_PROTO_GetShiftData done [09:00:47]requested_item shift.sale.total_cash is exist - process it [09:00:47]requested_item shift.sale_refund.total is exist - process it [09:00:47]requested_item shift.sale_refund.total_cash is exist - process it [09:00:47]requested_item shift.buy.total is exist - process it [09:00:47]requested_item shift.buy.total_cash is exist - process it [09:00:47]produce_requested_data done [09:00:47]produce_requested_data return {"fm.sale.total":64509674.56,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":12961.00,"shift.sale.total_cash":11632.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} [09:00:47]process_action_free get_value [09:00:47]json_value_free [09:00:47]json_value_free done [09:00:47]process_json_proto returns [09:00:47]Send response to host [09:00:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64509674.56,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":12961.00,"shift.sale.total_cash":11632.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}}} [09:00:47]free response buf [09:00:47]execute_script done [09:00:47]execute_script returns [09:00:47]free content buf [09:00:47]Sock 7.Close socket [09:00:47]Sock 7.Thread stoped [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:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:40]accept exits with 9 [09:05:40]New connection [09:05:40]New thread 3067174244 created [09:05:40]Thread 3067030884 joined [09:05:40]Waiting for new connection... [09:05:40] Sock 9.Parse request [09:05:40]Sock 9.Check first char [09:05:40]Sock 9.First char is OK [09:05:40]request: POST /json_proto HTTP/1.0 [09:05:40]Method: POST [09:05:40]URL: /json_proto [09:05:40]Method is POST - this is cgi request [09:05:40]url: /json_proto [09:05:40]query_string will be loaded in cgi processing [09:05:40]execute_cgi json_proto POST (null) [09:05:40]execute_cgi path=json_proto method=POST [09:05:40]POST find Content-Length [09:05:40]Host: 172.17.41.136:8080 [09:05:40]Content-Length: 679 [09:05:40]Content-Type: application/json [09:05:40] [09:05:40]POST finish read [09:05:40]Found Content-Length = 679 [09:05:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343786", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:40]execute_script... [09:05:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343786", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:40]POST & json_proto [09:05:40]process_json_proto [09:05:40]json parsed OK: [09:05:40]protocol is kg_v1.0 [09:05:40]action value=close_receipt [09:05:40]process_action close_receipt [09:05:40]cmd_close_receipt [09:05:40]MH_GetDate [09:05:40]Write to MH i2c: F0 00 00 1D 00 0C [09:05:40]Write i2c OK [09:05:40]MH_I2C_Read... [09:05:40]Read from MH i2c: F0 [09:05:40]MH_I2C_Read... [09:05:40]Read from MH i2c: F0 09 00 [09:05:40]MH_I2C_Read... [09:05:40]Read from MH i2c: F0 09 00 1D 00 00 E5 DD EF 66 1B D0 5A 64 D5 [09:05:40]GetLastDocTimeStamp 1726994837 [09:05:40]current date 1726995941 [09:05:40]FM_GetShiftState [09:05:40]SAM_PROTO_GetShiftState [09:05:40]wFMCommunicate request_size=4 [09:05:40]MH_SAM_APDU [09:05:40]CAPDU: 80 13 01 00 [09:05:40]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [09:05:40]Write i2c OK [09:05:40]MH_I2C_Read... [09:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:40]Read from MH i2c: E2 [09:05:40]MH_I2C_Read... [09:05:40]Read from MH i2c: E2 0E 00 [09:05:40]MH_I2C_Read... [09:05:40]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B4 [09:05:40]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [09:05:40]wFMCommunicate OK [09:05:40]SAM_PROTO_GetShiftState done [09:05:40]FM_GetShiftState done [09:05:40]opened in 1726965840 [09:05:40]opened+sec_in_day 1727052240 [09:05:40]quantity*price = 8000 [09:05:40]sum+1 = 8001 [09:05:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 45 22.09.2024 09:05 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115327 ФПД: 199749420056100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T090541&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115327&fm=199749420056100&tin=02508201610067®Number=0000000000091831&sum=8000 0 [09:05:41]StoreToDocumentArchive [09:05:41]shift 471 fd 115327 [09:05:41]save to /storage/0471/doc_00115327 [09:05:41]save last doc name /storage/0471/doc_00115327 to /storage/kkm_last_doc_name [09:05:41]save OK [09:05:41]Clear old archive folders... [09:05:41]ProcessDocumentItem done err = 0, tmpTLVsize=294 [09:05:41]tlvbuf is 016F5760 [09:05:41]SAM_PROTO_ClearQueue [09:05:41]wFMCommunicate request_size=4 [09:05:41]MH_SAM_APDU [09:05:41]CAPDU: 80 09 00 00 [09:05:41]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:05:41]Write i2c OK [09:05:41]MH_I2C_Read... [09:05:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:41]Read from MH i2c: E2 [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: E2 03 00 [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:05:41]RAPDU: 90 00 [09:05:41]wFMCommunicate OK [09:05:41]SAM_PROTO_ClearQueue done [09:05:41]KKMCreateOFDPacket [09:05:41]OFDProtocolAddRootSTLVToBuf [09:05:41]FM_MakeSignedData [09:05:41]FM_MakeSignedData [09:05:41]SAM_PROTO_SignData [09:05:41]wFMCommunicate request_size=4 [09:05:41]MH_SAM_APDU [09:05:41]CAPDU: 80 0D 01 02 [09:05:41]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [09:05:41]Write i2c OK [09:05:41]MH_I2C_Read... [09:05:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:41]Read from MH i2c: E2 [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: E2 03 00 [09:05:41]MH_I2C_Read... [09:05:41]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [09:05:41]RAPDU: 90 00 [09:05:41]wFMCommunicate OK [09:05:41]wFMCommunicate request_size=255 [09:05:41]MH_SAM_APDU [09:05:41]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E5 DD EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [09:05:41]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E5 DD EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 C3 [09:05:41]Write i2c OK [09:05:41]MH_I2C_Read... [09:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:42]Read from MH i2c: E2 [09:05:42]MH_I2C_Read... [09:05:42]Read from MH i2c: E2 03 00 [09:05:42]MH_I2C_Read... [09:05:42]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [09:05:42]RAPDU: 90 00 [09:05:42]wFMCommunicate OK [09:05:42]wFMCommunicate request_size=53 [09:05:42]MH_SAM_APDU [09:05:42]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7F C2 01 00 35 04 06 00 B5 AB C9 39 FE 24 [09:05:42]Write to MH i2c: E2 38 00 2E 00 80 0D 02 02 30 00 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7F C2 01 00 35 04 06 00 B5 AB C9 39 FE 24 00 00 5B [09:05:42]Write i2c OK [09:05:42]MH_I2C_Read... [09:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:42]Read from MH i2c: E2 [09:05:42]MH_I2C_Read... [09:05:42]Read from MH i2c: E2 03 00 [09:05:42]MH_I2C_Read... [09:05:42]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [09:05:42]RAPDU: 90 00 [09:05:42]wFMCommunicate OK [09:05:42]wFMCommunicate request_size=4 [09:05:42]MH_SAM_APDU [09:05:42]CAPDU: 80 0D 03 02 [09:05:42]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [09:05:42]Write i2c OK [09:05:42]MH_I2C_Read... [09:05:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:42]Read from MH i2c: E2 [09:05:42]MH_I2C_Read... [09:05:42]Read from MH i2c: E2 0B 00 [09:05:42]MH_I2C_Read... [09:05:42]Read from MH i2c: E2 0B 00 2F 00 00 8A 52 D5 04 0A 0B 2E AF 90 00 52 [09:05:42]RAPDU: 8A 52 D5 04 0A 0B 2E AF 90 00 [09:05:42]wFMCommunicate OK [09:05:42]SAM_PROTO_SignData done [09:05:42]FM_MakeSignedData done [09:05:42]CreateOFDProtocolMessage [09:05:42]wFMCommunicate request_size=4 [09:05:42]MH_SAM_APDU [09:05:42]CAPDU: 80 11 00 00 [09:05:42]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [09:05:42]Write i2c OK [09:05:42]MH_I2C_Read... [09:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:42]Read from MH i2c: E2 [09:05:42]MH_I2C_Read... [09:05:42]Read from MH i2c: E2 17 00 [09:05:42]MH_I2C_Read... [09:05:42]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F8 [09:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:05:42]wFMCommunicate OK [09:05:42]CreateOFDProtocolMessage done [09:05:42]OFDSenderStorePacket 115327 [09:05:42]StoreOFDPacket docnum=115327 [09:05:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3A 01 00 00 7C AD 32 01 6E 6A 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E5 DD EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7F C2 01 00 35 04 06 00 B5 AB C9 39 FE 24 8A 52 D5 04 0A 0B 2E AF [09:05:42]CheckFolder [09:05:42]dirname=/storage/ofd_packets [09:05:42]CheckFolder done [09:05:42]ProducePacketName [09:05:42]name=ofd_packets/00115327 [09:05:42]NVStorageSaveData ofd_packets/00115327 [09:05:42]File name is /storage/ofd_packets/00115327 [09:05:42]Write 344 bytes [09:05:42]NVStorageSaveData done [09:05:42]OFDSenderStorePacket done [09:05:42]KKMCreateOFDPacket done [09:05:42]NVStorageSaveData kkm_last_timestamp [09:05:42]File name is /storage/kkm_last_timestamp [09:05:42]Write 4 bytes [09:05:42]NVStorageSaveData done [09:05:42]ExternCall_PrintAddStr [09:05:42]wPrintStart [09:05:42]Write to MH i2c: 01 00 00 31 00 31 [09:05:42]Write i2c OK [09:05:42]MH_I2C_Read... [09:05:42]Read from MH i2c: 01 [09:05:42]MH_I2C_Read... [09:05:42]Read from MH i2c: 01 07 00 [09:05:42]MH_I2C_Read... [09:05:42]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [09:05:42]RasterBufferAndPrint [09:05:42]line Счет N : (3)343786 [09:05:42]line ИНН: 02508201610067 [09:05:42]line Контрольно-Кассовый Чек [09:05:42]line ПРОДАЖА [09:05:42]line Товар: 4700003010353 [09:05:42]line Напиток Let`s Go! с/с груша ПЭТ 1л [09:05:42]line 1.000 * 80.00 [09:05:42]line = 80.00 [09:05:42]line НДС 12% НСП 1% [09:05:42]line > о реализуемом товаре [09:05:42]line ИТОГО: 80.00 [09:05:42]line НСП 1% : 0.71 [09:05:42]line НДС 12% : 8.50 [09:05:42]line Наличными: 80.00 [09:05:42]line Безнал.: 0.00 [09:05:42]line Место: АЗС № 90 "Партнер Нефть" [09:05:42]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:05:42]line СНО: Общий режим [09:05:42]line Чек 45 22.09.2024 09:05 [09:05:42]line Смена: 471 ФФД: 1.0 [09:05:42]line ЗНМ: 0300000120 [09:05:42]line РНМ: 0000000000091831 [09:05:42]line Версия ККМ: 001 [09:05:42]line ФМ: 0000000000871830 [09:05:42]line ФД: 115327 [09:05:42]line ФПД: 199749420056100 [09:05:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T090541&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115327&fm=199749420056100&tin=02508201610067®Number=0000000000091831&sum=8000 [09:05:42]line 0 [09:05:42]written 0, free lines is 4095 [09:05:42]OFD Sender: Processing packet 115327 [packets to send 481, broken 480] [09:05:42]ProducePacketName [09:05:42]name=ofd_packets/00115327 [09:05:42]OFD Sender: To server: pG, [09:05:42]CommunicateWithHost lk.salyk.kg:30040 [09:05:42]ConnectInit lk.salyk.kg [09:05:42]Connected sock=7 [09:05:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3A 01 00 00 7C AD 32 01 6E 6A 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E5 DD EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7F C2 01 00 35 04 06 00 B5 AB C9 39 FE 24 8A 52 D5 04 0A 0B 2E AF [09:05:42]Write to MH i2c: 01 00 00 59 00 59 [09:05:42]Write i2c OK [09:05:42]MH_I2C_Read... [09:05:42]Read from MH i2c: 01 [09:05:42]MH_I2C_Read... [09:05:42]Read from MH i2c: 01 07 00 [09:05:42]MH_I2C_Read... [09:05:42]Read from MH i2c: 01 07 00 59 00 00 00 00 00 00 5C 0C C8 [09:05:42]RasterBufferAndPrint [09:05:42]line [09:05:42]line [09:05:42]line [09:05:42]line [09:05:42]line [09:05:42]written 0, free lines is 3167 [09:05:42]MH_Cut [09:05:42]Write to MH i2c: D1 01 00 60 00 01 32 [09:05:42]Write i2c OK [09:05:42]MH_I2C_Read... [09:05:42]Read from MH i2c: D1 [09:05:42]MH_I2C_Read... [09:05:42]Read from MH i2c: D1 01 00 [09:05:42]MH_I2C_Read... [09:05:42]Read from MH i2c: D1 01 00 60 00 00 31 [09:05:42]Write to MH i2c: 01 00 00 61 00 61 [09:05:42]Write i2c OK [09:05:42]MH_I2C_Read... [09:05:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 8D 93 47 00 D6 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7F C2 01 00 F4 03 04 00 2B 83 EF 66 B6 04 01 00 00 15 DB 0E 5F EF A2 94 F3 [09:05:42]CommunicateWithHost err = 0 [09:05:42]CheckOFDResponse [09:05:42]1017 (14) - 77093643461234 [09:05:42]1041 (16) - 0000000000871830 [09:05:42]1040 (4) - 115327 [09:05:42]1012 (4) - 22.09.2024 02:38 [09:05:42]1206 (1) - 0 [09:05:42]OFD Sender: Remove packet 115327 [09:05:42]ProducePacketName [09:05:42]name=ofd_packets/00115327 [09:05:42]NVStorageDeleteData [09:05:43]OFD Sender: No OFD packet to send [09:05:44]*** Cut start [09:05:44]*** Partial cut [09:05:44]*** CUTSNS_PIN = 1 [09:05:44]*** CUTSNS_PIN = 0 [09:05:44]*** Brake cut motor [09:05:44]Read from MH i2c: 01 [09:05:44]MH_I2C_Read... [09:05:44]*** Stop cut motor [09:05:44]*** Cut end [09:05:44]Read from MH i2c: 01 07 00 [09:05:44]MH_I2C_Read... [09:05:44]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 FF 0F 76 [09:05:44]process_action close_receipt done [09:05:44]requested_data is exist [09:05:44]produce_requested_data [09:05:44]requested_item fm.sn is exist - process it [09:05:44]wFMCommunicate request_size=4 [09:05:44]MH_SAM_APDU [09:05:44]CAPDU: 80 11 00 00 [09:05:44]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [09:05:44]Write i2c OK [09:05:44]MH_I2C_Read... [09:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:44]Read from MH i2c: E2 [09:05:44]MH_I2C_Read... [09:05:44]Read from MH i2c: E2 17 00 [09:05:44]MH_I2C_Read... [09:05:44]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2A [09:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:05:44]wFMCommunicate OK [09:05:44]requested_item fd.num is exist - process it [09:05:44]SAM_PROTO_GetFieldsCounters [09:05:44]wFMCommunicate request_size=4 [09:05:44]MH_SAM_APDU [09:05:44]CAPDU: 80 13 00 00 [09:05:44]Write to MH i2c: E2 08 00 63 00 80 13 00 00 00 00 00 00 DF [09:05:44]Write i2c OK [09:05:44]MH_I2C_Read... [09:05:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:44]Read from MH i2c: E2 [09:05:44]MH_I2C_Read... [09:05:44]Read from MH i2c: E2 62 00 [09:05:44]MH_I2C_Read... [09:05:44]Read from MH i2c: E2 62 00 63 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7F C2 01 00 0E 04 04 00 D7 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 99 [09:05:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7F C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:44]wFMCommunicate OK [09:05:44]SAM_PROTO_GetFieldsCounters done [09:05:44]requested_item shift.num is exist - process it [09:05:44]requested_item shift.opened is exist - process it [09:05:44]req_shift_opened [09:05:44]FM_GetShiftState [09:05:44]SAM_PROTO_GetShiftState [09:05:44]wFMCommunicate request_size=4 [09:05:44]MH_SAM_APDU [09:05:44]CAPDU: 80 13 01 00 [09:05:44]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [09:05:44]Write i2c OK [09:05:44]MH_I2C_Read... [09:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:44]Read from MH i2c: E2 [09:05:44]MH_I2C_Read... [09:05:44]Read from MH i2c: E2 0E 00 [09:05:44]MH_I2C_Read... [09:05:44]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 FA [09:05:44]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [09:05:44]wFMCommunicate OK [09:05:44]SAM_PROTO_GetShiftState done [09:05:44]FM_GetShiftState done [09:05:44]req_shift_opened done [09:05:44]requested_item shift.open_date is exist - process it [09:05:44]req_shift_open_date [09:05:44]req_shift_open_date done [09:05:44]produce_requested_data done [09:05:44]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115327,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [09:05:44]process_action_free close_receipt [09:05:44]json_value_free [09:05:44]json_value_free done [09:05:44]process_json_proto returns [09:05:44]Send response to host [09:05:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115327,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [09:05:44]free response buf [09:05:44]execute_script done [09:05:44]execute_script returns [09:05:44]free content buf [09:05:44]Sock 9.Close socket [09:05:44]Sock 9.Thread stoped [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:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09: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:49]accept exits with 10 [09:11:49]New connection [09:11:49]New thread 3067030884 created [09:11:49]Thread 3067174244 joined [09:11:49]Waiting for new connection... [09:11:49] Sock 10.Parse request [09:11:49]Sock 10.Check first char [09:11:49]Sock 10.First char is OK [09:11:49]request: POST /json_proto HTTP/1.0 [09:11:49]Method: POST [09:11:49]URL: /json_proto [09:11:49]Method is POST - this is cgi request [09:11:49]url: /json_proto [09:11:49]query_string will be loaded in cgi processing [09:11:49]execute_cgi json_proto POST (null) [09:11:49]execute_cgi path=json_proto method=POST [09:11:49]POST find Content-Length [09:11:49]Host: 172.17.41.136:8080 [09:11:49]Content-Length: 647 [09:11:49]Content-Type: application/json [09:11:49] [09:11:49]POST finish read [09:11:49]Found Content-Length = 647 [09:11:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343787", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 3.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:49]execute_script... [09:11:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343787", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 3.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:49]POST & json_proto [09:11:49]process_json_proto [09:11:49]json parsed OK: [09:11:49]protocol is kg_v1.0 [09:11:49]action value=close_receipt [09:11:49]process_action close_receipt [09:11:49]cmd_close_receipt [09:11:49]MH_GetDate [09:11:49]Write to MH i2c: F0 00 00 65 00 54 [09:11:49]Write i2c OK [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: F0 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: F0 09 00 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: F0 09 00 65 00 00 56 DF EF 66 1B D0 5A 64 90 [09:11:49]GetLastDocTimeStamp 1726995941 [09:11:49]current date 1726996310 [09:11:49]FM_GetShiftState [09:11:49]SAM_PROTO_GetShiftState [09:11:49]wFMCommunicate request_size=4 [09:11:49]MH_SAM_APDU [09:11:49]CAPDU: 80 13 01 00 [09:11:49]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [09:11:49]Write i2c OK [09:11:49]MH_I2C_Read... [09:11:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:49]Read from MH i2c: E2 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: E2 0E 00 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 FC [09:11:49]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [09:11:49]wFMCommunicate OK [09:11:49]SAM_PROTO_GetShiftState done [09:11:49]FM_GetShiftState done [09:11:49]opened in 1726965840 [09:11:49]opened+sec_in_day 1727052240 [09:11:49]quantity*price = 19500 [09:11:49]sum+1 = 19501 [09:11:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.73 НДС 12% : 20.71 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 46 22.09.2024 09:11 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115328 ФПД: 259492606343790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091150&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115328&fm=259492606343790&tin=02508201610067®Number=0000000000091831&sum=19500 0 [09:11:50]StoreToDocumentArchive [09:11:50]shift 471 fd 115328 [09:11:50]save to /storage/0471/doc_00115328 [09:11:50]save last doc name /storage/0471/doc_00115328 to /storage/kkm_last_doc_name [09:11:50]save OK [09:11:50]Clear old archive folders... [09:11:50]ProcessDocumentItem done err = 0, tmpTLVsize=272 [09:11:50]tlvbuf is 016F5A80 [09:11:50]SAM_PROTO_ClearQueue [09:11:50]wFMCommunicate request_size=4 [09:11:50]MH_SAM_APDU [09:11:50]CAPDU: 80 09 00 00 [09:11:50]Write to MH i2c: E2 08 00 73 00 80 09 00 00 00 00 00 00 E5 [09:11:50]Write i2c OK [09:11:50]MH_I2C_Read... [09:11:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:50]Read from MH i2c: E2 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: E2 03 00 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [09:11:50]RAPDU: 90 00 [09:11:50]wFMCommunicate OK [09:11:50]SAM_PROTO_ClearQueue done [09:11:50]KKMCreateOFDPacket [09:11:50]OFDProtocolAddRootSTLVToBuf [09:11:50]FM_MakeSignedData [09:11:50]FM_MakeSignedData [09:11:50]SAM_PROTO_SignData [09:11:50]wFMCommunicate request_size=4 [09:11:50]MH_SAM_APDU [09:11:50]CAPDU: 80 0D 01 02 [09:11:50]Write to MH i2c: E2 08 00 74 00 80 0D 01 02 00 00 00 00 ED [09:11:50]Write i2c OK [09:11:50]MH_I2C_Read... [09:11:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:50]Read from MH i2c: E2 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: E2 03 00 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [09:11:50]RAPDU: 90 00 [09:11:50]wFMCommunicate OK [09:11:50]wFMCommunicate request_size=255 [09:11:50]MH_SAM_APDU [09:11:50]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 56 DF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [09:11:50]Write to MH i2c: E2 02 01 75 00 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 56 DF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 6E [09:11:50]Write i2c OK [09:11:50]MH_I2C_Read... [09:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:51]Read from MH i2c: E2 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 03 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [09:11:51]RAPDU: 90 00 [09:11:51]wFMCommunicate OK [09:11:51]wFMCommunicate request_size=31 [09:11:51]MH_SAM_APDU [09:11:51]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 33 30 10 04 04 00 80 C2 01 00 35 04 06 00 EC 01 D4 9F 7A 6E [09:11:51]Write to MH i2c: E2 22 00 76 00 80 0D 02 02 1A 00 30 30 38 37 31 38 33 30 10 04 04 00 80 C2 01 00 35 04 06 00 EC 01 D4 9F 7A 6E 00 00 A1 [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:51]Read from MH i2c: E2 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 03 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [09:11:51]RAPDU: 90 00 [09:11:51]wFMCommunicate OK [09:11:51]wFMCommunicate request_size=4 [09:11:51]MH_SAM_APDU [09:11:51]CAPDU: 80 0D 03 02 [09:11:51]Write to MH i2c: E2 08 00 77 00 80 0D 03 02 00 00 00 00 F2 [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:51]Read from MH i2c: E2 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 0B 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 0B 00 77 00 00 E1 1C BA 01 43 8A 6A B2 90 00 94 [09:11:51]RAPDU: E1 1C BA 01 43 8A 6A B2 90 00 [09:11:51]wFMCommunicate OK [09:11:51]SAM_PROTO_SignData done [09:11:51]FM_MakeSignedData done [09:11:51]CreateOFDProtocolMessage [09:11:51]wFMCommunicate request_size=4 [09:11:51]MH_SAM_APDU [09:11:51]CAPDU: 80 11 00 00 [09:11:51]Write to MH i2c: E2 08 00 78 00 80 11 00 00 00 00 00 00 F2 [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:51]Read from MH i2c: E2 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 17 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 17 00 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 40 [09:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:11:51]wFMCommunicate OK [09:11:51]CreateOFDProtocolMessage done [09:11:51]OFDSenderStorePacket 115328 [09:11:51]StoreOFDPacket docnum=115328 [09:11:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 FA BD 1C 01 F1 10 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 56 DF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 80 C2 01 00 35 04 06 00 EC 01 D4 9F 7A 6E E1 1C BA 01 43 8A 6A B2 [09:11:51]CheckFolder [09:11:51]dirname=/storage/ofd_packets [09:11:51]CheckFolder done [09:11:51]ProducePacketName [09:11:51]name=ofd_packets/00115328 [09:11:51]NVStorageSaveData ofd_packets/00115328 [09:11:51]File name is /storage/ofd_packets/00115328 [09:11:51]Write 322 bytes [09:11:51]NVStorageSaveData done [09:11:51]OFDSenderStorePacket done [09:11:51]KKMCreateOFDPacket done [09:11:51]NVStorageSaveData kkm_last_timestamp [09:11:51]File name is /storage/kkm_last_timestamp [09:11:51]Write 4 bytes [09:11:51]NVStorageSaveData done [09:11:51]ExternCall_PrintAddStr [09:11:51]wPrintStart [09:11:51]Write to MH i2c: 01 00 00 79 00 79 [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 07 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 07 00 79 00 00 00 00 00 00 FF 0F 8E [09:11:51]RasterBufferAndPrint [09:11:51]line Счет N : (3)343787 [09:11:51]line ИНН: 02508201610067 [09:11:51]line Контрольно-Кассовый Чек [09:11:51]line ПРОДАЖА [09:11:51]line Товар: 47011656 [09:11:51]line Водка Пшеничная 0,1л [09:11:51]line 3.000 * 65.00 [09:11:51]line = 195.00 [09:11:51]line НДС 12% НСП 1% [09:11:51]line > о реализуемом товаре [09:11:51]line ИТОГО: 195.00 [09:11:51]line НСП 1% : 1.73 [09:11:51]line НДС 12% : 20.71 [09:11:51]line Наличными: 195.00 [09:11:51]line Безнал.: 0.00 [09:11:51]line Место: АЗС № 90 "Партнер Нефть" [09:11:51]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:11:51]line СНО: Общий режим [09:11:51]line Чек 46 22.09.2024 09:11 [09:11:51]line Смена: 471 ФФД: 1.0 [09:11:51]line ЗНМ: 0300000120 [09:11:51]line РНМ: 0000000000091831 [09:11:51]line Версия ККМ: 001 [09:11:51]line ФМ: 0000000000871830 [09:11:51]line ФД: 115328 [09:11:51]line ФПД: 259492606343790 [09:11:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091150&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115328&fm=259492606343790&tin=02508201610067®Number=0000000000091831&sum=19500 [09:11:51]line 0 [09:11:51]written 0, free lines is 4095 [09:11:51]OFD Sender: Processing packet 115328 [packets to send 481, broken 480] [09:11:51]ProducePacketName [09:11:51]name=ofd_packets/00115328 [09:11:51]OFD Sender: To server: pG, [09:11:51]CommunicateWithHost lk.salyk.kg:30040 [09:11:51]ConnectInit lk.salyk.kg [09:11:51]Connected sock=9 [09:11:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 FA BD 1C 01 F1 10 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 56 DF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 80 C2 01 00 35 04 06 00 EC 01 D4 9F 7A 6E E1 1C BA 01 43 8A 6A B2 [09:11:51]Write to MH i2c: 01 00 00 A0 00 A0 [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 07 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 07 00 A0 00 00 00 00 00 00 8C 0C 3F [09:11:51]RasterBufferAndPrint [09:11:51]line [09:11:51]line [09:11:51]line [09:11:51]line [09:11:51]line [09:11:51]written 0, free lines is 3217 [09:11:51]MH_Cut [09:11:51]Write to MH i2c: D1 01 00 A7 00 01 79 [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: D1 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: D1 01 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: D1 01 00 A7 00 00 78 [09:11:51]Write to MH i2c: 01 00 00 A8 00 A8 [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D0 FB 47 00 2E 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 80 C2 01 00 F4 03 04 00 9C 84 EF 66 B6 04 01 00 00 BC 12 C1 95 B1 FE A9 DB [09:11:51]CommunicateWithHost err = 0 [09:11:51]CheckOFDResponse [09:11:51]1017 (14) - 77093643461234 [09:11:51]1041 (16) - 0000000000871830 [09:11:51]1040 (4) - 115328 [09:11:51]1012 (4) - 22.09.2024 02:44 [09:11:51]1206 (1) - 0 [09:11:51]OFD Sender: Remove packet 115328 [09:11:51]ProducePacketName [09:11:51]name=ofd_packets/00115328 [09:11:51]NVStorageDeleteData [09:11:52]OFD Sender: No OFD packet to send [09:11:52]*** Cut start [09:11:52]*** Partial cut [09:11:52]*** CUTSNS_PIN = 1 [09:11:52]*** CUTSNS_PIN = 0 [09:11:53]*** Brake cut motor [09:11:53]Read from MH i2c: 01 [09:11:53]MH_I2C_Read... [09:11:53]*** Stop cut motor [09:11:53]*** Cut end [09:11:53]Read from MH i2c: 01 07 00 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: 01 07 00 A8 00 00 00 00 00 00 FF 0F BD [09:11:53]process_action close_receipt done [09:11:53]requested_data is exist [09:11:53]produce_requested_data [09:11:53]requested_item fm.sn is exist - process it [09:11:53]wFMCommunicate request_size=4 [09:11:53]MH_SAM_APDU [09:11:53]CAPDU: 80 11 00 00 [09:11:53]Write to MH i2c: E2 08 00 A9 00 80 11 00 00 00 00 00 00 23 [09:11:53]Write i2c OK [09:11:53]MH_I2C_Read... [09:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:53]Read from MH i2c: E2 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: E2 17 00 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: E2 17 00 A9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 71 [09:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:11:53]wFMCommunicate OK [09:11:53]requested_item fd.num is exist - process it [09:11:53]SAM_PROTO_GetFieldsCounters [09:11:53]wFMCommunicate request_size=4 [09:11:53]MH_SAM_APDU [09:11:53]CAPDU: 80 13 00 00 [09:11:53]Write to MH i2c: E2 08 00 AA 00 80 13 00 00 00 00 00 00 26 [09:11:53]Write i2c OK [09:11:53]MH_I2C_Read... [09:11:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:53]Read from MH i2c: E2 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: E2 62 00 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: E2 62 00 AA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 80 C2 01 00 0E 04 04 00 D7 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 E4 [09:11:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 80 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:53]wFMCommunicate OK [09:11:53]SAM_PROTO_GetFieldsCounters done [09:11:53]requested_item shift.num is exist - process it [09:11:53]requested_item shift.opened is exist - process it [09:11:53]req_shift_opened [09:11:53]FM_GetShiftState [09:11:53]SAM_PROTO_GetShiftState [09:11:53]wFMCommunicate request_size=4 [09:11:53]MH_SAM_APDU [09:11:53]CAPDU: 80 13 01 00 [09:11:53]Write to MH i2c: E2 08 00 AB 00 80 13 01 00 00 00 00 00 28 [09:11:53]Write i2c OK [09:11:53]MH_I2C_Read... [09:11:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:53]Read from MH i2c: E2 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: E2 0E 00 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: E2 0E 00 AB 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 41 [09:11:53]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [09:11:53]wFMCommunicate OK [09:11:53]SAM_PROTO_GetShiftState done [09:11:53]FM_GetShiftState done [09:11:53]req_shift_opened done [09:11:53]requested_item shift.open_date is exist - process it [09:11:53]req_shift_open_date [09:11:53]req_shift_open_date done [09:11:53]produce_requested_data done [09:11:53]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115328,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [09:11:53]process_action_free close_receipt [09:11:53]json_value_free [09:11:53]json_value_free done [09:11:53]process_json_proto returns [09:11:53]Send response to host [09:11:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115328,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [09:11:53]free response buf [09:11:53]execute_script done [09:11:53]execute_script returns [09:11:53]free content buf [09:11:53]Sock 10.Close socket [09:11:53]Sock 10.Thread stoped [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:33:56]accept exits with 7 [09:33:56]New connection [09:33:56]New thread 3067174244 created [09:33:56]Thread 3067030884 joined [09:33:56]Waiting for new connection... [09:33:56] Sock 7.Parse request [09:33:56]Sock 7.Check first char [09:33:56]Sock 7.First char is OK [09:33:56]request: POST /json_proto HTTP/1.0 [09:33:56]Method: POST [09:33:56]URL: /json_proto [09:33:56]Method is POST - this is cgi request [09:33:56]url: /json_proto [09:33:56]query_string will be loaded in cgi processing [09:33:56]execute_cgi json_proto POST (null) [09:33:56]execute_cgi path=json_proto method=POST [09:33:56]POST find Content-Length [09:33:56]Host: 172.17.41.136:8080 [09:33:56]Content-Length: 909 [09:33:56]Content-Type: application/json [09:33:56] [09:33:56]POST finish read [09:33:56]Found Content-Length = 909 [09:33:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343788", "tax_sys" : 0, "items" : [ { "code": "4700000483259", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u041C\u043E\u0445\u0438\u0442\u043E", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:56]execute_script... [09:33:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343788", "tax_sys" : 0, "items" : [ { "code": "4700000483259", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u041C\u043E\u0445\u0438\u0442\u043E", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:56]POST & json_proto [09:33:56]process_json_proto [09:33:56]json parsed OK: [09:33:56]protocol is kg_v1.0 [09:33:56]action value=close_receipt [09:33:56]process_action close_receipt [09:33:56]cmd_close_receipt [09:33:56]MH_GetDate [09:33:56]Write to MH i2c: F0 00 00 AC 00 9B [09:33:56]Write i2c OK [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: F0 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: F0 09 00 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: F0 09 00 AC 00 00 85 E4 EF 66 1B D0 5A 64 0B [09:33:56]GetLastDocTimeStamp 1726996310 [09:33:56]current date 1726997637 [09:33:56]FM_GetShiftState [09:33:56]SAM_PROTO_GetShiftState [09:33:56]wFMCommunicate request_size=4 [09:33:56]MH_SAM_APDU [09:33:56]CAPDU: 80 13 01 00 [09:33:56]Write to MH i2c: E2 08 00 AD 00 80 13 01 00 00 00 00 00 2A [09:33:56]Write i2c OK [09:33:56]MH_I2C_Read... [09:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:56]Read from MH i2c: E2 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: E2 0E 00 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: E2 0E 00 AD 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 43 [09:33:56]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [09:33:56]wFMCommunicate OK [09:33:56]SAM_PROTO_GetShiftState done [09:33:56]FM_GetShiftState done [09:33:56]opened in 1726965840 [09:33:56]opened+sec_in_day 1727052240 [09:33:56]quantity*price = 9500 [09:33:56]sum+1 = 9501 [09:33:56]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 90162602 Энерг напиток Red bull 0,25л 1.000 * 185.00 = 185.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.74 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 47 22.09.2024 09:33 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115329 ФПД: 143760126701271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T093357&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115329&fm=143760126701271&tin=02508201610067®Number=0000000000091831&sum=28000 0 [09:33:57]StoreToDocumentArchive [09:33:57]shift 471 fd 115329 [09:33:57]save to /storage/0471/doc_00115329 [09:33:57]save last doc name /storage/0471/doc_00115329 to /storage/kkm_last_doc_name [09:33:57]save OK [09:33:57]Clear old archive folders... [09:33:57]ProcessDocumentItem done err = 0, tmpTLVsize=389 [09:33:57]tlvbuf is 01704270 [09:33:57]SAM_PROTO_ClearQueue [09:33:57]wFMCommunicate request_size=4 [09:33:57]MH_SAM_APDU [09:33:57]CAPDU: 80 09 00 00 [09:33:57]Write to MH i2c: E2 08 00 BA 00 80 09 00 00 00 00 00 00 2C [09:33:57]Write i2c OK [09:33:57]MH_I2C_Read... [09:33:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:57]Read from MH i2c: E2 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: E2 03 00 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: E2 03 00 BA 00 00 90 00 2E [09:33:57]RAPDU: 90 00 [09:33:57]wFMCommunicate OK [09:33:57]SAM_PROTO_ClearQueue done [09:33:57]KKMCreateOFDPacket [09:33:57]OFDProtocolAddRootSTLVToBuf [09:33:57]FM_MakeSignedData [09:33:57]FM_MakeSignedData [09:33:57]SAM_PROTO_SignData [09:33:57]wFMCommunicate request_size=4 [09:33:57]MH_SAM_APDU [09:33:57]CAPDU: 80 0D 01 02 [09:33:57]Write to MH i2c: E2 08 00 BB 00 80 0D 01 02 00 00 00 00 34 [09:33:57]Write i2c OK [09:33:57]MH_I2C_Read... [09:33:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:57]Read from MH i2c: E2 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: E2 03 00 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [09:33:57]RAPDU: 90 00 [09:33:57]wFMCommunicate OK [09:33:57]wFMCommunicate request_size=255 [09:33:57]MH_SAM_APDU [09:33:57]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [09:33:57]Write to MH i2c: E2 02 01 BC 00 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 67 [09:33:57]Write i2c OK [09:33:57]MH_I2C_Read... [09:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:58]Read from MH i2c: E2 [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: E2 03 00 [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [09:33:58]RAPDU: 90 00 [09:33:58]wFMCommunicate OK [09:33:58]wFMCommunicate request_size=148 [09:33:58]MH_SAM_APDU [09:33:58]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 85 E4 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 81 C2 01 00 35 04 06 00 82 BF C3 48 EE D7 [09:33:58]Write to MH i2c: E2 97 00 BD 00 80 0D 02 02 8F 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 85 E4 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 81 C2 01 00 35 04 06 00 82 BF C3 48 EE D7 00 00 03 [09:33:58]Write i2c OK [09:33:58]MH_I2C_Read... [09:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:58]Read from MH i2c: E2 [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: E2 03 00 [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [09:33:58]RAPDU: 90 00 [09:33:58]wFMCommunicate OK [09:33:58]wFMCommunicate request_size=4 [09:33:58]MH_SAM_APDU [09:33:58]CAPDU: 80 0D 03 02 [09:33:58]Write to MH i2c: E2 08 00 BE 00 80 0D 03 02 00 00 00 00 39 [09:33:58]Write i2c OK [09:33:58]MH_I2C_Read... [09:33:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:58]Read from MH i2c: E2 [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: E2 0B 00 [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: E2 0B 00 BE 00 00 C4 55 F5 8E 99 45 C0 13 90 00 87 [09:33:58]RAPDU: C4 55 F5 8E 99 45 C0 13 90 00 [09:33:58]wFMCommunicate OK [09:33:58]SAM_PROTO_SignData done [09:33:58]FM_MakeSignedData done [09:33:58]CreateOFDProtocolMessage [09:33:58]wFMCommunicate request_size=4 [09:33:58]MH_SAM_APDU [09:33:58]CAPDU: 80 11 00 00 [09:33:58]Write to MH i2c: E2 08 00 BF 00 80 11 00 00 00 00 00 00 39 [09:33:58]Write i2c OK [09:33:58]MH_I2C_Read... [09:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:58]Read from MH i2c: E2 [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: E2 17 00 [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: E2 17 00 BF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 87 [09:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:33:58]wFMCommunicate OK [09:33:58]CreateOFDProtocolMessage done [09:33:58]OFDSenderStorePacket 115329 [09:33:58]StoreOFDPacket docnum=115329 [09:33:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 99 01 00 00 F4 2A 91 01 71 01 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 85 E4 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 81 C2 01 00 35 04 06 00 82 BF C3 48 EE D7 C4 55 F5 8E 99 45 C0 13 [09:33:58]CheckFolder [09:33:58]dirname=/storage/ofd_packets [09:33:58]CheckFolder done [09:33:58]ProducePacketName [09:33:58]name=ofd_packets/00115329 [09:33:58]NVStorageSaveData ofd_packets/00115329 [09:33:58]File name is /storage/ofd_packets/00115329 [09:33:58]Write 439 bytes [09:33:58]NVStorageSaveData done [09:33:58]OFDSenderStorePacket done [09:33:58]KKMCreateOFDPacket done [09:33:58]NVStorageSaveData kkm_last_timestamp [09:33:58]File name is /storage/kkm_last_timestamp [09:33:58]Write 4 bytes [09:33:58]NVStorageSaveData done [09:33:58]ExternCall_PrintAddStr [09:33:58]wPrintStart [09:33:58]Write to MH i2c: 01 00 00 C0 00 C0 [09:33:58]Write i2c OK [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: 01 [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: 01 07 00 [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: 01 07 00 C0 00 00 00 00 00 00 FF 0F D5 [09:33:58]RasterBufferAndPrint [09:33:58]line Счет N : (3)343788 [09:33:58]line ИНН: 02508201610067 [09:33:58]line Контрольно-Кассовый Чек [09:33:58]line ПРОДАЖА [09:33:58]line Товар: 4700000483259 [09:33:58]line Напиток Nitro Fresh Мохито [09:33:58]line 1.000 * 95.00 [09:33:58]line = 95.00 [09:33:58]line НДС 12% НСП 1% [09:33:58]line > о реализуемом товаре [09:33:58]line Товар: 90162602 [09:33:58]line Энерг напиток Red bull 0,25л [09:33:58]line 1.000 * 185.00 [09:33:58]line = 185.00 [09:33:58]line НДС 12% НСП 1% [09:33:58]line > о реализуемом товаре [09:33:58]line ИТОГО: 280.00 [09:33:58]line НСП 1% : 2.48 [09:33:58]line НДС 12% : 29.74 [09:33:58]line Наличными: 280.00 [09:33:58]line Безнал.: 0.00 [09:33:58]line Место: АЗС № 90 "Партнер Нефть" [09:33:58]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:33:58]line СНО: Общий режим [09:33:58]line Чек 47 22.09.2024 09:33 [09:33:58]line Смена: 471 ФФД: 1.0 [09:33:58]line ЗНМ: 0300000120 [09:33:58]line РНМ: 0000000000091831 [09:33:58]line Версия ККМ: 001 [09:33:58]line ФМ: 0000000000871830 [09:33:58]line ФД: 115329 [09:33:58]line ФПД: 143760126701271 [09:33:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T093357&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115329&fm=143760126701271&tin=02508201610067®Number=0000000000091831&sum=28000 [09:33:58]line 0 [09:33:58]OFD Sender: Processing packet 115329 [packets to send 481, broken 480] [09:33:58]ProducePacketName [09:33:58]name=ofd_packets/00115329 [09:33:58]OFD Sender: To server: pG, [09:33:58]CommunicateWithHost lk.salyk.kg:30040 [09:33:58]ConnectInit lk.salyk.kg [09:33:58]written 0, free lines is 4095 [09:33:59]Connected sock=9 [09:33:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 99 01 00 00 F4 2A 91 01 71 01 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 85 E4 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 81 C2 01 00 35 04 06 00 82 BF C3 48 EE D7 C4 55 F5 8E 99 45 C0 13 [09:33:59]Write to MH i2c: 01 00 00 ED 00 ED [09:33:59]Write i2c OK [09:33:59]MH_I2C_Read... [09:33:59]Read from MH i2c: 01 [09:33:59]MH_I2C_Read... [09:33:59]Read from MH i2c: 01 07 00 [09:33:59]MH_I2C_Read... [09:33:59]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 04 0C 04 [09:33:59]RasterBufferAndPrint [09:33:59]line [09:33:59]line [09:33:59]line [09:33:59]line [09:33:59]line [09:33:59]written 0, free lines is 3079 [09:33:59]MH_Cut [09:33:59]Write to MH i2c: D1 01 00 F4 00 01 C6 [09:33:59]Write i2c OK [09:33:59]MH_I2C_Read... [09:33:59]Read from MH i2c: D1 [09:33:59]MH_I2C_Read... [09:33:59]Read from MH i2c: D1 01 00 [09:33:59]MH_I2C_Read... [09:33:59]Read from MH i2c: D1 01 00 F4 00 00 C5 [09:33:59]Write to MH i2c: 01 00 00 F5 00 F5 [09:33:59]Write i2c OK [09:33:59]MH_I2C_Read... [09:33:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 EA 7F 47 00 80 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 31 38 33 30 10 04 04 00 81 C2 01 00 F4 03 04 00 CC 89 EF 66 B6 04 01 00 00 F9 D5 13 A2 CF AD 53 33 [09:33:59]CommunicateWithHost err = 0 [09:33:59]CheckOFDResponse [09:33:59]1017 (14) - 77093643461234 [09:33:59]1041 (16) - 0000000000871830 [09:33:59]1040 (4) - 115329 [09:33:59]1012 (4) - 22.09.2024 03:06 [09:33:59]1206 (1) - 0 [09:33:59]OFD Sender: Remove packet 115329 [09:33:59]ProducePacketName [09:33:59]name=ofd_packets/00115329 [09:33:59]NVStorageDeleteData [09:33:59]OFD Sender: No OFD packet to send [09:34:00]*** Cut start [09:34:00]*** Partial cut [09:34:00]*** CUTSNS_PIN = 1 [09:34:00]*** CUTSNS_PIN = 0 [09:34:00]*** Brake cut motor [09:34:01]Read from MH i2c: 01 [09:34:01]MH_I2C_Read... [09:34:01]*** Stop cut motor [09:34:01]*** Cut end [09:34:01]Read from MH i2c: 01 07 00 [09:34:01]MH_I2C_Read... [09:34:01]Read from MH i2c: 01 07 00 F5 00 00 00 00 00 00 FF 0F 0A [09:34:01]process_action close_receipt done [09:34:01]requested_data is exist [09:34:01]produce_requested_data [09:34:01]requested_item fm.sn is exist - process it [09:34:01]wFMCommunicate request_size=4 [09:34:01]MH_SAM_APDU [09:34:01]CAPDU: 80 11 00 00 [09:34:01]Write to MH i2c: E2 08 00 F6 00 80 11 00 00 00 00 00 00 70 [09:34:01]Write i2c OK [09:34:01]MH_I2C_Read... [09:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:01]Read from MH i2c: E2 [09:34:01]MH_I2C_Read... [09:34:01]Read from MH i2c: E2 17 00 [09:34:01]MH_I2C_Read... [09:34:01]Read from MH i2c: E2 17 00 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BE [09:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:34:01]wFMCommunicate OK [09:34:01]requested_item fd.num is exist - process it [09:34:01]SAM_PROTO_GetFieldsCounters [09:34:01]wFMCommunicate request_size=4 [09:34:01]MH_SAM_APDU [09:34:01]CAPDU: 80 13 00 00 [09:34:01]Write to MH i2c: E2 08 00 F7 00 80 13 00 00 00 00 00 00 73 [09:34:01]Write i2c OK [09:34:01]MH_I2C_Read... [09:34:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:01]Read from MH i2c: E2 [09:34:01]MH_I2C_Read... [09:34:01]Read from MH i2c: E2 62 00 [09:34:01]MH_I2C_Read... [09:34:01]Read from MH i2c: E2 62 00 F7 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 81 C2 01 00 0E 04 04 00 D7 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 35 [09:34:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 81 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:34:01]wFMCommunicate OK [09:34:01]SAM_PROTO_GetFieldsCounters done [09:34:01]requested_item shift.num is exist - process it [09:34:01]requested_item shift.opened is exist - process it [09:34:01]req_shift_opened [09:34:01]FM_GetShiftState [09:34:01]SAM_PROTO_GetShiftState [09:34:01]wFMCommunicate request_size=4 [09:34:01]MH_SAM_APDU [09:34:01]CAPDU: 80 13 01 00 [09:34:01]Write to MH i2c: E2 08 00 F8 00 80 13 01 00 00 00 00 00 75 [09:34:01]Write i2c OK [09:34:01]MH_I2C_Read... [09:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:01]Read from MH i2c: E2 [09:34:01]MH_I2C_Read... [09:34:01]Read from MH i2c: E2 0E 00 [09:34:01]MH_I2C_Read... [09:34:01]Read from MH i2c: E2 0E 00 F8 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 8E [09:34:01]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [09:34:01]wFMCommunicate OK [09:34:01]SAM_PROTO_GetShiftState done [09:34:01]FM_GetShiftState done [09:34:01]req_shift_opened done [09:34:01]requested_item shift.open_date is exist - process it [09:34:01]req_shift_open_date [09:34:01]req_shift_open_date done [09:34:01]produce_requested_data done [09:34:01]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115329,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [09:34:01]process_action_free close_receipt [09:34:01]json_value_free [09:34:01]json_value_free done [09:34:01]process_json_proto returns [09:34:01]Send response to host [09:34:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115329,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [09:34:01]free response buf [09:34:01]execute_script done [09:34:01]execute_script returns [09:34:01]free content buf [09:34:01]Sock 7.Close socket [09:34:01]Sock 7.Thread stoped [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36: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:41]accept exits with 10 [09:37:41]New connection [09:37:41]New thread 3067030884 created [09:37:41]Thread 3067174244 joined [09:37:41]Waiting for new connection... [09:37:41] Sock 10.Parse request [09:37:41]Sock 10.Check first char [09:37:41]Sock 10.First char is OK [09:37:41]request: POST /json_proto HTTP/1.0 [09:37:41]Method: POST [09:37:41]URL: /json_proto [09:37:41]Method is POST - this is cgi request [09:37:41]url: /json_proto [09:37:41]query_string will be loaded in cgi processing [09:37:41]execute_cgi json_proto POST (null) [09:37:41]execute_cgi path=json_proto method=POST [09:37:41]POST find Content-Length [09:37:41]Host: 172.17.41.136:8080 [09:37:41]Content-Length: 748 [09:37:41]Content-Type: application/json [09:37:41] [09:37:41]POST finish read [09:37:41]Found Content-Length = 748 [09:37:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343790", "tax_sys" : 0, "items" : [ { "code": "4601025117542", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0442\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 0,5", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:41]execute_script... [09:37:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343790", "tax_sys" : 0, "items" : [ { "code": "4601025117542", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0442\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 0,5", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:41]POST & json_proto [09:37:41]process_json_proto [09:37:41]json parsed OK: [09:37:41]protocol is kg_v1.0 [09:37:41]action value=close_receipt [09:37:41]process_action close_receipt [09:37:41]cmd_close_receipt [09:37:41]MH_GetDate [09:37:41]Write to MH i2c: F0 00 00 F9 00 E8 [09:37:41]Write i2c OK [09:37:41]MH_I2C_Read... [09:37:41]Read from MH i2c: F0 [09:37:41]MH_I2C_Read... [09:37:41]Read from MH i2c: F0 09 00 [09:37:41]MH_I2C_Read... [09:37:41]Read from MH i2c: F0 09 00 F9 00 00 66 E5 EF 66 1B D0 5A 64 3A [09:37:41]GetLastDocTimeStamp 1726997637 [09:37:41]current date 1726997862 [09:37:41]FM_GetShiftState [09:37:41]SAM_PROTO_GetShiftState [09:37:41]wFMCommunicate request_size=4 [09:37:41]MH_SAM_APDU [09:37:41]CAPDU: 80 13 01 00 [09:37:41]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [09:37:41]Write i2c OK [09:37:41]MH_I2C_Read... [09:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:41]Read from MH i2c: E2 [09:37:41]MH_I2C_Read... [09:37:41]Read from MH i2c: E2 0E 00 [09:37:41]MH_I2C_Read... [09:37:41]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 90 [09:37:41]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [09:37:41]wFMCommunicate OK [09:37:41]SAM_PROTO_GetShiftState done [09:37:41]FM_GetShiftState done [09:37:41]opened in 1726965840 [09:37:41]opened+sec_in_day 1727052240 [09:37:41]quantity*price = 8500 [09:37:41]sum+1 = 8501 [09:37:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 48 22.09.2024 09:37 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115330 ФПД: 19528558595502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T093742&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115330&fm=19528558595502&tin=02508201610067®Number=0000000000091831&sum=8500 0 [09:37:42]StoreToDocumentArchive [09:37:42]shift 471 fd 115330 [09:37:42]save to /storage/0471/doc_00115330 [09:37:42]save last doc name /storage/0471/doc_00115330 to /storage/kkm_last_doc_name [09:37:42]save OK [09:37:42]Clear old archive folders... [09:37:42]ProcessDocumentItem done err = 0, tmpTLVsize=311 [09:37:42]tlvbuf is 016FEA60 [09:37:42]SAM_PROTO_ClearQueue [09:37:42]wFMCommunicate request_size=4 [09:37:42]MH_SAM_APDU [09:37:42]CAPDU: 80 09 00 00 [09:37:42]Write to MH i2c: E2 08 00 07 01 80 09 00 00 00 00 00 00 7A [09:37:42]Write i2c OK [09:37:42]MH_I2C_Read... [09:37:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:42]Read from MH i2c: E2 [09:37:42]MH_I2C_Read... [09:37:42]Read from MH i2c: E2 03 00 [09:37:42]MH_I2C_Read... [09:37:42]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [09:37:42]RAPDU: 90 00 [09:37:42]wFMCommunicate OK [09:37:42]SAM_PROTO_ClearQueue done [09:37:42]KKMCreateOFDPacket [09:37:42]OFDProtocolAddRootSTLVToBuf [09:37:42]FM_MakeSignedData [09:37:42]FM_MakeSignedData [09:37:42]SAM_PROTO_SignData [09:37:42]wFMCommunicate request_size=4 [09:37:42]MH_SAM_APDU [09:37:42]CAPDU: 80 0D 01 02 [09:37:42]Write to MH i2c: E2 08 00 08 01 80 0D 01 02 00 00 00 00 82 [09:37:42]Write i2c OK [09:37:42]MH_I2C_Read... [09:37:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:42]Read from MH i2c: E2 [09:37:42]MH_I2C_Read... [09:37:42]Read from MH i2c: E2 03 00 [09:37:42]MH_I2C_Read... [09:37:42]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [09:37:42]RAPDU: 90 00 [09:37:42]wFMCommunicate OK [09:37:42]wFMCommunicate request_size=255 [09:37:42]MH_SAM_APDU [09:37:42]CAPDU: 80 0D 02 02 FA 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 66 E5 EF 66 0E 04 04 00 D7 01 [09:37:42]Write to MH i2c: E2 02 01 09 01 80 0D 02 02 FA 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 66 E5 EF 66 0E 04 04 00 D7 01 00 00 F6 [09:37:42]Write i2c OK [09:37:42]MH_I2C_Read... [09:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:43]Read from MH i2c: E2 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: E2 03 00 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [09:37:43]RAPDU: 90 00 [09:37:43]wFMCommunicate OK [09:37:43]wFMCommunicate request_size=70 [09:37:43]MH_SAM_APDU [09:37:43]CAPDU: 80 0D 02 02 41 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 82 C2 01 00 35 04 06 00 11 C2 D8 CC 4D AE [09:37:43]Write to MH i2c: E2 49 00 0A 01 80 0D 02 02 41 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 82 C2 01 00 35 04 06 00 11 C2 D8 CC 4D AE 00 00 4B [09:37:43]Write i2c OK [09:37:43]MH_I2C_Read... [09:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:43]Read from MH i2c: E2 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: E2 03 00 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [09:37:43]RAPDU: 90 00 [09:37:43]wFMCommunicate OK [09:37:43]wFMCommunicate request_size=4 [09:37:43]MH_SAM_APDU [09:37:43]CAPDU: 80 0D 03 02 [09:37:43]Write to MH i2c: E2 08 00 0B 01 80 0D 03 02 00 00 00 00 87 [09:37:43]Write i2c OK [09:37:43]MH_I2C_Read... [09:37:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:43]Read from MH i2c: E2 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: E2 0B 00 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: E2 0B 00 0B 01 00 3C 01 C8 EB 3E 7D C6 50 90 00 49 [09:37:43]RAPDU: 3C 01 C8 EB 3E 7D C6 50 90 00 [09:37:43]wFMCommunicate OK [09:37:43]SAM_PROTO_SignData done [09:37:43]FM_MakeSignedData done [09:37:43]CreateOFDProtocolMessage [09:37:43]wFMCommunicate request_size=4 [09:37:43]MH_SAM_APDU [09:37:43]CAPDU: 80 11 00 00 [09:37:43]Write to MH i2c: E2 08 00 0C 01 80 11 00 00 00 00 00 00 87 [09:37:43]Write i2c OK [09:37:43]MH_I2C_Read... [09:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:43]Read from MH i2c: E2 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: E2 17 00 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: E2 17 00 0C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D5 [09:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:37:43]wFMCommunicate OK [09:37:43]CreateOFDProtocolMessage done [09:37:43]OFDSenderStorePacket 115330 [09:37:43]StoreOFDPacket docnum=115330 [09:37:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4B 01 00 00 52 A4 43 01 1A F5 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 66 E5 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 82 C2 01 00 35 04 06 00 11 C2 D8 CC 4D AE 3C 01 C8 EB 3E 7D C6 50 [09:37:43]CheckFolder [09:37:43]dirname=/storage/ofd_packets [09:37:43]CheckFolder done [09:37:43]ProducePacketName [09:37:43]name=ofd_packets/00115330 [09:37:43]NVStorageSaveData ofd_packets/00115330 [09:37:43]File name is /storage/ofd_packets/00115330 [09:37:43]Write 361 bytes [09:37:43]NVStorageSaveData done [09:37:43]OFDSenderStorePacket done [09:37:43]KKMCreateOFDPacket done [09:37:43]NVStorageSaveData kkm_last_timestamp [09:37:43]File name is /storage/kkm_last_timestamp [09:37:43]Write 4 bytes [09:37:43]NVStorageSaveData done [09:37:43]ExternCall_PrintAddStr [09:37:43]wPrintStart [09:37:43]Write to MH i2c: 01 00 00 0D 01 0E [09:37:43]Write i2c OK [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: 01 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: 01 07 00 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: 01 07 00 0D 01 00 00 00 00 00 FF 0F 23 [09:37:43]RasterBufferAndPrint [09:37:43]line Счет N : (3)343790 [09:37:43]line ИНН: 02508201610067 [09:37:43]line Контрольно-Кассовый Чек [09:37:43]line ПРОДАЖА [09:37:43]line Товар: 4601025117542 [09:37:43]line Напиток Фрутмотив тропический микс 0,5 [09:37:43]line 1.000 * 85.00 [09:37:43]line = 85.00 [09:37:43]line НДС 12% НСП 1% [09:37:43]line > о реализуемом товаре [09:37:43]line ИТОГО: 85.00 [09:37:43]line НСП 1% : 0.75 [09:37:43]line НДС 12% : 9.03 [09:37:43]line Наличными: 85.00 [09:37:43]line Безнал.: 0.00 [09:37:43]line Место: АЗС № 90 "Партнер Нефть" [09:37:43]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:37:43]line СНО: Общий режим [09:37:43]line Чек 48 22.09.2024 09:37 [09:37:43]line Смена: 471 ФФД: 1.0 [09:37:43]line ЗНМ: 0300000120 [09:37:43]line РНМ: 0000000000091831 [09:37:43]line Версия ККМ: 001 [09:37:43]line ФМ: 0000000000871830 [09:37:43]line ФД: 115330 [09:37:43]line ФПД: 19528558595502 [09:37:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T093742&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115330&fm=19528558595502&tin=02508201610067®Number=0000000000091831&sum=8500 [09:37:43]line 0 [09:37:43]written 0, free lines is 4095 [09:37:43]OFD Sender: Processing packet 115330 [packets to send 481, broken 480] [09:37:43]ProducePacketName [09:37:43]name=ofd_packets/00115330 [09:37:43]OFD Sender: To server: pG, [09:37:43]CommunicateWithHost lk.salyk.kg:30040 [09:37:43]ConnectInit lk.salyk.kg [09:37:43]Connected sock=9 [09:37:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4B 01 00 00 52 A4 43 01 1A F5 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 66 E5 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 82 C2 01 00 35 04 06 00 11 C2 D8 CC 4D AE 3C 01 C8 EB 3E 7D C6 50 [09:37:43]Write to MH i2c: 01 00 00 35 01 36 [09:37:43]Write i2c OK [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: 01 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: 01 07 00 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: 01 07 00 35 01 00 00 00 00 00 51 0C 9A [09:37:43]RasterBufferAndPrint [09:37:43]line [09:37:43]line [09:37:43]line [09:37:43]line [09:37:43]line [09:37:43]written 0, free lines is 3156 [09:37:43]MH_Cut [09:37:43]Write to MH i2c: D1 01 00 3C 01 01 0F [09:37:43]Write i2c OK [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: D1 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: D1 01 00 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: D1 01 00 3C 01 00 0E [09:37:43]Write to MH i2c: 01 00 00 3D 01 3E [09:37:43]Write i2c OK [09:37:43]MH_I2C_Read... [09:37:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B5 6E 47 00 02 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 31 38 33 30 10 04 04 00 82 C2 01 00 F4 03 04 00 AC 8A EF 66 B6 04 01 00 00 68 3C 62 06 58 30 CD 0C [09:37:43]CommunicateWithHost err = 0 [09:37:43]CheckOFDResponse [09:37:43]1017 (14) - 77093643461234 [09:37:43]1041 (16) - 0000000000871830 [09:37:43]1040 (4) - 115330 [09:37:43]1012 (4) - 22.09.2024 03:10 [09:37:43]1206 (1) - 0 [09:37:43]OFD Sender: Remove packet 115330 [09:37:43]ProducePacketName [09:37:43]name=ofd_packets/00115330 [09:37:43]NVStorageDeleteData [09:37:44]OFD Sender: No OFD packet to send [09:37:45]*** Cut start [09:37:45]*** Partial cut [09:37:45]*** CUTSNS_PIN = 1 [09:37:45]*** CUTSNS_PIN = 0 [09:37:45]*** Brake cut motor [09:37:45]Read from MH i2c: 01 [09:37:45]MH_I2C_Read... [09:37:45]*** Stop cut motor [09:37:45]*** Cut end [09:37:45]Read from MH i2c: 01 07 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 FF 0F 53 [09:37:45]process_action close_receipt done [09:37:45]requested_data is exist [09:37:45]produce_requested_data [09:37:45]requested_item fm.sn is exist - process it [09:37:45]wFMCommunicate request_size=4 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 11 00 00 [09:37:45]Write to MH i2c: E2 08 00 3E 01 80 11 00 00 00 00 00 00 B9 [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 17 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 17 00 3E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 07 [09:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:37:45]wFMCommunicate OK [09:37:45]requested_item fd.num is exist - process it [09:37:45]SAM_PROTO_GetFieldsCounters [09:37:45]wFMCommunicate request_size=4 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 13 00 00 [09:37:45]Write to MH i2c: E2 08 00 3F 01 80 13 00 00 00 00 00 00 BC [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 62 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 62 00 3F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 82 C2 01 00 0E 04 04 00 D7 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 82 [09:37:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 82 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:45]wFMCommunicate OK [09:37:45]SAM_PROTO_GetFieldsCounters done [09:37:45]requested_item shift.num is exist - process it [09:37:45]requested_item shift.opened is exist - process it [09:37:45]req_shift_opened [09:37:45]FM_GetShiftState [09:37:45]SAM_PROTO_GetShiftState [09:37:45]wFMCommunicate request_size=4 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 13 01 00 [09:37:45]Write to MH i2c: E2 08 00 40 01 80 13 01 00 00 00 00 00 BE [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 0E 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 0E 00 40 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D7 [09:37:45]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [09:37:45]wFMCommunicate OK [09:37:45]SAM_PROTO_GetShiftState done [09:37:45]FM_GetShiftState done [09:37:45]req_shift_opened done [09:37:45]requested_item shift.open_date is exist - process it [09:37:45]req_shift_open_date [09:37:45]req_shift_open_date done [09:37:45]produce_requested_data done [09:37:45]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115330,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [09:37:45]process_action_free close_receipt [09:37:45]json_value_free [09:37:45]json_value_free done [09:37:45]process_json_proto returns [09:37:45]Send response to host [09:37:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115330,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [09:37:45]free response buf [09:37:45]execute_script done [09:37:45]execute_script returns [09:37:45]free content buf [09:37:45]Sock 10.Close socket [09:37:45]Sock 10.Thread stoped [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:14]OFD Sender: No OFD packet to send [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:23]accept exits with 7 [09:43:23]New connection [09:43:23]New thread 3067174244 created [09:43:23]Thread 3067030884 joined [09:43:23]Waiting for new connection... [09:43:23] Sock 7.Parse request [09:43:23]Sock 7.Check first char [09:43:23]Sock 7.First char is OK [09:43:23]request: POST /json_proto HTTP/1.0 [09:43:23]Method: POST [09:43:23]URL: /json_proto [09:43:23]Method is POST - this is cgi request [09:43:23]url: /json_proto [09:43:23]query_string will be loaded in cgi processing [09:43:23]execute_cgi json_proto POST (null) [09:43:23]execute_cgi path=json_proto method=POST [09:43:23]POST find Content-Length [09:43:23]Host: 172.17.41.136:8080 [09:43:23]Content-Length: 918 [09:43:23]Content-Type: application/json [09:43:23] [09:43:23]POST finish read [09:43:23]Found Content-Length = 918 [09:43:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343791", "tax_sys" : 0, "items" : [ { "code": "4630007400969", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "price" : 40.00, "quantity" : 3.000, "sum" : 120.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" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:23]execute_script... [09:43:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343791", "tax_sys" : 0, "items" : [ { "code": "4630007400969", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "price" : 40.00, "quantity" : 3.000, "sum" : 120.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" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:23]POST & json_proto [09:43:23]process_json_proto [09:43:23]json parsed OK: [09:43:23]protocol is kg_v1.0 [09:43:23]action value=close_receipt [09:43:23]process_action close_receipt [09:43:23]cmd_close_receipt [09:43:23]MH_GetDate [09:43:23]Write to MH i2c: F0 00 00 41 01 31 [09:43:23]Write i2c OK [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: F0 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: F0 09 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: F0 09 00 41 01 00 BC E6 EF 66 1B D0 5A 64 DA [09:43:23]GetLastDocTimeStamp 1726997862 [09:43:23]current date 1726998204 [09:43:23]FM_GetShiftState [09:43:23]SAM_PROTO_GetShiftState [09:43:23]wFMCommunicate request_size=4 [09:43:23]MH_SAM_APDU [09:43:23]CAPDU: 80 13 01 00 [09:43:23]Write to MH i2c: E2 08 00 42 01 80 13 01 00 00 00 00 00 C0 [09:43:23]Write i2c OK [09:43:23]MH_I2C_Read... [09:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:23]Read from MH i2c: E2 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 0E 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 0E 00 42 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D9 [09:43:23]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [09:43:23]wFMCommunicate OK [09:43:23]SAM_PROTO_GetShiftState done [09:43:23]FM_GetShiftState done [09:43:23]opened in 1726965840 [09:43:23]opened+sec_in_day 1727052240 [09:43:23]quantity*price = 12000 [09:43:23]sum+1 = 12001 [09:43:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 0.00 Безнал.: 120.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 49 22.09.2024 09:43 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115331 ФПД: 43922000267283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T094324&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115331&fm=43922000267283&tin=02508201610067®Number=0000000000091831&sum=12000 0 [09:43:24]StoreToDocumentArchive [09:43:24]shift 471 fd 115331 [09:43:24]save to /storage/0471/doc_00115331 [09:43:24]save last doc name /storage/0471/doc_00115331 to /storage/kkm_last_doc_name [09:43:24]save OK [09:43:24]Clear old archive folders... [09:43:24]ProcessDocumentItem done err = 0, tmpTLVsize=314 [09:43:24]tlvbuf is 017002A0 [09:43:24]SAM_PROTO_ClearQueue [09:43:24]wFMCommunicate request_size=4 [09:43:24]MH_SAM_APDU [09:43:24]CAPDU: 80 09 00 00 [09:43:24]Write to MH i2c: E2 08 00 4F 01 80 09 00 00 00 00 00 00 C2 [09:43:24]Write i2c OK [09:43:24]MH_I2C_Read... [09:43:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:24]Read from MH i2c: E2 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 03 00 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [09:43:24]RAPDU: 90 00 [09:43:24]wFMCommunicate OK [09:43:24]SAM_PROTO_ClearQueue done [09:43:24]KKMCreateOFDPacket [09:43:24]OFDProtocolAddRootSTLVToBuf [09:43:24]FM_MakeSignedData [09:43:24]FM_MakeSignedData [09:43:24]SAM_PROTO_SignData [09:43:24]wFMCommunicate request_size=4 [09:43:24]MH_SAM_APDU [09:43:24]CAPDU: 80 0D 01 02 [09:43:24]Write to MH i2c: E2 08 00 50 01 80 0D 01 02 00 00 00 00 CA [09:43:24]Write i2c OK [09:43:24]MH_I2C_Read... [09:43:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:24]Read from MH i2c: E2 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 03 00 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [09:43:24]RAPDU: 90 00 [09:43:24]wFMCommunicate OK [09:43:24]wFMCommunicate request_size=255 [09:43:24]MH_SAM_APDU [09:43:24]CAPDU: 80 0D 02 02 FA 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BC E6 EF 66 0E 04 04 [09:43:24]Write to MH i2c: E2 02 01 51 01 80 0D 02 02 FA 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BC E6 EF 66 0E 04 04 00 00 D6 [09:43:24]Write i2c OK [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 [09:43:24]MH_I2C_Read... [09:43:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:24]Read from MH i2c: E2 03 00 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [09:43:24]RAPDU: 90 00 [09:43:24]wFMCommunicate OK [09:43:24]wFMCommunicate request_size=73 [09:43:24]MH_SAM_APDU [09:43:24]CAPDU: 80 0D 02 02 44 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 83 C2 01 00 35 04 06 00 27 F2 63 39 48 13 [09:43:24]Write to MH i2c: E2 4C 00 52 01 80 0D 02 02 44 00 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 83 C2 01 00 35 04 06 00 27 F2 63 39 48 13 00 00 10 [09:43:24]Write i2c OK [09:43:24]MH_I2C_Read... [09:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:25]Read from MH i2c: E2 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 03 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [09:43:25]RAPDU: 90 00 [09:43:25]wFMCommunicate OK [09:43:25]wFMCommunicate request_size=4 [09:43:25]MH_SAM_APDU [09:43:25]CAPDU: 80 0D 03 02 [09:43:25]Write to MH i2c: E2 08 00 53 01 80 0D 03 02 00 00 00 00 CF [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:25]Read from MH i2c: E2 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 0B 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 0B 00 53 01 00 3D BC 11 24 FA 80 3D FA 90 00 AF [09:43:25]RAPDU: 3D BC 11 24 FA 80 3D FA 90 00 [09:43:25]wFMCommunicate OK [09:43:25]SAM_PROTO_SignData done [09:43:25]FM_MakeSignedData done [09:43:25]CreateOFDProtocolMessage [09:43:25]wFMCommunicate request_size=4 [09:43:25]MH_SAM_APDU [09:43:25]CAPDU: 80 11 00 00 [09:43:25]Write to MH i2c: E2 08 00 54 01 80 11 00 00 00 00 00 00 CF [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:25]Read from MH i2c: E2 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 17 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 17 00 54 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1D [09:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:43:25]wFMCommunicate OK [09:43:25]CreateOFDProtocolMessage done [09:43:25]OFDSenderStorePacket 115331 [09:43:25]StoreOFDPacket docnum=115331 [09:43:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4E 01 00 00 D9 20 46 01 03 4F 5A 03 01 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BC E6 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 83 C2 01 00 35 04 06 00 27 F2 63 39 48 13 3D BC 11 24 FA 80 3D FA [09:43:25]CheckFolder [09:43:25]dirname=/storage/ofd_packets [09:43:25]CheckFolder done [09:43:25]ProducePacketName [09:43:25]name=ofd_packets/00115331 [09:43:25]NVStorageSaveData ofd_packets/00115331 [09:43:25]File name is /storage/ofd_packets/00115331 [09:43:25]Write 364 bytes [09:43:25]NVStorageSaveData done [09:43:25]OFDSenderStorePacket done [09:43:25]KKMCreateOFDPacket done [09:43:25]NVStorageSaveData kkm_last_timestamp [09:43:25]File name is /storage/kkm_last_timestamp [09:43:25]Write 4 bytes [09:43:25]NVStorageSaveData done [09:43:25]ExternCall_PrintAddStr [09:43:25]wPrintStart [09:43:25]Write to MH i2c: 01 00 00 55 01 56 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: 01 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: 01 07 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: 01 07 00 55 01 00 00 00 00 00 FF 0F 6B [09:43:25]RasterBufferAndPrint [09:43:25]line Счет N : (3)343791 [09:43:25]line ИНН: 02508201610067 [09:43:25]line Контрольно-Кассовый Чек [09:43:25]line ПРОДАЖА [09:43:25]line Товар: 4630007400969 [09:43:25]line Арахис жарен Караван орехов Стандарт 40 [09:43:25]line 3.000 * 40.00 [09:43:25]line = 120.00 [09:43:25]line НДС 12% НСП 1% [09:43:25]line > о реализуемом товаре [09:43:25]line ИТОГО: 120.00 [09:43:25]line НСП 1% : 1.06 [09:43:25]line НДС 12% : 12.74 [09:43:25]line Наличными: 0.00 [09:43:25]line Безнал.: 120.00 [09:43:25]line Место: АЗС № 90 "Партнер Нефть" [09:43:25]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:43:25]line СНО: Общий режим [09:43:25]line Чек 49 22.09.2024 09:43 [09:43:25]line Смена: 471 ФФД: 1.0 [09:43:25]line ЗНМ: 0300000120 [09:43:25]line РНМ: 0000000000091831 [09:43:25]line Версия ККМ: 001 [09:43:25]line Платежная система: O! деньги [09:43:25]line ФМ: 0000000000871830 [09:43:25]line ФД: 115331 [09:43:25]line ФПД: 43922000267283 [09:43:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T094324&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115331&fm=43922000267283&tin=02508201610067®Number=0000000000091831&sum=12000 [09:43:25]line 0 [09:43:25]OFD Sender: Processing packet 115331 [packets to send 481, broken 480] [09:43:25]ProducePacketName [09:43:25]name=ofd_packets/00115331 [09:43:25]OFD Sender: To server: pG, [09:43:25]CommunicateWithHost lk.salyk.kg:30040 [09:43:25]ConnectInit lk.salyk.kg [09:43:25]written 0, free lines is 4095 [09:43:25]Connected sock=10 [09:43:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4E 01 00 00 D9 20 46 01 03 4F 5A 03 01 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BC E6 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 83 C2 01 00 35 04 06 00 27 F2 63 39 48 13 3D BC 11 24 FA 80 3D FA [09:43:25]Write to MH i2c: 01 00 00 7F 01 80 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: 01 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: 01 07 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: 01 07 00 7F 01 00 00 00 00 00 33 0C C6 [09:43:25]RasterBufferAndPrint [09:43:25]line [09:43:25]line [09:43:25]line [09:43:25]line [09:43:25]line [09:43:25]written 0, free lines is 3127 [09:43:25]MH_Cut [09:43:25]Write to MH i2c: D1 01 00 86 01 01 59 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: D1 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: D1 01 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: D1 01 00 86 01 00 58 [09:43:25]Write to MH i2c: 01 00 00 87 01 88 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 69 5A 47 00 59 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 83 C2 01 00 F4 03 04 00 02 8C EF 66 B6 04 01 00 00 55 07 AD 7F 65 4C 4E 99 [09:43:25]CommunicateWithHost err = 0 [09:43:25]CheckOFDResponse [09:43:25]1017 (14) - 77093643461234 [09:43:25]1041 (16) - 0000000000871830 [09:43:25]1040 (4) - 115331 [09:43:25]1012 (4) - 22.09.2024 03:16 [09:43:25]1206 (1) - 0 [09:43:25]OFD Sender: Remove packet 115331 [09:43:25]ProducePacketName [09:43:25]name=ofd_packets/00115331 [09:43:25]NVStorageDeleteData [09:43:26]OFD Sender: No OFD packet to send [09:43:27]*** Cut start [09:43:27]*** Partial cut [09:43:27]*** CUTSNS_PIN = 1 [09:43:27]*** CUTSNS_PIN = 0 [09:43:27]*** Brake cut motor [09:43:27]Read from MH i2c: 01 [09:43:27]MH_I2C_Read... [09:43:27]*** Stop cut motor [09:43:27]*** Cut end [09:43:27]Read from MH i2c: 01 07 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 FF 0F 9D [09:43:27]process_action close_receipt done [09:43:27]requested_data is exist [09:43:27]produce_requested_data [09:43:27]requested_item fm.sn is exist - process it [09:43:27]wFMCommunicate request_size=4 [09:43:27]MH_SAM_APDU [09:43:27]CAPDU: 80 11 00 00 [09:43:27]Write to MH i2c: E2 08 00 88 01 80 11 00 00 00 00 00 00 03 [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:27]Read from MH i2c: E2 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 17 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 17 00 88 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 51 [09:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:43:27]wFMCommunicate OK [09:43:27]requested_item fd.num is exist - process it [09:43:27]SAM_PROTO_GetFieldsCounters [09:43:27]wFMCommunicate request_size=4 [09:43:27]MH_SAM_APDU [09:43:27]CAPDU: 80 13 00 00 [09:43:27]Write to MH i2c: E2 08 00 89 01 80 13 00 00 00 00 00 00 06 [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:28]Read from MH i2c: E2 [09:43:28]MH_I2C_Read... [09:43:28]Read from MH i2c: E2 62 00 [09:43:28]MH_I2C_Read... [09:43:28]Read from MH i2c: E2 62 00 89 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 83 C2 01 00 0E 04 04 00 D7 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 D0 [09:43:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 83 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:28]wFMCommunicate OK [09:43:28]SAM_PROTO_GetFieldsCounters done [09:43:28]requested_item shift.num is exist - process it [09:43:28]requested_item shift.opened is exist - process it [09:43:28]req_shift_opened [09:43:28]FM_GetShiftState [09:43:28]SAM_PROTO_GetShiftState [09:43:28]wFMCommunicate request_size=4 [09:43:28]MH_SAM_APDU [09:43:28]CAPDU: 80 13 01 00 [09:43:28]Write to MH i2c: E2 08 00 8A 01 80 13 01 00 00 00 00 00 08 [09:43:28]Write i2c OK [09:43:28]MH_I2C_Read... [09:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:28]Read from MH i2c: E2 [09:43:28]MH_I2C_Read... [09:43:28]Read from MH i2c: E2 0E 00 [09:43:28]MH_I2C_Read... [09:43:28]Read from MH i2c: E2 0E 00 8A 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 21 [09:43:28]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [09:43:28]wFMCommunicate OK [09:43:28]SAM_PROTO_GetShiftState done [09:43:28]FM_GetShiftState done [09:43:28]req_shift_opened done [09:43:28]requested_item shift.open_date is exist - process it [09:43:28]req_shift_open_date [09:43:28]req_shift_open_date done [09:43:28]produce_requested_data done [09:43:28]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115331,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [09:43:28]process_action_free close_receipt [09:43:28]json_value_free [09:43:28]json_value_free done [09:43:28]process_json_proto returns [09:43:28]Send response to host [09:43:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115331,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [09:43:28]free response buf [09:43:28]execute_script done [09:43:28]execute_script returns [09:43:28]free content buf [09:43:28]Sock 7.Close socket [09:43:28]Sock 7.Thread stoped [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:19]accept exits with 9 [09:49:19]New connection [09:49:19]New thread 3067030884 created [09:49:19]Thread 3067174244 joined [09:49:19]Waiting for new connection... [09:49:19] Sock 9.Parse request [09:49:19]Sock 9.Check first char [09:49:19]Sock 9.First char is OK [09:49:19]request: POST /json_proto HTTP/1.0 [09:49:19]Method: POST [09:49:19]URL: /json_proto [09:49:19]Method is POST - this is cgi request [09:49:19]url: /json_proto [09:49:19]query_string will be loaded in cgi processing [09:49:19]execute_cgi json_proto POST (null) [09:49:19]execute_cgi path=json_proto method=POST [09:49:19]POST find Content-Length [09:49:19]Host: 172.17.41.136:8080 [09:49:19]Content-Length: 1550 [09:49:19]Content-Type: application/json [09:49:19] [09:49:19]POST finish read [09:49:19]Found Content-Length = 1550 [09:49:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343792", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.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" : 384.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:19]execute_script... [09:49:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343792", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.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" : 384.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:19]POST & json_proto [09:49:19]process_json_proto [09:49:19]json parsed OK: [09:49:19]protocol is kg_v1.0 [09:49:19]action value=close_receipt [09:49:19]process_action close_receipt [09:49:19]cmd_close_receipt [09:49:19]MH_GetDate [09:49:19]Write to MH i2c: F0 00 00 8B 01 7B [09:49:19]Write i2c OK [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: F0 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: F0 09 00 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: F0 09 00 8B 01 00 20 E8 EF 66 1B D0 5A 64 8A [09:49:19]GetLastDocTimeStamp 1726998204 [09:49:19]current date 1726998560 [09:49:19]FM_GetShiftState [09:49:19]SAM_PROTO_GetShiftState [09:49:19]wFMCommunicate request_size=4 [09:49:19]MH_SAM_APDU [09:49:19]CAPDU: 80 13 01 00 [09:49:19]Write to MH i2c: E2 08 00 8C 01 80 13 01 00 00 00 00 00 0A [09:49:19]Write i2c OK [09:49:19]MH_I2C_Read... [09:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:19]Read from MH i2c: E2 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: E2 0E 00 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: E2 0E 00 8C 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 23 [09:49:19]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [09:49:19]wFMCommunicate OK [09:49:19]SAM_PROTO_GetShiftState done [09:49:19]FM_GetShiftState done [09:49:19]opened in 1726965840 [09:49:19]opened+sec_in_day 1727052240 [09:49:19]quantity*price = 10500 [09:49:19]sum+1 = 10501 [09:49:19]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46214645 Р/ж mentos pure white клуб 16/15,5г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 384.00 НСП 1% : 3.40 НДС 12% : 40.77 Наличными: 0.00 Безнал.: 384.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 50 22.09.2024 09:49 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115332 ФПД: 77050074893635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T094920&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115332&fm=77050074893635&tin=02508201610067®Number=0000000000091831&sum=38400 0 [09:49:20]StoreToDocumentArchive [09:49:20]shift 471 fd 115332 [09:49:20]save to /storage/0471/doc_00115332 [09:49:20]save last doc name /storage/0471/doc_00115332 to /storage/kkm_last_doc_name [09:49:20]save OK [09:49:20]Clear old archive folders... [09:49:20]ProcessDocumentItem done err = 0, tmpTLVsize=605 [09:49:20]tlvbuf is 017002A0 [09:49:20]SAM_PROTO_ClearQueue [09:49:20]wFMCommunicate request_size=4 [09:49:20]MH_SAM_APDU [09:49:20]CAPDU: 80 09 00 00 [09:49:20]Write to MH i2c: E2 08 00 99 01 80 09 00 00 00 00 00 00 0C [09:49:20]Write i2c OK [09:49:20]MH_I2C_Read... [09:49:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:20]Read from MH i2c: E2 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: E2 03 00 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: E2 03 00 99 01 00 90 00 0E [09:49:20]RAPDU: 90 00 [09:49:20]wFMCommunicate OK [09:49:20]SAM_PROTO_ClearQueue done [09:49:20]KKMCreateOFDPacket [09:49:20]OFDProtocolAddRootSTLVToBuf [09:49:20]FM_MakeSignedData [09:49:20]FM_MakeSignedData [09:49:20]SAM_PROTO_SignData [09:49:20]wFMCommunicate request_size=4 [09:49:20]MH_SAM_APDU [09:49:20]CAPDU: 80 0D 01 02 [09:49:20]Write to MH i2c: E2 08 00 9A 01 80 0D 01 02 00 00 00 00 14 [09:49:20]Write i2c OK [09:49:20]MH_I2C_Read... [09:49:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:20]Read from MH i2c: E2 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: E2 03 00 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: E2 03 00 9A 01 00 90 00 0F [09:49:20]RAPDU: 90 00 [09:49:20]wFMCommunicate OK [09:49:20]wFMCommunicate request_size=255 [09:49:20]MH_SAM_APDU [09:49:20]CAPDU: 80 0D 02 02 FA 03 00 5D 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 [09:49:20]Write to MH i2c: E2 02 01 9B 01 80 0D 02 02 FA 00 03 00 5D 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 00 00 4E [09:49:20]Write i2c OK [09:49:20]MH_I2C_Read... [09:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:20]Read from MH i2c: E2 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: E2 03 00 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [09:49:20]RAPDU: 90 00 [09:49:20]wFMCommunicate OK [09:49:20]wFMCommunicate request_size=255 [09:49:20]MH_SAM_APDU [09:49:20]CAPDU: 80 0D 02 02 FA D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 0F 00 00 00 00 07 04 06 00 [09:49:20]Write to MH i2c: E2 02 01 9C 01 80 0D 02 02 FA 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 0F 00 00 00 00 07 04 06 00 00 00 81 [09:49:20]Write i2c OK [09:49:20]MH_I2C_Read... [09:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:21]Read from MH i2c: E2 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: E2 03 00 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [09:49:21]RAPDU: 90 00 [09:49:21]wFMCommunicate OK [09:49:21]wFMCommunicate request_size=114 [09:49:21]MH_SAM_APDU [09:49:21]CAPDU: 80 0D 02 02 6D 00 00 00 00 00 00 39 04 06 00 00 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 20 E8 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 84 C2 01 00 35 04 06 00 46 13 9E 58 0D 43 [09:49:21]Write to MH i2c: E2 75 00 9D 01 80 0D 02 02 6D 00 00 00 00 00 00 00 39 04 06 00 00 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 20 E8 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 84 C2 01 00 35 04 06 00 46 13 9E 58 0D 43 00 00 F6 [09:49:21]Write i2c OK [09:49:21]MH_I2C_Read... [09:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:21]Read from MH i2c: E2 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: E2 03 00 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [09:49:21]RAPDU: 90 00 [09:49:21]wFMCommunicate OK [09:49:21]wFMCommunicate request_size=4 [09:49:21]MH_SAM_APDU [09:49:21]CAPDU: 80 0D 03 02 [09:49:21]Write to MH i2c: E2 08 00 9E 01 80 0D 03 02 00 00 00 00 1A [09:49:21]Write i2c OK [09:49:21]MH_I2C_Read... [09:49:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:21]Read from MH i2c: E2 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: E2 0B 00 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: E2 0B 00 9E 01 00 F6 49 A7 E0 59 41 9B 61 90 00 77 [09:49:21]RAPDU: F6 49 A7 E0 59 41 9B 61 90 00 [09:49:21]wFMCommunicate OK [09:49:21]SAM_PROTO_SignData done [09:49:21]FM_MakeSignedData done [09:49:21]CreateOFDProtocolMessage [09:49:21]wFMCommunicate request_size=4 [09:49:21]MH_SAM_APDU [09:49:21]CAPDU: 80 11 00 00 [09:49:21]Write to MH i2c: E2 08 00 9F 01 80 11 00 00 00 00 00 00 1A [09:49:21]Write i2c OK [09:49:21]MH_I2C_Read... [09:49:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:21]Read from MH i2c: E2 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: E2 17 00 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: E2 17 00 9F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 68 [09:49:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:49:21]wFMCommunicate OK [09:49:21]CreateOFDProtocolMessage done [09:49:21]OFDSenderStorePacket 115332 [09:49:21]StoreOFDPacket docnum=115332 [09:49:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 71 02 00 00 79 E6 69 02 3F 75 5A 03 01 00 03 00 5D 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 20 E8 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 84 C2 01 00 35 04 06 00 46 13 9E 58 0D 43 F6 49 A7 E0 59 41 9B 61 [09:49:21]CheckFolder [09:49:21]dirname=/storage/ofd_packets [09:49:21]CheckFolder done [09:49:21]ProducePacketName [09:49:21]name=ofd_packets/00115332 [09:49:21]NVStorageSaveData ofd_packets/00115332 [09:49:21]File name is /storage/ofd_packets/00115332 [09:49:21]Write 655 bytes [09:49:21]NVStorageSaveData done [09:49:21]OFDSenderStorePacket done [09:49:21]KKMCreateOFDPacket done [09:49:21]NVStorageSaveData kkm_last_timestamp [09:49:21]File name is /storage/kkm_last_timestamp [09:49:21]Write 4 bytes [09:49:21]NVStorageSaveData done [09:49:21]ExternCall_PrintAddStr [09:49:21]wPrintStart [09:49:21]Write to MH i2c: 01 00 00 A0 01 A1 [09:49:21]Write i2c OK [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: 01 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: 01 07 00 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: 01 07 00 A0 01 00 00 00 00 00 FF 0F B6 [09:49:21]RasterBufferAndPrint [09:49:21]line Счет N : (3)343792 [09:49:21]line ИНН: 02508201610067 [09:49:21]line Контрольно-Кассовый Чек [09:49:21]line ПРОДАЖА [09:49:21]line Товар: 2000034730018 [09:49:21]line Кофе Американо (GABB TRADE) [09:49:21]line 1.000 * 105.00 [09:49:21]line = 105.00 [09:49:21]line НДС 12% НСП 1% [09:49:21]line > о реализуемом товаре [09:49:21]line Товар: 2000036240010 [09:49:21]line Кофе Латте (GABB TRADE) [09:49:21]line 1.000 * 115.00 [09:49:21]line = 115.00 [09:49:21]line НДС 12% НСП 1% [09:49:21]line > о реализуемом товаре [09:49:21]line Товар: 2000036210013 [09:49:21]line Кофе Капучино (GABB TRADE) [09:49:21]line 1.000 * 115.00 [09:49:21]line = 115.00 [09:49:21]line НДС 12% НСП 1% [09:49:21]line > о реализуемом товаре [09:49:21]line Товар: 46214645 [09:49:21]line Р/ж mentos pure white клуб 16/15,5г [09:49:21]line 1.000 * 49.00 [09:49:21]line = 49.00 [09:49:21]line НДС 12% НСП 1% [09:49:21]line > о реализуемом товаре [09:49:21]line ИТОГО: 384.00 [09:49:21]line НСП 1% : 3.40 [09:49:21]line НДС 12% : 40.77 [09:49:21]line Наличными: 0.00 [09:49:21]line Безнал.: 384.00 [09:49:21]line Место: АЗС № 90 "Партнер Нефть" [09:49:21]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:49:21]line СНО: Общий режим [09:49:21]line Чек 50 22.09.2024 09:49 [09:49:21]line Смена: 471 ФФД: 1.0 [09:49:21]line ЗНМ: 0300000120 [09:49:21]line РНМ: 0000000000091831 [09:49:21]line Версия ККМ: 001 [09:49:21]line Платежная система: O! деньги [09:49:21]line ФМ: 0000000000871830 [09:49:21]line ФД: 115332 [09:49:21]line ФПД: 77050074893635 [09:49:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T094920&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115332&fm=77050074893635&tin=02508201610067®Number=0000000000091831&sum=38400 [09:49:21]line 0 [09:49:21]OFD Sender: Processing packet 115332 [packets to send 481, broken 480] [09:49:21]ProducePacketName [09:49:21]name=ofd_packets/00115332 [09:49:21]OFD Sender: To server: pG, [09:49:21]CommunicateWithHost lk.salyk.kg:30040 [09:49:21]ConnectInit lk.salyk.kg [09:49:21]written 0, free lines is 4095 [09:49:22]Connected sock=10 [09:49:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 71 02 00 00 79 E6 69 02 3F 75 5A 03 01 00 03 00 5D 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 20 E8 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 84 C2 01 00 35 04 06 00 46 13 9E 58 0D 43 F6 49 A7 E0 59 41 9B 61 [09:49:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 EF 4A 47 00 5A 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 31 38 33 30 10 04 04 00 84 C2 01 00 F4 03 04 00 67 8D EF 66 B6 04 01 00 00 7A 8B BD 74 CE 6A 29 E9 [09:49:22]CommunicateWithHost err = 0 [09:49:22]CheckOFDResponse [09:49:22]1017 (14) - 77093643461234 [09:49:22]1041 (16) - 0000000000871830 [09:49:22]1040 (4) - 115332 [09:49:22]1012 (4) - 22.09.2024 03:22 [09:49:22]1206 (1) - 0 [09:49:22]OFD Sender: Remove packet 115332 [09:49:22]ProducePacketName [09:49:22]name=ofd_packets/00115332 [09:49:22]NVStorageDeleteData [09:49:22]Write to MH i2c: 01 00 00 DD 01 DE [09:49:22]Write i2c OK [09:49:22]MH_I2C_Read... [09:49:22]Read from MH i2c: 01 [09:49:22]MH_I2C_Read... [09:49:22]Read from MH i2c: 01 07 00 [09:49:22]MH_I2C_Read... [09:49:22]Read from MH i2c: 01 07 00 DD 01 00 00 00 00 00 9D 0A 8C [09:49:22]RasterBufferAndPrint [09:49:22]line [09:49:22]line [09:49:22]line [09:49:22]line [09:49:22]line [09:49:22]written 0, free lines is 2721 [09:49:22]MH_Cut [09:49:22]Write to MH i2c: D1 01 00 E4 01 01 B7 [09:49:22]Write i2c OK [09:49:22]MH_I2C_Read... [09:49:22]Read from MH i2c: D1 [09:49:22]MH_I2C_Read... [09:49:22]Read from MH i2c: D1 01 00 [09:49:22]MH_I2C_Read... [09:49:22]Read from MH i2c: D1 01 00 E4 01 00 B6 [09:49:22]Write to MH i2c: 01 00 00 E5 01 E6 [09:49:22]Write i2c OK [09:49:22]MH_I2C_Read... [09:49:22]OFD Sender: No OFD packet to send [09:49:24]*** Cut start [09:49:24]*** Partial cut [09:49:24]*** CUTSNS_PIN = 1 [09:49:24]*** CUTSNS_PIN = 0 [09:49:24]*** Brake cut motor [09:49:24]Read from MH i2c: 01 [09:49:24]MH_I2C_Read... [09:49:24]*** Stop cut motor [09:49:24]*** Cut end [09:49:24]Read from MH i2c: 01 07 00 [09:49:24]MH_I2C_Read... [09:49:24]Read from MH i2c: 01 07 00 E5 01 00 00 00 00 00 FF 0F FB [09:49:24]process_action close_receipt done [09:49:24]requested_data is exist [09:49:24]produce_requested_data [09:49:24]requested_item fm.sn is exist - process it [09:49:24]wFMCommunicate request_size=4 [09:49:24]MH_SAM_APDU [09:49:24]CAPDU: 80 11 00 00 [09:49:24]Write to MH i2c: E2 08 00 E6 01 80 11 00 00 00 00 00 00 61 [09:49:24]Write i2c OK [09:49:24]MH_I2C_Read... [09:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:25]Read from MH i2c: E2 [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: E2 17 00 [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: E2 17 00 E6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AF [09:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:49:25]wFMCommunicate OK [09:49:25]requested_item fd.num is exist - process it [09:49:25]SAM_PROTO_GetFieldsCounters [09:49:25]wFMCommunicate request_size=4 [09:49:25]MH_SAM_APDU [09:49:25]CAPDU: 80 13 00 00 [09:49:25]Write to MH i2c: E2 08 00 E7 01 80 13 00 00 00 00 00 00 64 [09:49:25]Write i2c OK [09:49:25]MH_I2C_Read... [09:49:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:25]Read from MH i2c: E2 [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: E2 62 00 [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: E2 62 00 E7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 84 C2 01 00 0E 04 04 00 D7 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 32 [09: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 84 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:25]wFMCommunicate OK [09:49:25]SAM_PROTO_GetFieldsCounters done [09:49:25]requested_item shift.num is exist - process it [09:49:25]requested_item shift.opened is exist - process it [09:49:25]req_shift_opened [09:49:25]FM_GetShiftState [09:49:25]SAM_PROTO_GetShiftState [09:49:25]wFMCommunicate request_size=4 [09:49:25]MH_SAM_APDU [09:49:25]CAPDU: 80 13 01 00 [09:49:25]Write to MH i2c: E2 08 00 E8 01 80 13 01 00 00 00 00 00 66 [09:49:25]Write i2c OK [09:49:25]MH_I2C_Read... [09:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:25]Read from MH i2c: E2 [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: E2 0E 00 [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: E2 0E 00 E8 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 7F [09:49:25]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [09:49:25]wFMCommunicate OK [09:49:25]SAM_PROTO_GetShiftState done [09:49:25]FM_GetShiftState done [09:49:25]req_shift_opened done [09:49:25]requested_item shift.open_date is exist - process it [09:49:25]req_shift_open_date [09:49:25]req_shift_open_date done [09:49:25]produce_requested_data done [09:49:25]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115332,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [09:49:25]process_action_free close_receipt [09:49:25]json_value_free [09:49:25]json_value_free done [09:49:25]process_json_proto returns [09:49:25]Send response to host [09:49:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115332,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [09:49:25]free response buf [09:49:25]execute_script done [09:49:25]execute_script returns [09:49:25]free content buf [09:49:25]Sock 9.Close socket [09:49:25]Sock 9.Thread stoped [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:23]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:33]OFD Sender: No OFD packet to send [09:50:38]OFD Sender: No OFD packet to send [09:50:43]OFD Sender: No OFD packet to send [09:50:48]OFD Sender: No OFD packet to send [09:50:53]OFD Sender: No OFD packet to send [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:48]OFD Sender: No OFD packet to send [09:52:53]OFD Sender: No OFD packet to send [09:52:58]OFD Sender: No OFD packet to send [09:53:03]OFD Sender: No OFD packet to send [09:53:08]OFD Sender: No OFD packet to send [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]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:15]OFD Sender: No OFD packet to send [10:04:20]OFD Sender: No OFD packet to send [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:23]accept exits with 7 [10:05:23]New connection [10:05:23]New thread 3067174244 created [10:05:23]Thread 3067030884 joined [10:05:23]Waiting for new connection... [10:05:23] Sock 7.Parse request [10:05:23]Sock 7.Check first char [10:05:23]Sock 7.First char is OK [10:05:23]request: POST /json_proto HTTP/1.0 [10:05:23]Method: POST [10:05:23]URL: /json_proto [10:05:23]Method is POST - this is cgi request [10:05:23]url: /json_proto [10:05:23]query_string will be loaded in cgi processing [10:05:23]execute_cgi json_proto POST (null) [10:05:23]execute_cgi path=json_proto method=POST [10:05:23]POST find Content-Length [10:05:23]Host: 172.17.41.136:8080 [10:05:23]Content-Length: 1501 [10:05:23]Content-Type: application/json [10:05:23] [10:05:23]POST finish read [10:05:23]Found Content-Length = 1501 [10:05:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343793", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721018832", "name": "\u041F\u0438\u0432\u043E \u0421\u0438\u0431.\u041A\u043E\u0440 \u0437\u043E\u043B 0,5\u043B \u0441\u0442", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 359.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:23]execute_script... [10:05:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343793", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721018832", "name": "\u041F\u0438\u0432\u043E \u0421\u0438\u0431.\u041A\u043E\u0440 \u0437\u043E\u043B 0,5\u043B \u0441\u0442", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 359.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:23]POST & json_proto [10:05:23]process_json_proto [10:05:23]json parsed OK: [10:05:23]protocol is kg_v1.0 [10:05:23]action value=close_receipt [10:05:23]process_action close_receipt [10:05:23]cmd_close_receipt [10:05:23]MH_GetDate [10:05:23]Write to MH i2c: F0 00 00 E9 01 D9 [10:05:23]Write i2c OK [10:05:23]MH_I2C_Read... [10:05:23]Read from MH i2c: F0 [10:05:23]MH_I2C_Read... [10:05:23]Read from MH i2c: F0 09 00 [10:05:23]MH_I2C_Read... [10:05:23]Read from MH i2c: F0 09 00 E9 01 00 E4 EB EF 66 1B D0 5A 64 AF [10:05:23]GetLastDocTimeStamp 1726998560 [10:05:23]current date 1726999524 [10:05:23]FM_GetShiftState [10:05:23]SAM_PROTO_GetShiftState [10:05:23]wFMCommunicate request_size=4 [10:05:23]MH_SAM_APDU [10:05:23]CAPDU: 80 13 01 00 [10:05:23]Write to MH i2c: E2 08 00 EA 01 80 13 01 00 00 00 00 00 68 [10:05:23]Write i2c OK [10:05:23]MH_I2C_Read... [10:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:23]Read from MH i2c: E2 [10:05:23]MH_I2C_Read... [10:05:23]Read from MH i2c: E2 0E 00 [10:05:23]MH_I2C_Read... [10:05:23]Read from MH i2c: E2 0E 00 EA 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 81 [10:05:23]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:05:23]wFMCommunicate OK [10:05:23]SAM_PROTO_GetShiftState done [10:05:23]FM_GetShiftState done [10:05:23]opened in 1726965840 [10:05:23]opened+sec_in_day 1727052240 [10:05:23]quantity*price = 11000 [10:05:23]sum+1 = 11001 [10:05:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002325113 Напиток PEPSI газированный ст 0,25л 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600721018832 Пиво Сиб.Кор зол 0,5л ст 1.000 * 145.00 = 145.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 2.000 * 7.00 = 14.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 359.00 НСП 1% : 3.17 НДС 12% : 38.13 Наличными: 359.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 51 22.09.2024 10:05 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115333 ФПД: 246607431038816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T100524&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115333&fm=246607431038816&tin=02508201610067®Number=0000000000091831&sum=35900 0 [10:05:24]StoreToDocumentArchive [10:05:24]shift 471 fd 115333 [10:05:24]save to /storage/0471/doc_00115333 [10:05:24]save last doc name /storage/0471/doc_00115333 to /storage/kkm_last_doc_name [10:05:24]save OK [10:05:24]Clear old archive folders... [10:05:24]ProcessDocumentItem done err = 0, tmpTLVsize=624 [10:05:24]tlvbuf is 016E0F90 [10:05:24]SAM_PROTO_ClearQueue [10:05:24]wFMCommunicate request_size=4 [10:05:24]MH_SAM_APDU [10:05:24]CAPDU: 80 09 00 00 [10:05:24]Write to MH i2c: E2 08 00 F7 01 80 09 00 00 00 00 00 00 6A [10:05:24]Write i2c OK [10:05:24]MH_I2C_Read... [10:05:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:24]Read from MH i2c: E2 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: E2 03 00 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: E2 03 00 F7 01 00 90 00 6C [10:05:24]RAPDU: 90 00 [10:05:24]wFMCommunicate OK [10:05:24]SAM_PROTO_ClearQueue done [10:05:24]KKMCreateOFDPacket [10:05:24]OFDProtocolAddRootSTLVToBuf [10:05:24]FM_MakeSignedData [10:05:24]FM_MakeSignedData [10:05:24]SAM_PROTO_SignData [10:05:24]wFMCommunicate request_size=4 [10:05:24]MH_SAM_APDU [10:05:24]CAPDU: 80 0D 01 02 [10:05:24]Write to MH i2c: E2 08 00 F8 01 80 0D 01 02 00 00 00 00 72 [10:05:24]Write i2c OK [10:05:24]MH_I2C_Read... [10:05:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:24]Read from MH i2c: E2 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: E2 03 00 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: E2 03 00 F8 01 00 90 00 6D [10:05:24]RAPDU: 90 00 [10:05:24]wFMCommunicate OK [10:05:24]wFMCommunicate request_size=255 [10:05:24]MH_SAM_APDU [10:05:24]CAPDU: 80 0D 02 02 FA 03 00 70 02 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 30 37 32 31 30 [10:05:24]Write to MH i2c: E2 02 01 F9 01 80 0D 02 02 FA 00 03 00 70 02 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 30 37 32 31 30 00 00 61 [10:05:24]Write i2c OK [10:05:24]MH_I2C_Read... [10:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:24]Read from MH i2c: E2 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: E2 03 00 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: E2 03 00 F9 01 00 90 00 6E [10:05:24]RAPDU: 90 00 [10:05:24]wFMCommunicate OK [10:05:24]wFMCommunicate request_size=255 [10:05:24]MH_SAM_APDU [10:05:24]CAPDU: 80 0D 02 02 FA 31 38 38 33 32 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 B7 D0 BE D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 01 00 00 00 00 EE 03 0F 00 [10:05:24]Write to MH i2c: E2 02 01 FA 01 80 0D 02 02 FA 00 31 38 38 33 32 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 B7 D0 BE D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 01 00 00 00 00 EE 03 0F 00 00 00 2D [10:05:24]Write i2c OK [10:05:24]MH_I2C_Read... [10:05:25]OFD Sender: No OFD packet to send [10:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 FA 01 00 90 00 6F [10:05:25]RAPDU: 90 00 [10:05:25]wFMCommunicate OK [10:05:25]wFMCommunicate request_size=133 [10:05:25]MH_SAM_APDU [10:05:25]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 E5 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 E4 EB EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 85 C2 01 00 35 04 06 00 E0 49 C4 53 77 60 [10:05:25]Write to MH i2c: E2 88 00 FB 01 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 E5 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 E4 EB EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 85 C2 01 00 35 04 06 00 E0 49 C4 53 77 60 00 00 E4 [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 FB 01 00 90 00 70 [10:05:25]RAPDU: 90 00 [10:05:25]wFMCommunicate OK [10:05:25]wFMCommunicate request_size=4 [10:05:25]MH_SAM_APDU [10:05:25]CAPDU: 80 0D 03 02 [10:05:25]Write to MH i2c: E2 08 00 FC 01 80 0D 03 02 00 00 00 00 78 [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 0B 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 0B 00 FC 01 00 ED EA E2 20 C3 6A E1 8A 90 00 EA [10:05:25]RAPDU: ED EA E2 20 C3 6A E1 8A 90 00 [10:05:25]wFMCommunicate OK [10:05:25]SAM_PROTO_SignData done [10:05:25]FM_MakeSignedData done [10:05:25]CreateOFDProtocolMessage [10:05:25]wFMCommunicate request_size=4 [10:05:25]MH_SAM_APDU [10:05:25]CAPDU: 80 11 00 00 [10:05:25]Write to MH i2c: E2 08 00 FD 01 80 11 00 00 00 00 00 00 78 [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 17 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 17 00 FD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C6 [10:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:05:25]wFMCommunicate OK [10:05:25]CreateOFDProtocolMessage done [10:05:25]OFDSenderStorePacket 115333 [10:05:25]StoreOFDPacket docnum=115333 [10:05:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 84 02 00 00 10 91 7C 02 AE 4B 5A 03 01 00 03 00 70 02 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 38 33 32 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 B7 D0 BE D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 E4 EB EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 85 C2 01 00 35 04 06 00 E0 49 C4 53 77 60 ED EA E2 20 C3 6A E1 8A [10:05:25]CheckFolder [10:05:25]dirname=/storage/ofd_packets [10:05:25]CheckFolder done [10:05:25]ProducePacketName [10:05:25]name=ofd_packets/00115333 [10:05:25]NVStorageSaveData ofd_packets/00115333 [10:05:25]File name is /storage/ofd_packets/00115333 [10:05:25]Write 674 bytes [10:05:25]NVStorageSaveData done [10:05:25]OFDSenderStorePacket done [10:05:25]KKMCreateOFDPacket done [10:05:25]NVStorageSaveData kkm_last_timestamp [10:05:25]File name is /storage/kkm_last_timestamp [10:05:25]Write 4 bytes [10:05:25]NVStorageSaveData done [10:05:25]ExternCall_PrintAddStr [10:05:25]wPrintStart [10:05:25]Write to MH i2c: 01 00 00 FE 01 FF [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: 01 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: 01 07 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: 01 07 00 FE 01 00 00 00 00 00 FF 0F 14 [10:05:25]RasterBufferAndPrint [10:05:25]line Счет N : (3)343793 [10:05:25]line ИНН: 02508201610067 [10:05:25]line Контрольно-Кассовый Чек [10:05:25]line ПРОДАЖА [10:05:25]line Товар: 4870001570071 [10:05:25]line Напиток Pepsi 1л [10:05:25]line 1.000 * 110.00 [10:05:25]line = 110.00 [10:05:25]line НДС 12% НСП 1% [10:05:25]line > о реализуемом товаре [10:05:25]line Товар: 4870002325113 [10:05:25]line Напиток PEPSI газированный ст 0,25л [10:05:25]line 1.000 * 90.00 [10:05:25]line = 90.00 [10:05:25]line НДС 12% НСП 1% [10:05:25]line > о реализуемом товаре [10:05:25]line Товар: 4600721018832 [10:05:25]line Пиво Сиб.Кор зол 0,5л ст [10:05:25]line 1.000 * 145.00 [10:05:25]line = 145.00 [10:05:25]line НДС 12% НСП 1% [10:05:25]line > о реализуемом товаре [10:05:25]line Товар: 2000053020015 [10:05:25]line Бумажные стаканы 250мл 1шт [10:05:25]line 2.000 * 7.00 [10:05:25]line = 14.00 [10:05:25]line НДС 12% НСП 1% [10:05:25]line > о реализуемом товаре [10:05:25]line ИТОГО: 359.00 [10:05:25]line НСП 1% : 3.17 [10:05:25]line НДС 12% : 38.13 [10:05:25]line Наличными: 359.00 [10:05:25]line Безнал.: 0.00 [10:05:25]line Место: АЗС № 90 "Партнер Нефть" [10:05:25]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:05:25]line СНО: Общий режим [10:05:25]line Чек 51 22.09.2024 10:05 [10:05:25]line Смена: 471 ФФД: 1.0 [10:05:25]line ЗНМ: 0300000120 [10:05:25]line РНМ: 0000000000091831 [10:05:25]line Версия ККМ: 001 [10:05:25]line ФМ: 0000000000871830 [10:05:25]line ФД: 115333 [10:05:25]line ФПД: 246607431038816 [10:05:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T100524&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115333&fm=246607431038816&tin=02508201610067®Number=0000000000091831&sum=35900 [10:05:25]line 0 [10:05:25]OFD Sender: Processing packet 115333 [packets to send 481, broken 480] [10:05:25]ProducePacketName [10:05:25]name=ofd_packets/00115333 [10:05:25]OFD Sender: To server: pG, [10:05:25]CommunicateWithHost lk.salyk.kg:30040 [10:05:25]ConnectInit lk.salyk.kg [10:05:25]written 0, free lines is 4095 [10:05:26]Connected sock=10 [10:05:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 84 02 00 00 10 91 7C 02 AE 4B 5A 03 01 00 03 00 70 02 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 38 33 32 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 B7 D0 BE D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 E4 EB EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 85 C2 01 00 35 04 06 00 E0 49 C4 53 77 60 ED EA E2 20 C3 6A E1 8A [10:05:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 68 64 47 00 C9 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 31 38 33 30 10 04 04 00 85 C2 01 00 F4 03 04 00 2B 91 EF 66 B6 04 01 00 00 B5 6A EE B0 72 D0 78 4D [10:05:26]CommunicateWithHost err = 0 [10:05:26]CheckOFDResponse [10:05:26]1017 (14) - 77093643461234 [10:05:26]1041 (16) - 0000000000871830 [10:05:26]1040 (4) - 115333 [10:05:26]1012 (4) - 22.09.2024 03:38 [10:05:26]1206 (1) - 0 [10:05:26]OFD Sender: Remove packet 115333 [10:05:26]ProducePacketName [10:05:26]name=ofd_packets/00115333 [10:05:26]NVStorageDeleteData [10:05:26]Write to MH i2c: 01 00 00 39 02 3B [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: 01 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: 01 07 00 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 BD 0A 09 [10:05:26]RasterBufferAndPrint [10:05:26]line [10:05:26]line [10:05:26]line [10:05:26]line [10:05:26]line [10:05:26]written 0, free lines is 2753 [10:05:26]MH_Cut [10:05:26]Write to MH i2c: D1 01 00 40 02 01 14 [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: D1 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: D1 01 00 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: D1 01 00 40 02 00 13 [10:05:26]Write to MH i2c: 01 00 00 41 02 43 [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]OFD Sender: No OFD packet to send [10:05:28]*** Cut start [10:05:28]*** Partial cut [10:05:28]*** CUTSNS_PIN = 1 [10:05:28]*** CUTSNS_PIN = 0 [10:05:28]*** Brake cut motor [10:05:28]Read from MH i2c: 01 [10:05:28]MH_I2C_Read... [10:05:28]*** Stop cut motor [10:05:28]*** Cut end [10:05:28]Read from MH i2c: 01 07 00 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: 01 07 00 41 02 00 00 00 00 00 FF 0F 58 [10:05:28]process_action close_receipt done [10:05:28]requested_data is exist [10:05:28]produce_requested_data [10:05:28]requested_item fm.sn is exist - process it [10:05:28]wFMCommunicate request_size=4 [10:05:28]MH_SAM_APDU [10:05:28]CAPDU: 80 11 00 00 [10:05:28]Write to MH i2c: E2 08 00 42 02 80 11 00 00 00 00 00 00 BE [10:05:28]Write i2c OK [10:05:28]MH_I2C_Read... [10:05:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:28]Read from MH i2c: E2 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: E2 17 00 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: E2 17 00 42 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0C [10:05:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:05:28]wFMCommunicate OK [10:05:28]requested_item fd.num is exist - process it [10:05:28]SAM_PROTO_GetFieldsCounters [10:05:28]wFMCommunicate request_size=4 [10:05:28]MH_SAM_APDU [10:05:28]CAPDU: 80 13 00 00 [10:05:28]Write to MH i2c: E2 08 00 43 02 80 13 00 00 00 00 00 00 C1 [10:05:28]Write i2c OK [10:05:28]MH_I2C_Read... [10:05:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:29]Read from MH i2c: E2 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 62 00 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 62 00 43 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 85 C2 01 00 0E 04 04 00 D7 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 93 [10:05:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 85 C2 01 00 0E 04 04 00 D7 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 [10:05:29]wFMCommunicate OK [10:05:29]SAM_PROTO_GetFieldsCounters done [10:05:29]requested_item shift.num is exist - process it [10:05:29]requested_item shift.opened is exist - process it [10:05:29]req_shift_opened [10:05:29]FM_GetShiftState [10:05:29]SAM_PROTO_GetShiftState [10:05:29]wFMCommunicate request_size=4 [10:05:29]MH_SAM_APDU [10:05:29]CAPDU: 80 13 01 00 [10:05:29]Write to MH i2c: E2 08 00 44 02 80 13 01 00 00 00 00 00 C3 [10:05:29]Write i2c OK [10:05:29]MH_I2C_Read... [10:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:29]Read from MH i2c: E2 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 0E 00 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 0E 00 44 02 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 DC [10:05:29]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:05:29]wFMCommunicate OK [10:05:29]SAM_PROTO_GetShiftState done [10:05:29]FM_GetShiftState done [10:05:29]req_shift_opened done [10:05:29]requested_item shift.open_date is exist - process it [10:05:29]req_shift_open_date [10:05:29]req_shift_open_date done [10:05:29]produce_requested_data done [10:05:29]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115333,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [10:05:29]process_action_free close_receipt [10:05:29]json_value_free [10:05:29]json_value_free done [10:05:29]process_json_proto returns [10:05:29]Send response to host [10:05:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115333,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [10:05:29]free response buf [10:05:29]execute_script done [10:05:29]execute_script returns [10:05:29]free content buf [10:05:29]Sock 7.Close socket [10:05:29]Sock 7.Thread stoped [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:05]accept exits with 9 [10:15:05]New connection [10:15:05]New thread 3067030884 created [10:15:05]Thread 3067174244 joined [10:15:05]Waiting for new connection... [10:15:05] Sock 9.Parse request [10:15:05]Sock 9.Check first char [10:15:05]Sock 9.First char is OK [10:15:05]request: POST /json_proto HTTP/1.0 [10:15:05]Method: POST [10:15:05]URL: /json_proto [10:15:05]Method is POST - this is cgi request [10:15:05]url: /json_proto [10:15:05]query_string will be loaded in cgi processing [10:15:05]execute_cgi json_proto POST (null) [10:15:05]execute_cgi path=json_proto method=POST [10:15:05]POST find Content-Length [10:15:05]Host: 172.17.41.136:8080 [10:15:05]Content-Length: 656 [10:15:05]Content-Type: application/json [10:15:05] [10:15:05]POST finish read [10:15:05]Found Content-Length = 656 [10:15:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343794", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:05]execute_script... [10:15:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343794", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:05]POST & json_proto [10:15:05]process_json_proto [10:15:05]json parsed OK: [10:15:05]protocol is kg_v1.0 [10:15:05]action value=close_receipt [10:15:05]process_action close_receipt [10:15:05]cmd_close_receipt [10:15:05]MH_GetDate [10:15:05]Write to MH i2c: F0 00 00 45 02 36 [10:15:05]Write i2c OK [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: F0 [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: F0 09 00 [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: F0 09 00 45 02 00 2A EE EF 66 1B D0 5A 64 55 [10:15:05]GetLastDocTimeStamp 1726999524 [10:15:05]current date 1727000106 [10:15:05]FM_GetShiftState [10:15:05]SAM_PROTO_GetShiftState [10:15:05]wFMCommunicate request_size=4 [10:15:05]MH_SAM_APDU [10:15:05]CAPDU: 80 13 01 00 [10:15:05]Write to MH i2c: E2 08 00 46 02 80 13 01 00 00 00 00 00 C5 [10:15:05]Write i2c OK [10:15:05]MH_I2C_Read... [10:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:05]Read from MH i2c: E2 [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: E2 0E 00 [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: E2 0E 00 46 02 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 DE [10:15:05]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:15:05]wFMCommunicate OK [10:15:05]SAM_PROTO_GetShiftState done [10:15:05]FM_GetShiftState done [10:15:05]opened in 1726965840 [10:15:05]opened+sec_in_day 1727052240 [10:15:05]quantity*price = 400 [10:15:05]sum+1 = 401 [10:15:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4.00 НСП 1% : 0.03 НДС 12% : 0.42 Наличными: 4.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 52 22.09.2024 10:15 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115334 ФПД: 115015039328589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T101506&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115334&fm=115015039328589&tin=02508201610067®Number=0000000000091831&sum=400 0 [10:15:06]StoreToDocumentArchive [10:15:06]shift 471 fd 115334 [10:15:06]save to /storage/0471/doc_00115334 [10:15:06]save last doc name /storage/0471/doc_00115334 to /storage/kkm_last_doc_name [10:15:06]save OK [10:15:06]Clear old archive folders... [10:15:06]ProcessDocumentItem done err = 0, tmpTLVsize=278 [10:15:06]tlvbuf is 016E8B60 [10:15:06]SAM_PROTO_ClearQueue [10:15:06]wFMCommunicate request_size=4 [10:15:06]MH_SAM_APDU [10:15:06]CAPDU: 80 09 00 00 [10:15:06]Write to MH i2c: E2 08 00 53 02 80 09 00 00 00 00 00 00 C7 [10:15:06]Write i2c OK [10:15:06]MH_I2C_Read... [10:15:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:06]Read from MH i2c: E2 [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: E2 03 00 [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: E2 03 00 53 02 00 90 00 C9 [10:15:06]RAPDU: 90 00 [10:15:06]wFMCommunicate OK [10:15:06]SAM_PROTO_ClearQueue done [10:15:06]KKMCreateOFDPacket [10:15:06]OFDProtocolAddRootSTLVToBuf [10:15:06]FM_MakeSignedData [10:15:06]FM_MakeSignedData [10:15:06]SAM_PROTO_SignData [10:15:06]wFMCommunicate request_size=4 [10:15:06]MH_SAM_APDU [10:15:06]CAPDU: 80 0D 01 02 [10:15:06]Write to MH i2c: E2 08 00 54 02 80 0D 01 02 00 00 00 00 CF [10:15:06]Write i2c OK [10:15:06]MH_I2C_Read... [10:15:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:06]Read from MH i2c: E2 [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: E2 03 00 [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: E2 03 00 54 02 00 90 00 CA [10:15:06]RAPDU: 90 00 [10:15:06]wFMCommunicate OK [10:15:06]wFMCommunicate request_size=255 [10:15:06]MH_SAM_APDU [10:15:06]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 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 2A EE EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 [10:15:06]Write to MH i2c: E2 02 01 55 02 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 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 2A EE EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 00 00 82 [10:15:06]Write i2c OK [10:15:06]MH_I2C_Read... [10:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:06]Read from MH i2c: E2 [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: E2 03 00 [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: E2 03 00 55 02 00 90 00 CB [10:15:06]RAPDU: 90 00 [10:15:06]wFMCommunicate OK [10:15:06]wFMCommunicate request_size=37 [10:15:06]MH_SAM_APDU [10:15:06]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 86 C2 01 00 35 04 06 00 68 9B 06 90 21 4D [10:15:06]Write to MH i2c: E2 28 00 56 02 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 86 C2 01 00 35 04 06 00 68 9B 06 90 21 4D 00 00 74 [10:15:06]Write i2c OK [10:15:06]MH_I2C_Read... [10:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:06]Read from MH i2c: E2 [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: E2 03 00 [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: E2 03 00 56 02 00 90 00 CC [10:15:06]RAPDU: 90 00 [10:15:06]wFMCommunicate OK [10:15:06]wFMCommunicate request_size=4 [10:15:06]MH_SAM_APDU [10:15:06]CAPDU: 80 0D 03 02 [10:15:06]Write to MH i2c: E2 08 00 57 02 80 0D 03 02 00 00 00 00 D4 [10:15:06]Write i2c OK [10:15:06]MH_I2C_Read... [10:15:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:07]Read from MH i2c: E2 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 0B 00 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 0B 00 57 02 00 A7 F8 A3 B6 2F BA 86 1A 90 00 56 [10:15:07]RAPDU: A7 F8 A3 B6 2F BA 86 1A 90 00 [10:15:07]wFMCommunicate OK [10:15:07]SAM_PROTO_SignData done [10:15:07]FM_MakeSignedData done [10:15:07]CreateOFDProtocolMessage [10:15:07]wFMCommunicate request_size=4 [10:15:07]MH_SAM_APDU [10:15:07]CAPDU: 80 11 00 00 [10:15:07]Write to MH i2c: E2 08 00 58 02 80 11 00 00 00 00 00 00 D4 [10:15:07]Write i2c OK [10:15:07]MH_I2C_Read... [10:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:07]Read from MH i2c: E2 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 17 00 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 17 00 58 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 22 [10:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:15:07]wFMCommunicate OK [10:15:07]CreateOFDProtocolMessage done [10:15:07]OFDSenderStorePacket 115334 [10:15:07]StoreOFDPacket docnum=115334 [10:15:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2A 01 00 00 C8 5A 22 01 1D 23 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 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 2A EE EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 86 C2 01 00 35 04 06 00 68 9B 06 90 21 4D A7 F8 A3 B6 2F BA 86 1A [10:15:07]CheckFolder [10:15:07]dirname=/storage/ofd_packets [10:15:07]CheckFolder done [10:15:07]ProducePacketName [10:15:07]name=ofd_packets/00115334 [10:15:07]NVStorageSaveData ofd_packets/00115334 [10:15:07]File name is /storage/ofd_packets/00115334 [10:15:07]Write 328 bytes [10:15:07]NVStorageSaveData done [10:15:07]OFDSenderStorePacket done [10:15:07]KKMCreateOFDPacket done [10:15:07]NVStorageSaveData kkm_last_timestamp [10:15:07]File name is /storage/kkm_last_timestamp [10:15:07]Write 4 bytes [10:15:07]NVStorageSaveData done [10:15:07]ExternCall_PrintAddStr [10:15:07]wPrintStart [10:15:07]Write to MH i2c: 01 00 00 59 02 5B [10:15:07]Write i2c OK [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: 01 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: 01 07 00 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: 01 07 00 59 02 00 00 00 00 00 FF 0F 70 [10:15:07]RasterBufferAndPrint [10:15:07]line Счет N : (3)343794 [10:15:07]line ИНН: 02508201610067 [10:15:07]line Контрольно-Кассовый Чек [10:15:07]line ПРОДАЖА [10:15:07]line Товар: 2000031750019 [10:15:07]line Пакет Партнер Нефть [10:15:07]line 1.000 * 4.00 [10:15:07]line = 4.00 [10:15:07]line НДС 12% НСП 1% [10:15:07]line > о реализуемом товаре [10:15:07]line ИТОГО: 4.00 [10:15:07]line НСП 1% : 0.03 [10:15:07]line НДС 12% : 0.42 [10:15:07]line Наличными: 4.00 [10:15:07]line Безнал.: 0.00 [10:15:07]line Место: АЗС № 90 "Партнер Нефть" [10:15:07]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:15:07]line СНО: Общий режим [10:15:07]line Чек 52 22.09.2024 10:15 [10:15:07]line Смена: 471 ФФД: 1.0 [10:15:07]line ЗНМ: 0300000120 [10:15:07]line РНМ: 0000000000091831 [10:15:07]line Версия ККМ: 001 [10:15:07]line ФМ: 0000000000871830 [10:15:07]line ФД: 115334 [10:15:07]line ФПД: 115015039328589 [10:15:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T101506&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115334&fm=115015039328589&tin=02508201610067®Number=0000000000091831&sum=400 [10:15:07]line 0 [10:15:07]written 0, free lines is 4095 [10:15:07]OFD Sender: Processing packet 115334 [packets to send 481, broken 480] [10:15:07]ProducePacketName [10:15:07]name=ofd_packets/00115334 [10:15:07]OFD Sender: To server: pG, [10:15:07]CommunicateWithHost lk.salyk.kg:30040 [10:15:07]ConnectInit lk.salyk.kg [10:15:07]Connected sock=10 [10:15:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2A 01 00 00 C8 5A 22 01 1D 23 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 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 2A EE EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 86 C2 01 00 35 04 06 00 68 9B 06 90 21 4D A7 F8 A3 B6 2F BA 86 1A [10:15:07]Write to MH i2c: 01 00 00 80 02 82 [10:15:07]Write i2c OK [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: 01 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: 01 07 00 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: 01 07 00 80 02 00 00 00 00 00 78 0C 0D [10:15:07]RasterBufferAndPrint [10:15:07]line [10:15:07]line [10:15:07]line [10:15:07]line [10:15:07]line [10:15:07]written 0, free lines is 3196 [10:15:07]MH_Cut [10:15:07]Write to MH i2c: D1 01 00 87 02 01 5B [10:15:07]Write i2c OK [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: D1 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: D1 01 00 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: D1 01 00 87 02 00 5A [10:15:07]Write to MH i2c: 01 00 00 88 02 8A [10:15:07]Write i2c OK [10:15:07]MH_I2C_Read... [10:15:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 32 4F 47 00 5D 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 31 38 33 30 10 04 04 00 86 C2 01 00 F4 03 04 00 70 93 EF 66 B6 04 01 00 00 83 B2 37 B5 6B 3F A4 BF [10:15:07]CommunicateWithHost err = 0 [10:15:07]CheckOFDResponse [10:15:07]1017 (14) - 77093643461234 [10:15:07]1041 (16) - 0000000000871830 [10:15:07]1040 (4) - 115334 [10:15:07]1012 (4) - 22.09.2024 03:48 [10:15:07]1206 (1) - 0 [10:15:07]OFD Sender: Remove packet 115334 [10:15:07]ProducePacketName [10:15:07]name=ofd_packets/00115334 [10:15:07]NVStorageDeleteData [10:15:08]OFD Sender: No OFD packet to send [10:15:08]*** Cut start [10:15:08]*** Partial cut [10:15:08]*** CUTSNS_PIN = 1 [10:15:08]*** CUTSNS_PIN = 0 [10:15:09]*** Brake cut motor [10:15:09]Read from MH i2c: 01 [10:15:09]MH_I2C_Read... [10:15:09]*** Stop cut motor [10:15:09]*** Cut end [10:15:09]Read from MH i2c: 01 07 00 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: 01 07 00 88 02 00 00 00 00 00 FF 0F 9F [10:15:09]process_action close_receipt done [10:15:09]requested_data is exist [10:15:09]produce_requested_data [10:15:09]requested_item fm.sn is exist - process it [10:15:09]wFMCommunicate request_size=4 [10:15:09]MH_SAM_APDU [10:15:09]CAPDU: 80 11 00 00 [10:15:09]Write to MH i2c: E2 08 00 89 02 80 11 00 00 00 00 00 00 05 [10:15:09]Write i2c OK [10:15:09]MH_I2C_Read... [10:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:09]Read from MH i2c: E2 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 17 00 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 17 00 89 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 53 [10:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:15:09]wFMCommunicate OK [10:15:09]requested_item fd.num is exist - process it [10:15:09]SAM_PROTO_GetFieldsCounters [10:15:09]wFMCommunicate request_size=4 [10:15:09]MH_SAM_APDU [10:15:09]CAPDU: 80 13 00 00 [10:15:09]Write to MH i2c: E2 08 00 8A 02 80 13 00 00 00 00 00 00 08 [10:15:09]Write i2c OK [10:15:09]MH_I2C_Read... [10:15:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:09]Read from MH i2c: E2 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 62 00 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 62 00 8A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 86 C2 01 00 0E 04 04 00 D7 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 DE [10:15:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 86 C2 01 00 0E 04 04 00 D7 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 [10:15:09]wFMCommunicate OK [10:15:09]SAM_PROTO_GetFieldsCounters done [10:15:09]requested_item shift.num is exist - process it [10:15:09]requested_item shift.opened is exist - process it [10:15:09]req_shift_opened [10:15:09]FM_GetShiftState [10:15:09]SAM_PROTO_GetShiftState [10:15:09]wFMCommunicate request_size=4 [10:15:09]MH_SAM_APDU [10:15:09]CAPDU: 80 13 01 00 [10:15:09]Write to MH i2c: E2 08 00 8B 02 80 13 01 00 00 00 00 00 0A [10:15:09]Write i2c OK [10:15:09]MH_I2C_Read... [10:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:09]Read from MH i2c: E2 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 0E 00 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 0E 00 8B 02 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 23 [10:15:09]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:15:09]wFMCommunicate OK [10:15:09]SAM_PROTO_GetShiftState done [10:15:09]FM_GetShiftState done [10:15:09]req_shift_opened done [10:15:09]requested_item shift.open_date is exist - process it [10:15:09]req_shift_open_date [10:15:09]req_shift_open_date done [10:15:09]produce_requested_data done [10:15:09]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115334,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [10:15:09]process_action_free close_receipt [10:15:09]json_value_free [10:15:09]json_value_free done [10:15:09]process_json_proto returns [10:15:09]Send response to host [10:15:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115334,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [10:15:09]free response buf [10:15:09]execute_script done [10:15:09]execute_script returns [10:15:09]free content buf [10:15:09]Sock 9.Close socket [10:15:09]Sock 9.Thread stoped [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]accept exits with 7 [10:18:53]New connection [10:18:53]New thread 3067174244 created [10:18:53]Thread 3067030884 joined [10:18:53]Waiting for new connection... [10:18:53] Sock 7.Parse request [10:18:53]Sock 7.Check first char [10:18:53]Sock 7.First char is OK [10:18:53]request: POST /json_proto HTTP/1.0 [10:18:53]Method: POST [10:18:53]URL: /json_proto [10:18:53]Method is POST - this is cgi request [10:18:53]url: /json_proto [10:18:53]query_string will be loaded in cgi processing [10:18:53]execute_cgi json_proto POST (null) [10:18:53]execute_cgi path=json_proto method=POST [10:18:53]POST find Content-Length [10:18:53]Host: 172.17.41.136:8080 [10:18:53]Content-Length: 646 [10:18:53]Content-Type: application/json [10:18:53] [10:18:53]POST finish read [10:18:53]Found Content-Length = 646 [10:18:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343795", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:53]execute_script... [10:18:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343795", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:53]POST & json_proto [10:18:53]process_json_proto [10:18:53]json parsed OK: [10:18:53]protocol is kg_v1.0 [10:18:53]action value=close_receipt [10:18:53]process_action close_receipt [10:18:53]cmd_close_receipt [10:18:53]MH_GetDate [10:18:53]Write to MH i2c: F0 00 00 8C 02 7D [10:18:53]Write i2c OK [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: F0 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: F0 09 00 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: F0 09 00 8C 02 00 0E EF EF 66 1B D0 5A 64 81 [10:18:53]GetLastDocTimeStamp 1727000106 [10:18:53]current date 1727000334 [10:18:53]FM_GetShiftState [10:18:53]SAM_PROTO_GetShiftState [10:18:53]wFMCommunicate request_size=4 [10:18:53]MH_SAM_APDU [10:18:53]CAPDU: 80 13 01 00 [10:18:53]Write to MH i2c: E2 08 00 8D 02 80 13 01 00 00 00 00 00 0C [10:18:53]Write i2c OK [10:18:53]MH_I2C_Read... [10:18:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:53]Read from MH i2c: E2 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: E2 0E 00 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: E2 0E 00 8D 02 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 25 [10:18:53]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:18:53]wFMCommunicate OK [10:18:53]SAM_PROTO_GetShiftState done [10:18:53]FM_GetShiftState done [10:18:53]opened in 1726965840 [10:18:53]opened+sec_in_day 1727052240 [10:18:53]quantity*price = 18500 [10:18:53]sum+1 = 18501 [10:18:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 185.00 НСП 1% : 1.64 НДС 12% : 19.65 Наличными: 185.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 53 22.09.2024 10:18 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115335 ФПД: 73083405353882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T101854&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115335&fm=73083405353882&tin=02508201610067®Number=0000000000091831&sum=18500 0 [10:18:54]StoreToDocumentArchive [10:18:54]shift 471 fd 115335 [10:18:54]save to /storage/0471/doc_00115335 [10:18:54]save last doc name /storage/0471/doc_00115335 to /storage/kkm_last_doc_name [10:18:54]save OK [10:18:54]Clear old archive folders... [10:18:54]ProcessDocumentItem done err = 0, tmpTLVsize=278 [10:18:54]tlvbuf is 01705FB0 [10:18:54]SAM_PROTO_ClearQueue [10:18:54]wFMCommunicate request_size=4 [10:18:54]MH_SAM_APDU [10:18:54]CAPDU: 80 09 00 00 [10:18:54]Write to MH i2c: E2 08 00 9A 02 80 09 00 00 00 00 00 00 0E [10:18:54]Write i2c OK [10:18:54]MH_I2C_Read... [10:18:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:54]Read from MH i2c: E2 [10:18:54]MH_I2C_Read... [10:18:54]Read from MH i2c: E2 03 00 [10:18:54]MH_I2C_Read... [10:18:54]Read from MH i2c: E2 03 00 9A 02 00 90 00 10 [10:18:54]RAPDU: 90 00 [10:18:54]wFMCommunicate OK [10:18:54]SAM_PROTO_ClearQueue done [10:18:54]KKMCreateOFDPacket [10:18:54]OFDProtocolAddRootSTLVToBuf [10:18:54]FM_MakeSignedData [10:18:54]FM_MakeSignedData [10:18:54]SAM_PROTO_SignData [10:18:54]wFMCommunicate request_size=4 [10:18:54]MH_SAM_APDU [10:18:54]CAPDU: 80 0D 01 02 [10:18:54]Write to MH i2c: E2 08 00 9B 02 80 0D 01 02 00 00 00 00 16 [10:18:54]Write i2c OK [10:18:54]MH_I2C_Read... [10:18:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:54]Read from MH i2c: E2 [10:18:54]MH_I2C_Read... [10:18:54]Read from MH i2c: E2 03 00 [10:18:54]MH_I2C_Read... [10:18:54]Read from MH i2c: E2 03 00 9B 02 00 90 00 11 [10:18:54]RAPDU: 90 00 [10:18:54]wFMCommunicate OK [10:18:54]wFMCommunicate request_size=255 [10:18:54]MH_SAM_APDU [10:18:54]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 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 0E EF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 [10:18:54]Write to MH i2c: E2 02 01 9C 02 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 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 0E EF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 00 00 E0 [10:18:54]Write i2c OK [10:18:54]MH_I2C_Read... [10:18:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:54]Read from MH i2c: E2 [10:18:54]MH_I2C_Read... [10:18:54]Read from MH i2c: E2 03 00 [10:18:54]MH_I2C_Read... [10:18:54]Read from MH i2c: E2 03 00 9C 02 00 90 00 12 [10:18:54]RAPDU: 90 00 [10:18:54]wFMCommunicate OK [10:18:54]wFMCommunicate request_size=37 [10:18:54]MH_SAM_APDU [10:18:54]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 87 C2 01 00 35 04 06 00 42 78 0E 6A 43 9A [10:18:54]Write to MH i2c: E2 28 00 9D 02 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 87 C2 01 00 35 04 06 00 42 78 0E 6A 43 9A 00 00 C4 [10:18:54]Write i2c OK [10:18:54]MH_I2C_Read... [10:18:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:55]Read from MH i2c: E2 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 03 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 03 00 9D 02 00 90 00 13 [10:18:55]RAPDU: 90 00 [10:18:55]wFMCommunicate OK [10:18:55]wFMCommunicate request_size=4 [10:18:55]MH_SAM_APDU [10:18:55]CAPDU: 80 0D 03 02 [10:18:55]Write to MH i2c: E2 08 00 9E 02 80 0D 03 02 00 00 00 00 1B [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:55]Read from MH i2c: E2 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 0B 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 0B 00 9E 02 00 05 4F 38 C3 10 FB 12 E1 90 00 69 [10:18:55]RAPDU: 05 4F 38 C3 10 FB 12 E1 90 00 [10:18:55]wFMCommunicate OK [10:18:55]SAM_PROTO_SignData done [10:18:55]FM_MakeSignedData done [10:18:55]CreateOFDProtocolMessage [10:18:55]wFMCommunicate request_size=4 [10:18:55]MH_SAM_APDU [10:18:55]CAPDU: 80 11 00 00 [10:18:55]Write to MH i2c: E2 08 00 9F 02 80 11 00 00 00 00 00 00 1B [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:55]Read from MH i2c: E2 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 17 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 17 00 9F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 69 [10:18:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:18:55]wFMCommunicate OK [10:18:55]CreateOFDProtocolMessage done [10:18:55]OFDSenderStorePacket 115335 [10:18:55]StoreOFDPacket docnum=115335 [10:18:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2A 01 00 00 37 A5 22 01 6D 55 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 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 0E EF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 87 C2 01 00 35 04 06 00 42 78 0E 6A 43 9A 05 4F 38 C3 10 FB 12 E1 [10:18:55]CheckFolder [10:18:55]dirname=/storage/ofd_packets [10:18:55]CheckFolder done [10:18:55]ProducePacketName [10:18:55]name=ofd_packets/00115335 [10:18:55]NVStorageSaveData ofd_packets/00115335 [10:18:55]File name is /storage/ofd_packets/00115335 [10:18:55]Write 328 bytes [10:18:55]NVStorageSaveData done [10:18:55]OFDSenderStorePacket done [10:18:55]KKMCreateOFDPacket done [10:18:55]NVStorageSaveData kkm_last_timestamp [10:18:55]File name is /storage/kkm_last_timestamp [10:18:55]Write 4 bytes [10:18:55]NVStorageSaveData done [10:18:55]ExternCall_PrintAddStr [10:18:55]wPrintStart [10:18:55]Write to MH i2c: 01 00 00 A0 02 A2 [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: 01 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: 01 07 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: 01 07 00 A0 02 00 00 00 00 00 FF 0F B7 [10:18:55]RasterBufferAndPrint [10:18:55]line Счет N : (3)343795 [10:18:55]line ИНН: 02508201610067 [10:18:55]line Контрольно-Кассовый Чек [10:18:55]line ПРОДАЖА [10:18:55]line Товар: 90162602 [10:18:55]line Энерг напиток Red bull 0,25л [10:18:55]line 1.000 * 185.00 [10:18:55]line = 185.00 [10:18:55]line НДС 12% НСП 1% [10:18:55]line > о реализуемом товаре [10:18:55]line ИТОГО: 185.00 [10:18:55]line НСП 1% : 1.64 [10:18:55]line НДС 12% : 19.65 [10:18:55]line Наличными: 185.00 [10:18:55]line Безнал.: 0.00 [10:18:55]line Место: АЗС № 90 "Партнер Нефть" [10:18:55]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:18:55]line СНО: Общий режим [10:18:55]line Чек 53 22.09.2024 10:18 [10:18:55]line Смена: 471 ФФД: 1.0 [10:18:55]line ЗНМ: 0300000120 [10:18:55]line РНМ: 0000000000091831 [10:18:55]line Версия ККМ: 001 [10:18:55]line ФМ: 0000000000871830 [10:18:55]line ФД: 115335 [10:18:55]line ФПД: 73083405353882 [10:18:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T101854&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115335&fm=73083405353882&tin=02508201610067®Number=0000000000091831&sum=18500 [10:18:55]line 0 [10:18:55]OFD Sender: Processing packet 115335 [packets to send 481, broken 480] [10:18:55]ProducePacketName [10:18:55]name=ofd_packets/00115335 [10:18:55]OFD Sender: To server: pG, [10:18:55]CommunicateWithHost lk.salyk.kg:30040 [10:18:55]ConnectInit lk.salyk.kg [10:18:55]written 0, free lines is 4095 [10:18:55]Connected sock=10 [10:18:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2A 01 00 00 37 A5 22 01 6D 55 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 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 0E EF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 87 C2 01 00 35 04 06 00 42 78 0E 6A 43 9A 05 4F 38 C3 10 FB 12 E1 [10:18:55]Write to MH i2c: 01 00 00 C7 02 C9 [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: 01 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: 01 07 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: 01 07 00 C7 02 00 00 00 00 00 77 0C 53 [10:18:55]RasterBufferAndPrint [10:18:55]line [10:18:55]line [10:18:55]line [10:18:55]line [10:18:55]line [10:18:55]written 0, free lines is 3195 [10:18:55]MH_Cut [10:18:55]Write to MH i2c: D1 01 00 CE 02 01 A2 [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: D1 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: D1 01 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: D1 01 00 CE 02 00 A1 [10:18:55]Write to MH i2c: 01 00 00 CF 02 D1 [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 51 D0 47 00 CA 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 31 38 33 30 10 04 04 00 87 C2 01 00 F4 03 04 00 54 94 EF 66 B6 04 01 00 00 9D C9 9D 01 79 41 93 D2 [10:18:56]CommunicateWithHost err = 0 [10:18:56]CheckOFDResponse [10:18:56]1017 (14) - 77093643461234 [10:18:56]1041 (16) - 0000000000871830 [10:18:56]1040 (4) - 115335 [10:18:56]1012 (4) - 22.09.2024 03:51 [10:18:56]1206 (1) - 0 [10:18:56]OFD Sender: Remove packet 115335 [10:18:56]ProducePacketName [10:18:56]name=ofd_packets/00115335 [10:18:56]NVStorageDeleteData [10:18:56]OFD Sender: No OFD packet to send [10:18:57]*** Cut start [10:18:57]*** Partial cut [10:18:57]*** CUTSNS_PIN = 1 [10:18:57]*** CUTSNS_PIN = 0 [10:18:57]*** Brake cut motor [10:18:57]Read from MH i2c: 01 [10:18:57]MH_I2C_Read... [10:18:57]*** Stop cut motor [10:18:57]*** Cut end [10:18:57]Read from MH i2c: 01 07 00 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: 01 07 00 CF 02 00 00 00 00 00 FF 0F E6 [10:18:57]process_action close_receipt done [10:18:57]requested_data is exist [10:18:57]produce_requested_data [10:18:57]requested_item fm.sn is exist - process it [10:18:57]wFMCommunicate request_size=4 [10:18:57]MH_SAM_APDU [10:18:57]CAPDU: 80 11 00 00 [10:18:57]Write to MH i2c: E2 08 00 D0 02 80 11 00 00 00 00 00 00 4C [10:18:57]Write i2c OK [10:18:57]MH_I2C_Read... [10:18:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:57]Read from MH i2c: E2 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 17 00 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 17 00 D0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9A [10:18:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:18:57]wFMCommunicate OK [10:18:57]requested_item fd.num is exist - process it [10:18:57]SAM_PROTO_GetFieldsCounters [10:18:57]wFMCommunicate request_size=4 [10:18:57]MH_SAM_APDU [10:18:57]CAPDU: 80 13 00 00 [10:18:57]Write to MH i2c: E2 08 00 D1 02 80 13 00 00 00 00 00 00 4F [10:18:57]Write i2c OK [10:18:57]MH_I2C_Read... [10:18:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:57]Read from MH i2c: E2 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 62 00 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 62 00 D1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 87 C2 01 00 0E 04 04 00 D7 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 29 [10:18:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 87 C2 01 00 0E 04 04 00 D7 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 [10:18:57]wFMCommunicate OK [10:18:57]SAM_PROTO_GetFieldsCounters done [10:18:57]requested_item shift.num is exist - process it [10:18:57]requested_item shift.opened is exist - process it [10:18:57]req_shift_opened [10:18:57]FM_GetShiftState [10:18:57]SAM_PROTO_GetShiftState [10:18:57]wFMCommunicate request_size=4 [10:18:57]MH_SAM_APDU [10:18:57]CAPDU: 80 13 01 00 [10:18:57]Write to MH i2c: E2 08 00 D2 02 80 13 01 00 00 00 00 00 51 [10:18:57]Write i2c OK [10:18:57]MH_I2C_Read... [10:18:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:58]Read from MH i2c: E2 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: E2 0E 00 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: E2 0E 00 D2 02 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 6A [10:18:58]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:18:58]wFMCommunicate OK [10:18:58]SAM_PROTO_GetShiftState done [10:18:58]FM_GetShiftState done [10:18:58]req_shift_opened done [10:18:58]requested_item shift.open_date is exist - process it [10:18:58]req_shift_open_date [10:18:58]req_shift_open_date done [10:18:58]produce_requested_data done [10:18:58]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115335,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [10:18:58]process_action_free close_receipt [10:18:58]json_value_free [10:18:58]json_value_free done [10:18:58]process_json_proto returns [10:18:58]Send response to host [10:18:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115335,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [10:18:58]free response buf [10:18:58]execute_script done [10:18:58]execute_script returns [10:18:58]free content buf [10:18:58]Sock 7.Close socket [10:18:58]Sock 7.Thread stoped [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:34]accept exits with 9 [10:21:34]New connection [10:21:34]New thread 3067030884 created [10:21:34]Thread 3067174244 joined [10:21:34]Waiting for new connection... [10:21:34] Sock 9.Parse request [10:21:34]Sock 9.Check first char [10:21:34]Sock 9.First char is OK [10:21:34]request: POST /json_proto HTTP/1.0 [10:21:34]Method: POST [10:21:34]URL: /json_proto [10:21:34]Method is POST - this is cgi request [10:21:34]url: /json_proto [10:21:34]query_string will be loaded in cgi processing [10:21:34]execute_cgi json_proto POST (null) [10:21:34]execute_cgi path=json_proto method=POST [10:21:34]POST find Content-Length [10:21:34]Host: 172.17.41.136:8080 [10:21:34]Content-Length: 684 [10:21:34]Content-Type: application/json [10:21:34] [10:21:34]POST finish read [10:21:34]Found Content-Length = 684 [10:21:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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" ] } } [10:21:34]execute_script... [10:21: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)24616583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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" ] } } [10:21:34]POST & json_proto [10:21:34]process_json_proto [10:21:34]json parsed OK: [10:21:34]protocol is kg_v1.0 [10:21:34]action value=close_receipt [10:21:34]process_action close_receipt [10:21:34]cmd_close_receipt [10:21:34]MH_GetDate [10:21:34]Write to MH i2c: F0 00 00 D3 02 C4 [10:21:34]Write i2c OK [10:21:34]MH_I2C_Read... [10:21:34]Read from MH i2c: F0 [10:21:34]MH_I2C_Read... [10:21:34]Read from MH i2c: F0 09 00 [10:21:34]MH_I2C_Read... [10:21:34]Read from MH i2c: F0 09 00 D3 02 00 AF EF EF 66 1B D0 5A 64 69 [10:21:34]GetLastDocTimeStamp 1727000334 [10:21:34]current date 1727000495 [10:21:34]FM_GetShiftState [10:21:34]SAM_PROTO_GetShiftState [10:21:34]wFMCommunicate request_size=4 [10:21:34]MH_SAM_APDU [10:21:34]CAPDU: 80 13 01 00 [10:21:34]Write to MH i2c: E2 08 00 D4 02 80 13 01 00 00 00 00 00 53 [10:21:34]Write i2c OK [10:21:34]MH_I2C_Read... [10:21:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:34]Read from MH i2c: E2 [10:21:34]MH_I2C_Read... [10:21:34]Read from MH i2c: E2 0E 00 [10:21:34]MH_I2C_Read... [10:21:34]Read from MH i2c: E2 0E 00 D4 02 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 6C [10:21:34]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:21:34]wFMCommunicate OK [10:21:34]SAM_PROTO_GetShiftState done [10:21:34]FM_GetShiftState done [10:21:34]opened in 1726965840 [10:21:34]opened+sec_in_day 1727052240 [10:21:34]quantity*price = 150041 [10:21:34]sum+1 = 150042 [10:21:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 54 22.09.2024 10:21 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115336 ФПД: 262913857921287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T102135&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115336&fm=262913857921287&tin=02508201610067®Number=0000000000091831&sum=150000 [10:21:35]StoreToDocumentArchive [10:21:35]shift 471 fd 115336 [10:21:35]save to /storage/0471/doc_00115336 [10:21:35]save last doc name /storage/0471/doc_00115336 to /storage/kkm_last_doc_name [10:21:35]save OK [10:21:35]Clear old archive folders... [10:21:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:35]tlvbuf is 016E7210 [10:21:35]SAM_PROTO_ClearQueue [10:21:35]wFMCommunicate request_size=4 [10:21:35]MH_SAM_APDU [10:21:35]CAPDU: 80 09 00 00 [10:21:35]Write to MH i2c: E2 08 00 E1 02 80 09 00 00 00 00 00 00 55 [10:21:35]Write i2c OK [10:21:35]MH_I2C_Read... [10:21:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:35]Read from MH i2c: E2 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: E2 03 00 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: E2 03 00 E1 02 00 90 00 57 [10:21:35]RAPDU: 90 00 [10:21:35]wFMCommunicate OK [10:21:35]SAM_PROTO_ClearQueue done [10:21:35]KKMCreateOFDPacket [10:21:35]OFDProtocolAddRootSTLVToBuf [10:21:35]FM_MakeSignedData [10:21:35]FM_MakeSignedData [10:21:35]SAM_PROTO_SignData [10:21:35]wFMCommunicate request_size=4 [10:21:35]MH_SAM_APDU [10:21:35]CAPDU: 80 0D 01 02 [10:21:35]Write to MH i2c: E2 08 00 E2 02 80 0D 01 02 00 00 00 00 5D [10:21:35]Write i2c OK [10:21:35]MH_I2C_Read... [10:21:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:35]Read from MH i2c: E2 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: E2 03 00 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: E2 03 00 E2 02 00 90 00 58 [10:21:35]RAPDU: 90 00 [10:21:35]wFMCommunicate OK [10:21:35]wFMCommunicate request_size=255 [10:21:35]MH_SAM_APDU [10:21:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 36 00 00 00 F4 03 04 00 AF EF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 88 C2 01 00 35 04 06 00 EF [10:21:35]Write to MH i2c: E2 02 01 E3 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 36 00 00 00 F4 03 04 00 AF EF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 88 C2 01 00 35 04 06 00 EF 00 00 84 [10:21:35]Write i2c OK [10:21:35]MH_I2C_Read... [10:21:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:36]Read from MH i2c: E2 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 03 00 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 03 00 E3 02 00 90 00 59 [10:21:36]RAPDU: 90 00 [10:21:36]wFMCommunicate OK [10:21:36]wFMCommunicate request_size=10 [10:21:36]MH_SAM_APDU [10:21:36]CAPDU: 80 0D 02 02 05 1E 67 1B A1 07 [10:21:36]Write to MH i2c: E2 0D 00 E4 02 80 0D 02 02 05 00 1E 67 1B A1 07 00 00 B2 [10:21:36]Write i2c OK [10:21:36]MH_I2C_Read... [10:21:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:36]Read from MH i2c: E2 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 03 00 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 03 00 E4 02 00 90 00 5A [10:21:36]RAPDU: 90 00 [10:21:36]wFMCommunicate OK [10:21:36]wFMCommunicate request_size=4 [10:21:36]MH_SAM_APDU [10:21:36]CAPDU: 80 0D 03 02 [10:21:36]Write to MH i2c: E2 08 00 E5 02 80 0D 03 02 00 00 00 00 62 [10:21:36]Write i2c OK [10:21:36]MH_I2C_Read... [10:21:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:36]Read from MH i2c: E2 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 0B 00 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 0B 00 E5 02 00 5D D2 C0 27 87 6A 86 6A 90 00 5A [10:21:36]RAPDU: 5D D2 C0 27 87 6A 86 6A 90 00 [10:21:36]wFMCommunicate OK [10:21:36]SAM_PROTO_SignData done [10:21:36]FM_MakeSignedData done [10:21:36]CreateOFDProtocolMessage [10:21:36]wFMCommunicate request_size=4 [10:21:36]MH_SAM_APDU [10:21:36]CAPDU: 80 11 00 00 [10:21:36]Write to MH i2c: E2 08 00 E6 02 80 11 00 00 00 00 00 00 62 [10:21:36]Write i2c OK [10:21:36]MH_I2C_Read... [10:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:36]Read from MH i2c: E2 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 17 00 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 17 00 E6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B0 [10:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:21:36]wFMCommunicate OK [10:21:36]CreateOFDProtocolMessage done [10:21:36]OFDSenderStorePacket 115336 [10:21:36]StoreOFDPacket docnum=115336 [10:21:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 EA 57 07 01 13 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 36 00 00 00 F4 03 04 00 AF EF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 88 C2 01 00 35 04 06 00 EF 1E 67 1B A1 07 5D D2 C0 27 87 6A 86 6A [10:21:36]CheckFolder [10:21:36]dirname=/storage/ofd_packets [10:21:36]CheckFolder done [10:21:36]ProducePacketName [10:21:36]name=ofd_packets/00115336 [10:21:36]NVStorageSaveData ofd_packets/00115336 [10:21:36]File name is /storage/ofd_packets/00115336 [10:21:36]Write 301 bytes [10:21:36]NVStorageSaveData done [10:21:36]OFDSenderStorePacket done [10:21:36]KKMCreateOFDPacket done [10:21:36]NVStorageSaveData kkm_last_timestamp [10:21:36]File name is /storage/kkm_last_timestamp [10:21:36]Write 4 bytes [10:21:36]NVStorageSaveData done [10:21:36]ExternCall_PrintAddStr [10:21:36]wPrintStart [10:21:36]Write to MH i2c: 01 00 00 E7 02 E9 [10:21:36]Write i2c OK [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: 01 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: 01 07 00 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: 01 07 00 E7 02 00 00 00 00 00 FF 0F FE [10:21:36]RasterBufferAndPrint [10:21:36]line Счет N : (1)24616583 [10:21:36]line ИНН: 02508201610067 [10:21:36]line Контрольно-Кассовый Чек [10:21:36]line ПРОДАЖА [10:21:36]line ТРК (МРК, ГНК) : 63 [10:21:36]line Товар: 2710124130 [10:21:36]line Аи-92-К-5 [10:21:36]line 22.130 * 67.80 [10:21:36]line = 1500.41 [10:21:36]line НДС 12% НСП 1% [10:21:36]line > о реализуемом товаре [10:21:36]line ОКРУГЛЕНИЕ: -0.41 [10:21:36]line ИТОГО: 1500.00 [10:21:36]line Внесено: 1500.00 [10:21:36]line СДАЧА: 0.00 [10:21:36]line НСП 1% : 13.28 [10:21:36]line НДС 12% : 159.34 [10:21:36]line Наличными: 1500.00 [10:21:36]line Безнал.: 0.00 [10:21:36]line Место: АЗС № 90 "Партнер Нефть" [10:21:36]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:21:36]line СНО: Общий режим [10:21:36]line Чек 54 22.09.2024 10:21 [10:21:36]line Смена: 471 ФФД: 1.0 [10:21:36]line ЗНМ: 0300000120 [10:21:36]line РНМ: 0000000000091831 [10:21:36]line Версия ККМ: 001 [10:21:36]line ФМ: 0000000000871830 [10:21:36]line ФД: 115336 [10:21:36]line ФПД: 262913857921287 [10:21:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T102135&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115336&fm=262913857921287&tin=02508201610067®Number=0000000000091831&sum=150000 [10:21:36]OFD Sender: Processing packet 115336 [packets to send 481, broken 480] [10:21:36]ProducePacketName [10:21:36]name=ofd_packets/00115336 [10:21:36]OFD Sender: To server: pG, [10:21:36]CommunicateWithHost lk.salyk.kg:30040 [10:21:36]ConnectInit lk.salyk.kg [10:21:36]written 0, free lines is 4095 [10:21:36]Connected sock=10 [10:21:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 EA 57 07 01 13 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 36 00 00 00 F4 03 04 00 AF EF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 88 C2 01 00 35 04 06 00 EF 1E 67 1B A1 07 5D D2 C0 27 87 6A 86 6A [10:21:37]Write to MH i2c: 01 00 00 11 03 14 [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: 01 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: 01 07 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: 01 07 00 11 03 00 00 00 00 00 53 0C 7A [10:21:37]RasterBufferAndPrint [10:21:37]line [10:21:37]line [10:21:37]line [10:21:37]line [10:21:37]line [10:21:37]written 0, free lines is 3161 [10:21:37]MH_Cut [10:21:37]Write to MH i2c: D1 01 00 18 03 01 ED [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: D1 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: D1 01 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: D1 01 00 18 03 00 EC [10:21:37]Write to MH i2c: 01 00 00 19 03 1C [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 DF 13 47 00 94 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 88 C2 01 00 F4 03 04 00 F6 94 EF 66 B6 04 01 00 00 E0 2E 7B 03 10 90 1C 13 [10:21:37]CommunicateWithHost err = 0 [10:21:37]CheckOFDResponse [10:21:37]1017 (14) - 77093643461234 [10:21:37]1041 (16) - 0000000000871830 [10:21:37]1040 (4) - 115336 [10:21:37]1012 (4) - 22.09.2024 03:54 [10:21:37]1206 (1) - 0 [10:21:37]OFD Sender: Remove packet 115336 [10:21:37]ProducePacketName [10:21:37]name=ofd_packets/00115336 [10:21:37]NVStorageDeleteData [10:21:37]OFD Sender: No OFD packet to send [10:21:38]*** Cut start [10:21:38]*** Partial cut [10:21:38]*** CUTSNS_PIN = 1 [10:21:38]*** CUTSNS_PIN = 0 [10:21:38]*** Brake cut motor [10:21:39]Read from MH i2c: 01 [10:21:39]MH_I2C_Read... [10:21:39]*** Stop cut motor [10:21:39]*** Cut end [10:21:39]Read from MH i2c: 01 07 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: 01 07 00 19 03 00 00 00 00 00 FF 0F 31 [10:21:39]process_action close_receipt done [10:21:39]requested_data is exist [10:21:39]produce_requested_data [10:21:39]requested_item fm.sn is exist - process it [10:21:39]wFMCommunicate request_size=4 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 11 00 00 [10:21:39]Write to MH i2c: E2 08 00 1A 03 80 11 00 00 00 00 00 00 97 [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 17 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 17 00 1A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E5 [10:21:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:21:39]wFMCommunicate OK [10:21:39]requested_item fd.num is exist - process it [10:21:39]SAM_PROTO_GetFieldsCounters [10:21:39]wFMCommunicate request_size=4 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 13 00 00 [10:21:39]Write to MH i2c: E2 08 00 1B 03 80 13 00 00 00 00 00 00 9A [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 62 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 62 00 1B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 88 C2 01 00 0E 04 04 00 D7 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 78 [10:21:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 88 C2 01 00 0E 04 04 00 D7 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 [10:21:39]wFMCommunicate OK [10:21:39]SAM_PROTO_GetFieldsCounters done [10:21:39]requested_item shift.num is exist - process it [10:21:39]requested_item shift.opened is exist - process it [10:21:39]req_shift_opened [10:21:39]FM_GetShiftState [10:21:39]SAM_PROTO_GetShiftState [10:21:39]wFMCommunicate request_size=4 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 13 01 00 [10:21:39]Write to MH i2c: E2 08 00 1C 03 80 13 01 00 00 00 00 00 9C [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 0E 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 0E 00 1C 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B5 [10:21:39]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:21:39]wFMCommunicate OK [10:21:39]SAM_PROTO_GetShiftState done [10:21:39]FM_GetShiftState done [10:21:39]req_shift_opened done [10:21:39]requested_item shift.open_date is exist - process it [10:21:39]req_shift_open_date [10:21:39]req_shift_open_date done [10:21:39]produce_requested_data done [10:21:39]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115336,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [10:21:39]process_action_free close_receipt [10:21:39]json_value_free [10:21:39]json_value_free done [10:21:39]process_json_proto returns [10:21:39]Send response to host [10:21:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115336,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [10:21:39]free response buf [10:21:39]execute_script done [10:21:39]execute_script returns [10:21:39]free content buf [10:21:39]Sock 9.Close socket [10:21:39]Sock 9.Thread stoped [10:21:42]OFD Sender: No OFD packet to send [10:21:47]OFD Sender: No OFD packet to send [10:21:52]OFD Sender: No OFD packet to send [10:21:57]OFD Sender: No OFD packet to send [10:22:02]OFD Sender: No OFD packet to send [10:22:07]OFD Sender: No OFD packet to send [10:22:12]OFD Sender: No OFD packet to send [10:22:13]accept exits with 7 [10:22:13]New connection [10:22:13]New thread 3067174244 created [10:22:13]Thread 3067030884 joined [10:22:13]Waiting for new connection... [10:22:13] Sock 7.Parse request [10:22:13]Sock 7.Check first char [10:22:13]Sock 7.First char is OK [10:22:13]request: POST /json_proto HTTP/1.0 [10:22:13]Method: POST [10:22:13]URL: /json_proto [10:22:13]Method is POST - this is cgi request [10:22:13]url: /json_proto [10:22:13]query_string will be loaded in cgi processing [10:22:13]execute_cgi json_proto POST (null) [10:22:13]execute_cgi path=json_proto method=POST [10:22:13]POST find Content-Length [10:22:13]Host: 172.17.41.136:8080 [10:22:13]Content-Length: 680 [10:22:13]Content-Type: application/json [10:22:13] [10:22:13]POST finish read [10:22:13]Found Content-Length = 680 [10:22:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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:22:13]execute_script... [10:22: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)24616585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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:22:13]POST & json_proto [10:22:13]process_json_proto [10:22:13]json parsed OK: [10:22:13]protocol is kg_v1.0 [10:22:13]action value=close_receipt [10:22:13]process_action close_receipt [10:22:13]cmd_close_receipt [10:22:13]MH_GetDate [10:22:13]Write to MH i2c: F0 00 00 1D 03 0F [10:22:13]Write i2c OK [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: F0 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: F0 09 00 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: F0 09 00 1D 03 00 D6 EF EF 66 1B D0 5A 64 DB [10:22:13]GetLastDocTimeStamp 1727000495 [10:22:13]current date 1727000534 [10:22:13]FM_GetShiftState [10:22:13]SAM_PROTO_GetShiftState [10:22:13]wFMCommunicate request_size=4 [10:22:13]MH_SAM_APDU [10:22:13]CAPDU: 80 13 01 00 [10:22:13]Write to MH i2c: E2 08 00 1E 03 80 13 01 00 00 00 00 00 9E [10:22:13]Write i2c OK [10:22:13]MH_I2C_Read... [10:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:13]Read from MH i2c: E2 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 0E 00 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 0E 00 1E 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B7 [10:22:13]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:22:13]wFMCommunicate OK [10:22:13]SAM_PROTO_GetShiftState done [10:22:13]FM_GetShiftState done [10:22:13]opened in 1726965840 [10:22:13]opened+sec_in_day 1727052240 [10:22:13]quantity*price = 70037 [10:22:13]sum+1 = 70038 [10:22:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 55 22.09.2024 10:22 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115337 ФПД: 257661558837318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T102214&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115337&fm=257661558837318&tin=02508201610067®Number=0000000000091831&sum=70000 [10:22:14]StoreToDocumentArchive [10:22:14]shift 471 fd 115337 [10:22:14]save to /storage/0471/doc_00115337 [10:22:14]save last doc name /storage/0471/doc_00115337 to /storage/kkm_last_doc_name [10:22:14]save OK [10:22:14]Clear old archive folders... [10:22:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:14]tlvbuf is 01705390 [10:22:14]SAM_PROTO_ClearQueue [10:22:14]wFMCommunicate request_size=4 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 09 00 00 [10:22:14]Write to MH i2c: E2 08 00 2B 03 80 09 00 00 00 00 00 00 A0 [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 2B 03 00 90 00 A2 [10:22:14]RAPDU: 90 00 [10:22:14]wFMCommunicate OK [10:22:14]SAM_PROTO_ClearQueue done [10:22:14]KKMCreateOFDPacket [10:22:14]OFDProtocolAddRootSTLVToBuf [10:22:14]FM_MakeSignedData [10:22:14]FM_MakeSignedData [10:22:14]SAM_PROTO_SignData [10:22:14]wFMCommunicate request_size=4 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 0D 01 02 [10:22:14]Write to MH i2c: E2 08 00 2C 03 80 0D 01 02 00 00 00 00 A8 [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 2C 03 00 90 00 A3 [10:22:14]RAPDU: 90 00 [10:22:14]wFMCommunicate OK [10:22:14]wFMCommunicate request_size=255 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 37 00 00 00 F4 03 04 00 D6 EF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 89 C2 01 00 35 04 06 00 EA [10:22:14]Write to MH i2c: E2 02 01 2D 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 37 00 00 00 F4 03 04 00 D6 EF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 89 C2 01 00 35 04 06 00 EA 00 00 65 [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 2D 03 00 90 00 A4 [10:22:14]RAPDU: 90 00 [10:22:14]wFMCommunicate OK [10:22:14]wFMCommunicate request_size=10 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 0D 02 02 05 57 81 AF D0 46 [10:22:14]Write to MH i2c: E2 0D 00 2E 03 80 0D 02 02 05 00 57 81 AF D0 46 00 00 52 [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 2E 03 00 90 00 A5 [10:22:14]RAPDU: 90 00 [10:22:14]wFMCommunicate OK [10:22:14]wFMCommunicate request_size=4 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 0D 03 02 [10:22:14]Write to MH i2c: E2 08 00 2F 03 80 0D 03 02 00 00 00 00 AD [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 0B 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 0B 00 2F 03 00 34 A4 3F 45 C6 7B 30 72 90 00 ED [10:22:14]RAPDU: 34 A4 3F 45 C6 7B 30 72 90 00 [10:22:14]wFMCommunicate OK [10:22:14]SAM_PROTO_SignData done [10:22:14]FM_MakeSignedData done [10:22:14]CreateOFDProtocolMessage [10:22:14]wFMCommunicate request_size=4 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 11 00 00 [10:22:14]Write to MH i2c: E2 08 00 30 03 80 11 00 00 00 00 00 00 AD [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 17 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 17 00 30 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FB [10:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:22:14]wFMCommunicate OK [10:22:14]CreateOFDProtocolMessage done [10:22:14]OFDSenderStorePacket 115337 [10:22:14]StoreOFDPacket docnum=115337 [10:22:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 7B EB 07 01 64 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 37 00 00 00 F4 03 04 00 D6 EF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 89 C2 01 00 35 04 06 00 EA 57 81 AF D0 46 34 A4 3F 45 C6 7B 30 72 [10:22:14]CheckFolder [10:22:14]dirname=/storage/ofd_packets [10:22:14]CheckFolder done [10:22:14]ProducePacketName [10:22:14]name=ofd_packets/00115337 [10:22:14]NVStorageSaveData ofd_packets/00115337 [10:22:14]File name is /storage/ofd_packets/00115337 [10:22:14]Write 301 bytes [10:22:14]NVStorageSaveData done [10:22:14]OFDSenderStorePacket done [10:22:14]KKMCreateOFDPacket done [10:22:14]NVStorageSaveData kkm_last_timestamp [10:22:14]File name is /storage/kkm_last_timestamp [10:22:14]Write 4 bytes [10:22:14]NVStorageSaveData done [10:22:14]ExternCall_PrintAddStr [10:22:14]wPrintStart [10:22:14]Write to MH i2c: 01 00 00 31 03 34 [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: 01 [10:22:14]MH_I2C_Read... [10:22:14]OFD Sender: Processing packet 115337 [packets to send 481, broken 480] [10:22:14]ProducePacketName [10:22:14]name=ofd_packets/00115337 [10:22:14]OFD Sender: To server: pG, [10:22:14]CommunicateWithHost lk.salyk.kg:30040 [10:22:14]ConnectInit lk.salyk.kg [10:22:14]Read from MH i2c: 01 07 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: 01 07 00 31 03 00 00 00 00 00 FF 0F 49 [10:22:14]RasterBufferAndPrint [10:22:14]line Счет N : (1)24616585 [10:22:14]line ИНН: 02508201610067 [10:22:14]line Контрольно-Кассовый Чек [10:22:14]line ПРОДАЖА [10:22:14]line ТРК (МРК, ГНК) : 53 [10:22:14]line Товар: 2710124130 [10:22:14]line Аи-92-К-5 [10:22:14]line 10.330 * 67.80 [10:22:14]line = 700.37 [10:22:14]line НДС 12% НСП 1% [10:22:14]line > о реализуемом товаре [10:22:14]line ОКРУГЛЕНИЕ: -0.37 [10:22:14]line ИТОГО: 700.00 [10:22:14]line Внесено: 700.00 [10:22:14]line СДАЧА: 0.00 [10:22:14]line НСП 1% : 6.20 [10:22:14]line НДС 12% : 74.38 [10:22:14]line Наличными: 700.00 [10:22:14]line Безнал.: 0.00 [10:22:14]line Место: АЗС № 90 "Партнер Нефть" [10:22:14]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:22:14]line СНО: Общий режим [10:22:14]line Чек 55 22.09.2024 10:22 [10:22:14]line Смена: 471 ФФД: 1.0 [10:22:14]line ЗНМ: 0300000120 [10:22:14]line РНМ: 0000000000091831 [10:22:14]line Версия ККМ: 001 [10:22:14]line ФМ: 0000000000871830 [10:22:14]line ФД: 115337 [10:22:14]line ФПД: 257661558837318 [10:22:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T102214&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115337&fm=257661558837318&tin=02508201610067®Number=0000000000091831&sum=70000 [10:22:15]Connected sock=10 [10:22:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 7B EB 07 01 64 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 37 00 00 00 F4 03 04 00 D6 EF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 89 C2 01 00 35 04 06 00 EA 57 81 AF D0 46 34 A4 3F 45 C6 7B 30 72 [10:22:15]written 0, free lines is 4095 [10:22:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 31 B6 47 00 22 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 89 C2 01 00 F4 03 04 00 1C 95 EF 66 B6 04 01 00 00 A0 FB DD 2C 19 53 FA 16 [10:22:15]CommunicateWithHost err = 0 [10:22:15]CheckOFDResponse [10:22:15]1017 (14) - 77093643461234 [10:22:15]1041 (16) - 0000000000871830 [10:22:15]1040 (4) - 115337 [10:22:15]1012 (4) - 22.09.2024 03:55 [10:22:15]1206 (1) - 0 [10:22:15]OFD Sender: Remove packet 115337 [10:22:15]ProducePacketName [10:22:15]name=ofd_packets/00115337 [10:22:15]NVStorageDeleteData [10:22:15]Write to MH i2c: 01 00 00 5B 03 5E [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: 01 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: 01 07 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: 01 07 00 5B 03 00 00 00 00 00 55 0C C6 [10:22:15]RasterBufferAndPrint [10:22:15]line [10:22:15]line [10:22:15]line [10:22:15]line [10:22:15]line [10:22:15]written 0, free lines is 3161 [10:22:15]MH_Cut [10:22:15]Write to MH i2c: D1 01 00 62 03 01 37 [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: D1 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: D1 01 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: D1 01 00 62 03 00 36 [10:22:15]Write to MH i2c: 01 00 00 63 03 66 [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]OFD Sender: No OFD packet to send [10:22:17]*** Cut start [10:22:17]*** Partial cut [10:22:17]*** CUTSNS_PIN = 1 [10:22:17]*** CUTSNS_PIN = 0 [10:22:17]*** Brake cut motor [10:22:17]Read from MH i2c: 01 [10:22:17]MH_I2C_Read... [10:22:17]*** Stop cut motor [10:22:17]*** Cut end [10:22:17]Read from MH i2c: 01 07 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: 01 07 00 63 03 00 00 00 00 00 FF 0F 7B [10:22:17]process_action close_receipt done [10:22:17]requested_data is exist [10:22:17]produce_requested_data [10:22:17]requested_item fm.sn is exist - process it [10:22:17]wFMCommunicate request_size=4 [10:22:17]MH_SAM_APDU [10:22:17]CAPDU: 80 11 00 00 [10:22:17]Write to MH i2c: E2 08 00 64 03 80 11 00 00 00 00 00 00 E1 [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:17]Read from MH i2c: E2 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 17 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 17 00 64 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2F [10:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:22:17]wFMCommunicate OK [10:22:17]requested_item fd.num is exist - process it [10:22:17]SAM_PROTO_GetFieldsCounters [10:22:17]wFMCommunicate request_size=4 [10:22:17]MH_SAM_APDU [10:22:17]CAPDU: 80 13 00 00 [10:22:17]Write to MH i2c: E2 08 00 65 03 80 13 00 00 00 00 00 00 E4 [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:17]Read from MH i2c: E2 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 62 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 62 00 65 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 89 C2 01 00 0E 04 04 00 D7 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 C6 [10:22:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 89 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:17]wFMCommunicate OK [10:22:17]SAM_PROTO_GetFieldsCounters done [10:22:17]requested_item shift.num is exist - process it [10:22:17]requested_item shift.opened is exist - process it [10:22:17]req_shift_opened [10:22:17]FM_GetShiftState [10:22:17]SAM_PROTO_GetShiftState [10:22:17]wFMCommunicate request_size=4 [10:22:17]MH_SAM_APDU [10:22:17]CAPDU: 80 13 01 00 [10:22:17]Write to MH i2c: E2 08 00 66 03 80 13 01 00 00 00 00 00 E6 [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:17]Read from MH i2c: E2 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 0E 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 0E 00 66 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 FF [10:22:17]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:22:17]wFMCommunicate OK [10:22:17]SAM_PROTO_GetShiftState done [10:22:17]FM_GetShiftState done [10:22:17]req_shift_opened done [10:22:17]requested_item shift.open_date is exist - process it [10:22:17]req_shift_open_date [10:22:17]req_shift_open_date done [10:22:17]produce_requested_data done [10:22:17]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115337,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [10:22:17]process_action_free close_receipt [10:22:17]json_value_free [10:22:17]json_value_free done [10:22:17]process_json_proto returns [10:22:17]Send response to host [10:22:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115337,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [10:22:17]free response buf [10:22:17]execute_script done [10:22:17]execute_script returns [10:22:17]free content buf [10:22:17]Sock 7.Close socket [10:22:17]Sock 7.Thread stoped [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:28]accept exits with 9 [10:22:28]New connection [10:22:28]New thread 3067030884 created [10:22:28]Thread 3067174244 joined [10:22:28]Waiting for new connection... [10:22:28] Sock 9.Parse request [10:22:28]Sock 9.Check first char [10:22:28]Sock 9.First char is OK [10:22:28]request: POST /json_proto HTTP/1.0 [10:22:28]Method: POST [10:22:28]URL: /json_proto [10:22:28]Method is POST - this is cgi request [10:22:28]url: /json_proto [10:22:28]query_string will be loaded in cgi processing [10:22:28]execute_cgi json_proto POST (null) [10:22:28]execute_cgi path=json_proto method=POST [10:22:28]POST find Content-Length [10:22:28]Host: 172.17.41.136:8080 [10:22:28]Content-Length: 786 [10:22:28]Content-Type: application/json [10:22:28] [10:22:28]POST finish read [10:22:28]Found Content-Length = 786 [10:22:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 28.860, "sum" : 2000.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" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:28]execute_script... [10:22: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)24616584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 28.860, "sum" : 2000.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" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:28]POST & json_proto [10:22:28]process_json_proto [10:22:28]json parsed OK: [10:22:28]protocol is kg_v1.0 [10:22:28]action value=close_receipt [10:22:28]process_action close_receipt [10:22:28]cmd_close_receipt [10:22:28]MH_GetDate [10:22:28]Write to MH i2c: F0 00 00 67 03 59 [10:22:28]Write i2c OK [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: F0 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: F0 09 00 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: F0 09 00 67 03 00 E5 EF EF 66 1B D0 5A 64 34 [10:22:28]GetLastDocTimeStamp 1727000534 [10:22:28]current date 1727000549 [10:22:28]FM_GetShiftState [10:22:28]SAM_PROTO_GetShiftState [10:22:28]wFMCommunicate request_size=4 [10:22:28]MH_SAM_APDU [10:22:28]CAPDU: 80 13 01 00 [10:22:28]Write to MH i2c: E2 08 00 68 03 80 13 01 00 00 00 00 00 E8 [10:22:28]Write i2c OK [10:22:28]MH_I2C_Read... [10:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:28]Read from MH i2c: E2 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 0E 00 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 0E 00 68 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 01 [10:22:28]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:22:28]wFMCommunicate OK [10:22:28]SAM_PROTO_GetShiftState done [10:22:28]FM_GetShiftState done [10:22:28]opened in 1726965840 [10:22:28]opened+sec_in_day 1727052240 [10:22:28]quantity*price = 199999 [10:22:28]sum+1 = 200001 [10:22:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 56 22.09.2024 10:22 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115338 ФПД: 156041373247514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T102229&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115338&fm=156041373247514&tin=02508201610067®Number=0000000000091831&sum=200000 [10:22:29]StoreToDocumentArchive [10:22:29]shift 471 fd 115338 [10:22:29]save to /storage/0471/doc_00115338 [10:22:29]save last doc name /storage/0471/doc_00115338 to /storage/kkm_last_doc_name [10:22:29]save OK [10:22:29]Clear old archive folders... [10:22:29]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:22:29]tlvbuf is 01702D30 [10:22:29]SAM_PROTO_ClearQueue [10:22:29]wFMCommunicate request_size=4 [10:22:29]MH_SAM_APDU [10:22:29]CAPDU: 80 09 00 00 [10:22:29]Write to MH i2c: E2 08 00 75 03 80 09 00 00 00 00 00 00 EA [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:29]Read from MH i2c: E2 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 03 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 03 00 75 03 00 90 00 EC [10:22:29]RAPDU: 90 00 [10:22:29]wFMCommunicate OK [10:22:29]SAM_PROTO_ClearQueue done [10:22:29]KKMCreateOFDPacket [10:22:29]OFDProtocolAddRootSTLVToBuf [10:22:29]FM_MakeSignedData [10:22:29]FM_MakeSignedData [10:22:29]SAM_PROTO_SignData [10:22:29]wFMCommunicate request_size=4 [10:22:29]MH_SAM_APDU [10:22:29]CAPDU: 80 0D 01 02 [10:22:29]Write to MH i2c: E2 08 00 76 03 80 0D 01 02 00 00 00 00 F2 [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:29]Read from MH i2c: E2 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 03 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 03 00 76 03 00 90 00 ED [10:22:29]RAPDU: 90 00 [10:22:29]wFMCommunicate OK [10:22:29]wFMCommunicate request_size=253 [10:22:29]MH_SAM_APDU [10:22:29]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 70 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 40 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 38 00 00 00 F4 03 04 00 E5 EF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8A C2 01 00 35 04 06 00 8D EB 36 9F 68 1A [10:22:29]Write to MH i2c: E2 00 01 77 03 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 70 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 40 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 38 00 00 00 F4 03 04 00 E5 EF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8A C2 01 00 35 04 06 00 8D EB 36 9F 68 1A 00 00 79 [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:29]Read from MH i2c: E2 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 03 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 03 00 77 03 00 90 00 EE [10:22:29]RAPDU: 90 00 [10:22:29]wFMCommunicate OK [10:22:29]wFMCommunicate request_size=4 [10:22:29]MH_SAM_APDU [10:22:29]CAPDU: 80 0D 03 02 [10:22:29]Write to MH i2c: E2 08 00 78 03 80 0D 03 02 00 00 00 00 F6 [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:29]Read from MH i2c: E2 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 0B 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 0B 00 78 03 00 58 1A C9 8C E3 DD 36 E3 90 00 97 [10:22:29]RAPDU: 58 1A C9 8C E3 DD 36 E3 90 00 [10:22:29]wFMCommunicate OK [10:22:29]SAM_PROTO_SignData done [10:22:29]FM_MakeSignedData done [10:22:29]CreateOFDProtocolMessage [10:22:29]wFMCommunicate request_size=4 [10:22:29]MH_SAM_APDU [10:22:29]CAPDU: 80 11 00 00 [10:22:29]Write to MH i2c: E2 08 00 79 03 80 11 00 00 00 00 00 00 F6 [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:29]Read from MH i2c: E2 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 17 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 17 00 79 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 44 [10:22:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:22:29]wFMCommunicate OK [10:22:29]CreateOFDProtocolMessage done [10:22:29]OFDSenderStorePacket 115338 [10:22:29]StoreOFDPacket docnum=115338 [10:22:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 D9 8D 00 01 8E F5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 70 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 40 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 38 00 00 00 F4 03 04 00 E5 EF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8A C2 01 00 35 04 06 00 8D EB 36 9F 68 1A 58 1A C9 8C E3 DD 36 E3 [10:22:29]CheckFolder [10:22:29]dirname=/storage/ofd_packets [10:22:29]CheckFolder done [10:22:29]ProducePacketName [10:22:29]name=ofd_packets/00115338 [10:22:29]NVStorageSaveData ofd_packets/00115338 [10:22:29]File name is /storage/ofd_packets/00115338 [10:22:29]Write 294 bytes [10:22:29]NVStorageSaveData done [10:22:29]OFDSenderStorePacket done [10:22:29]KKMCreateOFDPacket done [10:22:29]NVStorageSaveData kkm_last_timestamp [10:22:29]File name is /storage/kkm_last_timestamp [10:22:29]Write 4 bytes [10:22:29]NVStorageSaveData done [10:22:29]ExternCall_PrintAddStr [10:22:29]wPrintStart [10:22:29]Write to MH i2c: 01 00 00 7A 03 7D [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: 01 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: 01 07 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: 01 07 00 7A 03 00 00 00 00 00 FF 0F 92 [10:22:29]RasterBufferAndPrint [10:22:29]line Счет N : (1)24616584 [10:22:29]line ИНН: 02508201610067 [10:22:29]line Контрольно-Кассовый Чек [10:22:29]line ПРОДАЖА [10:22:29]line ТРК (МРК, ГНК) : 44 [10:22:29]line Товар: 2710124130 [10:22:29]line SU-92 [10:22:29]line 28.860 * 69.30 [10:22:29]line = 2000.00 [10:22:29]line НДС 12% НСП 1% [10:22:29]line > о реализуемом товаре [10:22:29]line ИТОГО: 2000.00 [10:22:29]line НСП 1% : 17.70 [10:22:29]line НДС 12% : 212.39 [10:22:29]line Наличными: 0.00 [10:22:29]line Безнал.: 2000.00 [10:22:29]line Место: АЗС № 90 "Партнер Нефть" [10:22:29]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:22:29]line СНО: Общий режим [10:22:29]line Чек 56 22.09.2024 10:22 [10:22:29]line Смена: 471 ФФД: 1.0 [10:22:29]line ЗНМ: 0300000120 [10:22:29]line РНМ: 0000000000091831 [10:22:29]line Версия ККМ: 001 [10:22:29]line Платежная система: O! деньги [10:22:29]line ФМ: 0000000000871830 [10:22:29]line ФД: 115338 [10:22:29]line ФПД: 156041373247514 [10:22:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T102229&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115338&fm=156041373247514&tin=02508201610067®Number=0000000000091831&sum=200000 [10:22:29]written 0, free lines is 4095 [10:22:29]OFD Sender: Processing packet 115338 [packets to send 481, broken 480] [10:22:29]ProducePacketName [10:22:29]name=ofd_packets/00115338 [10:22:29]OFD Sender: To server: pG, [10:22:29]CommunicateWithHost lk.salyk.kg:30040 [10:22:29]ConnectInit lk.salyk.kg [10:22:30]Connected sock=10 [10:22:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 D9 8D 00 01 8E F5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 70 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 40 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 38 00 00 00 F4 03 04 00 E5 EF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8A C2 01 00 35 04 06 00 8D EB 36 9F 68 1A 58 1A C9 8C E3 DD 36 E3 [10:22:30]Write to MH i2c: 01 00 00 A3 03 A6 [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: 01 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: 01 07 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: 01 07 00 A3 03 00 00 00 00 00 72 0C 2B [10:22:30]RasterBufferAndPrint [10:22:30]line [10:22:30]line [10:22:30]line [10:22:30]line [10:22:30]line [10:22:30]written 0, free lines is 3192 [10:22:30]MH_Cut [10:22:30]Write to MH i2c: D1 01 00 AA 03 01 7F [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: D1 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: D1 01 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: D1 01 00 AA 03 00 7E [10:22:30]Write to MH i2c: 01 00 00 AB 03 AE [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 15 FE 47 00 A5 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 31 38 33 30 10 04 04 00 8A C2 01 00 F4 03 04 00 2B 95 EF 66 B6 04 01 00 00 7C B9 E1 0D DA 2C 88 2E [10:22:30]CommunicateWithHost err = 0 [10:22:30]CheckOFDResponse [10:22:30]1017 (14) - 77093643461234 [10:22:30]1041 (16) - 0000000000871830 [10:22:30]1040 (4) - 115338 [10:22:30]1012 (4) - 22.09.2024 03:55 [10:22:30]1206 (1) - 0 [10:22:30]OFD Sender: Remove packet 115338 [10:22:30]ProducePacketName [10:22:30]name=ofd_packets/00115338 [10:22:30]NVStorageDeleteData [10:22:30]OFD Sender: No OFD packet to send [10:22:31]*** Cut start [10:22:31]*** Partial cut [10:22:31]*** CUTSNS_PIN = 1 [10:22:31]*** CUTSNS_PIN = 0 [10:22:31]*** Brake cut motor [10:22:32]Read from MH i2c: 01 [10:22:32]MH_I2C_Read... [10:22:32]*** Stop cut motor [10:22:32]*** Cut end [10:22:32]Read from MH i2c: 01 07 00 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: 01 07 00 AB 03 00 00 00 00 00 FF 0F C3 [10:22:32]process_action close_receipt done [10:22:32]requested_data is exist [10:22:32]produce_requested_data [10:22:32]requested_item fm.sn is exist - process it [10:22:32]wFMCommunicate request_size=4 [10:22:32]MH_SAM_APDU [10:22:32]CAPDU: 80 11 00 00 [10:22:32]Write to MH i2c: E2 08 00 AC 03 80 11 00 00 00 00 00 00 29 [10:22:32]Write i2c OK [10:22:32]MH_I2C_Read... [10:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:32]Read from MH i2c: E2 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 17 00 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 17 00 AC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 77 [10:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:22:32]wFMCommunicate OK [10:22:32]requested_item fd.num is exist - process it [10:22:32]SAM_PROTO_GetFieldsCounters [10:22:32]wFMCommunicate request_size=4 [10:22:32]MH_SAM_APDU [10:22:32]CAPDU: 80 13 00 00 [10:22:32]Write to MH i2c: E2 08 00 AD 03 80 13 00 00 00 00 00 00 2C [10:22:32]Write i2c OK [10:22:32]MH_I2C_Read... [10:22:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:32]Read from MH i2c: E2 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 62 00 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 62 00 AD 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8A C2 01 00 0E 04 04 00 D7 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 12 [10:22: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8A C2 01 00 0E 04 04 00 D7 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:22:32]wFMCommunicate OK [10:22:32]SAM_PROTO_GetFieldsCounters done [10:22:32]requested_item shift.num is exist - process it [10:22:32]requested_item shift.opened is exist - process it [10:22:32]req_shift_opened [10:22:32]FM_GetShiftState [10:22:32]SAM_PROTO_GetShiftState [10:22:32]wFMCommunicate request_size=4 [10:22:32]MH_SAM_APDU [10:22:32]CAPDU: 80 13 01 00 [10:22:32]Write to MH i2c: E2 08 00 AE 03 80 13 01 00 00 00 00 00 2E [10:22:32]Write i2c OK [10:22:32]MH_I2C_Read... [10:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:32]Read from MH i2c: E2 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 0E 00 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 0E 00 AE 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 47 [10:22:32]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:22:32]wFMCommunicate OK [10:22:32]SAM_PROTO_GetShiftState done [10:22:32]FM_GetShiftState done [10:22:32]req_shift_opened done [10:22:32]requested_item shift.open_date is exist - process it [10:22:32]req_shift_open_date [10:22:32]req_shift_open_date done [10:22:32]produce_requested_data done [10:22:32]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115338,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [10:22:32]process_action_free close_receipt [10:22:32]json_value_free [10:22:32]json_value_free done [10:22:32]process_json_proto returns [10:22:32]Send response to host [10:22:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115338,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [10:22:32]free response buf [10:22:32]execute_script done [10:22:32]execute_script returns [10:22:32]free content buf [10:22:32]Sock 9.Close socket [10:22:32]Sock 9.Thread stoped [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:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:44]accept exits with 7 [10:24:44]New connection [10:24:44]New thread 3067174244 created [10:24:44]Thread 3067030884 joined [10:24:44]Waiting for new connection... [10:24:44] Sock 7.Parse request [10:24:44]Sock 7.Check first char [10:24:44]Sock 7.First char is OK [10:24:44]request: POST /json_proto HTTP/1.0 [10:24:44]Method: POST [10:24:44]URL: /json_proto [10:24:44]Method is POST - this is cgi request [10:24:44]url: /json_proto [10:24:44]query_string will be loaded in cgi processing [10:24:44]execute_cgi json_proto POST (null) [10:24:44]execute_cgi path=json_proto method=POST [10:24:44]POST find Content-Length [10:24:44]Host: 172.17.41.136:8080 [10:24:44]Content-Length: 645 [10:24:44]Content-Type: application/json [10:24:44] [10:24:44]POST finish read [10:24:44]Found Content-Length = 645 [10:24:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343796", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:44]execute_script... [10:24:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343796", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:44]POST & json_proto [10:24:44]process_json_proto [10:24:44]json parsed OK: [10:24:44]protocol is kg_v1.0 [10:24:44]action value=close_receipt [10:24:44]process_action close_receipt [10:24:44]cmd_close_receipt [10:24:44]MH_GetDate [10:24:44]Write to MH i2c: F0 00 00 AF 03 A1 [10:24:44]Write i2c OK [10:24:44]MH_I2C_Read... [10:24:44]Read from MH i2c: F0 [10:24:44]MH_I2C_Read... [10:24:44]Read from MH i2c: F0 09 00 [10:24:44]MH_I2C_Read... [10:24:44]Read from MH i2c: F0 09 00 AF 03 00 6D F0 EF 66 1B D0 5A 64 05 [10:24:44]GetLastDocTimeStamp 1727000549 [10:24:44]current date 1727000685 [10:24:44]FM_GetShiftState [10:24:44]SAM_PROTO_GetShiftState [10:24:44]wFMCommunicate request_size=4 [10:24:44]MH_SAM_APDU [10:24:44]CAPDU: 80 13 01 00 [10:24:44]Write to MH i2c: E2 08 00 B0 03 80 13 01 00 00 00 00 00 30 [10:24:44]Write i2c OK [10:24:44]MH_I2C_Read... [10:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:44]Read from MH i2c: E2 [10:24:44]MH_I2C_Read... [10:24:44]Read from MH i2c: E2 0E 00 [10:24:44]MH_I2C_Read... [10:24:44]Read from MH i2c: E2 0E 00 B0 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 49 [10:24:44]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:24:44]wFMCommunicate OK [10:24:44]SAM_PROTO_GetShiftState done [10:24:44]FM_GetShiftState done [10:24:44]opened in 1726965840 [10:24:44]opened+sec_in_day 1727052240 [10:24:44]quantity*price = 6500 [10:24:44]sum+1 = 6501 [10:24:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 57 22.09.2024 10:24 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115339 ФПД: 108748728918739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T102445&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115339&fm=108748728918739&tin=02508201610067®Number=0000000000091831&sum=6500 0 [10:24:45]StoreToDocumentArchive [10:24:45]shift 471 fd 115339 [10:24:45]save to /storage/0471/doc_00115339 [10:24:45]save last doc name /storage/0471/doc_00115339 to /storage/kkm_last_doc_name [10:24:45]save OK [10:24:45]Clear old archive folders... [10:24:45]ProcessDocumentItem done err = 0, tmpTLVsize=272 [10:24:45]tlvbuf is 016F1D00 [10:24:45]SAM_PROTO_ClearQueue [10:24:45]wFMCommunicate request_size=4 [10:24:45]MH_SAM_APDU [10:24:45]CAPDU: 80 09 00 00 [10:24:45]Write to MH i2c: E2 08 00 BD 03 80 09 00 00 00 00 00 00 32 [10:24:45]Write i2c OK [10:24:45]MH_I2C_Read... [10:24:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:45]Read from MH i2c: E2 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 03 00 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 03 00 BD 03 00 90 00 34 [10:24:45]RAPDU: 90 00 [10:24:45]wFMCommunicate OK [10:24:45]SAM_PROTO_ClearQueue done [10:24:45]KKMCreateOFDPacket [10:24:45]OFDProtocolAddRootSTLVToBuf [10:24:45]FM_MakeSignedData [10:24:45]FM_MakeSignedData [10:24:45]SAM_PROTO_SignData [10:24:45]wFMCommunicate request_size=4 [10:24:45]MH_SAM_APDU [10:24:45]CAPDU: 80 0D 01 02 [10:24:45]Write to MH i2c: E2 08 00 BE 03 80 0D 01 02 00 00 00 00 3A [10:24:45]Write i2c OK [10:24:45]MH_I2C_Read... [10:24:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:45]Read from MH i2c: E2 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 03 00 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 03 00 BE 03 00 90 00 35 [10:24:45]RAPDU: 90 00 [10:24:45]wFMCommunicate OK [10:24:45]wFMCommunicate request_size=255 [10:24:45]MH_SAM_APDU [10:24:45]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 6D F0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [10:24:45]Write to MH i2c: E2 02 01 BF 03 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 6D F0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 46 [10:24:45]Write i2c OK [10:24:45]MH_I2C_Read... [10:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:45]Read from MH i2c: E2 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 03 00 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 03 00 BF 03 00 90 00 36 [10:24:45]RAPDU: 90 00 [10:24:45]wFMCommunicate OK [10:24:45]wFMCommunicate request_size=31 [10:24:45]MH_SAM_APDU [10:24:45]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 33 30 10 04 04 00 8B C2 01 00 35 04 06 00 62 E8 09 5B 62 D3 [10:24:45]Write to MH i2c: E2 22 00 C0 03 80 0D 02 02 1A 00 30 30 38 37 31 38 33 30 10 04 04 00 8B C2 01 00 35 04 06 00 62 E8 09 5B 62 D3 00 00 94 [10:24:45]Write i2c OK [10:24:45]MH_I2C_Read... [10:24:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:46]Read from MH i2c: E2 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: E2 03 00 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: E2 03 00 C0 03 00 90 00 37 [10:24:46]RAPDU: 90 00 [10:24:46]wFMCommunicate OK [10:24:46]wFMCommunicate request_size=4 [10:24:46]MH_SAM_APDU [10:24:46]CAPDU: 80 0D 03 02 [10:24:46]Write to MH i2c: E2 08 00 C1 03 80 0D 03 02 00 00 00 00 3F [10:24:46]Write i2c OK [10:24:46]MH_I2C_Read... [10:24:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:46]Read from MH i2c: E2 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: E2 0B 00 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: E2 0B 00 C1 03 00 7F C5 2C 46 07 2A D2 45 90 00 3E [10:24:46]RAPDU: 7F C5 2C 46 07 2A D2 45 90 00 [10:24:46]wFMCommunicate OK [10:24:46]SAM_PROTO_SignData done [10:24:46]FM_MakeSignedData done [10:24:46]CreateOFDProtocolMessage [10:24:46]wFMCommunicate request_size=4 [10:24:46]MH_SAM_APDU [10:24:46]CAPDU: 80 11 00 00 [10:24:46]Write to MH i2c: E2 08 00 C2 03 80 11 00 00 00 00 00 00 3F [10:24:46]Write i2c OK [10:24:46]MH_I2C_Read... [10:24:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:46]Read from MH i2c: E2 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: E2 17 00 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: E2 17 00 C2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8D [10:24:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:24:46]wFMCommunicate OK [10:24:46]CreateOFDProtocolMessage done [10:24:46]OFDSenderStorePacket 115339 [10:24:46]StoreOFDPacket docnum=115339 [10:24:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 41 E7 1C 01 AE C1 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 6D F0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8B C2 01 00 35 04 06 00 62 E8 09 5B 62 D3 7F C5 2C 46 07 2A D2 45 [10:24:46]CheckFolder [10:24:46]dirname=/storage/ofd_packets [10:24:46]CheckFolder done [10:24:46]ProducePacketName [10:24:46]name=ofd_packets/00115339 [10:24:46]NVStorageSaveData ofd_packets/00115339 [10:24:46]File name is /storage/ofd_packets/00115339 [10:24:46]Write 322 bytes [10:24:46]NVStorageSaveData done [10:24:46]OFDSenderStorePacket done [10:24:46]KKMCreateOFDPacket done [10:24:46]NVStorageSaveData kkm_last_timestamp [10:24:46]File name is /storage/kkm_last_timestamp [10:24:46]Write 4 bytes [10:24:46]NVStorageSaveData done [10:24:46]ExternCall_PrintAddStr [10:24:46]wPrintStart [10:24:46]Write to MH i2c: 01 00 00 C3 03 C6 [10:24:46]Write i2c OK [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: 01 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: 01 07 00 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: 01 07 00 C3 03 00 00 00 00 00 FF 0F DB [10:24:46]RasterBufferAndPrint [10:24:46]line Счет N : (3)343796 [10:24:46]line ИНН: 02508201610067 [10:24:46]line Контрольно-Кассовый Чек [10:24:46]line ПРОДАЖА [10:24:46]line Товар: 47011656 [10:24:46]line Водка Пшеничная 0,1л [10:24:46]line 1.000 * 65.00 [10:24:46]line = 65.00 [10:24:46]line НДС 12% НСП 1% [10:24:46]line > о реализуемом товаре [10:24:46]line ИТОГО: 65.00 [10:24:46]line НСП 1% : 0.57 [10:24:46]line НДС 12% : 6.90 [10:24:46]line Наличными: 65.00 [10:24:46]line Безнал.: 0.00 [10:24:46]line Место: АЗС № 90 "Партнер Нефть" [10:24:46]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:24:46]line СНО: Общий режим [10:24:46]line Чек 57 22.09.2024 10:24 [10:24:46]line Смена: 471 ФФД: 1.0 [10:24:46]line ЗНМ: 0300000120 [10:24:46]line РНМ: 0000000000091831 [10:24:46]line Версия ККМ: 001 [10:24:46]line ФМ: 0000000000871830 [10:24:46]line ФД: 115339 [10:24:46]line ФПД: 108748728918739 [10:24:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T102445&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115339&fm=108748728918739&tin=02508201610067®Number=0000000000091831&sum=6500 [10:24:46]line 0 [10:24:46]written 0, free lines is 4095 [10:24:46]OFD Sender: Processing packet 115339 [packets to send 481, broken 480] [10:24:46]ProducePacketName [10:24:46]name=ofd_packets/00115339 [10:24:46]OFD Sender: To server: pG, [10:24:46]CommunicateWithHost lk.salyk.kg:30040 [10:24:46]ConnectInit lk.salyk.kg [10:24:46]Connected sock=10 [10:24:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 41 E7 1C 01 AE C1 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 6D F0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8B C2 01 00 35 04 06 00 62 E8 09 5B 62 D3 7F C5 2C 46 07 2A D2 45 [10:24:46]Write to MH i2c: 01 00 00 EA 03 ED [10:24:46]Write i2c OK [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: 01 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: 01 07 00 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: 01 07 00 EA 03 00 00 00 00 00 91 0C 91 [10:24:46]RasterBufferAndPrint [10:24:46]line [10:24:46]line [10:24:46]line [10:24:46]line [10:24:46]line [10:24:46]written 0, free lines is 3223 [10:24:46]MH_Cut [10:24:46]Write to MH i2c: D1 01 00 F1 03 01 C6 [10:24:46]Write i2c OK [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: D1 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: D1 01 00 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: D1 01 00 F1 03 00 C5 [10:24:46]Write to MH i2c: 01 00 00 F2 03 F5 [10:24:46]Write i2c OK [10:24:46]MH_I2C_Read... [10:24:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B9 40 47 00 44 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8B C2 01 00 F4 03 04 00 B3 95 EF 66 B6 04 01 00 00 D9 F3 93 6D F5 88 DE FF [10:24:46]CommunicateWithHost err = 0 [10:24:46]CheckOFDResponse [10:24:46]1017 (14) - 77093643461234 [10:24:46]1041 (16) - 0000000000871830 [10:24:46]1040 (4) - 115339 [10:24:46]1012 (4) - 22.09.2024 03:57 [10:24:46]1206 (1) - 0 [10:24:46]OFD Sender: Remove packet 115339 [10:24:46]ProducePacketName [10:24:46]name=ofd_packets/00115339 [10:24:46]NVStorageDeleteData [10:24:47]OFD Sender: No OFD packet to send [10:24:47]*** Cut start [10:24:47]*** Partial cut [10:24:47]*** CUTSNS_PIN = 1 [10:24:47]*** CUTSNS_PIN = 0 [10:24:48]*** Brake cut motor [10:24:48]Read from MH i2c: 01 [10:24:48]MH_I2C_Read... [10:24:48]*** Stop cut motor [10:24:48]*** Cut end [10:24:48]Read from MH i2c: 01 07 00 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: 01 07 00 F2 03 00 00 00 00 00 FF 0F 0A [10:24:48]process_action close_receipt done [10:24:48]requested_data is exist [10:24:48]produce_requested_data [10:24:48]requested_item fm.sn is exist - process it [10:24:48]wFMCommunicate request_size=4 [10:24:48]MH_SAM_APDU [10:24:48]CAPDU: 80 11 00 00 [10:24:48]Write to MH i2c: E2 08 00 F3 03 80 11 00 00 00 00 00 00 70 [10:24:48]Write i2c OK [10:24:48]MH_I2C_Read... [10:24:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:48]Read from MH i2c: E2 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: E2 17 00 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: E2 17 00 F3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BE [10:24:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:24:48]wFMCommunicate OK [10:24:48]requested_item fd.num is exist - process it [10:24:48]SAM_PROTO_GetFieldsCounters [10:24:48]wFMCommunicate request_size=4 [10:24:48]MH_SAM_APDU [10:24:48]CAPDU: 80 13 00 00 [10:24:48]Write to MH i2c: E2 08 00 F4 03 80 13 00 00 00 00 00 00 73 [10:24:48]Write i2c OK [10:24:48]MH_I2C_Read... [10:24:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:48]Read from MH i2c: E2 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: E2 62 00 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: E2 62 00 F4 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8B C2 01 00 0E 04 04 00 D7 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 5D [10:24:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8B C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:48]wFMCommunicate OK [10:24:48]SAM_PROTO_GetFieldsCounters done [10:24:48]requested_item shift.num is exist - process it [10:24:48]requested_item shift.opened is exist - process it [10:24:48]req_shift_opened [10:24:48]FM_GetShiftState [10:24:48]SAM_PROTO_GetShiftState [10:24:48]wFMCommunicate request_size=4 [10:24:48]MH_SAM_APDU [10:24:48]CAPDU: 80 13 01 00 [10:24:48]Write to MH i2c: E2 08 00 F5 03 80 13 01 00 00 00 00 00 75 [10:24:48]Write i2c OK [10:24:48]MH_I2C_Read... [10:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:48]Read from MH i2c: E2 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: E2 0E 00 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: E2 0E 00 F5 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 8E [10:24:48]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:24:48]wFMCommunicate OK [10:24:48]SAM_PROTO_GetShiftState done [10:24:48]FM_GetShiftState done [10:24:48]req_shift_opened done [10:24:48]requested_item shift.open_date is exist - process it [10:24:48]req_shift_open_date [10:24:48]req_shift_open_date done [10:24:48]produce_requested_data done [10:24:48]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115339,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [10:24:48]process_action_free close_receipt [10:24:48]json_value_free [10:24:48]json_value_free done [10:24:48]process_json_proto returns [10:24:48]Send response to host [10:24:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115339,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [10:24:48]free response buf [10:24:48]execute_script done [10:24:48]execute_script returns [10:24:48]free content buf [10:24:48]Sock 7.Close socket [10:24:48]Sock 7.Thread stoped [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:18]accept exits with 9 [10:26:18]New connection [10:26:18]New thread 3067030884 created [10:26:18]Thread 3067174244 joined [10:26:18]Waiting for new connection... [10:26:18] Sock 9.Parse request [10:26:18]Sock 9.Check first char [10:26:18]Sock 9.First char is OK [10:26:18]request: POST /json_proto HTTP/1.0 [10:26:18]Method: POST [10:26:18]URL: /json_proto [10:26:18]Method is POST - this is cgi request [10:26:18]url: /json_proto [10:26:18]query_string will be loaded in cgi processing [10:26:18]execute_cgi json_proto POST (null) [10:26:18]execute_cgi path=json_proto method=POST [10:26:18]POST find Content-Length [10:26:18]Host: 172.17.41.136:8080 [10:26:18]Content-Length: 628 [10:26:18]Content-Type: application/json [10:26:18] [10:26:18]POST finish read [10:26:18]Found Content-Length = 628 [10:26:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343797", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:18]execute_script... [10:26:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343797", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:18]POST & json_proto [10:26:18]process_json_proto [10:26:18]json parsed OK: [10:26:18]protocol is kg_v1.0 [10:26:18]action value=close_receipt [10:26:18]process_action close_receipt [10:26:18]cmd_close_receipt [10:26:18]MH_GetDate [10:26:18]Write to MH i2c: F0 00 00 F6 03 E8 [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: F0 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: F0 09 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: F0 09 00 F6 03 00 CB F0 EF 66 1B D0 5A 64 AA [10:26:18]GetLastDocTimeStamp 1727000685 [10:26:18]current date 1727000779 [10:26:18]FM_GetShiftState [10:26:18]SAM_PROTO_GetShiftState [10:26:18]wFMCommunicate request_size=4 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 13 01 00 [10:26:18]Write to MH i2c: E2 08 00 F7 03 80 13 01 00 00 00 00 00 77 [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 0E 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 0E 00 F7 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 90 [10:26:18]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:26:18]wFMCommunicate OK [10:26:18]SAM_PROTO_GetShiftState done [10:26:18]FM_GetShiftState done [10:26:18]opened in 1726965840 [10:26:18]opened+sec_in_day 1727052240 [10:26:18]quantity*price = 13000 [10:26:18]sum+1 = 13001 [10:26:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 58 22.09.2024 10:26 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115340 ФПД: 239681091659411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T102619&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115340&fm=239681091659411&tin=02508201610067®Number=0000000000091831&sum=13000 0 [10:26:19]StoreToDocumentArchive [10:26:19]shift 471 fd 115340 [10:26:19]save to /storage/0471/doc_00115340 [10:26:19]save last doc name /storage/0471/doc_00115340 to /storage/kkm_last_doc_name [10:26:19]save OK [10:26:19]Clear old archive folders... [10:26:19]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:26:19]tlvbuf is 016F1E30 [10:26:19]SAM_PROTO_ClearQueue [10:26:19]wFMCommunicate request_size=4 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 09 00 00 [10:26:19]Write to MH i2c: E2 08 00 04 04 80 09 00 00 00 00 00 00 7A [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 04 04 00 90 00 7C [10:26:19]RAPDU: 90 00 [10:26:19]wFMCommunicate OK [10:26:19]SAM_PROTO_ClearQueue done [10:26:19]KKMCreateOFDPacket [10:26:19]OFDProtocolAddRootSTLVToBuf [10:26:19]FM_MakeSignedData [10:26:19]FM_MakeSignedData [10:26:19]SAM_PROTO_SignData [10:26:19]wFMCommunicate request_size=4 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 0D 01 02 [10:26:19]Write to MH i2c: E2 08 00 05 04 80 0D 01 02 00 00 00 00 82 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 05 04 00 90 00 7D [10:26:19]RAPDU: 90 00 [10:26:19]wFMCommunicate OK [10:26:19]wFMCommunicate request_size=255 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CB F0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 [10:26:19]Write to MH i2c: E2 02 01 06 04 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CB F0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 00 00 BC [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 06 04 00 90 00 7E [10:26:19]RAPDU: 90 00 [10:26:19]wFMCommunicate OK [10:26:19]wFMCommunicate request_size=35 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8C C2 01 00 35 04 06 00 D9 FD 1A 53 E6 93 [10:26:19]Write to MH i2c: E2 26 00 07 04 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8C C2 01 00 35 04 06 00 D9 FD 1A 53 E6 93 00 00 7E [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 07 04 00 90 00 7F [10:26:19]RAPDU: 90 00 [10:26:19]wFMCommunicate OK [10:26:19]wFMCommunicate request_size=4 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 0D 03 02 [10:26:19]Write to MH i2c: E2 08 00 08 04 80 0D 03 02 00 00 00 00 87 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 0B 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 0B 00 08 04 00 D4 E2 B8 F6 0A D3 0E BA 90 00 91 [10:26:19]RAPDU: D4 E2 B8 F6 0A D3 0E BA 90 00 [10:26:19]wFMCommunicate OK [10:26:19]SAM_PROTO_SignData done [10:26:19]FM_MakeSignedData done [10:26:19]CreateOFDProtocolMessage [10:26:19]wFMCommunicate request_size=4 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 11 00 00 [10:26:19]Write to MH i2c: E2 08 00 09 04 80 11 00 00 00 00 00 00 87 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 17 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 17 00 09 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D5 [10:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:26:19]wFMCommunicate OK [10:26:19]CreateOFDProtocolMessage done [10:26:19]OFDSenderStorePacket 115340 [10:26:19]StoreOFDPacket docnum=115340 [10:26:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 C7 C4 20 01 E6 27 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CB F0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8C C2 01 00 35 04 06 00 D9 FD 1A 53 E6 93 D4 E2 B8 F6 0A D3 0E BA [10:26:19]CheckFolder [10:26:19]dirname=/storage/ofd_packets [10:26:19]CheckFolder done [10:26:19]ProducePacketName [10:26:19]name=ofd_packets/00115340 [10:26:19]NVStorageSaveData ofd_packets/00115340 [10:26:19]File name is /storage/ofd_packets/00115340 [10:26:19]Write 326 bytes [10:26:19]NVStorageSaveData done [10:26:19]OFDSenderStorePacket done [10:26:19]KKMCreateOFDPacket done [10:26:19]NVStorageSaveData kkm_last_timestamp [10:26:19]File name is /storage/kkm_last_timestamp [10:26:19]Write 4 bytes [10:26:19]NVStorageSaveData done [10:26:19]ExternCall_PrintAddStr [10:26:19]wPrintStart [10:26:19]Write to MH i2c: 01 00 00 0A 04 0E [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 07 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 07 00 0A 04 00 00 00 00 00 FF 0F 23 [10:26:19]RasterBufferAndPrint [10:26:19]line Счет N : (3)343797 [10:26:19]line ИНН: 02508201610067 [10:26:19]line Контрольно-Кассовый Чек [10:26:19]line ПРОДАЖА [10:26:19]line Товар: 2000036230011 [10:26:19]line Кофе Латте XL(GABB TRADE) [10:26:19]line 1.000 * 130.00 [10:26:19]line = 130.00 [10:26:19]line НДС 12% НСП 1% [10:26:19]line > о реализуемом товаре [10:26:19]line ИТОГО: 130.00 [10:26:19]line НСП 1% : 1.15 [10:26:19]line НДС 12% : 13.80 [10:26:19]line Наличными: 130.00 [10:26:19]line Безнал.: 0.00 [10:26:19]line Место: АЗС № 90 "Партнер Нефть" [10:26:19]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:26:19]line СНО: Общий режим [10:26:19]line Чек 58 22.09.2024 10:26 [10:26:19]line Смена: 471 ФФД: 1.0 [10:26:19]line ЗНМ: 0300000120 [10:26:19]line РНМ: 0000000000091831 [10:26:19]line Версия ККМ: 001 [10:26:19]line ФМ: 0000000000871830 [10:26:19]line ФД: 115340 [10:26:19]line ФПД: 239681091659411 [10:26:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T102619&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115340&fm=239681091659411&tin=02508201610067®Number=0000000000091831&sum=13000 [10:26:19]line 0 [10:26:20]written 0, free lines is 4095 [10:26:20]OFD Sender: Processing packet 115340 [packets to send 481, broken 480] [10:26:20]ProducePacketName [10:26:20]name=ofd_packets/00115340 [10:26:20]OFD Sender: To server: pG, [10:26:20]CommunicateWithHost lk.salyk.kg:30040 [10:26:20]ConnectInit lk.salyk.kg [10:26:20]Write to MH i2c: 01 00 00 31 04 35 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: 01 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: 01 07 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: 01 07 00 31 04 00 00 00 00 00 72 0C BA [10:26:20]RasterBufferAndPrint [10:26:20]line [10:26:20]line [10:26:20]line [10:26:20]line [10:26:20]line [10:26:20]written 0, free lines is 3189 [10:26:20]MH_Cut [10:26:20]Write to MH i2c: D1 01 00 38 04 01 0E [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: D1 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: D1 01 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: D1 01 00 38 04 00 0D [10:26:20]Write to MH i2c: 01 00 00 39 04 3D [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]Connected sock=10 [10:26:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 C7 C4 20 01 E6 27 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CB F0 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8C C2 01 00 35 04 06 00 D9 FD 1A 53 E6 93 D4 E2 B8 F6 0A D3 0E BA [10:26:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 EB 4D 47 00 6E 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8C C2 01 00 F4 03 04 00 11 96 EF 66 B6 04 01 00 00 F6 0D 12 A4 13 40 A8 55 [10:26:20]CommunicateWithHost err = 0 [10:26:20]CheckOFDResponse [10:26:20]1017 (14) - 77093643461234 [10:26:20]1041 (16) - 0000000000871830 [10:26:20]1040 (4) - 115340 [10:26:20]1012 (4) - 22.09.2024 03:59 [10:26:20]1206 (1) - 0 [10:26:20]OFD Sender: Remove packet 115340 [10:26:20]ProducePacketName [10:26:20]name=ofd_packets/00115340 [10:26:20]NVStorageDeleteData [10:26:21]OFD Sender: No OFD packet to send [10:26:21]*** Cut start [10:26:21]*** Partial cut [10:26:21]*** CUTSNS_PIN = 1 [10:26:21]*** CUTSNS_PIN = 0 [10:26:21]*** Brake cut motor [10:26:22]Read from MH i2c: 01 [10:26:22]MH_I2C_Read... [10:26:22]*** Stop cut motor [10:26:22]*** Cut end [10:26:22]Read from MH i2c: 01 07 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: 01 07 00 39 04 00 00 00 00 00 FF 0F 52 [10:26:22]process_action close_receipt done [10:26:22]requested_data is exist [10:26:22]produce_requested_data [10:26:22]requested_item fm.sn is exist - process it [10:26:22]wFMCommunicate request_size=4 [10:26:22]MH_SAM_APDU [10:26:22]CAPDU: 80 11 00 00 [10:26:22]Write to MH i2c: E2 08 00 3A 04 80 11 00 00 00 00 00 00 B8 [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:22]Read from MH i2c: E2 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 17 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 17 00 3A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 06 [10:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:26:22]wFMCommunicate OK [10:26:22]requested_item fd.num is exist - process it [10:26:22]SAM_PROTO_GetFieldsCounters [10:26:22]wFMCommunicate request_size=4 [10:26:22]MH_SAM_APDU [10:26:22]CAPDU: 80 13 00 00 [10:26:22]Write to MH i2c: E2 08 00 3B 04 80 13 00 00 00 00 00 00 BB [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:22]Read from MH i2c: E2 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 62 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 62 00 3B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8C C2 01 00 0E 04 04 00 D7 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 A9 [10:26:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8C C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:22]wFMCommunicate OK [10:26:22]SAM_PROTO_GetFieldsCounters done [10:26:22]requested_item shift.num is exist - process it [10:26:22]requested_item shift.opened is exist - process it [10:26:22]req_shift_opened [10:26:22]FM_GetShiftState [10:26:22]SAM_PROTO_GetShiftState [10:26:22]wFMCommunicate request_size=4 [10:26:22]MH_SAM_APDU [10:26:22]CAPDU: 80 13 01 00 [10:26:22]Write to MH i2c: E2 08 00 3C 04 80 13 01 00 00 00 00 00 BD [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:22]Read from MH i2c: E2 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 0E 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 0E 00 3C 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D6 [10:26:22]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:26:22]wFMCommunicate OK [10:26:22]SAM_PROTO_GetShiftState done [10:26:22]FM_GetShiftState done [10:26:22]req_shift_opened done [10:26:22]requested_item shift.open_date is exist - process it [10:26:22]req_shift_open_date [10:26:22]req_shift_open_date done [10:26:22]produce_requested_data done [10:26:22]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115340,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [10:26:22]process_action_free close_receipt [10:26:22]json_value_free [10:26:22]json_value_free done [10:26:22]process_json_proto returns [10:26:22]Send response to host [10:26:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115340,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [10:26:22]free response buf [10:26:22]execute_script done [10:26:22]execute_script returns [10:26:22]free content buf [10:26:22]Sock 9.Close socket [10:26:22]Sock 9.Thread stoped [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:17]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:47]OFD Sender: No OFD packet to send [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:01]accept exits with 7 [10:33:01]New connection [10:33:01]New thread 3067174244 created [10:33:01]Thread 3067030884 joined [10:33:01]Waiting for new connection... [10:33:01] Sock 7.Parse request [10:33:01]Sock 7.Check first char [10:33:01]Sock 7.First char is OK [10:33:01]request: POST /json_proto HTTP/1.0 [10:33:01]Method: POST [10:33:01]URL: /json_proto [10:33:01]Method is POST - this is cgi request [10:33:01]url: /json_proto [10:33:01]query_string will be loaded in cgi processing [10:33:01]execute_cgi json_proto POST (null) [10:33:01]execute_cgi path=json_proto method=POST [10:33:01]POST find Content-Length [10:33:01]Host: 172.17.41.136:8080 [10:33:01]Content-Length: 1314 [10:33:01]Content-Type: application/json [10:33:01] [10:33:01]POST finish read [10:33:01]Found Content-Length = 1314 [10:33:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343798", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 316.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:01]execute_script... [10:33:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343798", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 316.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:01]POST & json_proto [10:33:01]process_json_proto [10:33:01]json parsed OK: [10:33:01]protocol is kg_v1.0 [10:33:01]action value=close_receipt [10:33:01]process_action close_receipt [10:33:01]cmd_close_receipt [10:33:01]MH_GetDate [10:33:01]Write to MH i2c: F0 00 00 3D 04 30 [10:33:01]Write i2c OK [10:33:01]MH_I2C_Read... [10:33:01]Read from MH i2c: F0 [10:33:01]MH_I2C_Read... [10:33:01]Read from MH i2c: F0 09 00 [10:33:01]MH_I2C_Read... [10:33:01]Read from MH i2c: F0 09 00 3D 04 00 5E F2 EF 66 1B D0 5A 64 87 [10:33:01]GetLastDocTimeStamp 1727000779 [10:33:01]current date 1727001182 [10:33:01]FM_GetShiftState [10:33:01]SAM_PROTO_GetShiftState [10:33:01]wFMCommunicate request_size=4 [10:33:01]MH_SAM_APDU [10:33:01]CAPDU: 80 13 01 00 [10:33:01]Write to MH i2c: E2 08 00 3E 04 80 13 01 00 00 00 00 00 BF [10:33:01]Write i2c OK [10:33:01]MH_I2C_Read... [10:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:01]Read from MH i2c: E2 [10:33:01]MH_I2C_Read... [10:33:01]Read from MH i2c: E2 0E 00 [10:33:01]MH_I2C_Read... [10:33:01]Read from MH i2c: E2 0E 00 3E 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D8 [10:33:01]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:33:01]wFMCommunicate OK [10:33:01]SAM_PROTO_GetShiftState done [10:33:01]FM_GetShiftState done [10:33:01]opened in 1726965840 [10:33:01]opened+sec_in_day 1727052240 [10:33:01]quantity*price = 3500 [10:33:01]sum+1 = 3501 [10:33:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48742245 Сигареты Parliament Silver Blue 1.000 * 156.00 = 156.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 316.00 НСП 1% : 2.80 НДС 12% : 33.56 Наличными: 0.00 Безнал.: 316.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 59 22.09.2024 10:33 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115341 ФПД: 127556237838352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T103303&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115341&fm=127556237838352&tin=02508201610067®Number=0000000000091831&sum=31600 0 [10:33:02]StoreToDocumentArchive [10:33:02]shift 471 fd 115341 [10:33:02]save to /storage/0471/doc_00115341 [10:33:02]save last doc name /storage/0471/doc_00115341 to /storage/kkm_last_doc_name [10:33:02]save OK [10:33:02]Clear old archive folders... [10:33:02]ProcessDocumentItem done err = 0, tmpTLVsize=495 [10:33:02]tlvbuf is 017052C0 [10:33:02]SAM_PROTO_ClearQueue [10:33:02]wFMCommunicate request_size=4 [10:33:02]MH_SAM_APDU [10:33:02]CAPDU: 80 09 00 00 [10:33:02]Write to MH i2c: E2 08 00 4B 04 80 09 00 00 00 00 00 00 C1 [10:33:02]Write i2c OK [10:33:02]MH_I2C_Read... [10:33:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:02]Read from MH i2c: E2 [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: E2 03 00 [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: E2 03 00 4B 04 00 90 00 C3 [10:33:02]RAPDU: 90 00 [10:33:02]wFMCommunicate OK [10:33:02]SAM_PROTO_ClearQueue done [10:33:02]KKMCreateOFDPacket [10:33:02]OFDProtocolAddRootSTLVToBuf [10:33:02]FM_MakeSignedData [10:33:02]FM_MakeSignedData [10:33:02]SAM_PROTO_SignData [10:33:02]wFMCommunicate request_size=4 [10:33:02]MH_SAM_APDU [10:33:02]CAPDU: 80 0D 01 02 [10:33:02]Write to MH i2c: E2 08 00 4C 04 80 0D 01 02 00 00 00 00 C9 [10:33:02]Write i2c OK [10:33:02]MH_I2C_Read... [10:33:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:02]Read from MH i2c: E2 [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: E2 03 00 [10:33:02]MH_I2C_Read... [10:33:02]Read from MH i2c: E2 03 00 4C 04 00 90 00 C4 [10:33:02]RAPDU: 90 00 [10:33:02]wFMCommunicate OK [10:33:02]wFMCommunicate request_size=255 [10:33:02]MH_SAM_APDU [10:33:02]CAPDU: 80 0D 02 02 FA 03 00 EF 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 [10:33:03]Write to MH i2c: E2 02 01 4D 04 80 0D 02 02 FA 00 03 00 EF 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 00 00 CC [10:33:03]Write i2c OK [10:33:03]MH_I2C_Read... [10:33:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:03]Read from MH i2c: E2 [10:33:03]MH_I2C_Read... [10:33:03]Read from MH i2c: E2 03 00 [10:33:03]MH_I2C_Read... [10:33:03]Read from MH i2c: E2 03 00 4D 04 00 90 00 C5 [10:33:03]RAPDU: 90 00 [10:33:03]wFMCommunicate OK [10:33:03]wFMCommunicate request_size=254 [10:33:03]MH_SAM_APDU [10:33:03]CAPDU: 80 0D 02 02 F9 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 5F F2 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8D C2 01 00 35 04 06 00 74 03 00 3E C8 10 [10:33:03]Write to MH i2c: E2 01 01 4E 04 80 0D 02 02 F9 00 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 5F F2 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8D C2 01 00 35 04 06 00 74 03 00 3E C8 10 00 00 02 [10:33:03]Write i2c OK [10:33:03]MH_I2C_Read... [10:33:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:03]Read from MH i2c: E2 [10:33:03]MH_I2C_Read... [10:33:03]Read from MH i2c: E2 03 00 [10:33:03]MH_I2C_Read... [10:33:03]Read from MH i2c: E2 03 00 4E 04 00 90 00 C6 [10:33:03]RAPDU: 90 00 [10:33:03]wFMCommunicate OK [10:33:03]wFMCommunicate request_size=4 [10:33:03]MH_SAM_APDU [10:33:03]CAPDU: 80 0D 03 02 [10:33:03]Write to MH i2c: E2 08 00 4F 04 80 0D 03 02 00 00 00 00 CE [10:33:03]Write i2c OK [10:33:03]MH_I2C_Read... [10:33:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:03]Read from MH i2c: E2 [10:33:03]MH_I2C_Read... [10:33:03]Read from MH i2c: E2 0B 00 [10:33:03]MH_I2C_Read... [10:33:03]Read from MH i2c: E2 0B 00 4F 04 00 42 26 59 33 BE 0C 68 1F 90 00 14 [10:33:03]RAPDU: 42 26 59 33 BE 0C 68 1F 90 00 [10:33:03]wFMCommunicate OK [10:33:03]SAM_PROTO_SignData done [10:33:03]FM_MakeSignedData done [10:33:03]CreateOFDProtocolMessage [10:33:03]wFMCommunicate request_size=4 [10:33:03]MH_SAM_APDU [10:33:03]CAPDU: 80 11 00 00 [10:33:03]Write to MH i2c: E2 08 00 50 04 80 11 00 00 00 00 00 00 CE [10:33:03]Write i2c OK [10:33:03]MH_I2C_Read... [10:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:03]Read from MH i2c: E2 [10:33:03]MH_I2C_Read... [10:33:03]Read from MH i2c: E2 17 00 [10:33:03]MH_I2C_Read... [10:33:03]Read from MH i2c: E2 17 00 50 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1C [10:33:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:33:03]wFMCommunicate OK [10:33:03]CreateOFDProtocolMessage done [10:33:03]OFDSenderStorePacket 115341 [10:33:03]StoreOFDPacket docnum=115341 [10:33:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 03 02 00 00 B1 27 FB 01 26 C6 5A 03 01 00 03 00 EF 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 5F F2 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8D C2 01 00 35 04 06 00 74 03 00 3E C8 10 42 26 59 33 BE 0C 68 1F [10:33:03]CheckFolder [10:33:03]dirname=/storage/ofd_packets [10:33:03]CheckFolder done [10:33:03]ProducePacketName [10:33:03]name=ofd_packets/00115341 [10:33:03]NVStorageSaveData ofd_packets/00115341 [10:33:03]File name is /storage/ofd_packets/00115341 [10:33:03]Write 545 bytes [10:33:03]NVStorageSaveData done [10:33:03]OFDSenderStorePacket done [10:33:03]KKMCreateOFDPacket done [10:33:03]NVStorageSaveData kkm_last_timestamp [10:33:03]File name is /storage/kkm_last_timestamp [10:33:03]Write 4 bytes [10:33:03]NVStorageSaveData done [10:33:03]ExternCall_PrintAddStr [10:33:03]wPrintStart [10:33:03]Write to MH i2c: 01 00 00 51 04 55 [10:33:03]Write i2c OK [10:33:03]MH_I2C_Read... [10:33:03]Read from MH i2c: 01 [10:33:03]MH_I2C_Read... [10:33:03]Read from MH i2c: 01 07 00 [10:33:03]MH_I2C_Read... [10:33:03]Read from MH i2c: 01 07 00 51 04 00 00 00 00 00 FF 0F 6A [10:33:03]RasterBufferAndPrint [10:33:03]line Счет N : (3)343798 [10:33:03]line ИНН: 02508201610067 [10:33:03]line Контрольно-Кассовый Чек [10:33:03]line ПРОДАЖА [10:33:03]line Товар: 4700000310326 [10:33:03]line Вода Адыгене 1л б/г [10:33:03]line 1.000 * 35.00 [10:33:03]line = 35.00 [10:33:03]line НДС 12% НСП 1% [10:33:03]line > о реализуемом товаре [10:33:03]line Товар: 48742245 [10:33:03]line Сигареты Parliament Silver Blue [10:33:03]line 1.000 * 156.00 [10:33:03]line = 156.00 [10:33:03]line НДС 12% НСП 1% [10:33:03]line > о реализуемом товаре [10:33:03]line Товар: 2000036190018 [10:33:03]line Кофе Американо XL(GABB TRADE) [10:33:03]line 1.000 * 125.00 [10:33:03]line = 125.00 [10:33:03]line НДС 12% НСП 1% [10:33:03]line > о реализуемом товаре [10:33:03]line ИТОГО: 316.00 [10:33:03]line НСП 1% : 2.80 [10:33:03]line НДС 12% : 33.56 [10:33:03]line Наличными: 0.00 [10:33:03]line Безнал.: 316.00 [10:33:03]line Место: АЗС № 90 "Партнер Нефть" [10:33:03]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:33:03]line СНО: Общий режим [10:33:03]line Чек 59 22.09.2024 10:33 [10:33:03]line Смена: 471 ФФД: 1.0 [10:33:03]line ЗНМ: 0300000120 [10:33:03]line РНМ: 0000000000091831 [10:33:03]line Версия ККМ: 001 [10:33:03]line Платежная система: O! деньги [10:33:03]line ФМ: 0000000000871830 [10:33:03]line ФД: 115341 [10:33:03]line ФПД: 127556237838352 [10:33:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T103303&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115341&fm=127556237838352&tin=02508201610067®Number=0000000000091831&sum=31600 [10:33:03]line 0 [10:33:03]written 0, free lines is 4095 [10:33:03]OFD Sender: Processing packet 115341 [packets to send 481, broken 480] [10:33:03]ProducePacketName [10:33:03]name=ofd_packets/00115341 [10:33:03]OFD Sender: To server: pG, [10:33:03]CommunicateWithHost lk.salyk.kg:30040 [10:33:03]ConnectInit lk.salyk.kg [10:33:04]Connected sock=10 [10:33:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 03 02 00 00 B1 27 FB 01 26 C6 5A 03 01 00 03 00 EF 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 5F F2 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8D C2 01 00 35 04 06 00 74 03 00 3E C8 10 42 26 59 33 BE 0C 68 1F [10:33:04]Write to MH i2c: 01 00 00 88 04 8C [10:33:04]Write i2c OK [10:33:04]MH_I2C_Read... [10:33:04]Read from MH i2c: 01 [10:33:04]MH_I2C_Read... [10:33:04]Read from MH i2c: 01 07 00 [10:33:04]MH_I2C_Read... [10:33:04]Read from MH i2c: 01 07 00 88 04 00 00 00 00 00 24 0B C2 [10:33:04]RasterBufferAndPrint [10:33:04]line [10:33:04]line [10:33:04]line [10:33:04]line [10:33:04]line [10:33:04]written 0, free lines is 2855 [10:33:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E9 89 47 00 75 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8D C2 01 00 F4 03 04 00 A5 97 EF 66 B6 04 01 00 00 5B 13 A9 6A DF BD E8 45 [10:33:04]CommunicateWithHost err = 0 [10:33:04]CheckOFDResponse [10:33:04]1017 (14) - 77093643461234 [10:33:04]1041 (16) - 0000000000871830 [10:33:04]1040 (4) - 115341 [10:33:04]1012 (4) - 22.09.2024 04:05 [10:33:04]1206 (1) - 0 [10:33:04]OFD Sender: Remove packet 115341 [10:33:04]ProducePacketName [10:33:04]name=ofd_packets/00115341 [10:33:04]NVStorageDeleteData [10:33:04]MH_Cut [10:33:04]Write to MH i2c: D1 01 00 8F 04 01 65 [10:33:04]Write i2c OK [10:33:04]MH_I2C_Read... [10:33:04]Read from MH i2c: D1 [10:33:04]MH_I2C_Read... [10:33:04]Read from MH i2c: D1 01 00 [10:33:04]MH_I2C_Read... [10:33:04]Read from MH i2c: D1 01 00 8F 04 00 64 [10:33:04]Write to MH i2c: 01 00 00 90 04 94 [10:33:04]Write i2c OK [10:33:04]MH_I2C_Read... [10:33:05]OFD Sender: No OFD packet to send [10:33:06]*** Cut start [10:33:06]*** Partial cut [10:33:06]*** CUTSNS_PIN = 1 [10:33:06]*** CUTSNS_PIN = 0 [10:33:06]*** Brake cut motor [10:33:06]Read from MH i2c: 01 [10:33:06]MH_I2C_Read... [10:33:06]*** Stop cut motor [10:33:06]*** Cut end [10:33:06]Read from MH i2c: 01 07 00 [10:33:06]MH_I2C_Read... [10:33:06]Read from MH i2c: 01 07 00 90 04 00 00 00 00 00 FF 0F A9 [10:33:06]process_action close_receipt done [10:33:06]requested_data is exist [10:33:06]produce_requested_data [10:33:06]requested_item fm.sn is exist - process it [10:33:06]wFMCommunicate request_size=4 [10:33:06]MH_SAM_APDU [10:33:06]CAPDU: 80 11 00 00 [10:33:06]Write to MH i2c: E2 08 00 91 04 80 11 00 00 00 00 00 00 0F [10:33:06]Write i2c OK [10:33:06]MH_I2C_Read... [10:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:06]Read from MH i2c: E2 [10:33:06]MH_I2C_Read... [10:33:06]Read from MH i2c: E2 17 00 [10:33:06]MH_I2C_Read... [10:33:06]Read from MH i2c: E2 17 00 91 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5D [10:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:33:06]wFMCommunicate OK [10:33:06]requested_item fd.num is exist - process it [10:33:06]SAM_PROTO_GetFieldsCounters [10:33:06]wFMCommunicate request_size=4 [10:33:06]MH_SAM_APDU [10:33:06]CAPDU: 80 13 00 00 [10:33:06]Write to MH i2c: E2 08 00 92 04 80 13 00 00 00 00 00 00 12 [10:33:06]Write i2c OK [10:33:06]MH_I2C_Read... [10:33:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:07]Read from MH i2c: E2 [10:33:07]MH_I2C_Read... [10:33:07]Read from MH i2c: E2 62 00 [10:33:07]MH_I2C_Read... [10:33:07]Read from MH i2c: E2 62 00 92 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8D C2 01 00 0E 04 04 00 D7 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 04 [10:33:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8D C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:33:07]wFMCommunicate OK [10:33:07]SAM_PROTO_GetFieldsCounters done [10:33:07]requested_item shift.num is exist - process it [10:33:07]requested_item shift.opened is exist - process it [10:33:07]req_shift_opened [10:33:07]FM_GetShiftState [10:33:07]SAM_PROTO_GetShiftState [10:33:07]wFMCommunicate request_size=4 [10:33:07]MH_SAM_APDU [10:33:07]CAPDU: 80 13 01 00 [10:33:07]Write to MH i2c: E2 08 00 93 04 80 13 01 00 00 00 00 00 14 [10:33:07]Write i2c OK [10:33:07]MH_I2C_Read... [10:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:07]Read from MH i2c: E2 [10:33:07]MH_I2C_Read... [10:33:07]Read from MH i2c: E2 0E 00 [10:33:07]MH_I2C_Read... [10:33:07]Read from MH i2c: E2 0E 00 93 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 2D [10:33:07]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:33:07]wFMCommunicate OK [10:33:07]SAM_PROTO_GetShiftState done [10:33:07]FM_GetShiftState done [10:33:07]req_shift_opened done [10:33:07]requested_item shift.open_date is exist - process it [10:33:07]req_shift_open_date [10:33:07]req_shift_open_date done [10:33:07]produce_requested_data done [10:33:07]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115341,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [10:33:07]process_action_free close_receipt [10:33:07]json_value_free [10:33:07]json_value_free done [10:33:07]process_json_proto returns [10:33:07]Send response to host [10:33:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115341,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [10:33:07]free response buf [10:33:07]execute_script done [10:33:07]execute_script returns [10:33:07]free content buf [10:33:07]Sock 7.Close socket [10:33:07]Sock 7.Thread stoped [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:50]OFD Sender: No OFD packet to send [10:33:55]OFD Sender: No OFD packet to send [10:34:00]OFD Sender: No OFD packet to send [10:34:05]OFD Sender: No OFD packet to send [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:20]OFD Sender: No OFD packet to send [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:40]OFD Sender: No OFD packet to send [10:34:45]OFD Sender: No OFD packet to send [10:34:50]OFD Sender: No OFD packet to send [10:34: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:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36:50]OFD Sender: No OFD packet to send [10:36:55]OFD Sender: No OFD packet to send [10:37:00]OFD Sender: No OFD packet to send [10:37:05]OFD Sender: No OFD packet to send [10:37:10]OFD Sender: No OFD packet to send [10:37:15]OFD Sender: No OFD packet to send [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:50]OFD Sender: No OFD packet to send [10:37:55]OFD Sender: No OFD packet to send [10:38:00]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:15]OFD Sender: No OFD packet to send [10:38:17]accept exits with 9 [10:38:17]New connection [10:38:17]New thread 3067030884 created [10:38:17]Thread 3067174244 joined [10:38:17]Waiting for new connection... [10:38:17] Sock 9.Parse request [10:38:17]Sock 9.Check first char [10:38:17]Sock 9.First char is OK [10:38:17]request: POST /json_proto HTTP/1.0 [10:38:17]Method: POST [10:38:17]URL: /json_proto [10:38:17]Method is POST - this is cgi request [10:38:17]url: /json_proto [10:38:17]query_string will be loaded in cgi processing [10:38:17]execute_cgi json_proto POST (null) [10:38:17]execute_cgi path=json_proto method=POST [10:38:17]POST find Content-Length [10:38:17]Host: 172.17.41.136:8080 [10:38:17]Content-Length: 882 [10:38:17]Content-Type: application/json [10:38:17] [10:38:17]POST finish read [10:38:17]Found Content-Length = 882 [10:38:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343799", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 2.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871781", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 174.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:17]execute_script... [10:38:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343799", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 2.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871781", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 174.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:17]POST & json_proto [10:38:17]process_json_proto [10:38:17]json parsed OK: [10:38:17]protocol is kg_v1.0 [10:38:17]action value=close_receipt [10:38:17]process_action close_receipt [10:38:17]cmd_close_receipt [10:38:17]MH_GetDate [10:38:17]Write to MH i2c: F0 00 00 94 04 87 [10:38:17]Write i2c OK [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: F0 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: F0 09 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: F0 09 00 94 04 00 9A F3 EF 66 1B D0 5A 64 1B [10:38:17]GetLastDocTimeStamp 1727001183 [10:38:17]current date 1727001498 [10:38:17]FM_GetShiftState [10:38:17]SAM_PROTO_GetShiftState [10:38:17]wFMCommunicate request_size=4 [10:38:17]MH_SAM_APDU [10:38:17]CAPDU: 80 13 01 00 [10:38:17]Write to MH i2c: E2 08 00 95 04 80 13 01 00 00 00 00 00 16 [10:38:17]Write i2c OK [10:38:17]MH_I2C_Read... [10:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:17]Read from MH i2c: E2 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 0E 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 0E 00 95 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 2F [10:38:17]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:38:17]wFMCommunicate OK [10:38:17]SAM_PROTO_GetShiftState done [10:38:17]FM_GetShiftState done [10:38:17]opened in 1726965840 [10:38:17]opened+sec_in_day 1727052240 [10:38:17]quantity*price = 8400 [10:38:17]sum+1 = 8401 [10:38:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4650243871781 Gorilla эн нап Orange 0,45 ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 174.00 НСП 1% : 1.54 НДС 12% : 18.48 Наличными: 174.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 60 22.09.2024 10:38 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115342 ФПД: 138854075877683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T103818&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115342&fm=138854075877683&tin=02508201610067®Number=0000000000091831&sum=17400 0 [10:38:18]StoreToDocumentArchive [10:38:18]shift 471 fd 115342 [10:38:18]save to /storage/0471/doc_00115342 [10:38:18]save last doc name /storage/0471/doc_00115342 to /storage/kkm_last_doc_name [10:38:18]save OK [10:38:18]Clear old archive folders... [10:38:18]ProcessDocumentItem done err = 0, tmpTLVsize=384 [10:38:18]tlvbuf is 01700840 [10:38:18]SAM_PROTO_ClearQueue [10:38:18]wFMCommunicate request_size=4 [10:38:18]MH_SAM_APDU [10:38:18]CAPDU: 80 09 00 00 [10:38:18]Write to MH i2c: E2 08 00 A2 04 80 09 00 00 00 00 00 00 18 [10:38:18]Write i2c OK [10:38:18]MH_I2C_Read... [10:38:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:18]Read from MH i2c: E2 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: E2 03 00 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: E2 03 00 A2 04 00 90 00 1A [10:38:18]RAPDU: 90 00 [10:38:18]wFMCommunicate OK [10:38:18]SAM_PROTO_ClearQueue done [10:38:18]KKMCreateOFDPacket [10:38:18]OFDProtocolAddRootSTLVToBuf [10:38:18]FM_MakeSignedData [10:38:18]FM_MakeSignedData [10:38:18]SAM_PROTO_SignData [10:38:18]wFMCommunicate request_size=4 [10:38:18]MH_SAM_APDU [10:38:18]CAPDU: 80 0D 01 02 [10:38:18]Write to MH i2c: E2 08 00 A3 04 80 0D 01 02 00 00 00 00 20 [10:38:18]Write i2c OK [10:38:18]MH_I2C_Read... [10:38:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:18]Read from MH i2c: E2 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: E2 03 00 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: E2 03 00 A3 04 00 90 00 1B [10:38:18]RAPDU: 90 00 [10:38:18]wFMCommunicate OK [10:38:18]wFMCommunicate request_size=255 [10:38:18]MH_SAM_APDU [10:38:18]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [10:38:18]Write to MH i2c: E2 02 01 A4 04 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 14 [10:38:18]Write i2c OK [10:38:18]MH_I2C_Read... [10:38:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:19]Read from MH i2c: E2 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 03 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 03 00 A4 04 00 90 00 1C [10:38:19]RAPDU: 90 00 [10:38:19]wFMCommunicate OK [10:38:19]wFMCommunicate request_size=143 [10:38:19]MH_SAM_APDU [10:38:19]CAPDU: 80 0D 02 02 8A 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 07 00 00 00 00 07 04 06 00 F8 43 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9A F3 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8E C2 01 00 35 04 06 00 7E 49 7B DE 49 33 [10:38:19]Write to MH i2c: E2 92 00 A5 04 80 0D 02 02 8A 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 07 00 00 00 00 07 04 06 00 F8 43 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9A F3 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8E C2 01 00 35 04 06 00 7E 49 7B DE 49 33 00 00 53 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:19]Read from MH i2c: E2 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 03 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 03 00 A5 04 00 90 00 1D [10:38:19]RAPDU: 90 00 [10:38:19]wFMCommunicate OK [10:38:19]wFMCommunicate request_size=4 [10:38:19]MH_SAM_APDU [10:38:19]CAPDU: 80 0D 03 02 [10:38:19]Write to MH i2c: E2 08 00 A6 04 80 0D 03 02 00 00 00 00 25 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:19]Read from MH i2c: E2 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 0B 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 0B 00 A6 04 00 2B 34 90 AA DE 58 34 1A 90 00 43 [10:38:19]RAPDU: 2B 34 90 AA DE 58 34 1A 90 00 [10:38:19]wFMCommunicate OK [10:38:19]SAM_PROTO_SignData done [10:38:19]FM_MakeSignedData done [10:38:19]CreateOFDProtocolMessage [10:38:19]wFMCommunicate request_size=4 [10:38:19]MH_SAM_APDU [10:38:19]CAPDU: 80 11 00 00 [10:38:19]Write to MH i2c: E2 08 00 A7 04 80 11 00 00 00 00 00 00 25 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:19]Read from MH i2c: E2 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 17 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 17 00 A7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 73 [10:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:38:19]wFMCommunicate OK [10:38:19]CreateOFDProtocolMessage done [10:38:19]OFDSenderStorePacket 115342 [10:38:19]StoreOFDPacket docnum=115342 [10:38:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 94 01 00 00 FE CA 8C 01 79 15 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 07 00 00 00 00 07 04 06 00 F8 43 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9A F3 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8E C2 01 00 35 04 06 00 7E 49 7B DE 49 33 2B 34 90 AA DE 58 34 1A [10:38:19]CheckFolder [10:38:19]dirname=/storage/ofd_packets [10:38:19]CheckFolder done [10:38:19]ProducePacketName [10:38:19]name=ofd_packets/00115342 [10:38:19]NVStorageSaveData ofd_packets/00115342 [10:38:19]File name is /storage/ofd_packets/00115342 [10:38:19]Write 434 bytes [10:38:19]NVStorageSaveData done [10:38:19]OFDSenderStorePacket done [10:38:19]KKMCreateOFDPacket done [10:38:19]NVStorageSaveData kkm_last_timestamp [10:38:19]File name is /storage/kkm_last_timestamp [10:38:19]Write 4 bytes [10:38:19]NVStorageSaveData done [10:38:19]ExternCall_PrintAddStr [10:38:19]wPrintStart [10:38:19]Write to MH i2c: 01 00 00 A8 04 AC [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 A8 04 00 00 00 00 00 FF 0F C1 [10:38:19]RasterBufferAndPrint [10:38:19]line Счет N : (3)343799 [10:38:19]line ИНН: 02508201610067 [10:38:19]line Контрольно-Кассовый Чек [10:38:19]line ПРОДАЖА [10:38:19]line Товар: 5449000005489 [10:38:19]line Вода Бонаква 1л б/г [10:38:19]line 2.000 * 42.00 [10:38:19]line = 84.00 [10:38:19]line НДС 12% НСП 1% [10:38:19]line > о реализуемом товаре [10:38:19]line Товар: 4650243871781 [10:38:19]line Gorilla эн нап Orange 0,45 ж/б [10:38:19]line 1.000 * 90.00 [10:38:19]line = 90.00 [10:38:19]line НДС 12% НСП 1% [10:38:19]line > о реализуемом товаре [10:38:19]line ИТОГО: 174.00 [10:38:19]line НСП 1% : 1.54 [10:38:19]line НДС 12% : 18.48 [10:38:19]line Наличными: 174.00 [10:38:19]line Безнал.: 0.00 [10:38:19]line Место: АЗС № 90 "Партнер Нефть" [10:38:19]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:38:19]line СНО: Общий режим [10:38:19]line Чек 60 22.09.2024 10:38 [10:38:19]line Смена: 471 ФФД: 1.0 [10:38:19]line ЗНМ: 0300000120 [10:38:19]line РНМ: 0000000000091831 [10:38:19]line Версия ККМ: 001 [10:38:19]line ФМ: 0000000000871830 [10:38:19]line ФД: 115342 [10:38:19]line ФПД: 138854075877683 [10:38:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T103818&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115342&fm=138854075877683&tin=02508201610067®Number=0000000000091831&sum=17400 [10:38:19]line 0 [10:38:19]OFD Sender: Processing packet 115342 [packets to send 481, broken 480] [10:38:19]ProducePacketName [10:38:19]name=ofd_packets/00115342 [10:38:19]OFD Sender: To server: pG, [10:38:19]CommunicateWithHost lk.salyk.kg:30040 [10:38:19]ConnectInit lk.salyk.kg [10:38:19]written 0, free lines is 4095 [10:38:19]Connected sock=5 [10:38:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 94 01 00 00 FE CA 8C 01 79 15 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 07 00 00 00 00 07 04 06 00 F8 43 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9A F3 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8E C2 01 00 35 04 06 00 7E 49 7B DE 49 33 2B 34 90 AA DE 58 34 1A [10:38:20]Write to MH i2c: 01 00 00 D5 04 D9 [10:38:20]Write i2c OK [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: 01 [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: 01 07 00 [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: 01 07 00 D5 04 00 00 00 00 00 11 0C FD [10:38:20]RasterBufferAndPrint [10:38:20]line [10:38:20]line [10:38:20]line [10:38:20]line [10:38:20]line [10:38:20]written 0, free lines is 3092 [10:38:20]MH_Cut [10:38:20]Write to MH i2c: D1 01 00 DC 04 01 B2 [10:38:20]Write i2c OK [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: D1 [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: D1 01 00 [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: D1 01 00 DC 04 00 B1 [10:38:20]Write to MH i2c: 01 00 00 DD 04 E1 [10:38:20]Write i2c OK [10:38:20]MH_I2C_Read... [10:38:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 80 DF 47 00 8C 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8E C2 01 00 F4 03 04 00 E1 98 EF 66 B6 04 01 00 00 48 53 0F AA 40 58 D0 46 [10:38:20]CommunicateWithHost err = 0 [10:38:20]CheckOFDResponse [10:38:20]1017 (14) - 77093643461234 [10:38:20]1041 (16) - 0000000000871830 [10:38:20]1040 (4) - 115342 [10:38:20]1012 (4) - 22.09.2024 04:11 [10:38:20]1206 (1) - 0 [10:38:20]OFD Sender: Remove packet 115342 [10:38:20]ProducePacketName [10:38:20]name=ofd_packets/00115342 [10:38:20]NVStorageDeleteData [10:38:20]OFD Sender: No OFD packet to send [10:38:21]*** Cut start [10:38:21]*** Partial cut [10:38:21]*** CUTSNS_PIN = 1 [10:38:21]*** CUTSNS_PIN = 0 [10:38:21]*** Brake cut motor [10:38:22]Read from MH i2c: 01 [10:38:22]MH_I2C_Read... [10:38:22]*** Stop cut motor [10:38:22]*** Cut end [10:38:22]Read from MH i2c: 01 07 00 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: 01 07 00 DD 04 00 00 00 00 00 FF 0F F6 [10:38:22]process_action close_receipt done [10:38:22]requested_data is exist [10:38:22]produce_requested_data [10:38:22]requested_item fm.sn is exist - process it [10:38:22]wFMCommunicate request_size=4 [10:38:22]MH_SAM_APDU [10:38:22]CAPDU: 80 11 00 00 [10:38:22]Write to MH i2c: E2 08 00 DE 04 80 11 00 00 00 00 00 00 5C [10:38:22]Write i2c OK [10:38:22]MH_I2C_Read... [10:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:22]Read from MH i2c: E2 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: E2 17 00 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: E2 17 00 DE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AA [10:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:38:22]wFMCommunicate OK [10:38:22]requested_item fd.num is exist - process it [10:38:22]SAM_PROTO_GetFieldsCounters [10:38:22]wFMCommunicate request_size=4 [10:38:22]MH_SAM_APDU [10:38:22]CAPDU: 80 13 00 00 [10:38:22]Write to MH i2c: E2 08 00 DF 04 80 13 00 00 00 00 00 00 5F [10:38:22]Write i2c OK [10:38:22]MH_I2C_Read... [10:38:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:22]Read from MH i2c: E2 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: E2 62 00 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: E2 62 00 DF 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8E C2 01 00 0E 04 04 00 D7 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 55 [10: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8E C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:22]wFMCommunicate OK [10:38:22]SAM_PROTO_GetFieldsCounters done [10:38:22]requested_item shift.num is exist - process it [10:38:22]requested_item shift.opened is exist - process it [10:38:22]req_shift_opened [10:38:22]FM_GetShiftState [10:38:22]SAM_PROTO_GetShiftState [10:38:22]wFMCommunicate request_size=4 [10:38:22]MH_SAM_APDU [10:38:22]CAPDU: 80 13 01 00 [10:38:22]Write to MH i2c: E2 08 00 E0 04 80 13 01 00 00 00 00 00 61 [10:38:22]Write i2c OK [10:38:22]MH_I2C_Read... [10:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:22]Read from MH i2c: E2 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: E2 0E 00 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: E2 0E 00 E0 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 7A [10:38:22]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:38:22]wFMCommunicate OK [10:38:22]SAM_PROTO_GetShiftState done [10:38:22]FM_GetShiftState done [10:38:22]req_shift_opened done [10:38:22]requested_item shift.open_date is exist - process it [10:38:22]req_shift_open_date [10:38:22]req_shift_open_date done [10:38:22]produce_requested_data done [10:38:22]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115342,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [10:38:22]process_action_free close_receipt [10:38:22]json_value_free [10:38:22]json_value_free done [10:38:22]process_json_proto returns [10:38:22]Send response to host [10:38:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115342,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [10:38:22]free response buf [10:38:22]execute_script done [10:38:22]execute_script returns [10:38:22]free content buf [10:38:22]Sock 9.Close socket [10:38:22]Sock 9.Thread stoped [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:20]accept exits with 7 [10:40:20]New connection [10:40:20]New thread 3067174244 created [10:40:20]Thread 3067030884 joined [10:40:20]Waiting for new connection... [10:40:20] Sock 7.Parse request [10:40:20]Sock 7.Check first char [10:40:20]Sock 7.First char is OK [10:40:20]request: POST /json_proto HTTP/1.0 [10:40:20]Method: POST [10:40:20]URL: /json_proto [10:40:20]Method is POST - this is cgi request [10:40:20]url: /json_proto [10:40:20]query_string will be loaded in cgi processing [10:40:20]execute_cgi json_proto POST (null) [10:40:20]execute_cgi path=json_proto method=POST [10:40:20]POST find Content-Length [10:40:20]Host: 172.17.41.136:8080 [10:40:20]Content-Length: 926 [10:40:20]Content-Type: application/json [10:40:20] [10:40:20]POST finish read [10:40:20]Found Content-Length = 926 [10:40:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343800", "tax_sys" : 0, "items" : [ { "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 165.00, "quantity" : 2.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 407.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:20]execute_script... [10:40:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343800", "tax_sys" : 0, "items" : [ { "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 165.00, "quantity" : 2.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 407.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:20]POST & json_proto [10:40:20]process_json_proto [10:40:20]json parsed OK: [10:40:20]protocol is kg_v1.0 [10:40:20]action value=close_receipt [10:40:20]process_action close_receipt [10:40:20]cmd_close_receipt [10:40:20]MH_GetDate [10:40:20]Write to MH i2c: F0 00 00 E1 04 D4 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: F0 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: F0 09 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: F0 09 00 E1 04 00 15 F4 EF 66 1B D0 5A 64 E4 [10:40:20]GetLastDocTimeStamp 1727001498 [10:40:20]current date 1727001621 [10:40:20]FM_GetShiftState [10:40:20]SAM_PROTO_GetShiftState [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 13 01 00 [10:40:20]Write to MH i2c: E2 08 00 E2 04 80 13 01 00 00 00 00 00 63 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 0E 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 0E 00 E2 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 7C [10:40:20]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:40:20]wFMCommunicate OK [10:40:20]SAM_PROTO_GetShiftState done [10:40:20]FM_GetShiftState done [10:40:20]opened in 1726965840 [10:40:20]opened+sec_in_day 1727052240 [10:40:20]quantity*price = 33000 [10:40:20]sum+1 = 33001 [10:40:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 77.00 = 77.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 407.00 НСП 1% : 3.60 НДС 12% : 43.22 Наличными: 407.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 61 22.09.2024 10:40 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115343 ФПД: 84292813659102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T104021&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115343&fm=84292813659102&tin=02508201610067®Number=0000000000091831&sum=40700 0 [10:40:21]StoreToDocumentArchive [10:40:21]shift 471 fd 115343 [10:40:21]save to /storage/0471/doc_00115343 [10:40:21]save last doc name /storage/0471/doc_00115343 to /storage/kkm_last_doc_name [10:40:21]save OK [10:40:21]Clear old archive folders... [10:40:21]ProcessDocumentItem done err = 0, tmpTLVsize=402 [10:40:21]tlvbuf is 01701CD0 [10:40:21]SAM_PROTO_ClearQueue [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 09 00 00 [10:40:21]Write to MH i2c: E2 08 00 EF 04 80 09 00 00 00 00 00 00 65 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 EF 04 00 90 00 67 [10:40:21]RAPDU: 90 00 [10:40:21]wFMCommunicate OK [10:40:21]SAM_PROTO_ClearQueue done [10:40:21]KKMCreateOFDPacket [10:40:21]OFDProtocolAddRootSTLVToBuf [10:40:21]FM_MakeSignedData [10:40:21]FM_MakeSignedData [10:40:21]SAM_PROTO_SignData [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 0D 01 02 [10:40:21]Write to MH i2c: E2 08 00 F0 04 80 0D 01 02 00 00 00 00 6D [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 F0 04 00 90 00 68 [10:40:21]RAPDU: 90 00 [10:40:21]wFMCommunicate OK [10:40:21]wFMCommunicate request_size=255 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 0D 02 02 FA 03 00 92 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 9E 00 00 00 [10:40:21]Write to MH i2c: E2 02 01 F1 04 80 0D 02 02 FA 00 03 00 92 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 9E 00 00 00 00 00 C3 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:22]Read from MH i2c: E2 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 03 00 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 03 00 F1 04 00 90 00 69 [10:40:22]RAPDU: 90 00 [10:40:22]wFMCommunicate OK [10:40:22]wFMCommunicate request_size=161 [10:40:22]MH_SAM_APDU [10:40:22]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 10 00 00 00 00 07 04 06 00 FC 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 15 F4 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8F C2 01 00 35 04 06 00 4C A9 F3 37 1B DE [10:40:22]Write to MH i2c: E2 A4 00 F2 04 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 10 00 00 00 00 07 04 06 00 FC 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 15 F4 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8F C2 01 00 35 04 06 00 4C A9 F3 37 1B DE 00 00 AF [10:40:22]Write i2c OK [10:40:22]MH_I2C_Read... [10:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:22]Read from MH i2c: E2 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 03 00 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 03 00 F2 04 00 90 00 6A [10:40:22]RAPDU: 90 00 [10:40:22]wFMCommunicate OK [10:40:22]wFMCommunicate request_size=4 [10:40:22]MH_SAM_APDU [10:40:22]CAPDU: 80 0D 03 02 [10:40:22]Write to MH i2c: E2 08 00 F3 04 80 0D 03 02 00 00 00 00 72 [10:40:22]Write i2c OK [10:40:22]MH_I2C_Read... [10:40:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:22]Read from MH i2c: E2 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 0B 00 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 0B 00 F3 04 00 8E F3 EE 20 E7 72 69 70 90 00 34 [10:40:22]RAPDU: 8E F3 EE 20 E7 72 69 70 90 00 [10:40:22]wFMCommunicate OK [10:40:22]SAM_PROTO_SignData done [10:40:22]FM_MakeSignedData done [10:40:22]CreateOFDProtocolMessage [10:40:22]wFMCommunicate request_size=4 [10:40:22]MH_SAM_APDU [10:40:22]CAPDU: 80 11 00 00 [10:40:22]Write to MH i2c: E2 08 00 F4 04 80 11 00 00 00 00 00 00 72 [10:40:22]Write i2c OK [10:40:22]MH_I2C_Read... [10:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:22]Read from MH i2c: E2 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 17 00 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 17 00 F4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C0 [10:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:40:22]wFMCommunicate OK [10:40:22]CreateOFDProtocolMessage done [10:40:22]OFDSenderStorePacket 115343 [10:40:22]StoreOFDPacket docnum=115343 [10:40:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A6 01 00 00 C4 AE 9E 01 D2 6F 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 10 00 00 00 00 07 04 06 00 FC 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 15 F4 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8F C2 01 00 35 04 06 00 4C A9 F3 37 1B DE 8E F3 EE 20 E7 72 69 70 [10:40:22]CheckFolder [10:40:22]dirname=/storage/ofd_packets [10:40:22]CheckFolder done [10:40:22]ProducePacketName [10:40:22]name=ofd_packets/00115343 [10:40:22]NVStorageSaveData ofd_packets/00115343 [10:40:22]File name is /storage/ofd_packets/00115343 [10:40:22]Write 452 bytes [10:40:22]NVStorageSaveData done [10:40:22]OFDSenderStorePacket done [10:40:22]KKMCreateOFDPacket done [10:40:22]NVStorageSaveData kkm_last_timestamp [10:40:22]File name is /storage/kkm_last_timestamp [10:40:22]Write 4 bytes [10:40:22]NVStorageSaveData done [10:40:22]ExternCall_PrintAddStr [10:40:22]wPrintStart [10:40:22]Write to MH i2c: 01 00 00 F5 04 F9 [10:40:22]Write i2c OK [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: 01 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: 01 07 00 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: 01 07 00 F5 04 00 00 00 00 00 FF 0F 0E [10:40:22]RasterBufferAndPrint [10:40:22]line Счет N : (3)343800 [10:40:22]line ИНН: 02508201610067 [10:40:22]line Контрольно-Кассовый Чек [10:40:22]line ПРОДАЖА [10:40:22]line Товар: 4860019001414 [10:40:22]line Вода Боржоми 0,75л ПЭТ [10:40:22]line 2.000 * 165.00 [10:40:22]line = 330.00 [10:40:22]line НДС 12% НСП 1% [10:40:22]line > о реализуемом товаре [10:40:22]line Товар: 4700000480050 [10:40:22]line Напиток Nitro Energy эн green ж/б 0,45л [10:40:22]line 1.000 * 77.00 [10:40:22]line = 77.00 [10:40:22]line НДС 12% НСП 1% [10:40:22]line > о реализуемом товаре [10:40:22]line ИТОГО: 407.00 [10:40:22]line НСП 1% : 3.60 [10:40:22]line НДС 12% : 43.22 [10:40:22]line Наличными: 407.00 [10:40:22]line Безнал.: 0.00 [10:40:22]line Место: АЗС № 90 "Партнер Нефть" [10:40:22]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:40:22]line СНО: Общий режим [10:40:22]line Чек 61 22.09.2024 10:40 [10:40:22]line Смена: 471 ФФД: 1.0 [10:40:22]line ЗНМ: 0300000120 [10:40:22]line РНМ: 0000000000091831 [10:40:22]line Версия ККМ: 001 [10:40:22]line ФМ: 0000000000871830 [10:40:22]line ФД: 115343 [10:40:22]line ФПД: 84292813659102 [10:40:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T104021&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115343&fm=84292813659102&tin=02508201610067®Number=0000000000091831&sum=40700 [10:40:22]line 0 [10:40:22]OFD Sender: Processing packet 115343 [packets to send 481, broken 480] [10:40:22]ProducePacketName [10:40:22]name=ofd_packets/00115343 [10:40:22]OFD Sender: To server: pG, [10:40:22]CommunicateWithHost lk.salyk.kg:30040 [10:40:22]ConnectInit lk.salyk.kg [10:40:22]written 0, free lines is 4095 [10:40:22]Connected sock=10 [10:40:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A6 01 00 00 C4 AE 9E 01 D2 6F 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 10 00 00 00 00 07 04 06 00 FC 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 15 F4 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8F C2 01 00 35 04 06 00 4C A9 F3 37 1B DE 8E F3 EE 20 E7 72 69 70 [10:40:23]Write to MH i2c: 01 00 00 23 05 28 [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: 01 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: 01 07 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: 01 07 00 23 05 00 00 00 00 00 F9 0B 33 [10:40:23]RasterBufferAndPrint [10:40:23]line [10:40:23]line [10:40:23]line [10:40:23]line [10:40:23]line [10:40:23]written 0, free lines is 3067 [10:40:23]MH_Cut [10:40:23]Write to MH i2c: D1 01 00 2A 05 01 01 [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: D1 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: D1 01 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: D1 01 00 2A 05 00 00 [10:40:23]Write to MH i2c: 01 00 00 2B 05 30 [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 AF A9 47 00 61 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 31 38 33 30 10 04 04 00 8F C2 01 00 F4 03 04 00 5C 99 EF 66 B6 04 01 00 00 61 38 51 DE D1 91 AC 15 [10:40:23]CommunicateWithHost err = 0 [10:40:23]CheckOFDResponse [10:40:23]1017 (14) - 77093643461234 [10:40:23]1041 (16) - 0000000000871830 [10:40:23]1040 (4) - 115343 [10:40:23]1012 (4) - 22.09.2024 04:13 [10:40:23]1206 (1) - 0 [10:40:23]OFD Sender: Remove packet 115343 [10:40:23]ProducePacketName [10:40:23]name=ofd_packets/00115343 [10:40:23]NVStorageDeleteData [10:40:23]OFD Sender: No OFD packet to send [10:40:24]*** Cut start [10:40:24]*** Partial cut [10:40:24]*** CUTSNS_PIN = 1 [10:40:24]*** CUTSNS_PIN = 0 [10:40:24]*** Brake cut motor [10:40:25]Read from MH i2c: 01 [10:40:25]MH_I2C_Read... [10:40:25]*** Stop cut motor [10:40:25]*** Cut end [10:40:25]Read from MH i2c: 01 07 00 [10:40:25]MH_I2C_Read... [10:40:25]Read from MH i2c: 01 07 00 2B 05 00 00 00 00 00 FF 0F 45 [10:40:25]process_action close_receipt done [10:40:25]requested_data is exist [10:40:25]produce_requested_data [10:40:25]requested_item fm.sn is exist - process it [10:40:25]wFMCommunicate request_size=4 [10:40:25]MH_SAM_APDU [10:40:25]CAPDU: 80 11 00 00 [10:40:25]Write to MH i2c: E2 08 00 2C 05 80 11 00 00 00 00 00 00 AB [10:40:25]Write i2c OK [10:40:25]MH_I2C_Read... [10:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:25]Read from MH i2c: E2 [10:40:25]MH_I2C_Read... [10:40:25]Read from MH i2c: E2 17 00 [10:40:25]MH_I2C_Read... [10:40:25]Read from MH i2c: E2 17 00 2C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F9 [10:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:40:25]wFMCommunicate OK [10:40:25]requested_item fd.num is exist - process it [10:40:25]SAM_PROTO_GetFieldsCounters [10:40:25]wFMCommunicate request_size=4 [10:40:25]MH_SAM_APDU [10:40:25]CAPDU: 80 13 00 00 [10:40:25]Write to MH i2c: E2 08 00 2D 05 80 13 00 00 00 00 00 00 AE [10:40:25]Write i2c OK [10:40:25]MH_I2C_Read... [10:40:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:25]Read from MH i2c: E2 [10:40:25]MH_I2C_Read... [10:40:25]Read from MH i2c: E2 62 00 [10:40:25]MH_I2C_Read... [10:40:25]Read from MH i2c: E2 62 00 2D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8F C2 01 00 0E 04 04 00 D7 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 A8 [10:40:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8F C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:25]wFMCommunicate OK [10:40:25]SAM_PROTO_GetFieldsCounters done [10:40:25]requested_item shift.num is exist - process it [10:40:25]requested_item shift.opened is exist - process it [10:40:25]req_shift_opened [10:40:25]FM_GetShiftState [10:40:25]SAM_PROTO_GetShiftState [10:40:25]wFMCommunicate request_size=4 [10:40:25]MH_SAM_APDU [10:40:25]CAPDU: 80 13 01 00 [10:40:25]Write to MH i2c: E2 08 00 2E 05 80 13 01 00 00 00 00 00 B0 [10:40:25]Write i2c OK [10:40:25]MH_I2C_Read... [10:40:25]Read from MH i2c: E2 [10:40:25]MH_I2C_Read... [10:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:25]Read from MH i2c: E2 0E 00 [10:40:25]MH_I2C_Read... [10:40:25]Read from MH i2c: E2 0E 00 2E 05 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C9 [10:40:25]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:40:25]wFMCommunicate OK [10:40:25]SAM_PROTO_GetShiftState done [10:40:25]FM_GetShiftState done [10:40:25]req_shift_opened done [10:40:25]requested_item shift.open_date is exist - process it [10:40:25]req_shift_open_date [10:40:25]req_shift_open_date done [10:40:25]produce_requested_data done [10:40:25]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115343,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [10:40:25]process_action_free close_receipt [10:40:25]json_value_free [10:40:25]json_value_free done [10:40:25]process_json_proto returns [10:40:25]Send response to host [10:40:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115343,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [10:40:25]free response buf [10:40:25]execute_script done [10:40:25]execute_script returns [10:40:25]free content buf [10:40:25]Sock 7.Close socket [10:40:25]Sock 7.Thread stoped [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:41:03]OFD Sender: No OFD packet to send [10:41:08]OFD Sender: No OFD packet to send [10:41:13]OFD Sender: No OFD packet to send [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:38]OFD Sender: No OFD packet to send [10:41:43]OFD Sender: No OFD packet to send [10:41:48]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:36]accept exits with 9 [10:46:36]New connection [10:46:36]New thread 3067030884 created [10:46:36]Thread 3067174244 joined [10:46:36]Waiting for new connection... [10:46:36] Sock 9.Parse request [10:46:36]Sock 9.Check first char [10:46:36]Sock 9.First char is OK [10:46:36]request: POST /json_proto HTTP/1.0 [10:46:36]Method: POST [10:46:36]URL: /json_proto [10:46:36]Method is POST - this is cgi request [10:46:36]url: /json_proto [10:46:36]query_string will be loaded in cgi processing [10:46:36]execute_cgi json_proto POST (null) [10:46:36]execute_cgi path=json_proto method=POST [10:46:36]POST find Content-Length [10:46:36]Host: 172.17.41.136:8080 [10:46:36]Content-Length: 3237 [10:46:36]Content-Type: application/json [10:46:36] [10:46:36]POST finish read [10:46:36]Found Content-Length = 3237 [10:46:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343801", "tax_sys" : 0, "items" : [ { "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700041420084", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST ANTIBACTERIAL 100 \u0448\u0442", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rat! [10:46:36]execute_script... [10:46:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343801", "tax_sys" : 0, "items" : [ { "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700041420084", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST ANTIBACTERIAL 100 \u0448\u0442", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rat! [10:46:36]POST & json_proto [10:46:36]process_json_proto [10:46:36]json parse error [10:46:36]process_json_proto returns [10:46:36]execute_script returns [10:46:36]free content buf [10:46:36]Sock 9.Close socket [10:46:36]Sock 9.Thread stoped [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 5E [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]Read from MH i2c: *** [00:00:10]A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725B9 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 43328916+1683673115=1727002031 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x334f0623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 5F [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 38 00 FF FF 8E [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 B0 F5 EF 66 1B D0 5A 64 A2 [10:47:12]Current date/time: 22.09.2024 10:47 [10:47:12]FM_Init [10:47:12]wFMConnect [10:47:12]MH_SAM_On [10:47:12]Write to MH i2c: E0 00 00 08 00 E7 [10:47:12]Write i2c OK [10:47:12]MH_I2C_Read... [10:47:12]*** iso7816_init finished! [10:47:12]*** atr: [10:47:12]*** 0F 3B D5 18 FF 81 91 FE [10:47:12]*** 1F C3 80 73 C8 21 10 0A [10:47:12]*** 00 00 00 00 00 00 00 00 [10:47:12]*** 00 00 00 00 00 00 00 00 [10:47:12]*** 00 00 00 00 00 00 00 00 [10:47:12]*** 00 00 00 00 00 00 00 00 [10:47:12]*** 00 00 00 00 00 00 00 00 [10:47:12]*** 00 00 00 00 00 00 00 00 [10:47:12]Read from MH i2c: E0 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E0 10 00 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [10:47:12]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [10:47:12]wFMCommunicate request_size=10 [10:47:12]MH_SAM_APDU [10:47:12]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [10:47:12]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [10:47:12]Write i2c OK [10:47:12]MH_I2C_Read... [10:47:12]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [10:47:12]Read from MH i2c: E2 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E2 03 00 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [10:47:12]RAPDU: 90 00 [10:47:12]wFMCommunicate OK [10:47:12]wFMCommunicate request_size=4 [10:47:12]MH_SAM_APDU [10:47:12]CAPDU: 80 11 00 00 [10:47:12]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [10:47:12]Write i2c OK [10:47:12]MH_I2C_Read... [10:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:12]Read from MH i2c: E2 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E2 17 00 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [10:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:47:12]wFMCommunicate OK [10:47:12]Detected FM SN is 0000000000871830 [10:47:12]Stored FM SN is 0000000000871830 [10:47:12]wFMCommunicate request_size=9 [10:47:12]MH_SAM_APDU [10:47:12]CAPDU: 80 16 00 00 04 2B 08 01 00 [10:47:12]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 2B 08 01 00 00 00 C6 [10:47:12]Write i2c OK [10:47:12]MH_I2C_Read... [10:47:12]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [10:47:12]Read from MH i2c: E2 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E2 03 00 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [10:47:12]RAPDU: 90 00 [10:47:12]wFMCommunicate OK [10:47:12]FM PIN OK [10:47:12]wFMCommunicate request_size=8 [10:47:12]MH_SAM_APDU [10:47:12]CAPDU: 80 14 04 00 03 02 00 01 [10:47:12]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [10:47:12]Write i2c OK [10:47:12]MH_I2C_Read... [10:47:12]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [10:47:12]Read from MH i2c: E2 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E2 03 00 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [10:47:12]RAPDU: 90 00 [10:47:12]wFMCommunicate OK [10:47:12]wFMCommunicate request_size=13 [10:47:12]MH_SAM_APDU [10:47:12]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [10:47:12]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [10:47:12]Write i2c OK [10:47:12]MH_I2C_Read... [10:47:12]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [10:47:12]Read from MH i2c: E2 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E2 03 00 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [10:47:12]RAPDU: 90 00 [10:47:12]wFMCommunicate OK [10:47:12]wFMCommunicate request_size=4 [10:47:12]MH_SAM_APDU [10:47:12]CAPDU: 80 11 00 00 [10:47:12]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [10:47:12]Write i2c OK [10:47:12]MH_I2C_Read... [10:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:12]Read from MH i2c: E2 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E2 17 00 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D6 [10:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:47:12]wFMCommunicate OK [10:47:12]DocumentArchiveInit [10:47:12]Start Httpd... [10:47:12]Httpd thread 3067071844 created [10:47:12]Write to MH i2c: 01 00 00 0F 00 0F [10:47:12]Write i2c OK [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: 01 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: 01 07 00 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [10:47:12]MH Int Process started [10:47:12]Allocated Socket 8 [10:47:12]Bind OK [10:47:12]Listen OK [10:47:12]httpd running on port 8080 [10:47:12]Waiting for new connection... [10:47:12]accept exits with 9 [10:47:12]New connection [10:47:12]New thread 3066785124 created [10:47:12]Waiting for new connection... [10:47:12] Sock 9.Parse request [10:47:12]Sock 9.Check first char [10:47:12]Sock 9.First char is OK [10:47:12]request: POST /json_proto HTTP/1.0 [10:47:12]Method: POST [10:47:12]URL: /json_proto [10:47:12]Method is POST - this is cgi request [10:47:12]url: /json_proto [10:47:12]query_string will be loaded in cgi processing [10:47:12]execute_cgi json_proto POST (null) [10:47:12]execute_cgi path=json_proto method=POST [10:47:12]POST find Content-Length [10:47:12]Host: 172.17.41.136:8080 [10:47:12]Content-Length: 215 [10:47:12]Content-Type: application/json [10:47:12] [10:47:12]POST finish read [10:47:12]Found Content-Length = 215 [10:47:12]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" ] } } [10:47:12]execute_script... [10:47:12]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" ] } } [10:47:12]POST & json_proto [10:47:12]process_json_proto [10:47:12]json parsed OK: [10:47:12]protocol is kg_v1.0 [10:47:12]action value=get_value [10:47:12]process_action get_value [10:47:12]cmd_get_value [10:47:12]process_action get_value done [10:47:12]requested_data is exist [10:47:12]produce_requested_data [10:47:12]requested_item kkm.sn is exist - process it [10:47:12]requested_item kkm.ver is exist - process it [10:47:12]requested_item fm.sn is exist - process it [10:47:12]wFMCommunicate request_size=4 [10:47:12]MH_SAM_APDU [10:47:12]CAPDU: 80 11 00 00 [10:47:12]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [10:47:12]Write i2c OK [10:47:12]MH_I2C_Read... [10:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:12]Read from MH i2c: E2 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E2 17 00 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D8 [10:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:47:12]wFMCommunicate OK [10:47:12]requested_item fd.num is exist - process it [10:47:12]SAM_PROTO_GetFieldsCounters [10:47:12]wFMCommunicate request_size=4 [10:47:12]MH_SAM_APDU [10:47:12]CAPDU: 80 13 00 00 [10:47:12]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [10:47:12]Write i2c OK [10:47:12]MH_I2C_Read... [10:47:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:13]Read from MH i2c: E2 [10:47:13]MH_I2C_Read... [10:47:13]Read from MH i2c: E2 62 00 [10:47:13]MH_I2C_Read... [10:47:13]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8F C2 01 00 0E 04 04 00 D7 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 87 [10:47: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8F C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:13]wFMCommunicate OK [10:47:13]SAM_PROTO_GetFieldsCounters done [10:47:13]requested_item shift.num is exist - process it [10:47:13]requested_item shift.opened is exist - process it [10:47:13]req_shift_opened [10:47:13]FM_GetShiftState [10:47:13]SAM_PROTO_GetShiftState [10:47:13]wFMCommunicate request_size=4 [10:47:13]MH_SAM_APDU [10:47:13]CAPDU: 80 13 01 00 [10:47:13]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [10:47:13]Write i2c OK [10:47:13]MH_I2C_Read... [10:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:13]Read from MH i2c: E2 [10:47:13]MH_I2C_Read... [10:47:13]Read from MH i2c: E2 0E 00 [10:47:13]MH_I2C_Read... [10:47:13]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A8 [10:47:13]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:47:13]wFMCommunicate OK [10:47:13]SAM_PROTO_GetShiftState done [10:47:13]FM_GetShiftState done [10:47:13]req_shift_opened done [10:47:13]requested_item shift.open_date is exist - process it [10:47:13]req_shift_open_date [10:47:13]req_shift_open_date done [10:47:13]produce_requested_data done [10:47:13]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115343,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [10:47:13]process_action_free get_value [10:47:13]json_value_free [10:47:13]json_value_free done [10:47:13]process_json_proto returns [10:47:13]Send response to host [10:47:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115343,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [10:47:13]free response buf [10:47:13]execute_script done [10:47:13]execute_script returns [10:47:13]free content buf [10:47:13]Sock 9.Close socket [10:47:13]Sock 9.Thread stoped [10:47:13]accept exits with 10 [10:47:13]New connection [10:47:13]New thread 3066641764 created [10:47:13]Thread 3066785124 joined [10:47:13]Waiting for new connection... [10:47:13] Sock 10.Parse request [10:47:13]Sock 10.Check first char [10:47:13]Sock 10.First char is OK [10:47:13]request: POST /json_proto HTTP/1.0 [10:47:13]Method: POST [10:47:13]URL: /json_proto [10:47:13]Method is POST - this is cgi request [10:47:13]url: /json_proto [10:47:13]query_string will be loaded in cgi processing [10:47:13]execute_cgi json_proto POST (null) [10:47:13]execute_cgi path=json_proto method=POST [10:47:13]POST find Content-Length [10:47:13]Host: 172.17.41.136:8080 [10:47:13]Content-Length: 331 [10:47:13]Content-Type: application/json [10:47:13] [10:47:13]POST finish read [10:47:13]Found Content-Length = 331 [10:47: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" ] } } [10:47:13]execute_script... [10:47: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" ] } } [10:47:13]POST & json_proto [10:47:13]process_json_proto [10:47:13]json parsed OK: [10:47:13]protocol is kg_v1.0 [10:47:13]action value=get_value [10:47:13]process_action get_value [10:47:13]cmd_get_value [10:47:13]process_action get_value done [10:47:13]requested_data is exist [10:47:13]produce_requested_data [10:47:13]requested_item fm.sale.total is exist - process it [10:47:13]SAM_PROTO_GetFMData [10:47:13]wFMCommunicate request_size=4 [10:47:13]MH_SAM_APDU [10:47:13]CAPDU: 80 13 03 00 [10:47:13]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [10:47:13]Write i2c OK [10:47:13]MH_I2C_Read... [10:47:13]OFD Sender: No OFD packet to send [10:47:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:47:13]Read from MH i2c: E2 [10:47:13]MH_I2C_Read... [10:47:13]Read from MH i2c: E2 FD 00 [10:47:13]MH_I2C_Read... [10:47:13]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 E0 BE 01 00 69 04 A3 00 6F 04 04 00 63 BD 01 00 B1 04 05 00 C0 9B 8C 80 01 70 04 05 00 61 E1 02 47 01 72 04 04 00 5F BA 89 39 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 33 2D D8 28 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 E7 22 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 DF [10:47:13]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 E0 BE 01 00 69 04 A3 00 6F 04 04 00 63 BD 01 00 B1 04 05 00 C0 9B 8C 80 01 70 04 05 00 61 E1 02 47 01 72 04 04 00 5F BA 89 39 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 33 2D D8 28 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 E7 22 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 [10:47:13]wFMCommunicate OK [10:47:13]wFMCommunicate request_size=4 [10:47:13]MH_SAM_APDU [10:47:13]CAPDU: 80 17 00 00 [10:47:13]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [10:47:13]Write i2c OK [10:47:13]MH_I2C_Read... [10:47:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:47:13]Read from MH i2c: E2 [10:47:13]MH_I2C_Read... [10:47:13]Read from MH i2c: E2 FD 00 [10:47:13]MH_I2C_Read... [10:47:13]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 81 [10:47:13]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:47:13]wFMCommunicate OK [10:47:13]wFMCommunicate request_size=4 [10:47:13]MH_SAM_APDU [10:47:13]CAPDU: 80 17 00 00 [10:47:13]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [10:47:13]Write i2c OK [10:47:13]MH_I2C_Read... [10:47:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:47:14]Read from MH i2c: E2 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: E2 FD 00 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [10:47: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 [10:47:14]wFMCommunicate OK [10:47:14]wFMCommunicate request_size=4 [10:47:14]MH_SAM_APDU [10:47:14]CAPDU: 80 17 00 00 [10:47:14]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [10:47:14]Write i2c OK [10:47:14]MH_I2C_Read... [10:47:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:47:14]Read from MH i2c: E2 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: E2 FD 00 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [10:47:14]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 [10:47:14]wFMCommunicate OK [10:47:14]wFMCommunicate request_size=4 [10:47:14]MH_SAM_APDU [10:47:14]CAPDU: 80 17 00 00 [10:47:14]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [10:47:14]Write i2c OK [10:47:14]MH_I2C_Read... [10:47:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [10:47:14]Read from MH i2c: E2 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: E2 E2 00 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [10:47:14]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 [10:47:14]wFMCommunicate OK [10:47:14]SAM_PROTO_GetFMData done [10:47:14]requested_item fm.sale_refund.total is exist - process it [10:47:14]requested_item fm.buy.total is exist - process it [10:47:14]requested_item shift.sale.total is exist - process it [10:47:14]SAM_PROTO_GetShiftData [10:47:14]wFMCommunicate request_size=4 [10:47:14]MH_SAM_APDU [10:47:14]CAPDU: 80 13 02 00 [10:47:14]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [10:47:14]Write i2c OK [10:47:14]MH_I2C_Read... [10:47:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:47:15]Read from MH i2c: E2 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 FD 00 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 3D 00 00 00 69 04 9B 00 6F 04 04 00 3D 00 00 00 B1 04 03 00 04 6F 1E 70 04 03 00 50 1A 18 72 04 03 00 B4 54 06 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 3B 03 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 EA 44 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 C4 [10:47:15]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 3D 00 00 00 69 04 9B 00 6F 04 04 00 3D 00 00 00 B1 04 03 00 04 6F 1E 70 04 03 00 50 1A 18 72 04 03 00 B4 54 06 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 3B 03 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 EA 44 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [10:47:15]wFMCommunicate OK [10:47:15]wFMCommunicate request_size=4 [10:47:15]MH_SAM_APDU [10:47:15]CAPDU: 80 17 00 00 [10:47:15]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [10:47:15]Write i2c OK [10:47:15]MH_I2C_Read... [10:47:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:47:15]Read from MH i2c: E2 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 FD 00 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BB [10:47:15]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:47:15]wFMCommunicate OK [10:47:15]wFMCommunicate request_size=4 [10:47:15]MH_SAM_APDU [10:47:15]CAPDU: 80 17 00 00 [10:47:15]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [10:47:15]Write i2c OK [10:47:15]MH_I2C_Read... [10:47:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:47:15]Read from MH i2c: E2 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 FD 00 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [10:47:15]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:47:15]wFMCommunicate OK [10:47:15]wFMCommunicate request_size=4 [10:47:15]MH_SAM_APDU [10:47:15]CAPDU: 80 17 00 00 [10:47:15]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [10:47:15]Write i2c OK [10:47:15]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 FD 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 0D [10:47:16]RAPDU: 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 90 00 [10:47:16]wFMCommunicate OK [10:47:16]wFMCommunicate request_size=4 [10:47:16]MH_SAM_APDU [10:47:16]CAPDU: 80 17 00 00 [10:47:16]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 CB 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 85 [10:47:16]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:47:16]wFMCommunicate OK [10:47:16]SAM_PROTO_GetShiftData done [10:47:16]requested_item shift.sale.total_cash is exist - process it [10:47:16]requested_item shift.sale_refund.total is exist - process it [10:47:16]requested_item shift.sale_refund.total_cash is exist - process it [10:47:16]requested_item shift.buy.total is exist - process it [10:47:16]requested_item shift.buy.total_cash is exist - process it [10:47:16]produce_requested_data done [10:47:16]produce_requested_data return {"fm.sale.total":64516658.56,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":19945.00,"shift.sale.total_cash":15796.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} [10:47:16]process_action_free get_value [10:47:16]json_value_free [10:47:16]json_value_free done [10:47:16]process_json_proto returns [10:47:16]Send response to host [10:47:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64516658.56,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":19945.00,"shift.sale.total_cash":15796.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}}} [10:47:16]free response buf [10:47:16]execute_script done [10:47:16]execute_script returns [10:47:16]free content buf [10:47:16]Sock 10.Close socket [10:47:16]Sock 10.Thread stoped [10:47:18]OFD Sender: No OFD packet to send [10:47:19]accept exits with 9 [10:47:19]New connection [10:47:19]New thread 3066785124 created [10:47:19]Thread 3066641764 joined [10:47:19]Waiting for new connection... [10:47:19] Sock 9.Parse request [10:47:19]Sock 9.Check first char [10:47:19]Sock 9.First char is OK [10:47:19]request: POST /json_proto HTTP/1.0 [10:47:19]Method: POST [10:47:19]URL: /json_proto [10:47:19]Method is POST - this is cgi request [10:47:19]url: /json_proto [10:47:19]query_string will be loaded in cgi processing [10:47:19]execute_cgi json_proto POST (null) [10:47:19]execute_cgi path=json_proto method=POST [10:47:19]POST find Content-Length [10:47:19]Host: 172.17.41.136:8080 [10:47:19]Content-Length: 3237 [10:47:19]Content-Type: application/json [10:47:19] [10:47:19]POST finish read [10:47:19]Found Content-Length = 3237 [10:47:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343801", "tax_sys" : 0, "items" : [ { "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700041420084", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST ANTIBACTERIAL 100 \u0448\u0442", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 87.00, "quantity" : 4.000, "sum" : 348.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681369", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u042B\u0420 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681086", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u044B\u0440 \u0441 \u0445\u0430\u043B\u0430\u043F\u0435\u043D\u044C\u043E 55 \u0433\u0440", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:19]execute_script... [10:47:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343801", "tax_sys" : 0, "items" : [ { "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700041420084", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST ANTIBACTERIAL 100 \u0448\u0442", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 87.00, "quantity" : 4.000, "sum" : 348.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681369", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u042B\u0420 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681086", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u044B\u0440 \u0441 \u0445\u0430\u043B\u0430\u043F\u0435\u043D\u044C\u043E 55 \u0433\u0440", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:19]POST & json_proto [10:47:19]process_json_proto [10:47:19]json parsed OK: [10:47:19]protocol is kg_v1.0 [10:47:19]action value=close_receipt [10:47:19]process_action close_receipt [10:47:19]cmd_close_receipt [10:47:19]MH_GetDate [10:47:19]Write to MH i2c: F0 00 00 1D 00 0C [10:47:19]Write i2c OK [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: F0 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: F0 09 00 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: F0 09 00 1D 00 00 B7 F5 EF 66 1B D0 5A 64 BF [10:47:19]GetLastDocTimeStamp 1727001621 [10:47:19]current date 1727002039 [10:47:19]FM_GetShiftState [10:47:19]SAM_PROTO_GetShiftState [10:47:19]wFMCommunicate request_size=4 [10:47:19]MH_SAM_APDU [10:47:19]CAPDU: 80 13 01 00 [10:47:19]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [10:47:19]Write i2c OK [10:47:19]MH_I2C_Read... [10:47:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:19]Read from MH i2c: E2 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: E2 0E 00 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B4 [10:47:19]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:47:19]wFMCommunicate OK [10:47:19]SAM_PROTO_GetShiftState done [10:47:19]FM_GetShiftState done [10:47:19]opened in 1726965840 [10:47:19]opened+sec_in_day 1727052240 [10:47:19]quantity*price = 5500 [10:47:19]sum+1 = 5501 [10:47:19]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700041420084 Салфетки влажн BEST ANTIBACTERIAL 100 шт 1.000 * 190.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5000159381178 Шок Батончик Баунти Трио 82,5г 2.000 * 89.00 = 178.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065000790 Шок M&M`s с арахисом 45г 2.000 * 70.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4860019001339 Вода Боржоми 0,33л ст 4.000 * 87.00 = 348.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870235681369 ЧИПСЫ SLANG СО ВКУСОМ СЫР 60Г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870235681086 Grizzly волнистые Сыр с халапеньо 55 гр 2.000 * 90.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 2.000 * 7.00 = 14.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032800010 Сочник DC творог 75 г 2.000 * 30.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1264.00 НСП 1% : 11.17 НДС 12% : 134.23 Наличными: 1264.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 62 22.09.2024 10:47 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115344 ФПД: 235216478325015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T104720&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115344&fm=235216478325015&tin=02508201610067®Number=0000000000091831&sum=126400 0 [10:47:21]StoreToDocumentArchive [10:47:21]shift 471 fd 115344 [10:47:21]save to /storage/0471/doc_00115344 [10:47:21]save last doc name /storage/0471/doc_00115344 to /storage/kkm_last_doc_name [10:47:21]save OK [10:47:21]Clear old archive folders... [10:47:21]ProcessDocumentItem done err = 0, tmpTLVsize=1346 [10:47:21]tlvbuf is 00219010 [10:47:21]SAM_PROTO_ClearQueue [10:47:21]wFMCommunicate request_size=4 [10:47:21]MH_SAM_APDU [10:47:21]CAPDU: 80 09 00 00 [10:47:21]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [10:47:21]Write i2c OK [10:47:21]MH_I2C_Read... [10:47:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:21]Read from MH i2c: E2 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 03 00 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [10:47:21]RAPDU: 90 00 [10:47:21]wFMCommunicate OK [10:47:21]SAM_PROTO_ClearQueue done [10:47:21]KKMCreateOFDPacket [10:47:21]OFDProtocolAddRootSTLVToBuf [10:47:21]FM_MakeSignedData [10:47:21]FM_MakeSignedData [10:47:21]SAM_PROTO_SignData [10:47:21]wFMCommunicate request_size=4 [10:47:21]MH_SAM_APDU [10:47:21]CAPDU: 80 0D 01 02 [10:47:21]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [10:47:21]Write i2c OK [10:47:21]MH_I2C_Read... [10:47:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:21]Read from MH i2c: E2 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 03 00 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [10:47:21]RAPDU: 90 00 [10:47:21]wFMCommunicate OK [10:47:21]wFMCommunicate request_size=255 [10:47:21]MH_SAM_APDU [10:47:21]CAPDU: 80 0D 02 02 FA 03 00 42 05 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 [10:47:21]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 42 05 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 5E [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725B9 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 43328974+1683673115=1727002089 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x334f0623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 5F [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 38 00 FF FF 8E [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 E9 F5 EF 66 1B D0 5A 64 DB [10:48:09]Current date/time: 22.09.2024 10:48 [10:48:09]FM_Init [10:48:09]wFMConnect [10:48:09]MH_SAM_On [10:48:09]Write to MH i2c: E0 00 00 08 00 E7 [10:48:09]Write i2c OK [10:48:09]MH_I2C_Read... [10:48:09]*** iso7816_init finished! [10:48:09]*** atr: [10:48:09]*** 0F 3B D5 18 FF 81 91 FE [10:48:09]*** 1F C3 80 73 C8 21 10 0A [10:48:09]*** 00 00 00 00 00 00 00 00 [10:48:09]*** 00 00 00 00 00 00 00 00 [10:48:09]*** 00 00 00 00 00 00 00 00 [10:48:09]*** 00 00 00 00 00 00 00 00 [10:48:09]*** 00 00 00 00 00 00 00 00 [10:48:09]*** 00 00 00 00 00 00 00 00 [10:48:09]Read from MH i2c: E0 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E0 10 00 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [10:48:09]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [10:48:09]wFMCommunicate request_size=10 [10:48:09]MH_SAM_APDU [10:48:09]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [10:48:09]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [10:48:09]Write i2c OK [10:48:09]MH_I2C_Read... [10:48:09]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [10:48:09]Read from MH i2c: E2 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 03 00 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [10:48:09]RAPDU: 90 00 [10:48:09]wFMCommunicate OK [10:48:09]wFMCommunicate request_size=4 [10:48:09]MH_SAM_APDU [10:48:09]CAPDU: 80 11 00 00 [10:48:09]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [10:48:09]Write i2c OK [10:48:09]MH_I2C_Read... [10:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:09]Read from MH i2c: E2 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 17 00 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [10:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:48:09]wFMCommunicate OK [10:48:09]Detected FM SN is 0000000000871830 [10:48:09]Stored FM SN is 0000000000871830 [10:48:09]wFMCommunicate request_size=9 [10:48:09]MH_SAM_APDU [10:48:09]CAPDU: 80 16 00 00 04 2B 08 01 00 [10:48:09]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 2B 08 01 00 00 00 C6 [10:48:09]Write i2c OK [10:48:09]MH_I2C_Read... [10:48:09]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [10:48:09]Read from MH i2c: E2 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 03 00 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [10:48:09]RAPDU: 90 00 [10:48:09]wFMCommunicate OK [10:48:09]FM PIN OK [10:48:09]wFMCommunicate request_size=8 [10:48:09]MH_SAM_APDU [10:48:09]CAPDU: 80 14 04 00 03 02 00 01 [10:48:09]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [10:48:09]Write i2c OK [10:48:09]MH_I2C_Read... [10:48:09]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [10:48:09]Read from MH i2c: E2 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 03 00 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [10:48:09]RAPDU: 90 00 [10:48:09]wFMCommunicate OK [10:48:09]wFMCommunicate request_size=13 [10:48:09]MH_SAM_APDU [10:48:09]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [10:48:09]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [10:48:09]Write i2c OK [10:48:09]MH_I2C_Read... [10:48:09]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [10:48:09]Read from MH i2c: E2 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 03 00 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [10:48:09]RAPDU: 90 00 [10:48:09]wFMCommunicate OK [10:48:09]wFMCommunicate request_size=4 [10:48:09]MH_SAM_APDU [10:48:09]CAPDU: 80 11 00 00 [10:48:09]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [10:48:09]Write i2c OK [10:48:09]MH_I2C_Read... [10:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:09]Read from MH i2c: E2 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 17 00 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D6 [10:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:48:09]wFMCommunicate OK [10:48:09]DocumentArchiveInit [10:48:09]Start Httpd... [10:48:09]Httpd thread 3067112804 created [10:48:09]Write to MH i2c: 01 00 00 0F 00 0F [10:48:09]Write i2c OK [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: 01 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: 01 07 00 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [10:48:09]MH Int Process started [10:48:09]Allocated Socket 7 [10:48:09]Bind OK [10:48:09]Listen OK [10:48:09]httpd running on port 8080 [10:48:09]Waiting for new connection... [10:48:10]OFD Sender: No OFD packet to send [10:48:10]accept exits with 8 [10:48:10]New connection [10:48:10]New thread 3066826084 created [10:48:10]Waiting for new connection... [10:48:10] Sock 8.Parse request [10:48:10]Sock 8.Check first char [10:48:10]Sock 8.First char is OK [10:48:10]request: POST /json_proto HTTP/1.0 [10:48:10]Method: POST [10:48:10]URL: /json_proto [10:48:10]Method is POST - this is cgi request [10:48:10]url: /json_proto [10:48:10]query_string will be loaded in cgi processing [10:48:10]execute_cgi json_proto POST (null) [10:48:10]execute_cgi path=json_proto method=POST [10:48:10]POST find Content-Length [10:48:10]Host: 172.17.41.136:8080 [10:48:10]Content-Length: 215 [10:48:10]Content-Type: application/json [10:48:10] [10:48:10]POST finish read [10:48:10]Found Content-Length = 215 [10:48:10]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" ] } } [10:48:10]execute_script... [10:48:10]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" ] } } [10:48:10]POST & json_proto [10:48:10]process_json_proto [10:48:10]json parsed OK: [10:48:10]protocol is kg_v1.0 [10:48:10]action value=get_value [10:48:10]process_action get_value [10:48:10]cmd_get_value [10:48:10]process_action get_value done [10:48:10]requested_data is exist [10:48:10]produce_requested_data [10:48:10]requested_item kkm.sn is exist - process it [10:48:10]requested_item kkm.ver is exist - process it [10:48:10]requested_item fm.sn is exist - process it [10:48:10]wFMCommunicate request_size=4 [10:48:10]MH_SAM_APDU [10:48:10]CAPDU: 80 11 00 00 [10:48:10]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [10:48:10]Write i2c OK [10:48:10]MH_I2C_Read... [10:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:10]Read from MH i2c: E2 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 17 00 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D8 [10:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:48:10]wFMCommunicate OK [10:48:10]requested_item fd.num is exist - process it [10:48:10]SAM_PROTO_GetFieldsCounters [10:48:10]wFMCommunicate request_size=4 [10:48:10]MH_SAM_APDU [10:48:10]CAPDU: 80 13 00 00 [10:48:10]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [10:48:10]Write i2c OK [10:48:10]MH_I2C_Read... [10:48:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:10]Read from MH i2c: E2 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 62 00 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 90 C2 01 00 0E 04 04 00 D7 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 8B [10:48:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 90 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:10]wFMCommunicate OK [10:48:10]SAM_PROTO_GetFieldsCounters done [10:48:10]requested_item shift.num is exist - process it [10:48:10]requested_item shift.opened is exist - process it [10:48:10]req_shift_opened [10:48:10]FM_GetShiftState [10:48:10]SAM_PROTO_GetShiftState [10:48:10]wFMCommunicate request_size=4 [10:48:10]MH_SAM_APDU [10:48:10]CAPDU: 80 13 01 00 [10:48:10]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [10:48:10]Write i2c OK [10:48:10]MH_I2C_Read... [10:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:10]Read from MH i2c: E2 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 0E 00 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A8 [10:48:10]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:48:10]wFMCommunicate OK [10:48:10]SAM_PROTO_GetShiftState done [10:48:10]FM_GetShiftState done [10:48:10]req_shift_opened done [10:48:10]requested_item shift.open_date is exist - process it [10:48:10]req_shift_open_date [10:48:10]req_shift_open_date done [10:48:10]produce_requested_data done [10:48:10]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115344,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [10:48:10]process_action_free get_value [10:48:10]json_value_free [10:48:10]json_value_free done [10:48:10]process_json_proto returns [10:48:10]Send response to host [10:48:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115344,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [10:48:10]free response buf [10:48:10]execute_script done [10:48:10]execute_script returns [10:48:10]free content buf [10:48:10]Sock 8.Close socket [10:48:10]Sock 8.Thread stoped [10:48:10]accept exits with 9 [10:48:10]New connection [10:48:10]New thread 3066682724 created [10:48:10]Thread 3066826084 joined [10:48:10]Waiting for new connection... [10:48:10] Sock 9.Parse request [10:48:10]Sock 9.Check first char [10:48:10]Sock 9.First char is OK [10:48:10]request: POST /json_proto HTTP/1.0 [10:48:10]Method: POST [10:48:10]URL: /json_proto [10:48:10]Method is POST - this is cgi request [10:48:10]url: /json_proto [10:48:10]query_string will be loaded in cgi processing [10:48:10]execute_cgi json_proto POST (null) [10:48:10]execute_cgi path=json_proto method=POST [10:48:10]POST find Content-Length [10:48:10]Host: 172.17.41.136:8080 [10:48:10]Content-Length: 331 [10:48:10]Content-Type: application/json [10:48:10] [10:48:10]POST finish read [10:48:10]Found Content-Length = 331 [10:48:10]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" ] } } [10:48:10]execute_script... [10:48:10]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" ] } } [10:48:10]POST & json_proto [10:48:10]process_json_proto [10:48:10]json parsed OK: [10:48:10]protocol is kg_v1.0 [10:48:10]action value=get_value [10:48:10]process_action get_value [10:48:10]cmd_get_value [10:48:10]process_action get_value done [10:48:10]requested_data is exist [10:48:10]produce_requested_data [10:48:10]requested_item fm.sale.total is exist - process it [10:48:10]SAM_PROTO_GetFMData [10:48:10]wFMCommunicate request_size=4 [10:48:10]MH_SAM_APDU [10:48:10]CAPDU: 80 13 03 00 [10:48:10]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [10:48:10]Write i2c OK [10:48:10]MH_I2C_Read... [10:48:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:48:11]Read from MH i2c: E2 [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: E2 FD 00 [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 E1 BE 01 00 69 04 A3 00 6F 04 04 00 64 BD 01 00 B1 04 05 00 80 89 8E 80 01 70 04 05 00 21 CF 04 47 01 72 04 04 00 5F BA 89 39 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 A2 61 D8 28 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 44 27 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 46 [10:48:11]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 E1 BE 01 00 69 04 A3 00 6F 04 04 00 64 BD 01 00 B1 04 05 00 80 89 8E 80 01 70 04 05 00 21 CF 04 47 01 72 04 04 00 5F BA 89 39 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 A2 61 D8 28 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 44 27 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 [10:48:11]wFMCommunicate OK [10:48:11]wFMCommunicate request_size=4 [10:48:11]MH_SAM_APDU [10:48:11]CAPDU: 80 17 00 00 [10:48:11]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [10:48:11]Write i2c OK [10:48:11]MH_I2C_Read... [10:48:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:48:11]Read from MH i2c: E2 [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: E2 FD 00 [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 81 [10:48:11]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:48:11]wFMCommunicate OK [10:48:11]wFMCommunicate request_size=4 [10:48:11]MH_SAM_APDU [10:48:11]CAPDU: 80 17 00 00 [10:48:11]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [10:48:11]Write i2c OK [10:48:11]MH_I2C_Read... [10:48:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:48:11]Read from MH i2c: E2 [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: E2 FD 00 [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [10:48:11]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 [10:48:11]wFMCommunicate OK [10:48:11]wFMCommunicate request_size=4 [10:48:11]MH_SAM_APDU [10:48:11]CAPDU: 80 17 00 00 [10:48:11]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [10:48:11]Write i2c OK [10:48:11]MH_I2C_Read... [10:48:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:48:12]Read from MH i2c: E2 [10:48:12]MH_I2C_Read... [10:48:12]Read from MH i2c: E2 FD 00 [10:48:12]MH_I2C_Read... [10:48:12]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [10:48:12]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 [10:48:12]wFMCommunicate OK [10:48:12]wFMCommunicate request_size=4 [10:48:12]MH_SAM_APDU [10:48:12]CAPDU: 80 17 00 00 [10:48:12]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [10:48:12]Write i2c OK [10:48:12]MH_I2C_Read... [10:48:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [10:48:12]Read from MH i2c: E2 [10:48:12]MH_I2C_Read... [10:48:12]Read from MH i2c: E2 E2 00 [10:48:12]MH_I2C_Read... [10:48:12]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [10:48:12]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 [10:48:12]wFMCommunicate OK [10:48:12]SAM_PROTO_GetFMData done [10:48:12]requested_item fm.sale_refund.total is exist - process it [10:48:12]requested_item fm.buy.total is exist - process it [10:48:12]requested_item shift.sale.total is exist - process it [10:48:12]SAM_PROTO_GetShiftData [10:48:12]wFMCommunicate request_size=4 [10:48:12]MH_SAM_APDU [10:48:12]CAPDU: 80 13 02 00 [10:48:12]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [10:48:12]Write i2c OK [10:48:12]MH_I2C_Read... [10:48:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:48:12]Read from MH i2c: E2 [10:48:12]MH_I2C_Read... [10:48:12]Read from MH i2c: E2 FD 00 [10:48:12]MH_I2C_Read... [10:48:12]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 3E 00 00 00 69 04 9B 00 6F 04 04 00 3E 00 00 00 B1 04 03 00 C4 5C 20 70 04 03 00 10 08 1A 72 04 03 00 B4 54 06 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 D5 6F 03 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 47 49 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2A [10:48:12]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 3E 00 00 00 69 04 9B 00 6F 04 04 00 3E 00 00 00 B1 04 03 00 C4 5C 20 70 04 03 00 10 08 1A 72 04 03 00 B4 54 06 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 D5 6F 03 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 47 49 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:48:12]wFMCommunicate OK [10:48:12]wFMCommunicate request_size=4 [10:48:12]MH_SAM_APDU [10:48:12]CAPDU: 80 17 00 00 [10:48:12]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [10:48:12]Write i2c OK [10:48:12]MH_I2C_Read... [10:48:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:48:13]Read from MH i2c: E2 [10:48:13]MH_I2C_Read... [10:48:13]Read from MH i2c: E2 FD 00 [10:48:13]MH_I2C_Read... [10:48:13]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BB [10:48:13]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:48:13]wFMCommunicate OK [10:48:13]wFMCommunicate request_size=4 [10:48:13]MH_SAM_APDU [10:48:13]CAPDU: 80 17 00 00 [10:48:13]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [10:48:13]Write i2c OK [10:48:13]MH_I2C_Read... [10:48:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:48:13]Read from MH i2c: E2 [10:48:13]MH_I2C_Read... [10:48:13]Read from MH i2c: E2 FD 00 [10:48:13]MH_I2C_Read... [10:48:13]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [10:48:13]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:48:13]wFMCommunicate OK [10:48:13]wFMCommunicate request_size=4 [10:48:13]MH_SAM_APDU [10:48:13]CAPDU: 80 17 00 00 [10:48:13]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [10:48:13]Write i2c OK [10:48:13]MH_I2C_Read... [10:48:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:48:13]Read from MH i2c: E2 [10:48:13]MH_I2C_Read... [10:48:13]Read from MH i2c: E2 FD 00 [10:48:13]MH_I2C_Read... [10:48:13]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 0D [10:48:13]RAPDU: 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 90 00 [10:48:13]wFMCommunicate OK [10:48:13]wFMCommunicate request_size=4 [10:48:13]MH_SAM_APDU [10:48:13]CAPDU: 80 17 00 00 [10:48:13]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [10:48:13]Write i2c OK [10:48:13]MH_I2C_Read... [10:48:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:48:14]Read from MH i2c: E2 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 CB 00 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 85 [10:48:14]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:48:14]wFMCommunicate OK [10:48:14]SAM_PROTO_GetShiftData done [10:48:14]requested_item shift.sale.total_cash is exist - process it [10:48:14]requested_item shift.sale_refund.total is exist - process it [10:48:14]requested_item shift.sale_refund.total_cash is exist - process it [10:48:14]requested_item shift.buy.total is exist - process it [10:48:14]requested_item shift.buy.total_cash is exist - process it [10:48:14]produce_requested_data done [10:48:14]produce_requested_data return {"fm.sale.total":64517922.56,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":21209.00,"shift.sale.total_cash":17060.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} [10:48:14]process_action_free get_value [10:48:14]json_value_free [10:48:14]json_value_free done [10:48:14]process_json_proto returns [10:48:14]Send response to host [10:48:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64517922.56,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":21209.00,"shift.sale.total_cash":17060.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}}} [10:48:14]free response buf [10:48:14]execute_script done [10:48:14]execute_script returns [10:48:14]free content buf [10:48:14]Sock 9.Close socket [10:48:14]Sock 9.Thread stoped [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:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:31]accept exits with 8 [10:52:31]New connection [10:52:31]New thread 3066826084 created [10:52:31]Thread 3066682724 joined [10:52:31]Waiting for new connection... [10:52:31] Sock 8.Parse request [10:52:31]Sock 8.Check first char [10:52:31]Sock 8.First char is OK [10:52:31]request: POST /json_proto HTTP/1.0 [10:52:31]Method: POST [10:52:31]URL: /json_proto [10:52:31]Method is POST - this is cgi request [10:52:31]url: /json_proto [10:52:31]query_string will be loaded in cgi processing [10:52:31]execute_cgi json_proto POST (null) [10:52:31]execute_cgi path=json_proto method=POST [10:52:31]POST find Content-Length [10:52:31]Host: 172.17.41.136:8080 [10:52:31]Content-Length: 821 [10:52:31]Content-Type: application/json [10:52:31] [10:52:31]POST finish read [10:52:31]Found Content-Length = 821 [10:52:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 70.440, "sum" : 5226.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 5226.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:31]execute_script... [10:52: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)24616612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 70.440, "sum" : 5226.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 5226.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:31]POST & json_proto [10:52:31]process_json_proto [10:52:31]json parsed OK: [10:52:31]protocol is kg_v1.0 [10:52:31]action value=close_receipt [10:52:31]process_action close_receipt [10:52:31]cmd_close_receipt [10:52:31]MH_GetDate [10:52:31]Write to MH i2c: F0 00 00 1D 00 0C [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: F0 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: F0 09 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: F0 09 00 1D 00 00 F0 F6 EF 66 1B D0 5A 64 F9 [10:52:31]GetLastDocTimeStamp 97 [10:52:31]current date 1727002352 [10:52:31]FM_GetShiftState [10:52:31]SAM_PROTO_GetShiftState [10:52:31]wFMCommunicate request_size=4 [10:52:31]MH_SAM_APDU [10:52:31]CAPDU: 80 13 01 00 [10:52:31]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:31]Read from MH i2c: E2 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 0E 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B4 [10:52:31]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:52:31]wFMCommunicate OK [10:52:31]SAM_PROTO_GetShiftState done [10:52:31]FM_GetShiftState done [10:52:31]opened in 1726965840 [10:52:31]opened+sec_in_day 1727052240 [10:52:31]quantity*price = 522664 [10:52:31]sum+1 = 522666 [10:52:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5226.65 НСП 1% : 46.25 НДС 12% : 555.04 Наличными: 0.00 Безнал.: 5226.65 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 63 22.09.2024 10:52 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115345 ФПД: 46102056348658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T105232&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115345&fm=46102056348658&tin=02508201610067®Number=0000000000091831&sum=522665 [10:52:33]StoreToDocumentArchive [10:52:33]shift 471 fd 115345 [10:52:33]save to /storage/0471/doc_00115345 [10:52:33]save last doc name /storage/0471/doc_00115345 to /storage/kkm_last_doc_name [10:52:33]save OK [10:52:33]Clear old archive folders... [10:52:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:33]tlvbuf is 01BF2B20 [10:52:33]SAM_PROTO_ClearQueue [10:52:33]wFMCommunicate request_size=4 [10:52:33]MH_SAM_APDU [10:52:33]CAPDU: 80 09 00 00 [10:52:33]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:33]Read from MH i2c: E2 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 03 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [10:52:33]RAPDU: 90 00 [10:52:33]wFMCommunicate OK [10:52:33]SAM_PROTO_ClearQueue done [10:52:33]KKMCreateOFDPacket [10:52:33]OFDProtocolAddRootSTLVToBuf [10:52:33]FM_MakeSignedData [10:52:33]FM_MakeSignedData [10:52:33]SAM_PROTO_SignData [10:52:33]wFMCommunicate request_size=4 [10:52:33]MH_SAM_APDU [10:52:33]CAPDU: 80 0D 01 02 [10:52:33]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:33]Read from MH i2c: E2 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 03 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [10:52:33]RAPDU: 90 00 [10:52:33]wFMCommunicate OK [10:52:33]wFMCommunicate request_size=255 [10:52:33]MH_SAM_APDU [10:52:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 28 13 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A9 F9 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 F9 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 D8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 F9 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 F0 F6 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 91 C2 01 00 35 04 06 00 29 [10:52:33]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 28 13 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A9 F9 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 F9 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 D8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 F9 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 F0 F6 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 91 C2 01 00 35 04 06 00 29 00 00 94 [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:33]Read from MH i2c: E2 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 03 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [10:52:33]RAPDU: 90 00 [10:52:33]wFMCommunicate OK [10:52:33]wFMCommunicate request_size=10 [10:52:33]MH_SAM_APDU [10:52:33]CAPDU: 80 0D 02 02 05 ED F8 B1 2B F2 [10:52:33]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 ED F8 B1 2B F2 00 00 65 [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:33]Read from MH i2c: E2 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 03 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [10:52:33]RAPDU: 90 00 [10:52:33]wFMCommunicate OK [10:52:33]wFMCommunicate request_size=4 [10:52:33]MH_SAM_APDU [10:52:33]CAPDU: 80 0D 03 02 [10:52:33]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:33]Read from MH i2c: E2 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 0B 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 0B 00 2F 00 00 7B 7E 42 49 C5 FC 85 9A 90 00 0F [10:52:33]RAPDU: 7B 7E 42 49 C5 FC 85 9A 90 00 [10:52:33]wFMCommunicate OK [10:52:33]SAM_PROTO_SignData done [10:52:33]FM_MakeSignedData done [10:52:33]CreateOFDProtocolMessage [10:52:33]wFMCommunicate request_size=4 [10:52:33]MH_SAM_APDU [10:52:33]CAPDU: 80 11 00 00 [10:52:33]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:33]Read from MH i2c: E2 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 17 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F8 [10:52:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:52:33]wFMCommunicate OK [10:52:33]CreateOFDProtocolMessage done [10:52:33]OFDSenderStorePacket 115345 [10:52:33]StoreOFDPacket docnum=115345 [10:52:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 B3 CE 07 01 7F CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 28 13 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A9 F9 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 F9 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 D8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 F9 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 F0 F6 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 91 C2 01 00 35 04 06 00 29 ED F8 B1 2B F2 7B 7E 42 49 C5 FC 85 9A [10:52:33]CheckFolder [10:52:33]dirname=/storage/ofd_packets [10:52:33]CheckFolder done [10:52:33]ProducePacketName [10:52:33]name=ofd_packets/00115345 [10:52:33]NVStorageSaveData ofd_packets/00115345 [10:52:33]File name is /storage/ofd_packets/00115345 [10:52:33]Write 301 bytes [10:52:33]NVStorageSaveData done [10:52:33]OFDSenderStorePacket done [10:52:33]KKMCreateOFDPacket done [10:52:33]NVStorageSaveData kkm_last_timestamp [10:52:33]File name is /storage/kkm_last_timestamp [10:52:33]Write 4 bytes [10:52:33]NVStorageSaveData done [10:52:33]ExternCall_PrintAddStr [10:52:33]wPrintStart [10:52:33]Write to MH i2c: 01 00 00 31 00 31 [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: 01 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: 01 07 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [10:52:33]RasterBufferAndPrint [10:52:33]line Счет N : (1)24616612 [10:52:33]line ИНН: 02508201610067 [10:52:33]line Контрольно-Кассовый Чек [10:52:33]line ПРОДАЖА [10:52:33]line ТРК (МРК, ГНК) : 42 [10:52:33]line Товар: 2710124500 [10:52:33]line Аи-95-К-5 [10:52:33]line 70.440 * 74.20 [10:52:33]line = 5226.65 [10:52:33]line НДС 12% НСП 1% [10:52:33]line > о реализуемом товаре [10:52:33]line ИТОГО: 5226.65 [10:52:33]line НСП 1% : 46.25 [10:52:33]line НДС 12% : 555.04 [10:52:33]line Наличными: 0.00 [10:52:33]line Безнал.: 5226.65 [10:52:33]line Место: АЗС № 90 "Партнер Нефть" [10:52:33]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:52:33]line СНО: Общий режим [10:52:33]line Чек 63 22.09.2024 10:52 [10:52:33]line Смена: 471 ФФД: 1.0 [10:52:33]line ЗНМ: 0300000120 [10:52:33]line РНМ: 0000000000091831 [10:52:33]line Версия ККМ: 001 [10:52:33]line Платежная система: Бакай Банк [10:52:33]line ФМ: 0000000000871830 [10:52:33]line ФД: 115345 [10:52:33]line ФПД: 46102056348658 [10:52:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T105232&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115345&fm=46102056348658&tin=02508201610067®Number=0000000000091831&sum=522665 [10:52:33]written 0, free lines is 4095 [10:52:33]OFD Sender: Processing packet 115345 [packets to send 481, broken 480] [10:52:33]ProducePacketName [10:52:33]name=ofd_packets/00115345 [10:52:33]OFD Sender: To server: pG, [10:52:33]CommunicateWithHost lk.salyk.kg:30040 [10:52:33]ConnectInit lk.salyk.kg [10:52:33]Connected sock=10 [10:52:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 B3 CE 07 01 7F CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 28 13 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A9 F9 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 F9 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 D8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 F9 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 F0 F6 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 91 C2 01 00 35 04 06 00 29 ED F8 B1 2B F2 7B 7E 42 49 C5 FC 85 9A [10:52:34]Write to MH i2c: 01 00 00 5A 00 5A [10:52:34]Write i2c OK [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: 01 [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: 01 07 00 [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 72 0C DF [10:52:34]RasterBufferAndPrint [10:52:34]line [10:52:34]line [10:52:34]line [10:52:34]line [10:52:34]line [10:52:34]written 0, free lines is 3191 [10:52:34]MH_Cut [10:52:34]Write to MH i2c: D1 01 00 61 00 01 33 [10:52:34]Write i2c OK [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: D1 [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: D1 01 00 [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: D1 01 00 61 00 00 32 [10:52:34]Write to MH i2c: 01 00 00 62 00 62 [10:52:34]Write i2c OK [10:52:34]MH_I2C_Read... [10:52:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 93 AA 47 00 3F 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 31 38 33 30 10 04 04 00 91 C2 01 00 F4 03 04 00 36 9C EF 66 B6 04 01 00 00 3B 25 15 A8 F5 9A 02 14 [10:52:34]CommunicateWithHost err = 0 [10:52:34]CheckOFDResponse [10:52:34]1017 (14) - 77093643461234 [10:52:34]1041 (16) - 0000000000871830 [10:52:34]1040 (4) - 115345 [10:52:34]1012 (4) - 22.09.2024 04:25 [10:52:34]1206 (1) - 0 [10:52:34]OFD Sender: Remove packet 115345 [10:52:34]ProducePacketName [10:52:34]name=ofd_packets/00115345 [10:52:34]NVStorageDeleteData [10:52:34]OFD Sender: No OFD packet to send [10:52:35]*** Cut start [10:52:35]*** Partial cut [10:52:35]*** CUTSNS_PIN = 1 [10:52:35]*** CUTSNS_PIN = 0 [10:52:35]*** Brake cut motor [10:52:36]Read from MH i2c: 01 [10:52:36]MH_I2C_Read... [10:52:36]*** Stop cut motor [10:52:36]*** Cut end [10:52:36]Read from MH i2c: 01 07 00 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [10:52:36]process_action close_receipt done [10:52:36]requested_data is exist [10:52:36]produce_requested_data [10:52:36]requested_item fm.sn is exist - process it [10:52:36]wFMCommunicate request_size=4 [10:52:36]MH_SAM_APDU [10:52:36]CAPDU: 80 11 00 00 [10:52:36]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [10:52:36]Write i2c OK [10:52:36]MH_I2C_Read... [10:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:36]Read from MH i2c: E2 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: E2 17 00 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2B [10:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:52:36]wFMCommunicate OK [10:52:36]requested_item fd.num is exist - process it [10:52:36]SAM_PROTO_GetFieldsCounters [10:52:36]wFMCommunicate request_size=4 [10:52:36]MH_SAM_APDU [10:52:36]CAPDU: 80 13 00 00 [10:52:36]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [10:52:36]Write i2c OK [10:52:36]MH_I2C_Read... [10:52:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:36]Read from MH i2c: E2 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: E2 62 00 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 91 C2 01 00 0E 04 04 00 D7 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 E2 [10:52:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 91 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:36]wFMCommunicate OK [10:52:36]SAM_PROTO_GetFieldsCounters done [10:52:36]requested_item shift.num is exist - process it [10:52:36]requested_item shift.opened is exist - process it [10:52:36]req_shift_opened [10:52:36]FM_GetShiftState [10:52:36]SAM_PROTO_GetShiftState [10:52:36]wFMCommunicate request_size=4 [10:52:36]MH_SAM_APDU [10:52:36]CAPDU: 80 13 01 00 [10:52:36]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [10:52:36]Write i2c OK [10:52:36]MH_I2C_Read... [10:52:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:36]Read from MH i2c: E2 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: E2 0E 00 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 FB [10:52:36]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:52:36]wFMCommunicate OK [10:52:36]SAM_PROTO_GetShiftState done [10:52:36]FM_GetShiftState done [10:52:36]req_shift_opened done [10:52:36]requested_item shift.open_date is exist - process it [10:52:36]req_shift_open_date [10:52:36]req_shift_open_date done [10:52:36]produce_requested_data done [10:52:36]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115345,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [10:52:36]process_action_free close_receipt [10:52:36]json_value_free [10:52:36]json_value_free done [10:52:36]process_json_proto returns [10:52:36]Send response to host [10:52:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115345,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [10:52:36]free response buf [10:52:36]execute_script done [10:52:36]execute_script returns [10:52:36]free content buf [10:52:36]Sock 8.Close socket [10:52:36]Sock 8.Thread stoped [10:52:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [10:52:49]OFD Sender: No OFD packet to send [10:52:53]accept exits with 9 [10:52:53]New connection [10:52:53]New thread 3066682724 created [10:52:53]Thread 3066826084 joined [10:52:53]Waiting for new connection... [10:52:53] Sock 9.Parse request [10:52:53]Sock 9.Check first char [10:52:53]Sock 9.First char is OK [10:52:53]request: POST /json_proto HTTP/1.0 [10:52:53]Method: POST [10:52:53]URL: /json_proto [10:52:53]Method is POST - this is cgi request [10:52:53]url: /json_proto [10:52:53]query_string will be loaded in cgi processing [10:52:53]execute_cgi json_proto POST (null) [10:52:53]execute_cgi path=json_proto method=POST [10:52:53]POST find Content-Length [10:52:53]Host: 172.17.41.136:8080 [10:52:53]Content-Length: 1078 [10:52:53]Content-Type: application/json [10:52:53] [10:52:53]POST finish read [10:52:53]Found Content-Length = 1078 [10:52:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343802", "tax_sys" : 0, "items" : [ { "code": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "price" : 154.00, "quantity" : 4.000, "sum" : 616.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870233040014", "name": "\u0413\u0430\u0437 \u0443\u043D\u0438\u0432\u0435\u0440\u0441\u0430\u043B\u044C\u043D\u044B\u0439 RISMI 220\u0433", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 781.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:53]execute_script... [10: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 : (3)343802", "tax_sys" : 0, "items" : [ { "code": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "price" : 154.00, "quantity" : 4.000, "sum" : 616.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870233040014", "name": "\u0413\u0430\u0437 \u0443\u043D\u0438\u0432\u0435\u0440\u0441\u0430\u043B\u044C\u043D\u044B\u0439 RISMI 220\u0433", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 781.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:53]POST & json_proto [10:52:53]process_json_proto [10:52:53]json parsed OK: [10:52:53]protocol is kg_v1.0 [10:52:53]action value=close_receipt [10:52:53]process_action close_receipt [10:52:53]cmd_close_receipt [10:52:53]MH_GetDate [10:52:53]Write to MH i2c: F0 00 00 66 00 55 [10:52:53]Write i2c OK [10:52:53]MH_I2C_Read... [10:52:53]Read from MH i2c: F0 [10:52:53]MH_I2C_Read... [10:52:53]Read from MH i2c: F0 09 00 [10:52:53]MH_I2C_Read... [10:52:53]Read from MH i2c: F0 09 00 66 00 00 06 F7 EF 66 1B D0 5A 64 59 [10:52:53]GetLastDocTimeStamp 1727002352 [10:52:53]current date 1727002374 [10:52:53]FM_GetShiftState [10:52:53]SAM_PROTO_GetShiftState [10:52:53]wFMCommunicate request_size=4 [10:52:53]MH_SAM_APDU [10:52:53]CAPDU: 80 13 01 00 [10:52:53]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [10:52:53]Write i2c OK [10:52:53]MH_I2C_Read... [10:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:53]Read from MH i2c: E2 [10:52:53]MH_I2C_Read... [10:52:53]Read from MH i2c: E2 0E 00 [10:52:53]MH_I2C_Read... [10:52:53]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 FD [10:52:53]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:52:53]wFMCommunicate OK [10:52:53]SAM_PROTO_GetShiftState done [10:52:53]FM_GetShiftState done [10:52:53]opened in 1726965840 [10:52:53]opened+sec_in_day 1727052240 [10:52:53]quantity*price = 61600 [10:52:53]sum+1 = 61601 [10:52:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870233040014 Газ универсальный RISMI 220г 1.000 * 165.00 = 165.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 781.00 НСП 1% : 6.91 НДС 12% : 82.94 Наличными: 0.00 Безнал.: 781.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 64 22.09.2024 10:52 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115346 ФПД: 155914432234164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T105254&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115346&fm=155914432234164&tin=02508201610067®Number=0000000000091831&sum=78100 0 [10:52:55]StoreToDocumentArchive [10:52:55]shift 471 fd 115346 [10:52:55]save to /storage/0471/doc_00115346 [10:52:55]save last doc name /storage/0471/doc_00115346 to /storage/kkm_last_doc_name [10:52:55]save OK [10:52:55]Clear old archive folders... [10:52:55]ProcessDocumentItem done err = 0, tmpTLVsize=383 [10:52:55]tlvbuf is 01C01710 [10:52:55]SAM_PROTO_ClearQueue [10:52:55]wFMCommunicate request_size=4 [10:52:55]MH_SAM_APDU [10:52:55]CAPDU: 80 09 00 00 [10:52:55]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [10:52:55]Write i2c OK [10:52:55]MH_I2C_Read... [10:52:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:55]Read from MH i2c: E2 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: E2 03 00 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [10:52:55]RAPDU: 90 00 [10:52:55]wFMCommunicate OK [10:52:55]SAM_PROTO_ClearQueue done [10:52:55]KKMCreateOFDPacket [10:52:55]OFDProtocolAddRootSTLVToBuf [10:52:55]FM_MakeSignedData [10:52:55]FM_MakeSignedData [10:52:55]SAM_PROTO_SignData [10:52:55]wFMCommunicate request_size=4 [10:52:55]MH_SAM_APDU [10:52:55]CAPDU: 80 0D 01 02 [10:52:55]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [10:52:55]Write i2c OK [10:52:55]MH_I2C_Read... [10:52:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:55]Read from MH i2c: E2 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: E2 03 00 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [10:52:55]RAPDU: 90 00 [10:52:55]wFMCommunicate OK [10:52:55]wFMCommunicate request_size=255 [10:52:55]MH_SAM_APDU [10:52:55]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 A0 F0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 33 33 30 34 30 30 31 34 06 04 2D 00 D0 93 D0 B0 D0 B7 20 D1 83 D0 BD D0 B8 D0 B2 D0 B5 D1 80 D1 81 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 20 52 49 53 4D 49 20 32 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 31 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 [10:52:55]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 A0 F0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 33 33 30 34 30 30 31 34 06 04 2D 00 D0 93 D0 B0 D0 B7 20 D1 83 D0 BD D0 B8 D0 B2 D0 B5 D1 80 D1 81 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 20 52 49 53 4D 49 20 32 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 31 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 00 00 23 [10:52:55]Write i2c OK [10:52:55]MH_I2C_Read... [10:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:55]Read from MH i2c: E2 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: E2 03 00 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [10:52:55]RAPDU: 90 00 [10:52:55]wFMCommunicate OK [10:52:55]wFMCommunicate request_size=142 [10:52:55]MH_SAM_APDU [10:52:55]CAPDU: 80 0D 02 02 89 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 31 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 06 F7 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 92 C2 01 00 35 04 06 00 8D CD A8 59 42 B4 [10:52:55]Write to MH i2c: E2 91 00 77 00 80 0D 02 02 89 00 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 31 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 06 F7 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 92 C2 01 00 35 04 06 00 8D CD A8 59 42 B4 00 00 06 [10:52:55]Write i2c OK [10:52:55]MH_I2C_Read... [10:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:55]Read from MH i2c: E2 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: E2 03 00 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [10:52:55]RAPDU: 90 00 [10:52:55]wFMCommunicate OK [10:52:55]wFMCommunicate request_size=4 [10:52:55]MH_SAM_APDU [10:52:55]CAPDU: 80 0D 03 02 [10:52:55]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [10:52:55]Write i2c OK [10:52:55]MH_I2C_Read... [10:52:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:55]Read from MH i2c: E2 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: E2 0B 00 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: E2 0B 00 78 00 00 2F 2B FF F1 B2 DF FE 1C 90 00 E9 [10:52:55]RAPDU: 2F 2B FF F1 B2 DF FE 1C 90 00 [10:52:55]wFMCommunicate OK [10:52:55]SAM_PROTO_SignData done [10:52:55]FM_MakeSignedData done [10:52:55]CreateOFDProtocolMessage [10:52:55]wFMCommunicate request_size=4 [10:52:55]MH_SAM_APDU [10:52:55]CAPDU: 80 11 00 00 [10:52:55]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [10:52:55]Write i2c OK [10:52:55]MH_I2C_Read... [10:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:55]Read from MH i2c: E2 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: E2 17 00 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 41 [10:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:52:55]wFMCommunicate OK [10:52:55]CreateOFDProtocolMessage done [10:52:55]OFDSenderStorePacket 115346 [10:52:55]StoreOFDPacket docnum=115346 [10:52:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 93 01 00 00 BD CC 8B 01 A2 60 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 A0 F0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 33 33 30 34 30 30 31 34 06 04 2D 00 D0 93 D0 B0 D0 B7 20 D1 83 D0 BD D0 B8 D0 B2 D0 B5 D1 80 D1 81 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 20 52 49 53 4D 49 20 32 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 31 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 31 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 06 F7 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 92 C2 01 00 35 04 06 00 8D CD A8 59 42 B4 2F 2B FF F1 B2 DF FE 1C [10:52:55]CheckFolder [10:52:55]dirname=/storage/ofd_packets [10:52:55]CheckFolder done [10:52:55]ProducePacketName [10:52:55]name=ofd_packets/00115346 [10:52:55]NVStorageSaveData ofd_packets/00115346 [10:52:55]File name is /storage/ofd_packets/00115346 [10:52:55]Write 433 bytes [10:52:55]NVStorageSaveData done [10:52:55]OFDSenderStorePacket done [10:52:55]KKMCreateOFDPacket done [10:52:55]NVStorageSaveData kkm_last_timestamp [10:52:55]File name is /storage/kkm_last_timestamp [10:52:55]Write 4 bytes [10:52:55]NVStorageSaveData done [10:52:55]ExternCall_PrintAddStr [10:52:55]wPrintStart [10:52:55]Write to MH i2c: 01 00 00 7A 00 7A [10:52:55]Write i2c OK [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: 01 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: 01 07 00 [10:52:56]MH_I2C_Read... [10:52:56]OFD Sender: Processing packet 115346 [packets to send 481, broken 480] [10:52:56]ProducePacketName [10:52:56]name=ofd_packets/00115346 [10:52:56]OFD Sender: To server: pG, [10:52:56]CommunicateWithHost lk.salyk.kg:30040 [10:52:56]ConnectInit lk.salyk.kg [10:52:56]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [10:52:56]RasterBufferAndPrint [10:52:56]line Счет N : (3)343802 [10:52:56]line ИНН: 02508201610067 [10:52:56]line Контрольно-Кассовый Чек [10:52:56]line ПРОДАЖА [10:52:56]line Товар: 48744317 [10:52:56]line Сигареты Camel Yellow [10:52:56]line 4.000 * 154.00 [10:52:56]line = 616.00 [10:52:56]line НДС 12% НСП 1% [10:52:56]line > о реализуемом товаре [10:52:56]line Товар: 4870233040014 [10:52:56]line Газ универсальный RISMI 220г [10:52:56]line 1.000 * 165.00 [10:52:56]line = 165.00 [10:52:56]line НДС 12% НСП 1% [10:52:56]line > о реализуемом товаре [10:52:56]line ИТОГО: 781.00 [10:52:56]line НСП 1% : 6.91 [10:52:56]line НДС 12% : 82.94 [10:52:56]line Наличными: 0.00 [10:52:56]line Безнал.: 781.00 [10:52:56]line Место: АЗС № 90 "Партнер Нефть" [10:52:56]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:52:56]line СНО: Общий режим [10:52:56]line Чек 64 22.09.2024 10:52 [10:52:56]line Смена: 471 ФФД: 1.0 [10:52:56]line ЗНМ: 0300000120 [10:52:56]line РНМ: 0000000000091831 [10:52:56]line Версия ККМ: 001 [10:52:56]line Платежная система: Бакай Банк [10:52:56]line ФМ: 0000000000871830 [10:52:56]line ФД: 115346 [10:52:56]line ФПД: 155914432234164 [10:52:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T105254&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115346&fm=155914432234164&tin=02508201610067®Number=0000000000091831&sum=78100 [10:52:56]line 0 [10:52:56]written 0, free lines is 4095 [10:52:56]Connected sock=10 [10:52:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 93 01 00 00 BD CC 8B 01 A2 60 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 A0 F0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 33 33 30 34 30 30 31 34 06 04 2D 00 D0 93 D0 B0 D0 B7 20 D1 83 D0 BD D0 B8 D0 B2 D0 B5 D1 80 D1 81 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 20 52 49 53 4D 49 20 32 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 31 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 31 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 06 F7 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 92 C2 01 00 35 04 06 00 8D CD A8 59 42 B4 2F 2B FF F1 B2 DF FE 1C [10:52:56]Write to MH i2c: 01 00 00 A9 00 A9 [10:52:56]Write i2c OK [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: 01 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: 01 07 00 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 E8 0B A3 [10:52:56]RasterBufferAndPrint [10:52:56]line [10:52:56]line [10:52:56]line [10:52:56]line [10:52:56]line [10:52:56]written 0, free lines is 3052 [10:52:56]MH_Cut [10:52:56]Write to MH i2c: D1 01 00 B0 00 01 82 [10:52:56]Write i2c OK [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: D1 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: D1 01 00 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: D1 01 00 B0 00 00 81 [10:52:56]Write to MH i2c: 01 00 00 B1 00 B1 [10:52:56]Write i2c OK [10:52:56]MH_I2C_Read... [10:52:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 BF DF 47 00 E7 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 92 C2 01 00 F4 03 04 00 4D 9C EF 66 B6 04 01 00 00 77 5A 53 05 30 C4 BD 3E [10:52:56]CommunicateWithHost err = 0 [10:52:56]CheckOFDResponse [10:52:56]1017 (14) - 77093643461234 [10:52:56]1041 (16) - 0000000000871830 [10:52:56]1040 (4) - 115346 [10:52:56]1012 (4) - 22.09.2024 04:25 [10:52:56]1206 (1) - 0 [10:52:56]OFD Sender: Remove packet 115346 [10:52:56]ProducePacketName [10:52:56]name=ofd_packets/00115346 [10:52:56]NVStorageDeleteData [10:52:57]OFD Sender: No OFD packet to send [10:52:58]*** Cut start [10:52:58]*** Partial cut [10:52:58]*** CUTSNS_PIN = 1 [10:52:58]*** CUTSNS_PIN = 0 [10:52:58]*** Brake cut motor [10:52:58]Read from MH i2c: 01 [10:52:58]MH_I2C_Read... [10:52:58]*** Stop cut motor [10:52:58]*** Cut end [10:52:58]Read from MH i2c: 01 07 00 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: 01 07 00 B1 00 00 00 00 00 00 FF 0F C6 [10:52:58]process_action close_receipt done [10:52:58]requested_data is exist [10:52:58]produce_requested_data [10:52:58]requested_item fm.sn is exist - process it [10:52:58]wFMCommunicate request_size=4 [10:52:58]MH_SAM_APDU [10:52:58]CAPDU: 80 11 00 00 [10:52:58]Write to MH i2c: E2 08 00 B2 00 80 11 00 00 00 00 00 00 2C [10:52:58]Write i2c OK [10:52:58]MH_I2C_Read... [10:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:58]Read from MH i2c: E2 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: E2 17 00 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: E2 17 00 B2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7A [10:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:52:58]wFMCommunicate OK [10:52:58]requested_item fd.num is exist - process it [10:52:58]SAM_PROTO_GetFieldsCounters [10:52:58]wFMCommunicate request_size=4 [10:52:58]MH_SAM_APDU [10:52:58]CAPDU: 80 13 00 00 [10:52:58]Write to MH i2c: E2 08 00 B3 00 80 13 00 00 00 00 00 00 2F [10:52:58]Write i2c OK [10:52:58]MH_I2C_Read... [10:52:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:58]Read from MH i2c: E2 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: E2 62 00 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: E2 62 00 B3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 92 C2 01 00 0E 04 04 00 D7 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 35 [10:52:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 92 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:58]wFMCommunicate OK [10:52:58]SAM_PROTO_GetFieldsCounters done [10:52:58]requested_item shift.num is exist - process it [10:52:58]requested_item shift.opened is exist - process it [10:52:58]req_shift_opened [10:52:58]FM_GetShiftState [10:52:58]SAM_PROTO_GetShiftState [10:52:58]wFMCommunicate request_size=4 [10:52:58]MH_SAM_APDU [10:52:58]CAPDU: 80 13 01 00 [10:52:58]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [10:52:58]Write i2c OK [10:52:58]MH_I2C_Read... [10:52:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:58]Read from MH i2c: E2 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: E2 0E 00 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 4A [10:52:58]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [10:52:58]wFMCommunicate OK [10:52:58]SAM_PROTO_GetShiftState done [10:52:58]FM_GetShiftState done [10:52:58]req_shift_opened done [10:52:58]requested_item shift.open_date is exist - process it [10:52:58]req_shift_open_date [10:52:58]req_shift_open_date done [10:52:58]produce_requested_data done [10:52:58]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115346,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [10:52:58]process_action_free close_receipt [10:52:58]json_value_free [10:52:58]json_value_free done [10:52:58]process_json_proto returns [10:52:58]Send response to host [10:52:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115346,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [10:52:58]free response buf [10:52:58]execute_script done [10:52:58]execute_script returns [10:52:58]free content buf [10:52:58]Sock 9.Close socket [10:52:58]Sock 9.Thread stoped [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [10:59:03]OFD Sender: No OFD packet to send [10:59:08]OFD Sender: No OFD packet to send [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:23]OFD Sender: No OFD packet to send [10:59:28]OFD Sender: No OFD packet to send [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]OFD Sender: No OFD packet to send [11:00:18]OFD Sender: No OFD packet to send [11:00:23]OFD Sender: No OFD packet to send [11:00:28]OFD Sender: No OFD packet to send [11:00:33]OFD Sender: No OFD packet to send [11:00:38]OFD Sender: No OFD packet to send [11:00:43]OFD Sender: No OFD packet to send [11:00:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:37]accept exits with 8 [11:01:37]New connection [11:01:37]New thread 3066826084 created [11:01:37]Thread 3066682724 joined [11:01:37]Waiting for new connection... [11:01:37] Sock 8.Parse request [11:01:37]Sock 8.Check first char [11:01:37]Sock 8.First char is OK [11:01:37]request: POST /json_proto HTTP/1.0 [11:01:37]Method: POST [11:01:37]URL: /json_proto [11:01:37]Method is POST - this is cgi request [11:01:37]url: /json_proto [11:01:37]query_string will be loaded in cgi processing [11:01:37]execute_cgi json_proto POST (null) [11:01:37]execute_cgi path=json_proto method=POST [11:01:37]POST find Content-Length [11:01:37]Host: 172.17.41.136:8080 [11:01:37]Content-Length: 655 [11:01:37]Content-Type: application/json [11:01:37] [11:01:37]POST finish read [11:01:37]Found Content-Length = 655 [11:01:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343803", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:37]execute_script... [11:01:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343803", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:37]POST & json_proto [11:01:37]process_json_proto [11:01:37]json parsed OK: [11:01:37]protocol is kg_v1.0 [11:01:37]action value=close_receipt [11:01:37]process_action close_receipt [11:01:37]cmd_close_receipt [11:01:37]MH_GetDate [11:01:37]Write to MH i2c: F0 00 00 B5 00 A4 [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: F0 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: F0 09 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: F0 09 00 B5 00 00 12 F9 EF 66 1B D0 5A 64 B6 [11:01:37]GetLastDocTimeStamp 1727002374 [11:01:37]current date 1727002898 [11:01:37]FM_GetShiftState [11:01:37]SAM_PROTO_GetShiftState [11:01:37]wFMCommunicate request_size=4 [11:01:37]MH_SAM_APDU [11:01:37]CAPDU: 80 13 01 00 [11:01:37]Write to MH i2c: E2 08 00 B6 00 80 13 01 00 00 00 00 00 33 [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:37]Read from MH i2c: E2 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 0E 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 0E 00 B6 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 4C [11:01:37]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:01:37]wFMCommunicate OK [11:01:37]SAM_PROTO_GetShiftState done [11:01:37]FM_GetShiftState done [11:01:37]opened in 1726965840 [11:01:37]opened+sec_in_day 1727052240 [11:01:37]quantity*price = 8500 [11:01:37]sum+1 = 8501 [11:01:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 65 22.09.2024 11:01 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115347 ФПД: 251935083776003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T110138&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115347&fm=251935083776003&tin=02508201610067®Number=0000000000091831&sum=8500 0 [11:01:38]StoreToDocumentArchive [11:01:38]shift 471 fd 115347 [11:01:38]save to /storage/0471/doc_00115347 [11:01:38]save last doc name /storage/0471/doc_00115347 to /storage/kkm_last_doc_name [11:01:38]save OK [11:01:38]Clear old archive folders... [11:01:38]ProcessDocumentItem done err = 0, tmpTLVsize=294 [11:01:38]tlvbuf is 01BE2E10 [11:01:38]SAM_PROTO_ClearQueue [11:01:38]wFMCommunicate request_size=4 [11:01:38]MH_SAM_APDU [11:01:38]CAPDU: 80 09 00 00 [11:01:38]Write to MH i2c: E2 08 00 C3 00 80 09 00 00 00 00 00 00 35 [11:01:38]Write i2c OK [11:01:38]MH_I2C_Read... [11:01:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:38]Read from MH i2c: E2 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: E2 03 00 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [11:01:38]RAPDU: 90 00 [11:01:38]wFMCommunicate OK [11:01:38]SAM_PROTO_ClearQueue done [11:01:38]KKMCreateOFDPacket [11:01:38]OFDProtocolAddRootSTLVToBuf [11:01:38]FM_MakeSignedData [11:01:38]FM_MakeSignedData [11:01:38]SAM_PROTO_SignData [11:01:38]wFMCommunicate request_size=4 [11:01:38]MH_SAM_APDU [11:01:38]CAPDU: 80 0D 01 02 [11:01:38]Write to MH i2c: E2 08 00 C4 00 80 0D 01 02 00 00 00 00 3D [11:01:38]Write i2c OK [11:01:38]MH_I2C_Read... [11:01:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:38]Read from MH i2c: E2 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: E2 03 00 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [11:01:38]RAPDU: 90 00 [11:01:38]wFMCommunicate OK [11:01:38]wFMCommunicate request_size=255 [11:01:38]MH_SAM_APDU [11:01:38]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 12 F9 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [11:01:38]Write to MH i2c: E2 02 01 C5 00 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 12 F9 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 9A [11:01:38]Write i2c OK [11:01:38]MH_I2C_Read... [11:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:39]Read from MH i2c: E2 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 03 00 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [11:01:39]RAPDU: 90 00 [11:01:39]wFMCommunicate OK [11:01:39]wFMCommunicate request_size=53 [11:01:39]MH_SAM_APDU [11:01:39]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 93 C2 01 00 35 04 06 00 E5 22 35 2C C8 03 [11:01:39]Write to MH i2c: E2 38 00 C6 00 80 0D 02 02 30 00 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 93 C2 01 00 35 04 06 00 E5 22 35 2C C8 03 00 00 B6 [11:01:39]Write i2c OK [11:01:39]MH_I2C_Read... [11:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:39]Read from MH i2c: E2 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 03 00 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [11:01:39]RAPDU: 90 00 [11:01:39]wFMCommunicate OK [11:01:39]wFMCommunicate request_size=4 [11:01:39]MH_SAM_APDU [11:01:39]CAPDU: 80 0D 03 02 [11:01:39]Write to MH i2c: E2 08 00 C7 00 80 0D 03 02 00 00 00 00 42 [11:01:39]Write i2c OK [11:01:39]MH_I2C_Read... [11:01:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:39]Read from MH i2c: E2 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 0B 00 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 0B 00 C7 00 00 EB E1 16 4F 0E 7F D0 96 90 00 67 [11:01:39]RAPDU: EB E1 16 4F 0E 7F D0 96 90 00 [11:01:39]wFMCommunicate OK [11:01:39]SAM_PROTO_SignData done [11:01:39]FM_MakeSignedData done [11:01:39]CreateOFDProtocolMessage [11:01:39]wFMCommunicate request_size=4 [11:01:39]MH_SAM_APDU [11:01:39]CAPDU: 80 11 00 00 [11:01:39]Write to MH i2c: E2 08 00 C8 00 80 11 00 00 00 00 00 00 42 [11:01:39]Write i2c OK [11:01:39]MH_I2C_Read... [11:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:39]Read from MH i2c: E2 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 17 00 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 17 00 C8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 90 [11:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:01:39]wFMCommunicate OK [11:01:39]CreateOFDProtocolMessage done [11:01:39]OFDSenderStorePacket 115347 [11:01:39]StoreOFDPacket docnum=115347 [11:01:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3A 01 00 00 71 FA 32 01 C2 37 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 12 F9 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 93 C2 01 00 35 04 06 00 E5 22 35 2C C8 03 EB E1 16 4F 0E 7F D0 96 [11:01:39]CheckFolder [11:01:39]dirname=/storage/ofd_packets [11:01:39]CheckFolder done [11:01:39]ProducePacketName [11:01:39]name=ofd_packets/00115347 [11:01:39]NVStorageSaveData ofd_packets/00115347 [11:01:39]File name is /storage/ofd_packets/00115347 [11:01:39]Write 344 bytes [11:01:39]NVStorageSaveData done [11:01:39]OFDSenderStorePacket done [11:01:39]KKMCreateOFDPacket done [11:01:39]NVStorageSaveData kkm_last_timestamp [11:01:39]File name is /storage/kkm_last_timestamp [11:01:39]Write 4 bytes [11:01:39]NVStorageSaveData done [11:01:39]ExternCall_PrintAddStr [11:01:39]wPrintStart [11:01:39]Write to MH i2c: 01 00 00 C9 00 C9 [11:01:39]Write i2c OK [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: 01 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: 01 07 00 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: 01 07 00 C9 00 00 00 00 00 00 FF 0F DE [11:01:39]RasterBufferAndPrint [11:01:39]line Счет N : (3)343803 [11:01:39]line ИНН: 02508201610067 [11:01:39]line Контрольно-Кассовый Чек [11:01:39]line ПРОДАЖА [11:01:39]line Товар: 4600682557456 [11:01:39]line Напиток FLash up energy эн ж/б 0,5/0,45л [11:01:39]line 1.000 * 85.00 [11:01:39]line = 85.00 [11:01:39]line НДС 12% НСП 1% [11:01:39]line > о реализуемом товаре [11:01:39]line ИТОГО: 85.00 [11:01:39]line НСП 1% : 0.75 [11:01:39]line НДС 12% : 9.03 [11:01:39]line Наличными: 85.00 [11:01:39]line Безнал.: 0.00 [11:01:39]line Место: АЗС № 90 "Партнер Нефть" [11:01:39]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:01:39]line СНО: Общий режим [11:01:39]line Чек 65 22.09.2024 11:01 [11:01:39]line Смена: 471 ФФД: 1.0 [11:01:39]line ЗНМ: 0300000120 [11:01:39]line РНМ: 0000000000091831 [11:01:39]line Версия ККМ: 001 [11:01:39]line ФМ: 0000000000871830 [11:01:39]line ФД: 115347 [11:01:39]line ФПД: 251935083776003 [11:01:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T110138&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115347&fm=251935083776003&tin=02508201610067®Number=0000000000091831&sum=8500 [11:01:39]line 0 [11:01:39]written 0, free lines is 4095 [11:01:39]OFD Sender: Processing packet 115347 [packets to send 481, broken 480] [11:01:39]ProducePacketName [11:01:39]name=ofd_packets/00115347 [11:01:39]OFD Sender: To server: pG, [11:01:39]CommunicateWithHost lk.salyk.kg:30040 [11:01:39]ConnectInit lk.salyk.kg [11:01:39]Write to MH i2c: 01 00 00 F1 00 F1 [11:01:39]Write i2c OK [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: 01 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: 01 07 00 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 59 0C 5D [11:01:39]RasterBufferAndPrint [11:01:39]line [11:01:39]line [11:01:39]line [11:01:39]line [11:01:39]line [11:01:39]written 0, free lines is 3164 [11:01:39]MH_Cut [11:01:39]Write to MH i2c: D1 01 00 F8 00 01 CA [11:01:39]Write i2c OK [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: D1 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: D1 01 00 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: D1 01 00 F8 00 00 C9 [11:01:39]Write to MH i2c: 01 00 00 F9 00 F9 [11:01:39]Write i2c OK [11:01:39]MH_I2C_Read... [11:01:39]Connected sock=9 [11:01:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3A 01 00 00 71 FA 32 01 C2 37 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 12 F9 EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 93 C2 01 00 35 04 06 00 E5 22 35 2C C8 03 EB E1 16 4F 0E 7F D0 96 [11:01:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 97 64 47 00 D9 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 93 C2 01 00 F4 03 04 00 58 9E EF 66 B6 04 01 00 00 B9 81 1D 05 4A F8 CC 72 [11:01:40]CommunicateWithHost err = 0 [11:01:40]CheckOFDResponse [11:01:40]1017 (14) - 77093643461234 [11:01:40]1041 (16) - 0000000000871830 [11:01:40]1040 (4) - 115347 [11:01:40]1012 (4) - 22.09.2024 04:34 [11:01:40]1206 (1) - 0 [11:01:40]OFD Sender: Remove packet 115347 [11:01:40]ProducePacketName [11:01:40]name=ofd_packets/00115347 [11:01:40]NVStorageDeleteData [11:01:40]OFD Sender: No OFD packet to send [11:01:41]*** Cut start [11:01:41]*** Partial cut [11:01:41]*** CUTSNS_PIN = 1 [11:01:41]*** CUTSNS_PIN = 0 [11:01:41]*** Brake cut motor [11:01:41]Read from MH i2c: 01 [11:01:41]MH_I2C_Read... [11:01:41]*** Stop cut motor [11:01:41]*** Cut end [11:01:41]Read from MH i2c: 01 07 00 [11:01:41]MH_I2C_Read... [11:01:41]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [11:01:41]process_action close_receipt done [11:01:41]requested_data is exist [11:01:41]produce_requested_data [11:01:41]requested_item fm.sn is exist - process it [11:01:41]wFMCommunicate request_size=4 [11:01:41]MH_SAM_APDU [11:01:41]CAPDU: 80 11 00 00 [11:01:41]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [11:01:41]Write i2c OK [11:01:41]MH_I2C_Read... [11:01:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:41]Read from MH i2c: E2 [11:01:41]MH_I2C_Read... [11:01:41]Read from MH i2c: E2 17 00 [11:01:41]MH_I2C_Read... [11:01:41]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C2 [11:01:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:01:41]wFMCommunicate OK [11:01:41]requested_item fd.num is exist - process it [11:01:41]SAM_PROTO_GetFieldsCounters [11:01:41]wFMCommunicate request_size=4 [11:01:41]MH_SAM_APDU [11:01:41]CAPDU: 80 13 00 00 [11:01:41]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [11:01:41]Write i2c OK [11:01:41]MH_I2C_Read... [11:01:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:41]Read from MH i2c: E2 [11:01:41]MH_I2C_Read... [11:01:41]Read from MH i2c: E2 62 00 [11:01:41]MH_I2C_Read... [11:01:41]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 93 C2 01 00 0E 04 04 00 D7 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 81 [11:01:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 93 C2 01 00 0E 04 04 00 D7 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 [11:01:41]wFMCommunicate OK [11:01:41]SAM_PROTO_GetFieldsCounters done [11:01:41]requested_item shift.num is exist - process it [11:01:41]requested_item shift.opened is exist - process it [11:01:41]req_shift_opened [11:01:41]FM_GetShiftState [11:01:41]SAM_PROTO_GetShiftState [11:01:41]wFMCommunicate request_size=4 [11:01:41]MH_SAM_APDU [11:01:41]CAPDU: 80 13 01 00 [11:01:41]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [11:01:41]Write i2c OK [11:01:41]MH_I2C_Read... [11:01:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:42]Read from MH i2c: E2 [11:01:42]MH_I2C_Read... [11:01:42]Read from MH i2c: E2 0E 00 [11:01:42]MH_I2C_Read... [11:01:42]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 92 [11:01:42]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:01:42]wFMCommunicate OK [11:01:42]SAM_PROTO_GetShiftState done [11:01:42]FM_GetShiftState done [11:01:42]req_shift_opened done [11:01:42]requested_item shift.open_date is exist - process it [11:01:42]req_shift_open_date [11:01:42]req_shift_open_date done [11:01:42]produce_requested_data done [11:01:42]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115347,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [11:01:42]process_action_free close_receipt [11:01:42]json_value_free [11:01:42]json_value_free done [11:01:42]process_json_proto returns [11:01:42]Send response to host [11:01:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115347,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [11:01:42]free response buf [11:01:42]execute_script done [11:01:42]execute_script returns [11:01:42]free content buf [11:01:42]Sock 8.Close socket [11:01:42]Sock 8.Thread stoped [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]accept exits with 10 [11:09:06]New connection [11:09:06]New thread 3066682724 created [11:09:06]Thread 3066826084 joined [11:09:06]Waiting for new connection... [11:09:06] Sock 10.Parse request [11:09:06]Sock 10.Check first char [11:09:06]Sock 10.First char is OK [11:09:06]request: POST /json_proto HTTP/1.0 [11:09:06]Method: POST [11:09:06]URL: /json_proto [11:09:06]Method is POST - this is cgi request [11:09:06]url: /json_proto [11:09:06]query_string will be loaded in cgi processing [11:09:06]execute_cgi json_proto POST (null) [11:09:06]execute_cgi path=json_proto method=POST [11:09:06]POST find Content-Length [11:09:06]Host: 172.17.41.136:8080 [11:09:06]Content-Length: 912 [11:09:06]Content-Type: application/json [11:09:06] [11:09:06]POST finish read [11:09:06]Found Content-Length = 912 [11:09:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343804", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:06]execute_script... [11:09:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343804", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:06]POST & json_proto [11:09:06]process_json_proto [11:09:06]json parsed OK: [11:09:06]protocol is kg_v1.0 [11:09:06]action value=close_receipt [11:09:06]process_action close_receipt [11:09:06]cmd_close_receipt [11:09:06]MH_GetDate [11:09:06]Write to MH i2c: F0 00 00 FD 00 EC [11:09:06]Write i2c OK [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: F0 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: F0 09 00 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: F0 09 00 FD 00 00 D3 FA EF 66 1B D0 5A 64 C0 [11:09:06]GetLastDocTimeStamp 1727002898 [11:09:06]current date 1727003347 [11:09:06]FM_GetShiftState [11:09:06]SAM_PROTO_GetShiftState [11:09:06]wFMCommunicate request_size=4 [11:09:06]MH_SAM_APDU [11:09:06]CAPDU: 80 13 01 00 [11:09:06]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [11:09:06]Write i2c OK [11:09:06]MH_I2C_Read... [11:09:06]OFD Sender: No OFD packet to send [11:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:06]Read from MH i2c: E2 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 0E 00 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 94 [11:09:06]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:09:06]wFMCommunicate OK [11:09:06]SAM_PROTO_GetShiftState done [11:09:06]FM_GetShiftState done [11:09:06]opened in 1726965840 [11:09:06]opened+sec_in_day 1727052240 [11:09:06]quantity*price = 6000 [11:09:06]sum+1 = 6001 [11:09:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065000790 Шок M&M`s с арахисом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 66 22.09.2024 11:09 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115348 ФПД: 263035836938375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T110907&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115348&fm=263035836938375&tin=02508201610067®Number=0000000000091831&sum=13000 0 [11:09:07]StoreToDocumentArchive [11:09:07]shift 471 fd 115348 [11:09:07]save to /storage/0471/doc_00115348 [11:09:07]save last doc name /storage/0471/doc_00115348 to /storage/kkm_last_doc_name [11:09:07]save OK [11:09:07]Clear old archive folders... [11:09:08]ProcessDocumentItem done err = 0, tmpTLVsize=385 [11:09:08]tlvbuf is 01BE9870 [11:09:08]SAM_PROTO_ClearQueue [11:09:08]wFMCommunicate request_size=4 [11:09:08]MH_SAM_APDU [11:09:08]CAPDU: 80 09 00 00 [11:09:08]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [11:09:08]Write i2c OK [11:09:08]MH_I2C_Read... [11:09:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:08]Read from MH i2c: E2 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 03 00 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [11:09:08]RAPDU: 90 00 [11:09:08]wFMCommunicate OK [11:09:08]SAM_PROTO_ClearQueue done [11:09:08]KKMCreateOFDPacket [11:09:08]OFDProtocolAddRootSTLVToBuf [11:09:08]FM_MakeSignedData [11:09:08]FM_MakeSignedData [11:09:08]SAM_PROTO_SignData [11:09:08]wFMCommunicate request_size=4 [11:09:08]MH_SAM_APDU [11:09:08]CAPDU: 80 0D 01 02 [11:09:08]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [11:09:08]Write i2c OK [11:09:08]MH_I2C_Read... [11:09:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:08]Read from MH i2c: E2 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 03 00 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [11:09:08]RAPDU: 90 00 [11:09:08]wFMCommunicate OK [11:09:08]wFMCommunicate request_size=255 [11:09:08]MH_SAM_APDU [11:09:08]CAPDU: 80 0D 02 02 FA 03 00 81 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 [11:09:08]Write to MH i2c: E2 02 01 0D 01 80 0D 02 02 FA 00 03 00 81 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 52 [11:09:08]Write i2c OK [11:09:08]MH_I2C_Read... [11:09:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:08]Read from MH i2c: E2 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 03 00 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [11:09:08]RAPDU: 90 00 [11:09:08]wFMCommunicate OK [11:09:08]wFMCommunicate request_size=144 [11:09:08]MH_SAM_APDU [11:09:08]CAPDU: 80 0D 02 02 8B 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 D3 FA EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 94 C2 01 00 35 04 06 00 EF 3A CD 9F B8 87 [11:09:08]Write to MH i2c: E2 93 00 0E 01 80 0D 02 02 8B 00 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 D3 FA EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 94 C2 01 00 35 04 06 00 EF 3A CD 9F B8 87 00 00 01 [11:09:08]Write i2c OK [11:09:08]MH_I2C_Read... [11:09:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:08]Read from MH i2c: E2 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 03 00 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [11:09:08]RAPDU: 90 00 [11:09:08]wFMCommunicate OK [11:09:08]wFMCommunicate request_size=4 [11:09:08]MH_SAM_APDU [11:09:08]CAPDU: 80 0D 03 02 [11:09:08]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [11:09:08]Write i2c OK [11:09:08]MH_I2C_Read... [11:09:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:08]Read from MH i2c: E2 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 0B 00 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 0B 00 0F 01 00 97 02 2D BE 47 54 CD 5B 90 00 D3 [11:09:08]RAPDU: 97 02 2D BE 47 54 CD 5B 90 00 [11:09:08]wFMCommunicate OK [11:09:08]SAM_PROTO_SignData done [11:09:08]FM_MakeSignedData done [11:09:08]CreateOFDProtocolMessage [11:09:08]wFMCommunicate request_size=4 [11:09:08]MH_SAM_APDU [11:09:08]CAPDU: 80 11 00 00 [11:09:08]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [11:09:08]Write i2c OK [11:09:08]MH_I2C_Read... [11:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:08]Read from MH i2c: E2 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 17 00 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D9 [11:09:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:09:08]wFMCommunicate OK [11:09:08]CreateOFDProtocolMessage done [11:09:08]OFDSenderStorePacket 115348 [11:09:08]StoreOFDPacket docnum=115348 [11:09:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 95 01 00 00 EF F4 8D 01 AF F5 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 D3 FA EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 94 C2 01 00 35 04 06 00 EF 3A CD 9F B8 87 97 02 2D BE 47 54 CD 5B [11:09:08]CheckFolder [11:09:08]dirname=/storage/ofd_packets [11:09:08]CheckFolder done [11:09:08]ProducePacketName [11:09:08]name=ofd_packets/00115348 [11:09:08]NVStorageSaveData ofd_packets/00115348 [11:09:08]File name is /storage/ofd_packets/00115348 [11:09:08]Write 435 bytes [11:09:08]NVStorageSaveData done [11:09:08]OFDSenderStorePacket done [11:09:08]KKMCreateOFDPacket done [11:09:08]NVStorageSaveData kkm_last_timestamp [11:09:08]File name is /storage/kkm_last_timestamp [11:09:08]Write 4 bytes [11:09:08]NVStorageSaveData done [11:09:08]ExternCall_PrintAddStr [11:09:08]wPrintStart [11:09:08]Write to MH i2c: 01 00 00 11 01 12 [11:09:08]Write i2c OK [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: 01 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: 01 07 00 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [11:09:08]RasterBufferAndPrint [11:09:08]line Счет N : (3)343804 [11:09:08]line ИНН: 02508201610067 [11:09:08]line Контрольно-Кассовый Чек [11:09:08]line ПРОДАЖА [11:09:08]line Товар: 4700000310043 [11:09:08]line Вода Жалалабат 27 1л [11:09:08]line 1.000 * 60.00 [11:09:08]line = 60.00 [11:09:08]line НДС 12% НСП 1% [11:09:08]line > о реализуемом товаре [11:09:08]line Товар: 4607065000790 [11:09:08]line Шок M&M`s с арахисом 45г [11:09:08]line 1.000 * 70.00 [11:09:08]line = 70.00 [11:09:08]line НДС 12% НСП 1% [11:09:08]line > о реализуемом товаре [11:09:08]line ИТОГО: 130.00 [11:09:08]line НСП 1% : 1.15 [11:09:08]line НДС 12% : 13.80 [11:09:08]line Наличными: 130.00 [11:09:08]line Безнал.: 0.00 [11:09:08]line Место: АЗС № 90 "Партнер Нефть" [11:09:08]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:09:08]line СНО: Общий режим [11:09:08]line Чек 66 22.09.2024 11:09 [11:09:08]line Смена: 471 ФФД: 1.0 [11:09:08]line ЗНМ: 0300000120 [11:09:08]line РНМ: 0000000000091831 [11:09:08]line Версия ККМ: 001 [11:09:08]line ФМ: 0000000000871830 [11:09:08]line ФД: 115348 [11:09:08]line ФПД: 263035836938375 [11:09:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T110907&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115348&fm=263035836938375&tin=02508201610067®Number=0000000000091831&sum=13000 [11:09:09]line 0 [11:09:09]OFD Sender: Processing packet 115348 [packets to send 481, broken 480] [11:09:09]ProducePacketName [11:09:09]name=ofd_packets/00115348 [11:09:09]OFD Sender: To server: pG, [11:09:09]CommunicateWithHost lk.salyk.kg:30040 [11:09:09]ConnectInit lk.salyk.kg [11:09:09]written 0, free lines is 4095 [11:09:09]Connected sock=9 [11:09:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 95 01 00 00 EF F4 8D 01 AF F5 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 D3 FA EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 94 C2 01 00 35 04 06 00 EF 3A CD 9F B8 87 97 02 2D BE 47 54 CD 5B [11:09:09]Write to MH i2c: 01 00 00 3E 01 3F [11:09:09]Write i2c OK [11:09:09]MH_I2C_Read... [11:09:09]Read from MH i2c: 01 [11:09:09]MH_I2C_Read... [11:09:09]Read from MH i2c: 01 07 00 [11:09:09]MH_I2C_Read... [11:09:09]Read from MH i2c: 01 07 00 3E 01 00 00 00 00 00 13 0C 65 [11:09:09]RasterBufferAndPrint [11:09:09]line [11:09:09]line [11:09:09]line [11:09:09]line [11:09:09]line [11:09:09]written 0, free lines is 3093 [11:09:09]MH_Cut [11:09:09]Write to MH i2c: D1 01 00 45 01 01 18 [11:09:09]Write i2c OK [11:09:09]MH_I2C_Read... [11:09:09]Read from MH i2c: D1 [11:09:09]MH_I2C_Read... [11:09:09]Read from MH i2c: D1 01 00 [11:09:09]MH_I2C_Read... [11:09:09]Read from MH i2c: D1 01 00 45 01 00 17 [11:09:09]Write to MH i2c: 01 00 00 46 01 47 [11:09:09]Write i2c OK [11:09:09]MH_I2C_Read... [11:09:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 22 55 47 00 5E 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 94 C2 01 00 F4 03 04 00 1A A0 EF 66 B6 04 01 00 00 E7 97 27 1E E4 34 1F 76 [11:09:09]CommunicateWithHost err = 0 [11:09:09]CheckOFDResponse [11:09:09]1017 (14) - 77093643461234 [11:09:09]1041 (16) - 0000000000871830 [11:09:09]1040 (4) - 115348 [11:09:09]1012 (4) - 22.09.2024 04:42 [11:09:09]1206 (1) - 0 [11:09:09]OFD Sender: Remove packet 115348 [11:09:09]ProducePacketName [11:09:09]name=ofd_packets/00115348 [11:09:09]NVStorageDeleteData [11:09:10]OFD Sender: No OFD packet to send [11:09:10]*** Cut start [11:09:10]*** Partial cut [11:09:10]*** CUTSNS_PIN = 1 [11:09:10]*** CUTSNS_PIN = 0 [11:09:11]*** Brake cut motor [11:09:11]Read from MH i2c: 01 [11:09:11]MH_I2C_Read... [11:09:11]*** Stop cut motor [11:09:11]*** Cut end [11:09:11]Read from MH i2c: 01 07 00 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [11:09:11]process_action close_receipt done [11:09:11]requested_data is exist [11:09:11]produce_requested_data [11:09:11]requested_item fm.sn is exist - process it [11:09:11]wFMCommunicate request_size=4 [11:09:11]MH_SAM_APDU [11:09:11]CAPDU: 80 11 00 00 [11:09:11]Write to MH i2c: E2 08 00 47 01 80 11 00 00 00 00 00 00 C2 [11:09:11]Write i2c OK [11:09:11]MH_I2C_Read... [11:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:11]Read from MH i2c: E2 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 17 00 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 17 00 47 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 10 [11:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:09:11]wFMCommunicate OK [11:09:11]requested_item fd.num is exist - process it [11:09:11]SAM_PROTO_GetFieldsCounters [11:09:11]wFMCommunicate request_size=4 [11:09:11]MH_SAM_APDU [11:09:11]CAPDU: 80 13 00 00 [11:09:11]Write to MH i2c: E2 08 00 48 01 80 13 00 00 00 00 00 00 C5 [11:09:11]Write i2c OK [11:09:11]MH_I2C_Read... [11:09:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:11]Read from MH i2c: E2 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 62 00 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 62 00 48 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 94 C2 01 00 0E 04 04 00 D7 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 D3 [11:09:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 94 C2 01 00 0E 04 04 00 D7 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 [11:09:11]wFMCommunicate OK [11:09:11]SAM_PROTO_GetFieldsCounters done [11:09:11]requested_item shift.num is exist - process it [11:09:11]requested_item shift.opened is exist - process it [11:09:11]req_shift_opened [11:09:11]FM_GetShiftState [11:09:11]SAM_PROTO_GetShiftState [11:09:11]wFMCommunicate request_size=4 [11:09:11]MH_SAM_APDU [11:09:11]CAPDU: 80 13 01 00 [11:09:11]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [11:09:11]Write i2c OK [11:09:11]MH_I2C_Read... [11:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:11]Read from MH i2c: E2 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 0E 00 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 E0 [11:09:11]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:09:11]wFMCommunicate OK [11:09:11]SAM_PROTO_GetShiftState done [11:09:11]FM_GetShiftState done [11:09:11]req_shift_opened done [11:09:11]requested_item shift.open_date is exist - process it [11:09:11]req_shift_open_date [11:09:11]req_shift_open_date done [11:09:11]produce_requested_data done [11:09:11]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115348,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [11:09:11]process_action_free close_receipt [11:09:11]json_value_free [11:09:11]json_value_free done [11:09:11]process_json_proto returns [11:09:11]Send response to host [11:09:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115348,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [11:09:11]free response buf [11:09:11]execute_script done [11:09:11]execute_script returns [11:09:11]free content buf [11:09:11]Sock 10.Close socket [11:09:11]Sock 10.Thread stoped [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:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:27]accept exits with 8 [11:18:27]New connection [11:18:27]New thread 3066826084 created [11:18:27]Thread 3066682724 joined [11:18:27]Waiting for new connection... [11:18:27] Sock 8.Parse request [11:18:27]Sock 8.Check first char [11:18:27]Sock 8.First char is OK [11:18:27]request: POST /json_proto HTTP/1.0 [11:18:27]Method: POST [11:18:27]URL: /json_proto [11:18:27]Method is POST - this is cgi request [11:18:27]url: /json_proto [11:18:27]query_string will be loaded in cgi processing [11:18:27]execute_cgi json_proto POST (null) [11:18:27]execute_cgi path=json_proto method=POST [11:18:27]POST find Content-Length [11:18:27]Host: 172.17.41.136:8080 [11:18:27]Content-Length: 805 [11:18:27]Content-Type: application/json [11:18:27] [11:18:27]POST finish read [11:18:27]Found Content-Length = 805 [11:18:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343805", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:27]execute_script... [11:18:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343805", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:27]POST & json_proto [11:18:27]process_json_proto [11:18:27]json parsed OK: [11:18:27]protocol is kg_v1.0 [11:18:27]action value=close_receipt [11:18:27]process_action close_receipt [11:18:27]cmd_close_receipt [11:18:27]MH_GetDate [11:18:27]Write to MH i2c: F0 00 00 4A 01 3A [11:18:27]Write i2c OK [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: F0 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: F0 09 00 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: F0 09 00 4A 01 00 04 FD EF 66 1B D0 5A 64 42 [11:18:27]GetLastDocTimeStamp 1727003347 [11:18:27]current date 1727003908 [11:18:27]FM_GetShiftState [11:18:27]SAM_PROTO_GetShiftState [11:18:27]wFMCommunicate request_size=4 [11:18:27]MH_SAM_APDU [11:18:27]CAPDU: 80 13 01 00 [11:18:27]Write to MH i2c: E2 08 00 4B 01 80 13 01 00 00 00 00 00 C9 [11:18:27]Write i2c OK [11:18:27]MH_I2C_Read... [11:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:27]Read from MH i2c: E2 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: E2 0E 00 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: E2 0E 00 4B 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 E2 [11:18:27]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:18:27]wFMCommunicate OK [11:18:27]SAM_PROTO_GetShiftState done [11:18:27]FM_GetShiftState done [11:18:27]opened in 1726965840 [11:18:27]opened+sec_in_day 1727052240 [11:18:27]quantity*price = 26000 [11:18:27]sum+1 = 26001 [11:18:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 0.00 Безнал.: 260.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 67 22.09.2024 11:18 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115349 ФПД: 61528403061899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T111828&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115349&fm=61528403061899&tin=02508201610067®Number=0000000000091831&sum=26000 0 [11:18:28]StoreToDocumentArchive [11:18:28]shift 471 fd 115349 [11:18:28]save to /storage/0471/doc_00115349 [11:18:28]save last doc name /storage/0471/doc_00115349 to /storage/kkm_last_doc_name [11:18:28]save OK [11:18:28]Clear old archive folders... [11:18:28]ProcessDocumentItem done err = 0, tmpTLVsize=276 [11:18:28]tlvbuf is 01BE2570 [11:18:28]SAM_PROTO_ClearQueue [11:18:28]wFMCommunicate request_size=4 [11:18:28]MH_SAM_APDU [11:18:28]CAPDU: 80 09 00 00 [11:18:28]Write to MH i2c: E2 08 00 58 01 80 09 00 00 00 00 00 00 CB [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:28]Read from MH i2c: E2 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [11:18:28]RAPDU: 90 00 [11:18:28]wFMCommunicate OK [11:18:28]SAM_PROTO_ClearQueue done [11:18:28]KKMCreateOFDPacket [11:18:28]OFDProtocolAddRootSTLVToBuf [11:18:28]FM_MakeSignedData [11:18:28]FM_MakeSignedData [11:18:28]SAM_PROTO_SignData [11:18:28]wFMCommunicate request_size=4 [11:18:28]MH_SAM_APDU [11:18:28]CAPDU: 80 0D 01 02 [11:18:28]Write to MH i2c: E2 08 00 59 01 80 0D 01 02 00 00 00 00 D3 [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:28]Read from MH i2c: E2 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [11:18:28]RAPDU: 90 00 [11:18:28]wFMCommunicate OK [11:18:28]wFMCommunicate request_size=255 [11:18:28]MH_SAM_APDU [11:18:28]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 04 FD EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 [11:18:28]Write to MH i2c: E2 02 01 5A 01 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 04 FD EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 00 00 16 [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:29]Read from MH i2c: E2 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [11:18:29]RAPDU: 90 00 [11:18:29]wFMCommunicate OK [11:18:29]wFMCommunicate request_size=35 [11:18:29]MH_SAM_APDU [11:18:29]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 95 C2 01 00 35 04 06 00 37 F5 B2 9B AC 8B [11:18:29]Write to MH i2c: E2 26 00 5B 01 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 95 C2 01 00 35 04 06 00 37 F5 B2 9B AC 8B 00 00 CC [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:29]Read from MH i2c: E2 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 5B 01 00 90 00 D0 [11:18:29]RAPDU: 90 00 [11:18:29]wFMCommunicate OK [11:18:29]wFMCommunicate request_size=4 [11:18:29]MH_SAM_APDU [11:18:29]CAPDU: 80 0D 03 02 [11:18:29]Write to MH i2c: E2 08 00 5C 01 80 0D 03 02 00 00 00 00 D8 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:29]Read from MH i2c: E2 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 0B 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 0B 00 5C 01 00 AC 1A 3C 51 0D 62 83 7F 90 00 9D [11:18:29]RAPDU: AC 1A 3C 51 0D 62 83 7F 90 00 [11:18:29]wFMCommunicate OK [11:18:29]SAM_PROTO_SignData done [11:18:29]FM_MakeSignedData done [11:18:29]CreateOFDProtocolMessage [11:18:29]wFMCommunicate request_size=4 [11:18:29]MH_SAM_APDU [11:18:29]CAPDU: 80 11 00 00 [11:18:29]Write to MH i2c: E2 08 00 5D 01 80 11 00 00 00 00 00 00 D8 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:29]Read from MH i2c: E2 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 17 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 17 00 5D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 26 [11:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:18:29]wFMCommunicate OK [11:18:29]CreateOFDProtocolMessage done [11:18:29]OFDSenderStorePacket 115349 [11:18:29]StoreOFDPacket docnum=115349 [11:18:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 72 5A 20 01 8B A0 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 04 FD EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 95 C2 01 00 35 04 06 00 37 F5 B2 9B AC 8B AC 1A 3C 51 0D 62 83 7F [11:18:29]CheckFolder [11:18:29]dirname=/storage/ofd_packets [11:18:29]CheckFolder done [11:18:29]ProducePacketName [11:18:29]name=ofd_packets/00115349 [11:18:29]NVStorageSaveData ofd_packets/00115349 [11:18:29]File name is /storage/ofd_packets/00115349 [11:18:29]Write 326 bytes [11:18:29]NVStorageSaveData done [11:18:29]OFDSenderStorePacket done [11:18:29]KKMCreateOFDPacket done [11:18:29]NVStorageSaveData kkm_last_timestamp [11:18:29]File name is /storage/kkm_last_timestamp [11:18:29]Write 4 bytes [11:18:29]NVStorageSaveData done [11:18:29]ExternCall_PrintAddStr [11:18:29]wPrintStart [11:18:29]Write to MH i2c: 01 00 00 5E 01 5F [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: 01 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: 01 07 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: 01 07 00 5E 01 00 00 00 00 00 FF 0F 74 [11:18:29]RasterBufferAndPrint [11:18:29]line Счет N : (3)343805 [11:18:29]line ИНН: 02508201610067 [11:18:29]line Контрольно-Кассовый Чек [11:18:29]line ПРОДАЖА [11:18:29]line Товар: 2000036230011 [11:18:29]line Кофе Латте XL(GABB TRADE) [11:18:29]line 2.000 * 130.00 [11:18:29]line = 260.00 [11:18:29]line НДС 12% НСП 1% [11:18:29]line > о реализуемом товаре [11:18:29]line ИТОГО: 260.00 [11:18:29]line НСП 1% : 2.30 [11:18:29]line НДС 12% : 27.61 [11:18:29]line Наличными: 0.00 [11:18:29]line Безнал.: 260.00 [11:18:29]line Место: АЗС № 90 "Партнер Нефть" [11:18:29]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:18:29]line СНО: Общий режим [11:18:29]line Чек 67 22.09.2024 11:18 [11:18:29]line Смена: 471 ФФД: 1.0 [11:18:29]line ЗНМ: 0300000120 [11:18:29]line РНМ: 0000000000091831 [11:18:29]line Версия ККМ: 001 [11:18:29]line Платежная система: Бакай Банк [11:18:29]line ФМ: 0000000000871830 [11:18:29]line ФД: 115349 [11:18:29]line ФПД: 61528403061899 [11:18:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T111828&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115349&fm=61528403061899&tin=02508201610067®Number=0000000000091831&sum=26000 [11:18:29]line 0 [11:18:29]written 0, free lines is 4095 [11:18:29]OFD Sender: Processing packet 115349 [packets to send 481, broken 480] [11:18:29]ProducePacketName [11:18:29]name=ofd_packets/00115349 [11:18:29]OFD Sender: To server: pG, [11:18:29]CommunicateWithHost lk.salyk.kg:30040 [11:18:29]ConnectInit lk.salyk.kg [11:18:29]Connected sock=10 [11:18:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 72 5A 20 01 8B A0 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 04 FD EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 95 C2 01 00 35 04 06 00 37 F5 B2 9B AC 8B AC 1A 3C 51 0D 62 83 7F [11:18:29]Write to MH i2c: 01 00 00 87 01 88 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: 01 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: 01 07 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 4B 0C E6 [11:18:29]RasterBufferAndPrint [11:18:29]line [11:18:29]line [11:18:29]line [11:18:29]line [11:18:29]line [11:18:29]written 0, free lines is 3151 [11:18:29]MH_Cut [11:18:29]Write to MH i2c: D1 01 00 8E 01 01 61 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: D1 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: D1 01 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: D1 01 00 8E 01 00 60 [11:18:29]Write to MH i2c: 01 00 00 8F 01 90 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F1 58 47 00 78 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 95 C2 01 00 F4 03 04 00 4A A2 EF 66 B6 04 01 00 00 CA 05 D0 A1 BD A6 6E 27 [11:18:30]CommunicateWithHost err = 0 [11:18:30]CheckOFDResponse [11:18:30]1017 (14) - 77093643461234 [11:18:30]1041 (16) - 0000000000871830 [11:18:30]1040 (4) - 115349 [11:18:30]1012 (4) - 22.09.2024 04:51 [11:18:30]1206 (1) - 0 [11:18:30]OFD Sender: Remove packet 115349 [11:18:30]ProducePacketName [11:18:30]name=ofd_packets/00115349 [11:18:30]NVStorageDeleteData [11:18:30]OFD Sender: No OFD packet to send [11:18:31]*** Cut start [11:18:31]*** Partial cut [11:18:31]*** CUTSNS_PIN = 1 [11:18:31]*** CUTSNS_PIN = 0 [11:18:31]*** Brake cut motor [11:18:31]Read from MH i2c: 01 [11:18:31]MH_I2C_Read... [11:18:31]*** Stop cut motor [11:18:31]*** Cut end [11:18:31]Read from MH i2c: 01 07 00 [11:18:31]MH_I2C_Read... [11:18:31]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [11:18:31]process_action close_receipt done [11:18:31]requested_data is exist [11:18:31]produce_requested_data [11:18:31]requested_item fm.sn is exist - process it [11:18:31]wFMCommunicate request_size=4 [11:18:31]MH_SAM_APDU [11:18:31]CAPDU: 80 11 00 00 [11:18:31]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [11:18:31]Write i2c OK [11:18:31]MH_I2C_Read... [11:18:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:31]Read from MH i2c: E2 [11:18:31]MH_I2C_Read... [11:18:31]Read from MH i2c: E2 17 00 [11:18:31]MH_I2C_Read... [11:18:31]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 59 [11:18:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:18:31]wFMCommunicate OK [11:18:31]requested_item fd.num is exist - process it [11:18:31]SAM_PROTO_GetFieldsCounters [11:18:31]wFMCommunicate request_size=4 [11:18:31]MH_SAM_APDU [11:18:31]CAPDU: 80 13 00 00 [11:18:31]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [11:18:31]Write i2c OK [11:18:31]MH_I2C_Read... [11:18:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:32]Read from MH i2c: E2 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 62 00 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 95 C2 01 00 0E 04 04 00 D7 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 20 [11:18: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 95 C2 01 00 0E 04 04 00 D7 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 [11:18:32]wFMCommunicate OK [11:18:32]SAM_PROTO_GetFieldsCounters done [11:18:32]requested_item shift.num is exist - process it [11:18:32]requested_item shift.opened is exist - process it [11:18:32]req_shift_opened [11:18:32]FM_GetShiftState [11:18:32]SAM_PROTO_GetShiftState [11:18:32]wFMCommunicate request_size=4 [11:18:32]MH_SAM_APDU [11:18:32]CAPDU: 80 13 01 00 [11:18:32]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [11:18:32]Write i2c OK [11:18:32]MH_I2C_Read... [11:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:32]Read from MH i2c: E2 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 0E 00 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 29 [11:18:32]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:18:32]wFMCommunicate OK [11:18:32]SAM_PROTO_GetShiftState done [11:18:32]FM_GetShiftState done [11:18:32]req_shift_opened done [11:18:32]requested_item shift.open_date is exist - process it [11:18:32]req_shift_open_date [11:18:32]req_shift_open_date done [11:18:32]produce_requested_data done [11:18:32]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115349,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [11:18:32]process_action_free close_receipt [11:18:32]json_value_free [11:18:32]json_value_free done [11:18:32]process_json_proto returns [11:18:32]Send response to host [11:18:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115349,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [11:18:32]free response buf [11:18:32]execute_script done [11:18:32]execute_script returns [11:18:32]free content buf [11:18:32]Sock 8.Close socket [11:18:32]Sock 8.Thread stoped [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [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]accept exits with 9 [11:28:41]New connection [11:28:41]New thread 3066682724 created [11:28:41]Thread 3066826084 joined [11:28:41]Waiting for new connection... [11:28:41] Sock 9.Parse request [11:28:41]Sock 9.Check first char [11:28:41]Sock 9.First char is OK [11:28:41]request: POST /json_proto HTTP/1.0 [11:28:41]Method: POST [11:28:41]URL: /json_proto [11:28:41]Method is POST - this is cgi request [11:28:41]url: /json_proto [11:28:41]query_string will be loaded in cgi processing [11:28:41]execute_cgi json_proto POST (null) [11:28:41]execute_cgi path=json_proto method=POST [11:28:41]POST find Content-Length [11:28:41]Host: 172.17.41.136:8080 [11:28:41]Content-Length: 912 [11:28:41]Content-Type: application/json [11:28:41] [11:28:41]POST finish read [11:28:41]Found Content-Length = 912 [11:28:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343806", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:41]execute_script... [11:28:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343806", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:41]POST & json_proto [11:28:41]process_json_proto [11:28:41]json parsed OK: [11:28:41]protocol is kg_v1.0 [11:28:41]action value=close_receipt [11:28:41]process_action close_receipt [11:28:41]cmd_close_receipt [11:28:41]MH_GetDate [11:28:41]Write to MH i2c: F0 00 00 93 01 83 [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: F0 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: F0 09 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: F0 09 00 93 01 00 6A FF EF 66 1B D0 5A 64 F3 [11:28:41]GetLastDocTimeStamp 1727003908 [11:28:41]current date 1727004522 [11:28:41]FM_GetShiftState [11:28:41]SAM_PROTO_GetShiftState [11:28:41]wFMCommunicate request_size=4 [11:28:41]MH_SAM_APDU [11:28:41]CAPDU: 80 13 01 00 [11:28:41]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:42]OFD Sender: No OFD packet to send [11:28:42]Read from MH i2c: E2 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: E2 0E 00 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 2B [11:28:42]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:28:42]wFMCommunicate OK [11:28:42]SAM_PROTO_GetShiftState done [11:28:42]FM_GetShiftState done [11:28:42]opened in 1726965840 [11:28:42]opened+sec_in_day 1727052240 [11:28:42]quantity*price = 21000 [11:28:42]sum+1 = 21001 [11:28:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.01 НДС 12% : 36.10 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 68 22.09.2024 11:28 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115350 ФПД: 262181406919318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T112843&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115350&fm=262181406919318&tin=02508201610067®Number=0000000000091831&sum=34000 0 [11:28:43]StoreToDocumentArchive [11:28:43]shift 471 fd 115350 [11:28:43]save to /storage/0471/doc_00115350 [11:28:43]save last doc name /storage/0471/doc_00115350 to /storage/kkm_last_doc_name [11:28:43]save OK [11:28:43]Clear old archive folders... [11:28:43]ProcessDocumentItem done err = 0, tmpTLVsize=394 [11:28:43]tlvbuf is 01BE2160 [11:28:43]SAM_PROTO_ClearQueue [11:28:43]wFMCommunicate request_size=4 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 09 00 00 [11:28:43]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [11:28:43]RAPDU: 90 00 [11:28:43]wFMCommunicate OK [11:28:43]SAM_PROTO_ClearQueue done [11:28:43]KKMCreateOFDPacket [11:28:43]OFDProtocolAddRootSTLVToBuf [11:28:43]FM_MakeSignedData [11:28:43]FM_MakeSignedData [11:28:43]SAM_PROTO_SignData [11:28:43]wFMCommunicate request_size=4 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 0D 01 02 [11:28:43]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [11:28:43]RAPDU: 90 00 [11:28:43]wFMCommunicate OK [11:28:43]wFMCommunicate request_size=255 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F [11:28:43]Write to MH i2c: E2 02 01 A3 01 80 0D 02 02 FA 00 03 00 8A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 55 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [11:28:43]RAPDU: 90 00 [11:28:43]wFMCommunicate OK [11:28:43]wFMCommunicate request_size=153 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 0D 02 02 94 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 6B FF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 96 C2 01 00 35 04 06 00 EE 73 DD A0 4A 96 [11:28:43]Write to MH i2c: E2 9C 00 A4 01 80 0D 02 02 94 00 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 6B FF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 96 C2 01 00 35 04 06 00 EE 73 DD A0 4A 96 00 00 03 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [11:28:43]RAPDU: 90 00 [11:28:43]wFMCommunicate OK [11:28:43]wFMCommunicate request_size=4 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 0D 03 02 [11:28:43]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 0B 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 0B 00 A5 01 00 84 B5 9D F1 CA 07 CB 72 90 00 F7 [11:28:43]RAPDU: 84 B5 9D F1 CA 07 CB 72 90 00 [11:28:43]wFMCommunicate OK [11:28:43]SAM_PROTO_SignData done [11:28:43]FM_MakeSignedData done [11:28:43]CreateOFDProtocolMessage [11:28:43]wFMCommunicate request_size=4 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 11 00 00 [11:28:43]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 17 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6F [11:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:28:43]wFMCommunicate OK [11:28:43]CreateOFDProtocolMessage done [11:28:43]OFDSenderStorePacket 115350 [11:28:43]StoreOFDPacket docnum=115350 [11:28:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9E 01 00 00 C3 FB 96 01 CF 6A 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 6B FF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 96 C2 01 00 35 04 06 00 EE 73 DD A0 4A 96 84 B5 9D F1 CA 07 CB 72 [11:28:43]CheckFolder [11:28:43]dirname=/storage/ofd_packets [11:28:43]CheckFolder done [11:28:43]ProducePacketName [11:28:43]name=ofd_packets/00115350 [11:28:43]NVStorageSaveData ofd_packets/00115350 [11:28:43]File name is /storage/ofd_packets/00115350 [11:28:43]Write 444 bytes [11:28:43]NVStorageSaveData done [11:28:43]OFDSenderStorePacket done [11:28:43]KKMCreateOFDPacket done [11:28:43]NVStorageSaveData kkm_last_timestamp [11:28:43]File name is /storage/kkm_last_timestamp [11:28:43]Write 4 bytes [11:28:43]NVStorageSaveData done [11:28:43]ExternCall_PrintAddStr [11:28:43]wPrintStart [11:28:43]Write to MH i2c: 01 00 00 A7 01 A8 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: 01 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: 01 07 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [11:28:43]RasterBufferAndPrint [11:28:43]line Счет N : (3)343806 [11:28:43]line ИНН: 02508201610067 [11:28:43]line Контрольно-Кассовый Чек [11:28:43]line ПРОДАЖА [11:28:44]line Товар: 2000034730018 [11:28:44]line Кофе Американо (GABB TRADE) [11:28:44]line 2.000 * 105.00 [11:28:44]line = 210.00 [11:28:44]line НДС 12% НСП 1% [11:28:44]line > о реализуемом товаре [11:28:44]line Товар: 2000036220012 [11:28:44]line Кофе Капучино XL(GABB TRADE) [11:28:44]line 1.000 * 130.00 [11:28:44]line = 130.00 [11:28:44]line НДС 12% НСП 1% [11:28:44]line > о реализуемом товаре [11:28:44]line ИТОГО: 340.00 [11:28:44]line НСП 1% : 3.01 [11:28:44]line НДС 12% : 36.10 [11:28:44]line Наличными: 340.00 [11:28:44]line Безнал.: 0.00 [11:28:44]line Место: АЗС № 90 "Партнер Нефть" [11:28:44]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:28:44]line СНО: Общий режим [11:28:44]line Чек 68 22.09.2024 11:28 [11:28:44]line Смена: 471 ФФД: 1.0 [11:28:44]line ЗНМ: 0300000120 [11:28:44]line РНМ: 0000000000091831 [11:28:44]line Версия ККМ: 001 [11:28:44]line ФМ: 0000000000871830 [11:28:44]line ФД: 115350 [11:28:44]line ФПД: 262181406919318 [11:28:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T112843&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115350&fm=262181406919318&tin=02508201610067®Number=0000000000091831&sum=34000 [11:28:44]OFD Sender: Processing packet 115350 [packets to send 481, broken 480] [11:28:44]ProducePacketName [11:28:44]name=ofd_packets/00115350 [11:28:44]OFD Sender: To server: pG, [11:28:44]CommunicateWithHost lk.salyk.kg:30040 [11:28:44]ConnectInit lk.salyk.kg [11:28:44]line 0 [11:28:44]written 0, free lines is 4095 [11:28:44]Connected sock=10 [11:28:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9E 01 00 00 C3 FB 96 01 CF 6A 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 6B FF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 96 C2 01 00 35 04 06 00 EE 73 DD A0 4A 96 84 B5 9D F1 CA 07 CB 72 [11:28:44]Write to MH i2c: 01 00 00 D6 01 D7 [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: 01 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: 01 07 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 DF 0B C8 [11:28:44]RasterBufferAndPrint [11:28:44]line [11:28:44]line [11:28:44]line [11:28:44]line [11:28:44]line [11:28:44]written 0, free lines is 3042 [11:28:44]MH_Cut [11:28:44]Write to MH i2c: D1 01 00 DD 01 01 B0 [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: D1 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: D1 01 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: D1 01 00 DD 01 00 AF [11:28:44]Write to MH i2c: 01 00 00 DE 01 DF [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D4 42 47 00 8F 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 96 C2 01 00 F4 03 04 00 B1 A4 EF 66 B6 04 01 00 00 4E 44 43 D9 84 6F 0C 57 [11:28:45]CommunicateWithHost err = 0 [11:28:45]CheckOFDResponse [11:28:45]1017 (14) - 77093643461234 [11:28:45]1041 (16) - 0000000000871830 [11:28:45]1040 (4) - 115350 [11:28:45]1012 (4) - 22.09.2024 05:01 [11:28:45]1206 (1) - 0 [11:28:45]OFD Sender: Remove packet 115350 [11:28:45]ProducePacketName [11:28:45]name=ofd_packets/00115350 [11:28:45]NVStorageDeleteData [11:28:45]OFD Sender: No OFD packet to send [11:28:46]*** Cut start [11:28:46]*** Partial cut [11:28:46]*** CUTSNS_PIN = 1 [11:28:46]*** CUTSNS_PIN = 0 [11:28:46]*** Brake cut motor [11:28:46]Read from MH i2c: 01 [11:28:46]MH_I2C_Read... [11:28:46]*** Stop cut motor [11:28:46]*** Cut end [11:28:46]Read from MH i2c: 01 07 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: 01 07 00 DE 01 00 00 00 00 00 FF 0F F4 [11:28:46]process_action close_receipt done [11:28:46]requested_data is exist [11:28:46]produce_requested_data [11:28:46]requested_item fm.sn is exist - process it [11:28:46]wFMCommunicate request_size=4 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 11 00 00 [11:28:46]Write to MH i2c: E2 08 00 DF 01 80 11 00 00 00 00 00 00 5A [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 17 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 17 00 DF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A8 [11:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:28:46]wFMCommunicate OK [11:28:46]requested_item fd.num is exist - process it [11:28:46]SAM_PROTO_GetFieldsCounters [11:28:46]wFMCommunicate request_size=4 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 13 00 00 [11:28:46]Write to MH i2c: E2 08 00 E0 01 80 13 00 00 00 00 00 00 5D [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:47]Read from MH i2c: E2 [11:28:47]MH_I2C_Read... [11:28:47]Read from MH i2c: E2 62 00 [11:28:47]MH_I2C_Read... [11:28:47]Read from MH i2c: E2 62 00 E0 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 96 C2 01 00 0E 04 04 00 D7 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 73 [11:28:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 96 C2 01 00 0E 04 04 00 D7 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 [11:28:47]wFMCommunicate OK [11:28:47]SAM_PROTO_GetFieldsCounters done [11:28:47]requested_item shift.num is exist - process it [11:28:47]requested_item shift.opened is exist - process it [11:28:47]req_shift_opened [11:28:47]FM_GetShiftState [11:28:47]SAM_PROTO_GetShiftState [11:28:47]wFMCommunicate request_size=4 [11:28:47]MH_SAM_APDU [11:28:47]CAPDU: 80 13 01 00 [11:28:47]Write to MH i2c: E2 08 00 E1 01 80 13 01 00 00 00 00 00 5F [11:28:47]Write i2c OK [11:28:47]MH_I2C_Read... [11:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:47]Read from MH i2c: E2 [11:28:47]MH_I2C_Read... [11:28:47]Read from MH i2c: E2 0E 00 [11:28:47]MH_I2C_Read... [11:28:47]Read from MH i2c: E2 0E 00 E1 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 78 [11:28:47]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:28:47]wFMCommunicate OK [11:28:47]SAM_PROTO_GetShiftState done [11:28:47]FM_GetShiftState done [11:28:47]req_shift_opened done [11:28:47]requested_item shift.open_date is exist - process it [11:28:47]req_shift_open_date [11:28:47]req_shift_open_date done [11:28:47]produce_requested_data done [11:28:47]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115350,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [11:28:47]process_action_free close_receipt [11:28:47]json_value_free [11:28:47]json_value_free done [11:28:47]process_json_proto returns [11:28:47]Send response to host [11:28:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115350,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [11:28:47]free response buf [11:28:47]execute_script done [11:28:47]execute_script returns [11:28:47]free content buf [11:28:47]Sock 9.Close socket [11:28:47]Sock 9.Thread stoped [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:16]accept exits with 8 [11:30:16]New connection [11:30:16]New thread 3066826084 created [11:30:16]Thread 3066682724 joined [11:30:16]Waiting for new connection... [11:30:16] Sock 8.Parse request [11:30:16]Sock 8.Check first char [11:30:16]Sock 8.First char is OK [11:30:16]request: POST /json_proto HTTP/1.0 [11:30:16]Method: POST [11:30:16]URL: /json_proto [11:30:16]Method is POST - this is cgi request [11:30:16]url: /json_proto [11:30:16]query_string will be loaded in cgi processing [11:30:16]execute_cgi json_proto POST (null) [11:30:16]execute_cgi path=json_proto method=POST [11:30:16]POST find Content-Length [11:30:16]Host: 172.17.41.136:8080 [11:30:16]Content-Length: 728 [11:30:16]Content-Type: application/json [11:30:16] [11:30:16]POST finish read [11:30:16]Found Content-Length = 728 [11:30:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343807", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:16]execute_script... [11:30:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343807", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:16]POST & json_proto [11:30:16]process_json_proto [11:30:16]json parsed OK: [11:30:16]protocol is kg_v1.0 [11:30:16]action value=close_receipt [11:30:16]process_action close_receipt [11:30:16]cmd_close_receipt [11:30:16]MH_GetDate [11:30:16]Write to MH i2c: F0 00 00 E2 01 D2 [11:30:16]Write i2c OK [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: F0 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: F0 09 00 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: F0 09 00 E2 01 00 C9 FF EF 66 1B D0 5A 64 A1 [11:30:16]GetLastDocTimeStamp 1727004523 [11:30:16]current date 1727004617 [11:30:16]FM_GetShiftState [11:30:16]SAM_PROTO_GetShiftState [11:30:16]wFMCommunicate request_size=4 [11:30:16]MH_SAM_APDU [11:30:16]CAPDU: 80 13 01 00 [11:30:16]Write to MH i2c: E2 08 00 E3 01 80 13 01 00 00 00 00 00 61 [11:30:16]Write i2c OK [11:30:16]MH_I2C_Read... [11:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:16]Read from MH i2c: E2 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: E2 0E 00 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: E2 0E 00 E3 01 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 7A [11:30:16]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:30:16]wFMCommunicate OK [11:30:16]SAM_PROTO_GetShiftState done [11:30:16]FM_GetShiftState done [11:30:16]opened in 1726965840 [11:30:16]opened+sec_in_day 1727052240 [11:30:16]quantity*price = 10500 [11:30:16]sum+1 = 10501 [11:30:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 69 22.09.2024 11:30 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115351 ФПД: 107670968467174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T113017&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115351&fm=107670968467174&tin=02508201610067®Number=0000000000091831&sum=10500 0 [11:30:17]StoreToDocumentArchive [11:30:17]shift 471 fd 115351 [11:30:17]save to /storage/0471/doc_00115351 [11:30:17]save last doc name /storage/0471/doc_00115351 to /storage/kkm_last_doc_name [11:30:17]save OK [11:30:17]Clear old archive folders... [11:30:17]ProcessDocumentItem done err = 0, tmpTLVsize=308 [11:30:17]tlvbuf is 01BDECE0 [11:30:17]SAM_PROTO_ClearQueue [11:30:17]wFMCommunicate request_size=4 [11:30:17]MH_SAM_APDU [11:30:17]CAPDU: 80 09 00 00 [11:30:17]Write to MH i2c: E2 08 00 F0 01 80 09 00 00 00 00 00 00 63 [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:17]Read from MH i2c: E2 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 03 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [11:30:17]RAPDU: 90 00 [11:30:17]wFMCommunicate OK [11:30:17]SAM_PROTO_ClearQueue done [11:30:17]KKMCreateOFDPacket [11:30:17]OFDProtocolAddRootSTLVToBuf [11:30:17]FM_MakeSignedData [11:30:17]FM_MakeSignedData [11:30:17]SAM_PROTO_SignData [11:30:17]wFMCommunicate request_size=4 [11:30:17]MH_SAM_APDU [11:30:17]CAPDU: 80 0D 01 02 [11:30:17]Write to MH i2c: E2 08 00 F1 01 80 0D 01 02 00 00 00 00 6B [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:17]Read from MH i2c: E2 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 03 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [11:30:17]RAPDU: 90 00 [11:30:17]wFMCommunicate OK [11:30:17]wFMCommunicate request_size=255 [11:30:17]MH_SAM_APDU [11:30:17]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C9 FF EF 66 0E 04 04 00 D7 01 00 00 B9 [11:30:17]Write to MH i2c: E2 02 01 F2 01 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C9 FF EF 66 0E 04 04 00 D7 01 00 00 B9 00 00 A5 [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:18]Read from MH i2c: E2 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 03 00 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [11:30:18]RAPDU: 90 00 [11:30:18]wFMCommunicate OK [11:30:18]wFMCommunicate request_size=67 [11:30:18]MH_SAM_APDU [11:30:18]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 97 C2 01 00 35 04 06 00 61 ED 19 D3 FE E6 [11:30:18]Write to MH i2c: E2 46 00 F3 01 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 97 C2 01 00 35 04 06 00 61 ED 19 D3 FE E6 00 00 36 [11:30:18]Write i2c OK [11:30:18]MH_I2C_Read... [11:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:18]Read from MH i2c: E2 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 03 00 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [11:30:18]RAPDU: 90 00 [11:30:18]wFMCommunicate OK [11:30:18]wFMCommunicate request_size=4 [11:30:18]MH_SAM_APDU [11:30:18]CAPDU: 80 0D 03 02 [11:30:18]Write to MH i2c: E2 08 00 F4 01 80 0D 03 02 00 00 00 00 70 [11:30:18]Write i2c OK [11:30:18]MH_I2C_Read... [11:30:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:18]Read from MH i2c: E2 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 0B 00 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 0B 00 F4 01 00 D5 A2 8A 1C 62 01 3B E0 90 00 0C [11:30:18]RAPDU: D5 A2 8A 1C 62 01 3B E0 90 00 [11:30:18]wFMCommunicate OK [11:30:18]SAM_PROTO_SignData done [11:30:18]FM_MakeSignedData done [11:30:18]CreateOFDProtocolMessage [11:30:18]wFMCommunicate request_size=4 [11:30:18]MH_SAM_APDU [11:30:18]CAPDU: 80 11 00 00 [11:30:18]Write to MH i2c: E2 08 00 F5 01 80 11 00 00 00 00 00 00 70 [11:30:18]Write i2c OK [11:30:18]MH_I2C_Read... [11:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:18]Read from MH i2c: E2 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 17 00 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 17 00 F5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BE [11:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:30:18]wFMCommunicate OK [11:30:18]CreateOFDProtocolMessage done [11:30:18]OFDSenderStorePacket 115351 [11:30:18]StoreOFDPacket docnum=115351 [11:30:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 48 01 00 00 4C 46 40 01 0F 1A 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C9 FF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 97 C2 01 00 35 04 06 00 61 ED 19 D3 FE E6 D5 A2 8A 1C 62 01 3B E0 [11:30:18]CheckFolder [11:30:18]dirname=/storage/ofd_packets [11:30:18]CheckFolder done [11:30:18]ProducePacketName [11:30:18]name=ofd_packets/00115351 [11:30:18]NVStorageSaveData ofd_packets/00115351 [11:30:18]File name is /storage/ofd_packets/00115351 [11:30:18]Write 358 bytes [11:30:18]NVStorageSaveData done [11:30:18]OFDSenderStorePacket done [11:30:18]KKMCreateOFDPacket done [11:30:18]NVStorageSaveData kkm_last_timestamp [11:30:18]File name is /storage/kkm_last_timestamp [11:30:18]Write 4 bytes [11:30:18]NVStorageSaveData done [11:30:18]ExternCall_PrintAddStr [11:30:18]wPrintStart [11:30:18]Write to MH i2c: 01 00 00 F6 01 F7 [11:30:18]Write i2c OK [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: 01 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: 01 07 00 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: 01 07 00 F6 01 00 00 00 00 00 FF 0F 0C [11:30:18]RasterBufferAndPrint [11:30:18]line Счет N : (3)343807 [11:30:18]line ИНН: 02508201610067 [11:30:18]line Контрольно-Кассовый Чек [11:30:18]line ПРОДАЖА [11:30:18]line Товар: 5449000027474 [11:30:18]line Напиток FuzeTea зел чай манго,ромашка 1л [11:30:18]line 1.000 * 105.00 [11:30:18]line = 105.00 [11:30:18]line НДС 12% НСП 1% [11:30:18]line > о реализуемом товаре [11:30:18]line ИТОГО: 105.00 [11:30:18]line НСП 1% : 0.93 [11:30:18]line НДС 12% : 11.15 [11:30:18]line Наличными: 105.00 [11:30:18]line Безнал.: 0.00 [11:30:18]line Место: АЗС № 90 "Партнер Нефть" [11:30:18]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:30:18]line СНО: Общий режим [11:30:18]line Чек 69 22.09.2024 11:30 [11:30:18]line Смена: 471 ФФД: 1.0 [11:30:18]line ЗНМ: 0300000120 [11:30:18]line РНМ: 0000000000091831 [11:30:18]line Версия ККМ: 001 [11:30:18]line ФМ: 0000000000871830 [11:30:18]line ФД: 115351 [11:30:18]line ФПД: 107670968467174 [11:30:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T113017&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115351&fm=107670968467174&tin=02508201610067®Number=0000000000091831&sum=10500 [11:30:18]line 0 [11:30:18]OFD Sender: Processing packet 115351 [packets to send 481, broken 480] [11:30:18]ProducePacketName [11:30:18]name=ofd_packets/00115351 [11:30:18]OFD Sender: To server: pG, [11:30:18]CommunicateWithHost lk.salyk.kg:30040 [11:30:18]ConnectInit lk.salyk.kg [11:30:18]written 0, free lines is 4095 [11:30:19]Connected sock=10 [11:30:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 48 01 00 00 4C 46 40 01 0F 1A 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C9 FF EF 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 97 C2 01 00 35 04 06 00 61 ED 19 D3 FE E6 D5 A2 8A 1C 62 01 3B E0 [11:30:19]Write to MH i2c: 01 00 00 1E 02 20 [11:30:19]Write i2c OK [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: 01 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: 01 07 00 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 57 0C 8A [11:30:19]RasterBufferAndPrint [11:30:19]line [11:30:19]line [11:30:19]line [11:30:19]line [11:30:19]line [11:30:19]written 0, free lines is 3163 [11:30:19]MH_Cut [11:30:19]Write to MH i2c: D1 01 00 25 02 01 F9 [11:30:19]Write i2c OK [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: D1 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: D1 01 00 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: D1 01 00 25 02 00 F8 [11:30:19]Write to MH i2c: 01 00 00 26 02 28 [11:30:19]Write i2c OK [11:30:19]MH_I2C_Read... [11:30:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6E E3 47 00 7F D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 97 C2 01 00 F4 03 04 00 0F A5 EF 66 B6 04 01 00 00 44 E2 0D 26 94 0F 1F ED [11:30:19]CommunicateWithHost err = 0 [11:30:19]CheckOFDResponse [11:30:19]1017 (14) - 77093643461234 [11:30:19]1041 (16) - 0000000000871830 [11:30:19]1040 (4) - 115351 [11:30:19]1012 (4) - 22.09.2024 05:03 [11:30:19]1206 (1) - 0 [11:30:19]OFD Sender: Remove packet 115351 [11:30:19]ProducePacketName [11:30:19]name=ofd_packets/00115351 [11:30:19]NVStorageDeleteData [11:30:19]OFD Sender: No OFD packet to send [11:30:20]*** Cut start [11:30:20]*** Partial cut [11:30:20]*** CUTSNS_PIN = 1 [11:30:20]*** CUTSNS_PIN = 0 [11:30:20]*** Brake cut motor [11:30:21]Read from MH i2c: 01 [11:30:21]MH_I2C_Read... [11:30:21]*** Stop cut motor [11:30:21]*** Cut end [11:30:21]Read from MH i2c: 01 07 00 [11:30:21]MH_I2C_Read... [11:30:21]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [11:30:21]process_action close_receipt done [11:30:21]requested_data is exist [11:30:21]produce_requested_data [11:30:21]requested_item fm.sn is exist - process it [11:30:21]wFMCommunicate request_size=4 [11:30:21]MH_SAM_APDU [11:30:21]CAPDU: 80 11 00 00 [11:30:21]Write to MH i2c: E2 08 00 27 02 80 11 00 00 00 00 00 00 A3 [11:30:21]Write i2c OK [11:30:21]MH_I2C_Read... [11:30:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:21]Read from MH i2c: E2 [11:30:21]MH_I2C_Read... [11:30:21]Read from MH i2c: E2 17 00 [11:30:21]MH_I2C_Read... [11:30:21]Read from MH i2c: E2 17 00 27 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F1 [11:30:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:30:21]wFMCommunicate OK [11:30:21]requested_item fd.num is exist - process it [11:30:21]SAM_PROTO_GetFieldsCounters [11:30:21]wFMCommunicate request_size=4 [11:30:21]MH_SAM_APDU [11:30:21]CAPDU: 80 13 00 00 [11:30:21]Write to MH i2c: E2 08 00 28 02 80 13 00 00 00 00 00 00 A6 [11:30:21]Write i2c OK [11:30:21]MH_I2C_Read... [11:30:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:21]Read from MH i2c: E2 [11:30:21]MH_I2C_Read... [11:30:21]Read from MH i2c: E2 62 00 [11:30:21]MH_I2C_Read... [11:30:21]Read from MH i2c: E2 62 00 28 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 97 C2 01 00 0E 04 04 00 D7 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 C0 [11:30:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 97 C2 01 00 0E 04 04 00 D7 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 [11:30:21]wFMCommunicate OK [11:30:21]SAM_PROTO_GetFieldsCounters done [11:30:21]requested_item shift.num is exist - process it [11:30:21]requested_item shift.opened is exist - process it [11:30:21]req_shift_opened [11:30:21]FM_GetShiftState [11:30:21]SAM_PROTO_GetShiftState [11:30:21]wFMCommunicate request_size=4 [11:30:21]MH_SAM_APDU [11:30:21]CAPDU: 80 13 01 00 [11:30:21]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [11:30:21]Write i2c OK [11:30:21]MH_I2C_Read... [11:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:21]Read from MH i2c: E2 [11:30:21]MH_I2C_Read... [11:30:21]Read from MH i2c: E2 0E 00 [11:30:21]MH_I2C_Read... [11:30:21]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C1 [11:30:21]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:30:21]wFMCommunicate OK [11:30:21]SAM_PROTO_GetShiftState done [11:30:21]FM_GetShiftState done [11:30:21]req_shift_opened done [11:30:21]requested_item shift.open_date is exist - process it [11:30:21]req_shift_open_date [11:30:21]req_shift_open_date done [11:30:21]produce_requested_data done [11:30:21]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115351,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [11:30:21]process_action_free close_receipt [11:30:21]json_value_free [11:30:21]json_value_free done [11:30:21]process_json_proto returns [11:30:21]Send response to host [11:30:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115351,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [11:30:21]free response buf [11:30:21]execute_script done [11:30:21]execute_script returns [11:30:21]free content buf [11:30:21]Sock 8.Close socket [11:30:21]Sock 8.Thread stoped [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:52]accept exits with 9 [11:33:52]New connection [11:33:52]New thread 3066682724 created [11:33:52]Thread 3066826084 joined [11:33:52]Waiting for new connection... [11:33:52] Sock 9.Parse request [11:33:52]Sock 9.Check first char [11:33:52]Sock 9.First char is OK [11:33:52]request: POST /json_proto HTTP/1.0 [11:33:52]Method: POST [11:33:52]URL: /json_proto [11:33:52]Method is POST - this is cgi request [11:33:52]url: /json_proto [11:33:52]query_string will be loaded in cgi processing [11:33:52]execute_cgi json_proto POST (null) [11:33:52]execute_cgi path=json_proto method=POST [11:33:52]POST find Content-Length [11:33:52]Host: 172.17.41.136:8080 [11:33:52]Content-Length: 2322 [11:33:52]Content-Type: application/json [11:33:52] [11:33:52]POST finish read [11:33:52]Found Content-Length = 2322 [11:33:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343808", "tax_sys" : 0, "items" : [ { "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 5.000, "sum" : 385.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004824", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u0441\u043B\u0438\u0432 \u041A\u0440\u0435\u043C 182\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870233467712", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u0420\u043E\u0437\u043E\u0447\u043A\u0430 \u043A\u043B\u0443\u0431\u043D\u0438\u0447\u043D\u0430\u044F", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 755.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:52]execute_script... [11:33:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343808", "tax_sys" : 0, "items" : [ { "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 5.000, "sum" : 385.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004824", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u0441\u043B\u0438\u0432 \u041A\u0440\u0435\u043C 182\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870233467712", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u0420\u043E\u0437\u043E\u0447\u043A\u0430 \u043A\u043B\u0443\u0431\u043D\u0438\u0447\u043D\u0430\u044F", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 755.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:52]POST & json_proto [11:33:52]process_json_proto [11:33:52]json parsed OK: [11:33:52]protocol is kg_v1.0 [11:33:52]action value=close_receipt [11:33:52]process_action close_receipt [11:33:52]cmd_close_receipt [11:33:52]MH_GetDate [11:33:52]Write to MH i2c: F0 00 00 2A 02 1B [11:33:52]Write i2c OK [11:33:52]MH_I2C_Read... [11:33:52]Read from MH i2c: F0 [11:33:52]MH_I2C_Read... [11:33:52]Read from MH i2c: F0 09 00 [11:33:52]MH_I2C_Read... [11:33:52]Read from MH i2c: F0 09 00 2A 02 00 A1 00 F0 66 1B D0 5A 64 C4 [11:33:52]GetLastDocTimeStamp 1727004617 [11:33:52]current date 1727004833 [11:33:52]FM_GetShiftState [11:33:52]SAM_PROTO_GetShiftState [11:33:52]wFMCommunicate request_size=4 [11:33:52]MH_SAM_APDU [11:33:52]CAPDU: 80 13 01 00 [11:33:52]Write to MH i2c: E2 08 00 2B 02 80 13 01 00 00 00 00 00 AA [11:33:52]Write i2c OK [11:33:52]MH_I2C_Read... [11:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:52]Read from MH i2c: E2 [11:33:52]MH_I2C_Read... [11:33:52]Read from MH i2c: E2 0E 00 [11:33:52]MH_I2C_Read... [11:33:52]Read from MH i2c: E2 0E 00 2B 02 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C3 [11:33:52]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:33:52]wFMCommunicate OK [11:33:52]SAM_PROTO_GetShiftState done [11:33:52]FM_GetShiftState done [11:33:52]opened in 1726965840 [11:33:52]opened+sec_in_day 1727052240 [11:33:52]quantity*price = 38500 [11:33:52]sum+1 = 38501 [11:33:52]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4603290004824 Печ зат Яшкино слив Крем 182г 1.000 * 81.00 = 81.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600338001623 Вода Фруто НЯНЯ негазир д/детей 0,33л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870233467712 Мороженое Пломбир Розочка клубничная 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 755.00 НСП 1% : 6.68 НДС 12% : 80.17 Наличными: 755.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 70 22.09.2024 11:33 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115352 ФПД: 111356957848282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T113353&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115352&fm=111356957848282&tin=02508201610067®Number=0000000000091831&sum=75500 0 [11:33:54]StoreToDocumentArchive [11:33:54]shift 471 fd 115352 [11:33:54]save to /storage/0471/doc_00115352 [11:33:54]save last doc name /storage/0471/doc_00115352 to /storage/kkm_last_doc_name [11:33:54]save OK [11:33:54]Clear old archive folders... [11:33:54]ProcessDocumentItem done err = 0, tmpTLVsize=929 [11:33:54]tlvbuf is 01BDE5E0 [11:33:54]SAM_PROTO_ClearQueue [11:33:54]wFMCommunicate request_size=4 [11:33:54]MH_SAM_APDU [11:33:54]CAPDU: 80 09 00 00 [11:33:54]Write to MH i2c: E2 08 00 38 02 80 09 00 00 00 00 00 00 AC [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:54]Read from MH i2c: E2 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 03 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [11:33:54]RAPDU: 90 00 [11:33:54]wFMCommunicate OK [11:33:54]SAM_PROTO_ClearQueue done [11:33:54]KKMCreateOFDPacket [11:33:54]OFDProtocolAddRootSTLVToBuf [11:33:54]FM_MakeSignedData [11:33:54]FM_MakeSignedData [11:33:54]SAM_PROTO_SignData [11:33:54]wFMCommunicate request_size=4 [11:33:54]MH_SAM_APDU [11:33:54]CAPDU: 80 0D 01 02 [11:33:54]Write to MH i2c: E2 08 00 39 02 80 0D 01 02 00 00 00 00 B4 [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:54]Read from MH i2c: E2 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 03 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [11:33:54]RAPDU: 90 00 [11:33:54]wFMCommunicate OK [11:33:54]wFMCommunicate request_size=255 [11:33:54]MH_SAM_APDU [11:33:54]CAPDU: 80 0D 02 02 FA 03 00 A1 03 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 64 96 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 [11:33:54]Write to MH i2c: E2 02 01 3A 02 80 0D 02 02 FA 00 03 00 A1 03 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 64 96 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 00 00 D8 [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:54]Read from MH i2c: E2 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 03 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [11:33:54]RAPDU: 90 00 [11:33:54]wFMCommunicate OK [11:33:54]wFMCommunicate request_size=255 [11:33:54]MH_SAM_APDU [11:33:54]CAPDU: 80 0D 02 02 FA 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F [11:33:54]Write to MH i2c: E2 02 01 3B 02 80 0D 02 02 FA 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 A1 [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:55]Read from MH i2c: E2 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 03 00 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [11:33:55]RAPDU: 90 00 [11:33:55]wFMCommunicate OK [11:33:55]wFMCommunicate request_size=255 [11:33:55]MH_SAM_APDU [11:33:55]CAPDU: 80 0D 02 02 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 89 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 37 37 31 32 06 04 45 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 A0 D0 BE D0 B7 D0 BE D1 87 D0 BA D0 B0 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 [11:33:55]Write to MH i2c: E2 02 01 3C 02 80 0D 02 02 FA 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 89 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 37 37 31 32 06 04 45 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 A0 D0 BE D0 B7 D0 BE D1 87 D0 BA D0 B0 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 7E [11:33:55]Write i2c OK [11:33:55]MH_I2C_Read... [11:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:55]Read from MH i2c: E2 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 03 00 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 03 00 3C 02 00 90 00 B2 [11:33:55]RAPDU: 90 00 [11:33:55]wFMCommunicate OK [11:33:55]wFMCommunicate request_size=188 [11:33:55]MH_SAM_APDU [11:33:55]CAPDU: 80 0D 02 02 B7 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 1F 00 00 00 00 07 04 06 00 EC 26 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A1 00 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 98 C2 01 00 35 04 06 00 65 47 4F EA 72 DA [11:33:55]Write to MH i2c: E2 BF 00 3D 02 80 0D 02 02 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 1F 00 00 00 00 07 04 06 00 EC 26 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A1 00 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 98 C2 01 00 35 04 06 00 65 47 4F EA 72 DA 00 00 EA [11:33:55]Write i2c OK [11:33:55]MH_I2C_Read... [11:33:55]OFD Sender: No OFD packet to send [11:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:55]Read from MH i2c: E2 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 03 00 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [11:33:55]RAPDU: 90 00 [11:33:55]wFMCommunicate OK [11:33:55]wFMCommunicate request_size=4 [11:33:55]MH_SAM_APDU [11:33:55]CAPDU: 80 0D 03 02 [11:33:55]Write to MH i2c: E2 08 00 3E 02 80 0D 03 02 00 00 00 00 BB [11:33:55]Write i2c OK [11:33:55]MH_I2C_Read... [11:33:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:55]Read from MH i2c: E2 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 0B 00 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 0B 00 3E 02 00 31 B7 F1 8F 8B 49 3C 80 90 00 B4 [11:33:55]RAPDU: 31 B7 F1 8F 8B 49 3C 80 90 00 [11:33:55]wFMCommunicate OK [11:33:55]SAM_PROTO_SignData done [11:33:55]FM_MakeSignedData done [11:33:55]CreateOFDProtocolMessage [11:33:55]wFMCommunicate request_size=4 [11:33:55]MH_SAM_APDU [11:33:55]CAPDU: 80 11 00 00 [11:33:55]Write to MH i2c: E2 08 00 3F 02 80 11 00 00 00 00 00 00 BB [11:33:55]Write i2c OK [11:33:55]MH_I2C_Read... [11:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:55]Read from MH i2c: E2 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 17 00 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 17 00 3F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 09 [11:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:33:55]wFMCommunicate OK [11:33:55]CreateOFDProtocolMessage done [11:33:55]OFDSenderStorePacket 115352 [11:33:55]StoreOFDPacket docnum=115352 [11:33:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B5 03 00 00 7A 45 AD 03 AD 69 5A 03 01 00 03 00 A1 03 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 64 96 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 89 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 37 37 31 32 06 04 45 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 A0 D0 BE D0 B7 D0 BE D1 87 D0 BA D0 B0 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 1F 00 00 00 00 07 04 06 00 EC 26 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A1 00 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 98 C2 01 00 35 04 06 00 65 47 4F EA 72 DA 31 B7 F1 8F 8B 49 3C 80 [11:33:55]CheckFolder [11:33:55]dirname=/storage/ofd_packets [11:33:55]CheckFolder done [11:33:55]ProducePacketName [11:33:55]name=ofd_packets/00115352 [11:33:55]NVStorageSaveData ofd_packets/00115352 [11:33:55]File name is /storage/ofd_packets/00115352 [11:33:55]Write 979 bytes [11:33:55]NVStorageSaveData done [11:33:55]OFDSenderStorePacket done [11:33:55]KKMCreateOFDPacket done [11:33:55]NVStorageSaveData kkm_last_timestamp [11:33:55]File name is /storage/kkm_last_timestamp [11:33:55]Write 4 bytes [11:33:55]NVStorageSaveData done [11:33:55]ExternCall_PrintAddStr [11:33:55]wPrintStart [11:33:55]Write to MH i2c: 01 00 00 40 02 42 [11:33:55]OFD Sender: Processing packet 115352 [packets to send 481, broken 480] [11:33:55]ProducePacketName [11:33:55]name=ofd_packets/00115352 [11:33:55]OFD Sender: To server: pG, [11:33:55]CommunicateWithHost lk.salyk.kg:30040 [11:33:55]ConnectInit lk.salyk.kg [11:33:55]Write i2c OK [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: 01 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: 01 07 00 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: 01 07 00 40 02 00 00 00 00 00 FF 0F 57 [11:33:55]RasterBufferAndPrint [11:33:55]line Счет N : (3)343808 [11:33:55]line ИНН: 02508201610067 [11:33:55]line Контрольно-Кассовый Чек [11:33:55]line ПРОДАЖА [11:33:55]line Товар: 4870233466272 [11:33:55]line Мороженое Пломбир Миша [11:33:55]line 5.000 * 77.00 [11:33:55]line = 385.00 [11:33:55]line НДС 12% НСП 1% [11:33:55]line > о реализуемом товаре [11:33:55]line Товар: 5449000027474 [11:33:55]line Напиток FuzeTea зел чай манго,ромашка 1л [11:33:55]line 1.000 * 105.00 [11:33:55]line = 105.00 [11:33:55]line НДС 12% НСП 1% [11:33:55]line > о реализуемом товаре [11:33:55]line Товар: 4603290004824 [11:33:55]line Печ зат Яшкино слив Крем 182г [11:33:55]line 1.000 * 81.00 [11:33:55]line = 81.00 [11:33:55]line НДС 12% НСП 1% [11:33:55]line > о реализуемом товаре [11:33:55]line Товар: 4600338001623 [11:33:55]line Вода Фруто НЯНЯ негазир д/детей 0,33л [11:33:55]line 1.000 * 80.00 [11:33:55]line = 80.00 [11:33:55]line НДС 12% НСП 1% [11:33:55]line > о реализуемом товаре [11:33:55]line Товар: 4870233467712 [11:33:55]line Мороженое Пломбир Розочка клубничная [11:33:55]line 1.000 * 100.00 [11:33:55]line = 100.00 [11:33:55]line НДС 12% НСП 1% [11:33:55]line > о реализуемом товаре [11:33:55]line Товар: 2000031750019 [11:33:55]line Пакет Партнер Нефть [11:33:55]line 1.000 * 4.00 [11:33:55]line = 4.00 [11:33:55]line НДС 12% НСП 1% [11:33:55]line > о реализуемом товаре [11:33:55]line ИТОГО: 755.00 [11:33:55]line НСП 1% : 6.68 [11:33:55]line НДС 12% : 80.17 [11:33:55]line Наличными: 755.00 [11:33:55]line Безнал.: 0.00 [11:33:55]line Место: АЗС № 90 "Партнер Нефть" [11:33:55]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:33:55]line СНО: Общий режим [11:33:55]line Чек 70 22.09.2024 11:33 [11:33:55]line Смена: 471 ФФД: 1.0 [11:33:55]line ЗНМ: 0300000120 [11:33:55]line РНМ: 0000000000091831 [11:33:55]line Версия ККМ: 001 [11:33:55]line ФМ: 0000000000871830 [11:33:55]line ФД: 115352 [11:33:55]line ФПД: 111356957848282 [11:33:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T113353&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115352&fm=111356957848282&tin=02508201610067®Number=0000000000091831&sum=75500 [11:33:56]line 0 [11:33:56]written 0, free lines is 4095 [11:33:56]Connected sock=10 [11:33:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B5 03 00 00 7A 45 AD 03 AD 69 5A 03 01 00 03 00 A1 03 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 64 96 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 89 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 37 37 31 32 06 04 45 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 A0 D0 BE D0 B7 D0 BE D1 87 D0 BA D0 B0 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 1F 00 00 00 00 07 04 06 00 EC 26 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A1 00 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 98 C2 01 00 35 04 06 00 65 47 4F EA 72 DA 31 B7 F1 8F 8B 49 3C 80 [11:33:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 57 AD 47 00 70 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 98 C2 01 00 F4 03 04 00 E9 A5 EF 66 B6 04 01 00 00 62 61 7E D1 A7 C1 27 D5 [11:33:56]CommunicateWithHost err = 0 [11:33:56]CheckOFDResponse [11:33:56]1017 (14) - 77093643461234 [11:33:56]1041 (16) - 0000000000871830 [11:33:56]1040 (4) - 115352 [11:33:56]1012 (4) - 22.09.2024 05:06 [11:33:56]1206 (1) - 0 [11:33:56]OFD Sender: Remove packet 115352 [11:33:56]ProducePacketName [11:33:56]name=ofd_packets/00115352 [11:33:56]NVStorageDeleteData [11:33:56]Write to MH i2c: 01 00 00 89 02 8B [11:33:56]Write i2c OK [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: 01 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: 01 07 00 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: 01 07 00 89 02 00 00 00 00 00 B4 09 4F [11:33:56]RasterBufferAndPrint [11:33:56]line [11:33:56]line [11:33:56]line [11:33:56]line [11:33:56]line [11:33:56]written 0, free lines is 2490 [11:33:56]MH_Cut [11:33:56]Write to MH i2c: D1 01 00 90 02 01 64 [11:33:56]Write i2c OK [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: D1 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: D1 01 00 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: D1 01 00 90 02 00 63 [11:33:56]Write to MH i2c: 01 00 00 91 02 93 [11:33:56]Write i2c OK [11:33:56]MH_I2C_Read... [11:33:57]OFD Sender: No OFD packet to send [11:33:58]*** Cut start [11:33:58]*** Partial cut [11:33:58]*** CUTSNS_PIN = 1 [11:33:58]*** CUTSNS_PIN = 0 [11:33:59]*** Brake cut motor [11:33:59]Read from MH i2c: 01 [11:33:59]MH_I2C_Read... [11:33:59]*** Stop cut motor [11:33:59]*** Cut end [11:33:59]Read from MH i2c: 01 07 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 07 00 91 02 00 00 00 00 00 FF 0F A8 [11:33:59]process_action close_receipt done [11:33:59]requested_data is exist [11:33:59]produce_requested_data [11:33:59]requested_item fm.sn is exist - process it [11:33:59]wFMCommunicate request_size=4 [11:33:59]MH_SAM_APDU [11:33:59]CAPDU: 80 11 00 00 [11:33:59]Write to MH i2c: E2 08 00 92 02 80 11 00 00 00 00 00 00 0E [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:59]Read from MH i2c: E2 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 17 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 17 00 92 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5C [11:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:33:59]wFMCommunicate OK [11:33:59]requested_item fd.num is exist - process it [11:33:59]SAM_PROTO_GetFieldsCounters [11:33:59]wFMCommunicate request_size=4 [11:33:59]MH_SAM_APDU [11:33:59]CAPDU: 80 13 00 00 [11:33:59]Write to MH i2c: E2 08 00 93 02 80 13 00 00 00 00 00 00 11 [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:59]Read from MH i2c: E2 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 62 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 62 00 93 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 98 C2 01 00 0E 04 04 00 D7 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 2F [11:33:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 98 C2 01 00 0E 04 04 00 D7 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 [11:33:59]wFMCommunicate OK [11:33:59]SAM_PROTO_GetFieldsCounters done [11:33:59]requested_item shift.num is exist - process it [11:33:59]requested_item shift.opened is exist - process it [11:33:59]req_shift_opened [11:33:59]FM_GetShiftState [11:33:59]SAM_PROTO_GetShiftState [11:33:59]wFMCommunicate request_size=4 [11:33:59]MH_SAM_APDU [11:33:59]CAPDU: 80 13 01 00 [11:33:59]Write to MH i2c: E2 08 00 94 02 80 13 01 00 00 00 00 00 13 [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:59]Read from MH i2c: E2 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 0E 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 0E 00 94 02 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 2C [11:33:59]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:33:59]wFMCommunicate OK [11:33:59]SAM_PROTO_GetShiftState done [11:33:59]FM_GetShiftState done [11:33:59]req_shift_opened done [11:33:59]requested_item shift.open_date is exist - process it [11:33:59]req_shift_open_date [11:33:59]req_shift_open_date done [11:33:59]produce_requested_data done [11:33:59]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115352,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [11:33:59]process_action_free close_receipt [11:33:59]json_value_free [11:33:59]json_value_free done [11:33:59]process_json_proto returns [11:33:59]Send response to host [11:33:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115352,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [11:33:59]free response buf [11:33:59]execute_script done [11:33:59]execute_script returns [11:33:59]free content buf [11:33:59]Sock 9.Close socket [11:33:59]Sock 9.Thread stoped [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:39]accept exits with 8 [11:35:39]New connection [11:35:39]New thread 3066826084 created [11:35:39]Thread 3066682724 joined [11:35:39]Waiting for new connection... [11:35:39] Sock 8.Parse request [11:35:39]Sock 8.Check first char [11:35:39]Sock 8.First char is OK [11:35:39]request: POST /json_proto HTTP/1.0 [11:35:39]Method: POST [11:35:39]URL: /json_proto [11:35:39]Method is POST - this is cgi request [11:35:39]url: /json_proto [11:35:39]query_string will be loaded in cgi processing [11:35:39]execute_cgi json_proto POST (null) [11:35:39]execute_cgi path=json_proto method=POST [11:35:39]POST find Content-Length [11:35:39]Host: 172.17.41.136:8080 [11:35:39]Content-Length: 666 [11:35:39]Content-Type: application/json [11:35:39] [11:35:39]POST finish read [11:35:39]Found Content-Length = 666 [11:35:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343809", "tax_sys" : 0, "items" : [ { "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:39]execute_script... [11:35: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 : (3)343809", "tax_sys" : 0, "items" : [ { "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:39]POST & json_proto [11:35:39]process_json_proto [11:35:39]json parsed OK: [11:35:39]protocol is kg_v1.0 [11:35:39]action value=close_receipt [11:35:39]process_action close_receipt [11:35:39]cmd_close_receipt [11:35:39]MH_GetDate [11:35:39]Write to MH i2c: F0 00 00 95 02 86 [11:35:39]Write i2c OK [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: F0 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: F0 09 00 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: F0 09 00 95 02 00 0C 01 F0 66 1B D0 5A 64 9B [11:35:39]GetLastDocTimeStamp 1727004833 [11:35:39]current date 1727004940 [11:35:39]FM_GetShiftState [11:35:39]SAM_PROTO_GetShiftState [11:35:39]wFMCommunicate request_size=4 [11:35:39]MH_SAM_APDU [11:35:39]CAPDU: 80 13 01 00 [11:35:39]Write to MH i2c: E2 08 00 96 02 80 13 01 00 00 00 00 00 15 [11:35:39]Write i2c OK [11:35:39]MH_I2C_Read... [11:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:39]Read from MH i2c: E2 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 0E 00 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 0E 00 96 02 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 2E [11:35:39]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:35:39]wFMCommunicate OK [11:35:39]SAM_PROTO_GetShiftState done [11:35:39]FM_GetShiftState done [11:35:39]opened in 1726965840 [11:35:39]opened+sec_in_day 1727052240 [11:35:39]quantity*price = 12500 [11:35:39]sum+1 = 12501 [11:35:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 71 22.09.2024 11:35 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115353 ФПД: 192991927027969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T113540&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115353&fm=192991927027969&tin=02508201610067®Number=0000000000091831&sum=12500 0 [11:35:40]StoreToDocumentArchive [11:35:40]shift 471 fd 115353 [11:35:40]save to /storage/0471/doc_00115353 [11:35:40]save last doc name /storage/0471/doc_00115353 to /storage/kkm_last_doc_name [11:35:40]save OK [11:35:40]Clear old archive folders... [11:35:40]ProcessDocumentItem done err = 0, tmpTLVsize=282 [11:35:40]tlvbuf is 01BF5BC0 [11:35:40]SAM_PROTO_ClearQueue [11:35:40]wFMCommunicate request_size=4 [11:35:40]MH_SAM_APDU [11:35:40]CAPDU: 80 09 00 00 [11:35:40]Write to MH i2c: E2 08 00 A3 02 80 09 00 00 00 00 00 00 17 [11:35:40]Write i2c OK [11:35:40]MH_I2C_Read... [11:35:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:40]Read from MH i2c: E2 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 03 00 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 03 00 A3 02 00 90 00 19 [11:35:40]RAPDU: 90 00 [11:35:40]wFMCommunicate OK [11:35:40]SAM_PROTO_ClearQueue done [11:35:40]KKMCreateOFDPacket [11:35:40]OFDProtocolAddRootSTLVToBuf [11:35:40]FM_MakeSignedData [11:35:40]FM_MakeSignedData [11:35:40]SAM_PROTO_SignData [11:35:40]wFMCommunicate request_size=4 [11:35:40]MH_SAM_APDU [11:35:40]CAPDU: 80 0D 01 02 [11:35:40]Write to MH i2c: E2 08 00 A4 02 80 0D 01 02 00 00 00 00 1F [11:35:40]Write i2c OK [11:35:40]MH_I2C_Read... [11:35:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:40]Read from MH i2c: E2 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 03 00 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 03 00 A4 02 00 90 00 1A [11:35:40]RAPDU: 90 00 [11:35:40]wFMCommunicate OK [11:35:40]wFMCommunicate request_size=255 [11:35:40]MH_SAM_APDU [11:35:40]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 0C 01 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 [11:35:40]Write to MH i2c: E2 02 01 A5 02 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 0C 01 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 00 00 7C [11:35:40]Write i2c OK [11:35:40]MH_I2C_Read... [11:35:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:41]Read from MH i2c: E2 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 03 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 03 00 A5 02 00 90 00 1B [11:35:41]RAPDU: 90 00 [11:35:41]wFMCommunicate OK [11:35:41]wFMCommunicate request_size=41 [11:35:41]MH_SAM_APDU [11:35:41]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 99 C2 01 00 35 04 06 00 AF 86 6F 41 49 01 [11:35:41]Write to MH i2c: E2 2C 00 A6 02 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 99 C2 01 00 35 04 06 00 AF 86 6F 41 49 01 00 00 77 [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:41]Read from MH i2c: E2 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 03 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 03 00 A6 02 00 90 00 1C [11:35:41]RAPDU: 90 00 [11:35:41]wFMCommunicate OK [11:35:41]wFMCommunicate request_size=4 [11:35:41]MH_SAM_APDU [11:35:41]CAPDU: 80 0D 03 02 [11:35:41]Write to MH i2c: E2 08 00 A7 02 80 0D 03 02 00 00 00 00 24 [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:41]Read from MH i2c: E2 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 0B 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 0B 00 A7 02 00 C6 6E B2 B7 E1 13 D4 98 90 00 22 [11:35:41]RAPDU: C6 6E B2 B7 E1 13 D4 98 90 00 [11:35:41]wFMCommunicate OK [11:35:41]SAM_PROTO_SignData done [11:35:41]FM_MakeSignedData done [11:35:41]CreateOFDProtocolMessage [11:35:41]wFMCommunicate request_size=4 [11:35:41]MH_SAM_APDU [11:35:41]CAPDU: 80 11 00 00 [11:35:41]Write to MH i2c: E2 08 00 A8 02 80 11 00 00 00 00 00 00 24 [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:41]Read from MH i2c: E2 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 17 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 17 00 A8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 72 [11:35:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:35:41]wFMCommunicate OK [11:35:41]CreateOFDProtocolMessage done [11:35:41]OFDSenderStorePacket 115353 [11:35:41]StoreOFDPacket docnum=115353 [11:35:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2E 01 00 00 1B 0A 26 01 B4 C4 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 0C 01 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 99 C2 01 00 35 04 06 00 AF 86 6F 41 49 01 C6 6E B2 B7 E1 13 D4 98 [11:35:41]CheckFolder [11:35:41]dirname=/storage/ofd_packets [11:35:41]CheckFolder done [11:35:41]ProducePacketName [11:35:41]name=ofd_packets/00115353 [11:35:41]NVStorageSaveData ofd_packets/00115353 [11:35:41]File name is /storage/ofd_packets/00115353 [11:35:41]Write 332 bytes [11:35:41]NVStorageSaveData done [11:35:41]OFDSenderStorePacket done [11:35:41]KKMCreateOFDPacket done [11:35:41]NVStorageSaveData kkm_last_timestamp [11:35:41]File name is /storage/kkm_last_timestamp [11:35:41]Write 4 bytes [11:35:41]NVStorageSaveData done [11:35:41]ExternCall_PrintAddStr [11:35:41]wPrintStart [11:35:41]Write to MH i2c: 01 00 00 A9 02 AB [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: 01 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: 01 07 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: 01 07 00 A9 02 00 00 00 00 00 FF 0F C0 [11:35:41]RasterBufferAndPrint [11:35:41]line Счет N : (3)343809 [11:35:41]line ИНН: 02508201610067 [11:35:41]line Контрольно-Кассовый Чек [11:35:41]line ПРОДАЖА [11:35:41]line Товар: 4870202521292 [11:35:41]line Напиток Сок березы 1,2л [11:35:41]line 1.000 * 125.00 [11:35:41]line = 125.00 [11:35:41]line НДС 12% НСП 1% [11:35:41]line > о реализуемом товаре [11:35:41]line ИТОГО: 125.00 [11:35:41]line НСП 1% : 1.11 [11:35:41]line НДС 12% : 13.27 [11:35:41]line Наличными: 125.00 [11:35:41]line Безнал.: 0.00 [11:35:41]line Место: АЗС № 90 "Партнер Нефть" [11:35:41]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:35:41]line СНО: Общий режим [11:35:41]line Чек 71 22.09.2024 11:35 [11:35:41]line Смена: 471 ФФД: 1.0 [11:35:41]line ЗНМ: 0300000120 [11:35:41]line РНМ: 0000000000091831 [11:35:41]line Версия ККМ: 001 [11:35:41]line ФМ: 0000000000871830 [11:35:41]line ФД: 115353 [11:35:41]line ФПД: 192991927027969 [11:35:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T113540&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115353&fm=192991927027969&tin=02508201610067®Number=0000000000091831&sum=12500 [11:35:41]line 0 [11:35:41]OFD Sender: Processing packet 115353 [packets to send 481, broken 480] [11:35:41]ProducePacketName [11:35:41]name=ofd_packets/00115353 [11:35:41]OFD Sender: To server: pG, [11:35:41]CommunicateWithHost lk.salyk.kg:30040 [11:35:41]ConnectInit lk.salyk.kg [11:35:41]written 0, free lines is 4095 [11:35:41]Connected sock=10 [11:35:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2E 01 00 00 1B 0A 26 01 B4 C4 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 0C 01 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 99 C2 01 00 35 04 06 00 AF 86 6F 41 49 01 C6 6E B2 B7 E1 13 D4 98 [11:35:42]Write to MH i2c: 01 00 00 D0 02 D2 [11:35:42]Write i2c OK [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: 01 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: 01 07 00 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: 01 07 00 D0 02 00 00 00 00 00 70 0C 55 [11:35:42]RasterBufferAndPrint [11:35:42]line [11:35:42]line [11:35:42]line [11:35:42]line [11:35:42]line [11:35:42]written 0, free lines is 3187 [11:35:42]MH_Cut [11:35:42]Write to MH i2c: D1 01 00 D7 02 01 AB [11:35:42]Write i2c OK [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: D1 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: D1 01 00 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: D1 01 00 D7 02 00 AA [11:35:42]Write to MH i2c: 01 00 00 D8 02 DA [11:35:42]Write i2c OK [11:35:42]MH_I2C_Read... [11:35:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1C DA 47 00 DF 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 99 C2 01 00 F4 03 04 00 52 A6 EF 66 B6 04 01 00 00 41 A9 66 9E 3F 82 1D 79 [11:35:42]CommunicateWithHost err = 0 [11:35:42]CheckOFDResponse [11:35:42]1017 (14) - 77093643461234 [11:35:42]1041 (16) - 0000000000871830 [11:35:42]1040 (4) - 115353 [11:35:42]1012 (4) - 22.09.2024 05:08 [11:35:42]1206 (1) - 0 [11:35:42]OFD Sender: Remove packet 115353 [11:35:42]ProducePacketName [11:35:42]name=ofd_packets/00115353 [11:35:42]NVStorageDeleteData [11:35:42]OFD Sender: No OFD packet to send [11:35:43]*** Cut start [11:35:43]*** Partial cut [11:35:43]*** CUTSNS_PIN = 1 [11:35:43]*** CUTSNS_PIN = 0 [11:35:43]*** Brake cut motor [11:35:44]Read from MH i2c: 01 [11:35:44]MH_I2C_Read... [11:35:44]*** Stop cut motor [11:35:44]*** Cut end [11:35:44]Read from MH i2c: 01 07 00 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: 01 07 00 D8 02 00 00 00 00 00 FF 0F EF [11:35:44]process_action close_receipt done [11:35:44]requested_data is exist [11:35:44]produce_requested_data [11:35:44]requested_item fm.sn is exist - process it [11:35:44]wFMCommunicate request_size=4 [11:35:44]MH_SAM_APDU [11:35:44]CAPDU: 80 11 00 00 [11:35:44]Write to MH i2c: E2 08 00 D9 02 80 11 00 00 00 00 00 00 55 [11:35:44]Write i2c OK [11:35:44]MH_I2C_Read... [11:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:44]Read from MH i2c: E2 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: E2 17 00 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: E2 17 00 D9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A3 [11:35:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:35:44]wFMCommunicate OK [11:35:44]requested_item fd.num is exist - process it [11:35:44]SAM_PROTO_GetFieldsCounters [11:35:44]wFMCommunicate request_size=4 [11:35:44]MH_SAM_APDU [11:35:44]CAPDU: 80 13 00 00 [11:35:44]Write to MH i2c: E2 08 00 DA 02 80 13 00 00 00 00 00 00 58 [11:35:44]Write i2c OK [11:35:44]MH_I2C_Read... [11:35:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:44]Read from MH i2c: E2 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: E2 62 00 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: E2 62 00 DA 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 99 C2 01 00 0E 04 04 00 D7 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 7A [11:35:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 99 C2 01 00 0E 04 04 00 D7 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 [11:35:44]wFMCommunicate OK [11:35:44]SAM_PROTO_GetFieldsCounters done [11:35:44]requested_item shift.num is exist - process it [11:35:44]requested_item shift.opened is exist - process it [11:35:44]req_shift_opened [11:35:44]FM_GetShiftState [11:35:44]SAM_PROTO_GetShiftState [11:35:44]wFMCommunicate request_size=4 [11:35:44]MH_SAM_APDU [11:35:44]CAPDU: 80 13 01 00 [11:35:44]Write to MH i2c: E2 08 00 DB 02 80 13 01 00 00 00 00 00 5A [11:35:44]Write i2c OK [11:35:44]MH_I2C_Read... [11:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:44]Read from MH i2c: E2 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: E2 0E 00 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: E2 0E 00 DB 02 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 73 [11:35:44]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:35:44]wFMCommunicate OK [11:35:44]SAM_PROTO_GetShiftState done [11:35:44]FM_GetShiftState done [11:35:44]req_shift_opened done [11:35:44]requested_item shift.open_date is exist - process it [11:35:44]req_shift_open_date [11:35:44]req_shift_open_date done [11:35:44]produce_requested_data done [11:35:44]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115353,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [11:35:44]process_action_free close_receipt [11:35:44]json_value_free [11:35:44]json_value_free done [11:35:44]process_json_proto returns [11:35:44]Send response to host [11:35:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115353,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [11:35:44]free response buf [11:35:44]execute_script done [11:35:44]execute_script returns [11:35:44]free content buf [11:35:44]Sock 8.Close socket [11:35:44]Sock 8.Thread stoped [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:26]accept exits with 9 [11:36:26]New connection [11:36:26]New thread 3066682724 created [11:36:26]Thread 3066826084 joined [11:36:26]Waiting for new connection... [11:36:26] Sock 9.Parse request [11:36:26]Sock 9.Check first char [11:36:26]Sock 9.First char is OK [11:36:26]request: POST /json_proto HTTP/1.0 [11:36:26]Method: POST [11:36:26]URL: /json_proto [11:36:26]Method is POST - this is cgi request [11:36:26]url: /json_proto [11:36:26]query_string will be loaded in cgi processing [11:36:26]execute_cgi json_proto POST (null) [11:36:26]execute_cgi path=json_proto method=POST [11:36:26]POST find Content-Length [11:36:26]Host: 172.17.41.136:8080 [11:36:26]Content-Length: 1307 [11:36:26]Content-Type: application/json [11:36:26] [11:36:26]POST finish read [11:36:26]Found Content-Length = 1307 [11:36:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343810", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 267.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:26]execute_script... [11:36:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343810", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 267.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:26]POST & json_proto [11:36:26]process_json_proto [11:36:26]json parsed OK: [11:36:26]protocol is kg_v1.0 [11:36:26]action value=close_receipt [11:36:26]process_action close_receipt [11:36:26]cmd_close_receipt [11:36:26]MH_GetDate [11:36:26]Write to MH i2c: F0 00 00 DC 02 CD [11:36:26]Write i2c OK [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: F0 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: F0 09 00 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: F0 09 00 DC 02 00 3B 01 F0 66 1B D0 5A 64 11 [11:36:26]GetLastDocTimeStamp 1727004940 [11:36:26]current date 1727004987 [11:36:26]FM_GetShiftState [11:36:26]SAM_PROTO_GetShiftState [11:36:26]wFMCommunicate request_size=4 [11:36:26]MH_SAM_APDU [11:36:26]CAPDU: 80 13 01 00 [11:36:26]Write to MH i2c: E2 08 00 DD 02 80 13 01 00 00 00 00 00 5C [11:36:26]Write i2c OK [11:36:26]MH_I2C_Read... [11:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:26]Read from MH i2c: E2 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: E2 0E 00 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: E2 0E 00 DD 02 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 75 [11:36:26]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:36:26]wFMCommunicate OK [11:36:26]SAM_PROTO_GetShiftState done [11:36:26]FM_GetShiftState done [11:36:26]opened in 1726965840 [11:36:26]opened+sec_in_day 1727052240 [11:36:26]quantity*price = 9500 [11:36:26]sum+1 = 9501 [11:36:26]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870233466272 Мороженое Пломбир Миша 1.000 * 77.00 = 77.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003010087 Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 267.00 НСП 1% : 2.36 НДС 12% : 28.36 Наличными: 267.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 72 22.09.2024 11:36 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115354 ФПД: 9958089254389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T113628&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115354&fm=9958089254389&tin=02508201610067®Number=0000000000091831&sum=26700 0 [11:36:28]StoreToDocumentArchive [11:36:28]shift 471 fd 115354 [11:36:28]save to /storage/0471/doc_00115354 [11:36:28]save last doc name /storage/0471/doc_00115354 to /storage/kkm_last_doc_name [11:36:28]save OK [11:36:28]Clear old archive folders... [11:36:28]ProcessDocumentItem done err = 0, tmpTLVsize=545 [11:36:28]tlvbuf is 01C03E40 [11:36:28]SAM_PROTO_ClearQueue [11:36:28]wFMCommunicate request_size=4 [11:36:28]MH_SAM_APDU [11:36:28]CAPDU: 80 09 00 00 [11:36:28]Write to MH i2c: E2 08 00 EA 02 80 09 00 00 00 00 00 00 5E [11:36:28]Write i2c OK [11:36:28]MH_I2C_Read... [11:36:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:28]Read from MH i2c: E2 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 03 00 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 03 00 EA 02 00 90 00 60 [11:36:28]RAPDU: 90 00 [11:36:28]wFMCommunicate OK [11:36:28]SAM_PROTO_ClearQueue done [11:36:28]KKMCreateOFDPacket [11:36:28]OFDProtocolAddRootSTLVToBuf [11:36:28]FM_MakeSignedData [11:36:28]FM_MakeSignedData [11:36:28]SAM_PROTO_SignData [11:36:28]wFMCommunicate request_size=4 [11:36:28]MH_SAM_APDU [11:36:28]CAPDU: 80 0D 01 02 [11:36:28]Write to MH i2c: E2 08 00 EB 02 80 0D 01 02 00 00 00 00 66 [11:36:28]Write i2c OK [11:36:28]MH_I2C_Read... [11:36:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:28]Read from MH i2c: E2 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 03 00 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 03 00 EB 02 00 90 00 61 [11:36:28]RAPDU: 90 00 [11:36:28]wFMCommunicate OK [11:36:28]wFMCommunicate request_size=255 [11:36:28]MH_SAM_APDU [11:36:28]CAPDU: 80 0D 02 02 FA 03 00 21 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [11:36:28]Write to MH i2c: E2 02 01 EC 02 80 0D 02 02 FA 00 03 00 21 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 7D [11:36:28]Write i2c OK [11:36:28]MH_I2C_Read... [11:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:28]Read from MH i2c: E2 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 03 00 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 03 00 EC 02 00 90 00 62 [11:36:28]RAPDU: 90 00 [11:36:28]wFMCommunicate OK [11:36:28]wFMCommunicate request_size=255 [11:36:28]MH_SAM_APDU [11:36:28]CAPDU: 80 0D 02 02 FA 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 0B 00 00 00 00 07 04 06 00 4C 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3C 01 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [11:36:28]Write to MH i2c: E2 02 01 ED 02 80 0D 02 02 FA 00 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 0B 00 00 00 00 07 04 06 00 4C 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3C 01 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 BE [11:36:28]Write i2c OK [11:36:28]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 03 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 03 00 ED 02 00 90 00 63 [11:36:29]RAPDU: 90 00 [11:36:29]wFMCommunicate OK [11:36:29]wFMCommunicate request_size=54 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9A C2 01 00 35 04 06 00 09 0E 8C 5F 65 F5 [11:36:29]Write to MH i2c: E2 39 00 EE 02 80 0D 02 02 31 00 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9A C2 01 00 35 04 06 00 09 0E 8C 5F 65 F5 00 00 42 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 03 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 03 00 EE 02 00 90 00 64 [11:36:29]RAPDU: 90 00 [11:36:29]wFMCommunicate OK [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 0D 03 02 [11:36:29]Write to MH i2c: E2 08 00 EF 02 80 0D 03 02 00 00 00 00 6C [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 0B 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 0B 00 EF 02 00 22 82 4A 00 DA 50 5A F1 90 00 D0 [11:36:29]RAPDU: 22 82 4A 00 DA 50 5A F1 90 00 [11:36:29]wFMCommunicate OK [11:36:29]SAM_PROTO_SignData done [11:36:29]FM_MakeSignedData done [11:36:29]CreateOFDProtocolMessage [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 11 00 00 [11:36:29]Write to MH i2c: E2 08 00 F0 02 80 11 00 00 00 00 00 00 6C [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 17 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 17 00 F0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BA [11:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:36:29]wFMCommunicate OK [11:36:29]CreateOFDProtocolMessage done [11:36:29]OFDSenderStorePacket 115354 [11:36:29]StoreOFDPacket docnum=115354 [11:36:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 02 00 00 91 2F 2D 02 2E 64 5A 03 01 00 03 00 21 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 0B 00 00 00 00 07 04 06 00 4C 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3C 01 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9A C2 01 00 35 04 06 00 09 0E 8C 5F 65 F5 22 82 4A 00 DA 50 5A F1 [11:36:29]CheckFolder [11:36:29]dirname=/storage/ofd_packets [11:36:29]CheckFolder done [11:36:29]ProducePacketName [11:36:29]name=ofd_packets/00115354 [11:36:29]NVStorageSaveData ofd_packets/00115354 [11:36:29]File name is /storage/ofd_packets/00115354 [11:36:29]Write 595 bytes [11:36:29]NVStorageSaveData done [11:36:29]OFDSenderStorePacket done [11:36:29]KKMCreateOFDPacket done [11:36:29]NVStorageSaveData kkm_last_timestamp [11:36:29]File name is /storage/kkm_last_timestamp [11:36:29]Write 4 bytes [11:36:29]NVStorageSaveData done [11:36:29]ExternCall_PrintAddStr [11:36:29]wPrintStart [11:36:29]Write to MH i2c: 01 00 00 F1 02 F3 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: 01 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: 01 07 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: 01 07 00 F1 02 00 00 00 00 00 FF 0F 08 [11:36:29]RasterBufferAndPrint [11:36:29]line Счет N : (3)343810 [11:36:29]line ИНН: 02508201610067 [11:36:29]line Контрольно-Кассовый Чек [11:36:29]line ПРОДАЖА [11:36:29]line Товар: 4700000480364 [11:36:29]line Напиток энерг Nitro экзотик 0.45 ж/б [11:36:29]line 1.000 * 95.00 [11:36:29]line = 95.00 [11:36:29]line НДС 12% НСП 1% [11:36:29]line > о реализуемом товаре [11:36:29]line Товар: 4870233466272 [11:36:29]line Мороженое Пломбир Миша [11:36:29]line 1.000 * 77.00 [11:36:29]line = 77.00 [11:36:29]line НДС 12% НСП 1% [11:36:29]line > о реализуемом товаре [11:36:29]line Товар: 4700003010087 [11:36:29]line Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л [11:36:29]line 1.000 * 95.00 [11:36:29]line = 95.00 [11:36:29]line НДС 12% НСП 1% [11:36:29]line > о реализуемом товаре [11:36:29]line ИТОГО: 267.00 [11:36:29]line НСП 1% : 2.36 [11:36:29]line НДС 12% : 28.36 [11:36:29]line Наличными: 267.00 [11:36:29]line Безнал.: 0.00 [11:36:29]line Место: АЗС № 90 "Партнер Нефть" [11:36:29]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:36:29]line СНО: Общий режим [11:36:29]line Чек 72 22.09.2024 11:36 [11:36:29]line Смена: 471 ФФД: 1.0 [11:36:29]line ЗНМ: 0300000120 [11:36:29]line РНМ: 0000000000091831 [11:36:29]line Версия ККМ: 001 [11:36:29]line ФМ: 0000000000871830 [11:36:29]line ФД: 115354 [11:36:29]line ФПД: 9958089254389 [11:36:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T113628&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115354&fm=9958089254389&tin=02508201610067®Number=0000000000091831&sum=26700 [11:36:29]line 0 [11:36:29]written 0, free lines is 4095 [11:36:29]OFD Sender: Processing packet 115354 [packets to send 481, broken 480] [11:36:29]ProducePacketName [11:36:29]name=ofd_packets/00115354 [11:36:29]OFD Sender: To server: pG, [11:36:29]CommunicateWithHost lk.salyk.kg:30040 [11:36:29]ConnectInit lk.salyk.kg [11:36:29]Connected sock=10 [11:36:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 02 00 00 91 2F 2D 02 2E 64 5A 03 01 00 03 00 21 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 0B 00 00 00 00 07 04 06 00 4C 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3C 01 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9A C2 01 00 35 04 06 00 09 0E 8C 5F 65 F5 22 82 4A 00 DA 50 5A F1 [11:36:29]Write to MH i2c: 01 00 00 26 03 29 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: 01 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: 01 07 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: 01 07 00 26 03 00 00 00 00 00 60 0B 9B [11:36:29]RasterBufferAndPrint [11:36:29]line [11:36:29]line [11:36:29]line [11:36:29]line [11:36:29]line [11:36:29]written 0, free lines is 2917 [11:36:29]MH_Cut [11:36:29]Write to MH i2c: D1 01 00 2D 03 01 02 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: D1 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: D1 01 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: D1 01 00 2D 03 00 01 [11:36:29]Write to MH i2c: 01 00 00 2E 03 31 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1A 3D 47 00 F7 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9A C2 01 00 F4 03 04 00 82 A6 EF 66 B6 04 01 00 00 6E 50 26 5C FC E9 7B 7B [11:36:29]CommunicateWithHost err = 0 [11:36:29]CheckOFDResponse [11:36:29]1017 (14) - 77093643461234 [11:36:29]1041 (16) - 0000000000871830 [11:36:29]1040 (4) - 115354 [11:36:29]1012 (4) - 22.09.2024 05:09 [11:36:29]1206 (1) - 0 [11:36:29]OFD Sender: Remove packet 115354 [11:36:29]ProducePacketName [11:36:29]name=ofd_packets/00115354 [11:36:29]NVStorageDeleteData [11:36:30]OFD Sender: No OFD packet to send [11:36:31]*** Cut start [11:36:31]*** Partial cut [11:36:31]*** CUTSNS_PIN = 1 [11:36:31]*** CUTSNS_PIN = 0 [11:36:31]*** Brake cut motor [11:36:32]Read from MH i2c: 01 [11:36:32]MH_I2C_Read... [11:36:32]*** Stop cut motor [11:36:32]*** Cut end [11:36:32]Read from MH i2c: 01 07 00 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: 01 07 00 2E 03 00 00 00 00 00 FF 0F 46 [11:36:32]process_action close_receipt done [11:36:32]requested_data is exist [11:36:32]produce_requested_data [11:36:32]requested_item fm.sn is exist - process it [11:36:32]wFMCommunicate request_size=4 [11:36:32]MH_SAM_APDU [11:36:32]CAPDU: 80 11 00 00 [11:36:32]Write to MH i2c: E2 08 00 2F 03 80 11 00 00 00 00 00 00 AC [11:36:32]Write i2c OK [11:36:32]MH_I2C_Read... [11:36:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:32]Read from MH i2c: E2 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: E2 17 00 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: E2 17 00 2F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FA [11:36:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:36:32]wFMCommunicate OK [11:36:32]requested_item fd.num is exist - process it [11:36:32]SAM_PROTO_GetFieldsCounters [11:36:32]wFMCommunicate request_size=4 [11:36:32]MH_SAM_APDU [11:36:32]CAPDU: 80 13 00 00 [11:36:32]Write to MH i2c: E2 08 00 30 03 80 13 00 00 00 00 00 00 AF [11:36:32]Write i2c OK [11:36:32]MH_I2C_Read... [11:36:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:32]Read from MH i2c: E2 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: E2 62 00 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: E2 62 00 30 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9A C2 01 00 0E 04 04 00 D7 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 D5 [11:36: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9A C2 01 00 0E 04 04 00 D7 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 [11:36:32]wFMCommunicate OK [11:36:32]SAM_PROTO_GetFieldsCounters done [11:36:32]requested_item shift.num is exist - process it [11:36:32]requested_item shift.opened is exist - process it [11:36:32]req_shift_opened [11:36:32]FM_GetShiftState [11:36:32]SAM_PROTO_GetShiftState [11:36:32]wFMCommunicate request_size=4 [11:36:32]MH_SAM_APDU [11:36:32]CAPDU: 80 13 01 00 [11:36:32]Write to MH i2c: E2 08 00 31 03 80 13 01 00 00 00 00 00 B1 [11:36:32]Write i2c OK [11:36:32]MH_I2C_Read... [11:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:32]Read from MH i2c: E2 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: E2 0E 00 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: E2 0E 00 31 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 CA [11:36:32]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:36:32]wFMCommunicate OK [11:36:32]SAM_PROTO_GetShiftState done [11:36:32]FM_GetShiftState done [11:36:32]req_shift_opened done [11:36:32]requested_item shift.open_date is exist - process it [11:36:32]req_shift_open_date [11:36:32]req_shift_open_date done [11:36:32]produce_requested_data done [11:36:32]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115354,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [11:36:32]process_action_free close_receipt [11:36:32]json_value_free [11:36:32]json_value_free done [11:36:32]process_json_proto returns [11:36:32]Send response to host [11:36:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115354,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [11:36:32]free response buf [11:36:32]execute_script done [11:36:32]execute_script returns [11:36:32]free content buf [11:36:32]Sock 9.Close socket [11:36:32]Sock 9.Thread stoped [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:14]accept exits with 8 [11:44:14]New connection [11:44:14]New thread 3066826084 created [11:44:14]Thread 3066682724 joined [11:44:14]Waiting for new connection... [11:44:14] Sock 8.Parse request [11:44:14]Sock 8.Check first char [11:44:14]Sock 8.First char is OK [11:44:14]request: POST /json_proto HTTP/1.0 [11:44:14]Method: POST [11:44:14]URL: /json_proto [11:44:14]Method is POST - this is cgi request [11:44:14]url: /json_proto [11:44:14]query_string will be loaded in cgi processing [11:44:14]execute_cgi json_proto POST (null) [11:44:14]execute_cgi path=json_proto method=POST [11:44:14]POST find Content-Length [11:44:14]Host: 172.17.41.136:8080 [11:44:14]Content-Length: 646 [11:44:14]Content-Type: application/json [11:44:14] [11:44:14]POST finish read [11:44:14]Found Content-Length = 646 [11:44:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343811", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 3.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:14]execute_script... [11:44:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343811", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 3.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:14]POST & json_proto [11:44:14]process_json_proto [11:44:14]json parsed OK: [11:44:14]protocol is kg_v1.0 [11:44:14]action value=close_receipt [11:44:14]process_action close_receipt [11:44:14]cmd_close_receipt [11:44:14]MH_GetDate [11:44:14]Write to MH i2c: F0 00 00 32 03 24 [11:44:14]Write i2c OK [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: F0 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: F0 09 00 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: F0 09 00 32 03 00 0F 03 F0 66 1B D0 5A 64 3E [11:44:14]GetLastDocTimeStamp 1727004988 [11:44:14]current date 1727005455 [11:44:14]FM_GetShiftState [11:44:14]SAM_PROTO_GetShiftState [11:44:14]wFMCommunicate request_size=4 [11:44:14]MH_SAM_APDU [11:44:14]CAPDU: 80 13 01 00 [11:44:14]Write to MH i2c: E2 08 00 33 03 80 13 01 00 00 00 00 00 B3 [11:44:14]Write i2c OK [11:44:14]MH_I2C_Read... [11:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:14]Read from MH i2c: E2 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: E2 0E 00 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: E2 0E 00 33 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 CC [11:44:14]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:44:14]wFMCommunicate OK [11:44:14]SAM_PROTO_GetShiftState done [11:44:14]FM_GetShiftState done [11:44:14]opened in 1726965840 [11:44:14]opened+sec_in_day 1727052240 [11:44:14]quantity*price = 10500 [11:44:14]sum+1 = 10501 [11:44:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 73 22.09.2024 11:44 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115355 ФПД: 202682508213634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T114415&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115355&fm=202682508213634&tin=02508201610067®Number=0000000000091831&sum=10500 0 [11:44:15]StoreToDocumentArchive [11:44:15]shift 471 fd 115355 [11:44:15]save to /storage/0471/doc_00115355 [11:44:15]save last doc name /storage/0471/doc_00115355 to /storage/kkm_last_doc_name [11:44:15]save OK [11:44:15]Clear old archive folders... [11:44:15]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:44:15]tlvbuf is 01C4D8E0 [11:44:15]SAM_PROTO_ClearQueue [11:44:15]wFMCommunicate request_size=4 [11:44:15]MH_SAM_APDU [11:44:15]CAPDU: 80 09 00 00 [11:44:15]Write to MH i2c: E2 08 00 40 03 80 09 00 00 00 00 00 00 B5 [11:44:15]Write i2c OK [11:44:15]MH_I2C_Read... [11:44:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:15]Read from MH i2c: E2 [11:44:15]MH_I2C_Read... [11:44:15]Read from MH i2c: E2 03 00 [11:44:15]MH_I2C_Read... [11:44:15]Read from MH i2c: E2 03 00 40 03 00 90 00 B7 [11:44:15]RAPDU: 90 00 [11:44:15]wFMCommunicate OK [11:44:15]SAM_PROTO_ClearQueue done [11:44:15]KKMCreateOFDPacket [11:44:15]OFDProtocolAddRootSTLVToBuf [11:44:15]FM_MakeSignedData [11:44:15]FM_MakeSignedData [11:44:15]SAM_PROTO_SignData [11:44:15]wFMCommunicate request_size=4 [11:44:15]MH_SAM_APDU [11:44:15]CAPDU: 80 0D 01 02 [11:44:15]Write to MH i2c: E2 08 00 41 03 80 0D 01 02 00 00 00 00 BD [11:44:15]Write i2c OK [11:44:15]MH_I2C_Read... [11:44:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:15]Read from MH i2c: E2 [11:44:15]MH_I2C_Read... [11:44:15]Read from MH i2c: E2 03 00 [11:44:15]MH_I2C_Read... [11:44:15]Read from MH i2c: E2 03 00 41 03 00 90 00 B8 [11:44:15]RAPDU: 90 00 [11:44:15]wFMCommunicate OK [11:44:15]wFMCommunicate request_size=255 [11:44:15]MH_SAM_APDU [11:44:15]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 0F 03 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 [11:44:15]Write to MH i2c: E2 02 01 42 03 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 0F 03 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 00 00 87 [11:44:15]Write i2c OK [11:44:15]MH_I2C_Read... [11:44:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:16]Read from MH i2c: E2 [11:44:16]MH_I2C_Read... [11:44:16]Read from MH i2c: E2 03 00 [11:44:16]MH_I2C_Read... [11:44:16]Read from MH i2c: E2 03 00 42 03 00 90 00 B9 [11:44:16]RAPDU: 90 00 [11:44:16]wFMCommunicate OK [11:44:16]wFMCommunicate request_size=34 [11:44:16]MH_SAM_APDU [11:44:16]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9B C2 01 00 35 04 06 00 B8 56 B2 E7 7D 82 [11:44:16]Write to MH i2c: E2 25 00 43 03 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9B C2 01 00 35 04 06 00 B8 56 B2 E7 7D 82 00 00 80 [11:44:16]Write i2c OK [11:44:16]MH_I2C_Read... [11:44:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:16]Read from MH i2c: E2 [11:44:16]MH_I2C_Read... [11:44:16]Read from MH i2c: E2 03 00 [11:44:16]MH_I2C_Read... [11:44:16]Read from MH i2c: E2 03 00 43 03 00 90 00 BA [11:44:16]RAPDU: 90 00 [11:44:16]wFMCommunicate OK [11:44:16]wFMCommunicate request_size=4 [11:44:16]MH_SAM_APDU [11:44:16]CAPDU: 80 0D 03 02 [11:44:16]Write to MH i2c: E2 08 00 44 03 80 0D 03 02 00 00 00 00 C2 [11:44:16]Write i2c OK [11:44:16]MH_I2C_Read... [11:44:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:16]Read from MH i2c: E2 [11:44:16]MH_I2C_Read... [11:44:16]Read from MH i2c: E2 0B 00 [11:44:16]MH_I2C_Read... [11:44:16]Read from MH i2c: E2 0B 00 44 03 00 81 E6 4B 27 23 D4 DD 19 90 00 89 [11:44:16]RAPDU: 81 E6 4B 27 23 D4 DD 19 90 00 [11:44:16]wFMCommunicate OK [11:44:16]SAM_PROTO_SignData done [11:44:16]FM_MakeSignedData done [11:44:16]CreateOFDProtocolMessage [11:44:16]wFMCommunicate request_size=4 [11:44:16]MH_SAM_APDU [11:44:16]CAPDU: 80 11 00 00 [11:44:16]Write to MH i2c: E2 08 00 45 03 80 11 00 00 00 00 00 00 C2 [11:44:16]Write i2c OK [11:44:16]MH_I2C_Read... [11:44:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:16]Read from MH i2c: E2 [11:44:16]MH_I2C_Read... [11:44:16]Read from MH i2c: E2 17 00 [11:44:16]MH_I2C_Read... [11:44:16]Read from MH i2c: E2 17 00 45 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 10 [11:44:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:44:16]wFMCommunicate OK [11:44:16]CreateOFDProtocolMessage done [11:44:16]OFDSenderStorePacket 115355 [11:44:16]StoreOFDPacket docnum=115355 [11:44:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 7C 73 1F 01 C0 92 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 0F 03 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9B C2 01 00 35 04 06 00 B8 56 B2 E7 7D 82 81 E6 4B 27 23 D4 DD 19 [11:44:16]CheckFolder [11:44:16]dirname=/storage/ofd_packets [11:44:16]CheckFolder done [11:44:16]ProducePacketName [11:44:16]name=ofd_packets/00115355 [11:44:16]NVStorageSaveData ofd_packets/00115355 [11:44:16]File name is /storage/ofd_packets/00115355 [11:44:16]Write 325 bytes [11:44:16]NVStorageSaveData done [11:44:16]OFDSenderStorePacket done [11:44:16]KKMCreateOFDPacket done [11:44:16]NVStorageSaveData kkm_last_timestamp [11:44:16]File name is /storage/kkm_last_timestamp [11:44:16]Write 4 bytes [11:44:16]NVStorageSaveData done [11:44:16]ExternCall_PrintAddStr [11:44:16]wPrintStart [11:44:16]Write to MH i2c: 01 00 00 46 03 49 [11:44:16]Write i2c OK [11:44:16]MH_I2C_Read... [11:44:16]Read from MH i2c: 01 [11:44:16]MH_I2C_Read... [11:44:16]Read from MH i2c: 01 07 00 [11:44:16]MH_I2C_Read... [11:44:16]Read from MH i2c: 01 07 00 46 03 00 00 00 00 00 FF 0F 5E [11:44:16]RasterBufferAndPrint [11:44:16]line Счет N : (3)343811 [11:44:16]line ИНН: 02508201610067 [11:44:16]line Контрольно-Кассовый Чек [11:44:16]line ПРОДАЖА [11:44:16]line Товар: 4700000310326 [11:44:16]line Вода Адыгене 1л б/г [11:44:16]line 3.000 * 35.00 [11:44:16]line = 105.00 [11:44:16]line НДС 12% НСП 1% [11:44:16]line > о реализуемом товаре [11:44:16]line ИТОГО: 105.00 [11:44:16]line НСП 1% : 0.93 [11:44:16]line НДС 12% : 11.15 [11:44:16]line Наличными: 105.00 [11:44:16]line Безнал.: 0.00 [11:44:16]line Место: АЗС № 90 "Партнер Нефть" [11:44:16]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:44:16]line СНО: Общий режим [11:44:16]line Чек 73 22.09.2024 11:44 [11:44:16]line Смена: 471 ФФД: 1.0 [11:44:16]line ЗНМ: 0300000120 [11:44:16]line РНМ: 0000000000091831 [11:44:16]line Версия ККМ: 001 [11:44:16]line ФМ: 0000000000871830 [11:44:16]line ФД: 115355 [11:44:16]line ФПД: 202682508213634 [11:44:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T114415&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115355&fm=202682508213634&tin=02508201610067®Number=0000000000091831&sum=10500 [11:44:16]line 0 [11:44:16]OFD Sender: Processing packet 115355 [packets to send 481, broken 480] [11:44:16]ProducePacketName [11:44:16]name=ofd_packets/00115355 [11:44:16]OFD Sender: To server: pG, [11:44:16]CommunicateWithHost lk.salyk.kg:30040 [11:44:16]ConnectInit lk.salyk.kg [11:44:16]written 0, free lines is 4095 [11:44:16]Connected sock=10 [11:44:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 7C 73 1F 01 C0 92 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 0F 03 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9B C2 01 00 35 04 06 00 B8 56 B2 E7 7D 82 81 E6 4B 27 23 D4 DD 19 [11:44:16]Write to MH i2c: 01 00 00 6D 03 70 [11:44:16]Write i2c OK [11:44:16]MH_I2C_Read... [11:44:16]Read from MH i2c: 01 [11:44:16]MH_I2C_Read... [11:44:16]Read from MH i2c: 01 07 00 [11:44:16]MH_I2C_Read... [11:44:16]Read from MH i2c: 01 07 00 6D 03 00 00 00 00 00 81 0C 04 [11:44:16]RasterBufferAndPrint [11:44:16]line [11:44:16]line [11:44:16]line [11:44:16]line [11:44:16]line [11:44:16]written 0, free lines is 3205 [11:44:16]MH_Cut [11:44:16]Write to MH i2c: D1 01 00 74 03 01 49 [11:44:16]Write i2c OK [11:44:16]MH_I2C_Read... [11:44:16]Read from MH i2c: D1 [11:44:16]MH_I2C_Read... [11:44:16]Read from MH i2c: D1 01 00 [11:44:16]MH_I2C_Read... [11:44:16]Read from MH i2c: D1 01 00 74 03 00 48 [11:44:16]Write to MH i2c: 01 00 00 75 03 78 [11:44:16]Write i2c OK [11:44:16]MH_I2C_Read... [11:44:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6F DE 47 00 38 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 31 38 33 30 10 04 04 00 9B C2 01 00 F4 03 04 00 55 A8 EF 66 B6 04 01 00 00 C0 5B A3 CE 98 72 8B 2D [11:44:17]CommunicateWithHost err = 0 [11:44:17]CheckOFDResponse [11:44:17]1017 (14) - 77093643461234 [11:44:17]1041 (16) - 0000000000871830 [11:44:17]1040 (4) - 115355 [11:44:17]1012 (4) - 22.09.2024 05:17 [11:44:17]1206 (1) - 0 [11:44:17]OFD Sender: Remove packet 115355 [11:44:17]ProducePacketName [11:44:17]name=ofd_packets/00115355 [11:44:17]NVStorageDeleteData [11:44:17]OFD Sender: No OFD packet to send [11:44:18]*** Cut start [11:44:18]*** Partial cut [11:44:18]*** CUTSNS_PIN = 1 [11:44:18]*** CUTSNS_PIN = 0 [11:44:18]*** Brake cut motor [11:44:18]Read from MH i2c: 01 [11:44:18]MH_I2C_Read... [11:44:18]*** Stop cut motor [11:44:18]*** Cut end [11:44:18]Read from MH i2c: 01 07 00 [11:44:18]MH_I2C_Read... [11:44:18]Read from MH i2c: 01 07 00 75 03 00 00 00 00 00 FF 0F 8D [11:44:18]process_action close_receipt done [11:44:18]requested_data is exist [11:44:18]produce_requested_data [11:44:18]requested_item fm.sn is exist - process it [11:44:18]wFMCommunicate request_size=4 [11:44:18]MH_SAM_APDU [11:44:18]CAPDU: 80 11 00 00 [11:44:18]Write to MH i2c: E2 08 00 76 03 80 11 00 00 00 00 00 00 F3 [11:44:18]Write i2c OK [11:44:18]MH_I2C_Read... [11:44:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:18]Read from MH i2c: E2 [11:44:18]MH_I2C_Read... [11:44:18]Read from MH i2c: E2 17 00 [11:44:18]MH_I2C_Read... [11:44:18]Read from MH i2c: E2 17 00 76 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 41 [11:44:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:44:18]wFMCommunicate OK [11:44:18]requested_item fd.num is exist - process it [11:44:18]SAM_PROTO_GetFieldsCounters [11:44:18]wFMCommunicate request_size=4 [11:44:18]MH_SAM_APDU [11:44:18]CAPDU: 80 13 00 00 [11:44:18]Write to MH i2c: E2 08 00 77 03 80 13 00 00 00 00 00 00 F6 [11:44:18]Write i2c OK [11:44:18]MH_I2C_Read... [11:44:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:19]Read from MH i2c: E2 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: E2 62 00 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: E2 62 00 77 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9B C2 01 00 0E 04 04 00 D7 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 20 [11:44: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9B C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:19]wFMCommunicate OK [11:44:19]SAM_PROTO_GetFieldsCounters done [11:44:19]requested_item shift.num is exist - process it [11:44:19]requested_item shift.opened is exist - process it [11:44:19]req_shift_opened [11:44:19]FM_GetShiftState [11:44:19]SAM_PROTO_GetShiftState [11:44:19]wFMCommunicate request_size=4 [11:44:19]MH_SAM_APDU [11:44:19]CAPDU: 80 13 01 00 [11:44:19]Write to MH i2c: E2 08 00 78 03 80 13 01 00 00 00 00 00 F8 [11:44:19]Write i2c OK [11:44:19]MH_I2C_Read... [11:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:19]Read from MH i2c: E2 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: E2 0E 00 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: E2 0E 00 78 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 11 [11:44:19]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:44:19]wFMCommunicate OK [11:44:19]SAM_PROTO_GetShiftState done [11:44:19]FM_GetShiftState done [11:44:19]req_shift_opened done [11:44:19]requested_item shift.open_date is exist - process it [11:44:19]req_shift_open_date [11:44:19]req_shift_open_date done [11:44:19]produce_requested_data done [11:44:19]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115355,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [11:44:19]process_action_free close_receipt [11:44:19]json_value_free [11:44:19]json_value_free done [11:44:19]process_json_proto returns [11:44:19]Send response to host [11:44:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115355,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [11:44:19]free response buf [11:44:19]execute_script done [11:44:19]execute_script returns [11:44:19]free content buf [11:44:19]Sock 8.Close socket [11:44:19]Sock 8.Thread stoped [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:06]accept exits with 9 [11:45:06]New connection [11:45:06]New thread 3066682724 created [11:45:06]Thread 3066826084 joined [11:45:06]Waiting for new connection... [11:45:06] Sock 9.Parse request [11:45:06]Sock 9.Check first char [11:45:06]Sock 9.First char is OK [11:45:06]request: POST /json_proto HTTP/1.0 [11:45:06]Method: POST [11:45:06]URL: /json_proto [11:45:06]Method is POST - this is cgi request [11:45:06]url: /json_proto [11:45:06]query_string will be loaded in cgi processing [11:45:06]execute_cgi json_proto POST (null) [11:45:06]execute_cgi path=json_proto method=POST [11:45:06]POST find Content-Length [11:45:06]Host: 172.17.41.136:8080 [11:45:06]Content-Length: 804 [11:45:06]Content-Type: application/json [11:45:06] [11:45:06]POST finish read [11:45:06]Found Content-Length = 804 [11:45:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343812", "tax_sys" : 0, "items" : [ { "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:06]execute_script... [11:45:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343812", "tax_sys" : 0, "items" : [ { "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:06]POST & json_proto [11:45:06]process_json_proto [11:45:06]json parsed OK: [11:45:06]protocol is kg_v1.0 [11:45:06]action value=close_receipt [11:45:06]process_action close_receipt [11:45:06]cmd_close_receipt [11:45:06]MH_GetDate [11:45:06]Write to MH i2c: F0 00 00 79 03 6B [11:45:06]Write i2c OK [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: F0 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: F0 09 00 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: F0 09 00 79 03 00 43 03 F0 66 1B D0 5A 64 B9 [11:45:06]GetLastDocTimeStamp 1727005455 [11:45:06]current date 1727005507 [11:45:06]FM_GetShiftState [11:45:06]SAM_PROTO_GetShiftState [11:45:06]wFMCommunicate request_size=4 [11:45:06]MH_SAM_APDU [11:45:06]CAPDU: 80 13 01 00 [11:45:06]Write to MH i2c: E2 08 00 7A 03 80 13 01 00 00 00 00 00 FA [11:45:06]Write i2c OK [11:45:06]MH_I2C_Read... [11:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:06]Read from MH i2c: E2 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 0E 00 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 0E 00 7A 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 13 [11:45:06]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:45:06]wFMCommunicate OK [11:45:06]SAM_PROTO_GetShiftState done [11:45:06]FM_GetShiftState done [11:45:06]opened in 1726965840 [11:45:06]opened+sec_in_day 1727052240 [11:45:06]quantity*price = 6000 [11:45:06]sum+1 = 6001 [11:45:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 0.00 Безнал.: 60.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 74 22.09.2024 11:45 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115356 ФПД: 186896849251303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T114507&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115356&fm=186896849251303&tin=02508201610067®Number=0000000000091831&sum=6000 0 [11:45:07]StoreToDocumentArchive [11:45:07]shift 471 fd 115356 [11:45:07]save to /storage/0471/doc_00115356 [11:45:07]save last doc name /storage/0471/doc_00115356 to /storage/kkm_last_doc_name [11:45:07]save OK [11:45:07]Clear old archive folders... [11:45:07]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:45:07]tlvbuf is 01BF5BC0 [11:45:07]SAM_PROTO_ClearQueue [11:45:07]wFMCommunicate request_size=4 [11:45:07]MH_SAM_APDU [11:45:07]CAPDU: 80 09 00 00 [11:45:07]Write to MH i2c: E2 08 00 87 03 80 09 00 00 00 00 00 00 FC [11:45:07]Write i2c OK [11:45:07]MH_I2C_Read... [11:45:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:07]Read from MH i2c: E2 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: E2 03 00 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: E2 03 00 87 03 00 90 00 FE [11:45:07]RAPDU: 90 00 [11:45:07]wFMCommunicate OK [11:45:07]SAM_PROTO_ClearQueue done [11:45:07]KKMCreateOFDPacket [11:45:07]OFDProtocolAddRootSTLVToBuf [11:45:07]FM_MakeSignedData [11:45:07]FM_MakeSignedData [11:45:07]SAM_PROTO_SignData [11:45:07]wFMCommunicate request_size=4 [11:45:07]MH_SAM_APDU [11:45:07]CAPDU: 80 0D 01 02 [11:45:07]Write to MH i2c: E2 08 00 88 03 80 0D 01 02 00 00 00 00 04 [11:45:07]Write i2c OK [11:45:07]MH_I2C_Read... [11:45:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:07]Read from MH i2c: E2 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: E2 03 00 [11:45:07]MH_I2C_Read... [11:45:07]Read from MH i2c: E2 03 00 88 03 00 90 00 FF [11:45:07]RAPDU: 90 00 [11:45:07]wFMCommunicate OK [11:45:07]wFMCommunicate request_size=255 [11:45:07]MH_SAM_APDU [11:45:07]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 43 03 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 [11:45:07]Write to MH i2c: E2 02 01 89 03 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 43 03 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 00 00 EC [11:45:07]Write i2c OK [11:45:07]MH_I2C_Read... [11:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:08]Read from MH i2c: E2 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 03 00 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 03 00 89 03 00 90 00 00 [11:45:08]RAPDU: 90 00 [11:45:08]wFMCommunicate OK [11:45:08]wFMCommunicate request_size=33 [11:45:08]MH_SAM_APDU [11:45:08]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9C C2 01 00 35 04 06 00 A9 FB 50 4F 2B E7 [11:45:08]Write to MH i2c: E2 24 00 8A 03 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9C C2 01 00 35 04 06 00 A9 FB 50 4F 2B E7 00 00 45 [11:45:08]Write i2c OK [11:45:08]MH_I2C_Read... [11:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:08]Read from MH i2c: E2 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 03 00 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 03 00 8A 03 00 90 00 01 [11:45:08]RAPDU: 90 00 [11:45:08]wFMCommunicate OK [11:45:08]wFMCommunicate request_size=4 [11:45:08]MH_SAM_APDU [11:45:08]CAPDU: 80 0D 03 02 [11:45:08]Write to MH i2c: E2 08 00 8B 03 80 0D 03 02 00 00 00 00 09 [11:45:08]Write i2c OK [11:45:08]MH_I2C_Read... [11:45:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:08]Read from MH i2c: E2 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 0B 00 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 0B 00 8B 03 00 A9 84 9F 74 47 AD 0D 7D 90 00 C8 [11:45:08]RAPDU: A9 84 9F 74 47 AD 0D 7D 90 00 [11:45:08]wFMCommunicate OK [11:45:08]SAM_PROTO_SignData done [11:45:08]FM_MakeSignedData done [11:45:08]CreateOFDProtocolMessage [11:45:08]wFMCommunicate request_size=4 [11:45:08]MH_SAM_APDU [11:45:08]CAPDU: 80 11 00 00 [11:45:08]Write to MH i2c: E2 08 00 8C 03 80 11 00 00 00 00 00 00 09 [11:45:08]Write i2c OK [11:45:08]MH_I2C_Read... [11:45:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:08]Read from MH i2c: E2 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 17 00 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: E2 17 00 8C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 57 [11:45:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:45:08]wFMCommunicate OK [11:45:08]CreateOFDProtocolMessage done [11:45:08]OFDSenderStorePacket 115356 [11:45:08]StoreOFDPacket docnum=115356 [11:45:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 26 01 00 00 39 51 1E 01 4F 88 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 43 03 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9C C2 01 00 35 04 06 00 A9 FB 50 4F 2B E7 A9 84 9F 74 47 AD 0D 7D [11:45:08]CheckFolder [11:45:08]dirname=/storage/ofd_packets [11:45:08]CheckFolder done [11:45:08]ProducePacketName [11:45:08]name=ofd_packets/00115356 [11:45:08]NVStorageSaveData ofd_packets/00115356 [11:45:08]File name is /storage/ofd_packets/00115356 [11:45:08]Write 324 bytes [11:45:08]NVStorageSaveData done [11:45:08]OFDSenderStorePacket done [11:45:08]KKMCreateOFDPacket done [11:45:08]NVStorageSaveData kkm_last_timestamp [11:45:08]File name is /storage/kkm_last_timestamp [11:45:08]Write 4 bytes [11:45:08]NVStorageSaveData done [11:45:08]ExternCall_PrintAddStr [11:45:08]wPrintStart [11:45:08]Write to MH i2c: 01 00 00 8D 03 90 [11:45:08]Write i2c OK [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: 01 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: 01 07 00 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: 01 07 00 8D 03 00 00 00 00 00 FF 0F A5 [11:45:08]RasterBufferAndPrint [11:45:08]line Счет N : (3)343812 [11:45:08]line ИНН: 02508201610067 [11:45:08]line Контрольно-Кассовый Чек [11:45:08]line ПРОДАЖА [11:45:08]line Товар: 4700007690018 [11:45:08]line Негаз вода Pamir 0,5 л [11:45:08]line 2.000 * 30.00 [11:45:08]line = 60.00 [11:45:08]line НДС 12% НСП 1% [11:45:08]line > о реализуемом товаре [11:45:08]line ИТОГО: 60.00 [11:45:08]line НСП 1% : 0.53 [11:45:08]line НДС 12% : 6.37 [11:45:08]line Наличными: 0.00 [11:45:08]line Безнал.: 60.00 [11:45:08]line Место: АЗС № 90 "Партнер Нефть" [11:45:08]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:45:08]line СНО: Общий режим [11:45:08]line Чек 74 22.09.2024 11:45 [11:45:08]line Смена: 471 ФФД: 1.0 [11:45:08]line ЗНМ: 0300000120 [11:45:08]line РНМ: 0000000000091831 [11:45:08]line Версия ККМ: 001 [11:45:08]line Платежная система: Бакай Банк [11:45:08]line ФМ: 0000000000871830 [11:45:08]line ФД: 115356 [11:45:08]line ФПД: 186896849251303 [11:45:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T114507&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115356&fm=186896849251303&tin=02508201610067®Number=0000000000091831&sum=6000 [11:45:08]line 0 [11:45:08]written 0, free lines is 4095 [11:45:08]OFD Sender: Processing packet 115356 [packets to send 481, broken 480] [11:45:08]ProducePacketName [11:45:08]name=ofd_packets/00115356 [11:45:08]OFD Sender: To server: pG, [11:45:08]CommunicateWithHost lk.salyk.kg:30040 [11:45:08]ConnectInit lk.salyk.kg [11:45:08]Connected sock=10 [11:45:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 26 01 00 00 39 51 1E 01 4F 88 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 43 03 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9C C2 01 00 35 04 06 00 A9 FB 50 4F 2B E7 A9 84 9F 74 47 AD 0D 7D [11:45:08]Write to MH i2c: 01 00 00 B6 03 B9 [11:45:08]Write i2c OK [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: 01 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: 01 07 00 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: 01 07 00 B6 03 00 00 00 00 00 59 0C 25 [11:45:08]RasterBufferAndPrint [11:45:08]line [11:45:08]line [11:45:08]line [11:45:08]line [11:45:08]line [11:45:08]written 0, free lines is 3166 [11:45:08]MH_Cut [11:45:08]Write to MH i2c: D1 01 00 BD 03 01 92 [11:45:08]Write i2c OK [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: D1 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: D1 01 00 [11:45:08]MH_I2C_Read... [11:45:08]Read from MH i2c: D1 01 00 BD 03 00 91 [11:45:08]Write to MH i2c: 01 00 00 BE 03 C1 [11:45:08]Write i2c OK [11:45:08]MH_I2C_Read... [11:45:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E5 80 47 00 86 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9C C2 01 00 F4 03 04 00 89 A8 EF 66 B6 04 01 00 00 C7 99 F7 46 B2 D7 A2 19 [11:45:08]CommunicateWithHost err = 0 [11:45:08]CheckOFDResponse [11:45:08]1017 (14) - 77093643461234 [11:45:08]1041 (16) - 0000000000871830 [11:45:08]1040 (4) - 115356 [11:45:08]1012 (4) - 22.09.2024 05:18 [11:45:08]1206 (1) - 0 [11:45:08]OFD Sender: Remove packet 115356 [11:45:08]ProducePacketName [11:45:08]name=ofd_packets/00115356 [11:45:08]NVStorageDeleteData [11:45:09]OFD Sender: No OFD packet to send [11:45:10]*** Cut start [11:45:10]*** Partial cut [11:45:10]*** CUTSNS_PIN = 1 [11:45:10]*** CUTSNS_PIN = 0 [11:45:10]*** Brake cut motor [11:45:10]Read from MH i2c: 01 [11:45:10]MH_I2C_Read... [11:45:10]*** Stop cut motor [11:45:10]*** Cut end [11:45:10]Read from MH i2c: 01 07 00 [11:45:10]MH_I2C_Read... [11:45:10]Read from MH i2c: 01 07 00 BE 03 00 00 00 00 00 FF 0F D6 [11:45:10]process_action close_receipt done [11:45:10]requested_data is exist [11:45:10]produce_requested_data [11:45:10]requested_item fm.sn is exist - process it [11:45:10]wFMCommunicate request_size=4 [11:45:10]MH_SAM_APDU [11:45:10]CAPDU: 80 11 00 00 [11:45:10]Write to MH i2c: E2 08 00 BF 03 80 11 00 00 00 00 00 00 3C [11:45:10]Write i2c OK [11:45:10]MH_I2C_Read... [11:45:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:10]Read from MH i2c: E2 [11:45:10]MH_I2C_Read... [11:45:10]Read from MH i2c: E2 17 00 [11:45:10]MH_I2C_Read... [11:45:10]Read from MH i2c: E2 17 00 BF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8A [11:45:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:45:10]wFMCommunicate OK [11:45:10]requested_item fd.num is exist - process it [11:45:10]SAM_PROTO_GetFieldsCounters [11:45:10]wFMCommunicate request_size=4 [11:45:10]MH_SAM_APDU [11:45:10]CAPDU: 80 13 00 00 [11:45:10]Write to MH i2c: E2 08 00 C0 03 80 13 00 00 00 00 00 00 3F [11:45:10]Write i2c OK [11:45:10]MH_I2C_Read... [11:45:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:10]Read from MH i2c: E2 [11:45:10]MH_I2C_Read... [11:45:10]Read from MH i2c: E2 62 00 [11:45:10]MH_I2C_Read... [11:45:10]Read from MH i2c: E2 62 00 C0 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9C C2 01 00 0E 04 04 00 D7 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 6D [11:45:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9C C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:10]wFMCommunicate OK [11:45:10]SAM_PROTO_GetFieldsCounters done [11:45:10]requested_item shift.num is exist - process it [11:45:10]requested_item shift.opened is exist - process it [11:45:10]req_shift_opened [11:45:10]FM_GetShiftState [11:45:10]SAM_PROTO_GetShiftState [11:45:10]wFMCommunicate request_size=4 [11:45:10]MH_SAM_APDU [11:45:10]CAPDU: 80 13 01 00 [11:45:10]Write to MH i2c: E2 08 00 C1 03 80 13 01 00 00 00 00 00 41 [11:45:10]Write i2c OK [11:45:10]MH_I2C_Read... [11:45:10]Read from MH i2c: E2 [11:45:10]MH_I2C_Read... [11:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:10]Read from MH i2c: E2 0E 00 [11:45:10]MH_I2C_Read... [11:45:10]Read from MH i2c: E2 0E 00 C1 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 5A [11:45:10]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:45:10]wFMCommunicate OK [11:45:10]SAM_PROTO_GetShiftState done [11:45:10]FM_GetShiftState done [11:45:10]req_shift_opened done [11:45:10]requested_item shift.open_date is exist - process it [11:45:10]req_shift_open_date [11:45:10]req_shift_open_date done [11:45:10]produce_requested_data done [11:45:10]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115356,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [11:45:10]process_action_free close_receipt [11:45:10]json_value_free [11:45:10]json_value_free done [11:45:10]process_json_proto returns [11:45:10]Send response to host [11:45:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115356,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [11:45:10]free response buf [11:45:10]execute_script done [11:45:10]execute_script returns [11:45:10]free content buf [11:45:10]Sock 9.Close socket [11:45:10]Sock 9.Thread stoped [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]accept exits with 8 [11:46:54]New connection [11:46:54]New thread 3066826084 created [11:46:54]Thread 3066682724 joined [11:46:54]Waiting for new connection... [11:46:54] Sock 8.Parse request [11:46:54]Sock 8.Check first char [11:46:54]Sock 8.First char is OK [11:46:54]request: POST /json_proto HTTP/1.0 [11:46:54]Method: POST [11:46:54]URL: /json_proto [11:46:54]Method is POST - this is cgi request [11:46:54]url: /json_proto [11:46:54]query_string will be loaded in cgi processing [11:46:54]execute_cgi json_proto POST (null) [11:46:54]execute_cgi path=json_proto method=POST [11:46:54]POST find Content-Length [11:46:54]Host: 172.17.41.136:8080 [11:46:54]Content-Length: 675 [11:46:54]Content-Type: application/json [11:46:54] [11:46:54]POST finish read [11:46:54]Found Content-Length = 675 [11:46:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343813", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 5.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:54]execute_script... [11:46:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343813", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 5.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:54]POST & json_proto [11:46:54]process_json_proto [11:46:54]json parsed OK: [11:46:54]protocol is kg_v1.0 [11:46:54]action value=close_receipt [11:46:54]process_action close_receipt [11:46:54]cmd_close_receipt [11:46:54]MH_GetDate [11:46:54]Write to MH i2c: F0 00 00 C2 03 B4 [11:46:54]Write i2c OK [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: F0 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: F0 09 00 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: F0 09 00 C2 03 00 AF 03 F0 66 1B D0 5A 64 6E [11:46:54]GetLastDocTimeStamp 1727005507 [11:46:54]current date 1727005615 [11:46:54]FM_GetShiftState [11:46:54]SAM_PROTO_GetShiftState [11:46:54]wFMCommunicate request_size=4 [11:46:54]MH_SAM_APDU [11:46:54]CAPDU: 80 13 01 00 [11:46:54]Write to MH i2c: E2 08 00 C3 03 80 13 01 00 00 00 00 00 43 [11:46:54]Write i2c OK [11:46:54]MH_I2C_Read... [11:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:54]Read from MH i2c: E2 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 0E 00 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 0E 00 C3 03 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 5C [11:46:54]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:46:54]wFMCommunicate OK [11:46:54]SAM_PROTO_GetShiftState done [11:46:54]FM_GetShiftState done [11:46:54]opened in 1726965840 [11:46:54]opened+sec_in_day 1727052240 [11:46:54]quantity*price = 3500 [11:46:54]sum+1 = 3501 [11:46:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 75 22.09.2024 11:46 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115357 ФПД: 57135221390477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T114655&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115357&fm=57135221390477&tin=02508201610067®Number=0000000000091831&sum=3500 0 [11:46:55]StoreToDocumentArchive [11:46:55]shift 471 fd 115357 [11:46:55]save to /storage/0471/doc_00115357 [11:46:55]save last doc name /storage/0471/doc_00115357 to /storage/kkm_last_doc_name [11:46:55]save OK [11:46:55]Clear old archive folders... [11:46:55]ProcessDocumentItem done err = 0, tmpTLVsize=287 [11:46:55]tlvbuf is 01C013E0 [11:46:55]SAM_PROTO_ClearQueue [11:46:55]wFMCommunicate request_size=4 [11:46:55]MH_SAM_APDU [11:46:55]CAPDU: 80 09 00 00 [11:46:55]Write to MH i2c: E2 08 00 D0 03 80 09 00 00 00 00 00 00 45 [11:46:55]Write i2c OK [11:46:55]MH_I2C_Read... [11:46:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:55]Read from MH i2c: E2 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: E2 03 00 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: E2 03 00 D0 03 00 90 00 47 [11:46:55]RAPDU: 90 00 [11:46:55]wFMCommunicate OK [11:46:55]SAM_PROTO_ClearQueue done [11:46:55]KKMCreateOFDPacket [11:46:55]OFDProtocolAddRootSTLVToBuf [11:46:55]FM_MakeSignedData [11:46:55]FM_MakeSignedData [11:46:55]SAM_PROTO_SignData [11:46:55]wFMCommunicate request_size=4 [11:46:55]MH_SAM_APDU [11:46:55]CAPDU: 80 0D 01 02 [11:46:55]Write to MH i2c: E2 08 00 D1 03 80 0D 01 02 00 00 00 00 4D [11:46:55]Write i2c OK [11:46:55]MH_I2C_Read... [11:46:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:55]Read from MH i2c: E2 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: E2 03 00 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: E2 03 00 D1 03 00 90 00 48 [11:46:55]RAPDU: 90 00 [11:46:55]wFMCommunicate OK [11:46:55]wFMCommunicate request_size=255 [11:46:55]MH_SAM_APDU [11:46:55]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 AF 03 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [11:46:55]Write to MH i2c: E2 02 01 D2 03 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 AF 03 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 98 [11:46:55]Write i2c OK [11:46:55]MH_I2C_Read... [11:46:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:56]Read from MH i2c: E2 [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: E2 03 00 [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: E2 03 00 D2 03 00 90 00 49 [11:46:56]RAPDU: 90 00 [11:46:56]wFMCommunicate OK [11:46:56]wFMCommunicate request_size=46 [11:46:56]MH_SAM_APDU [11:46:56]CAPDU: 80 0D 02 02 29 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9D C2 01 00 35 04 06 00 33 F6 D4 93 3C 8D [11:46:56]Write to MH i2c: E2 31 00 D3 03 80 0D 02 02 29 00 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9D C2 01 00 35 04 06 00 33 F6 D4 93 3C 8D 00 00 8E [11:46:56]Write i2c OK [11:46:56]MH_I2C_Read... [11:46:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:56]Read from MH i2c: E2 [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: E2 03 00 [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: E2 03 00 D3 03 00 90 00 4A [11:46:56]RAPDU: 90 00 [11:46:56]wFMCommunicate OK [11:46:56]wFMCommunicate request_size=4 [11:46:56]MH_SAM_APDU [11:46:56]CAPDU: 80 0D 03 02 [11:46:56]Write to MH i2c: E2 08 00 D4 03 80 0D 03 02 00 00 00 00 52 [11:46:56]Write i2c OK [11:46:56]MH_I2C_Read... [11:46:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:56]Read from MH i2c: E2 [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: E2 0B 00 [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: E2 0B 00 D4 03 00 B0 EE 31 F6 73 50 68 37 90 00 7A [11:46:56]RAPDU: B0 EE 31 F6 73 50 68 37 90 00 [11:46:56]wFMCommunicate OK [11:46:56]SAM_PROTO_SignData done [11:46:56]FM_MakeSignedData done [11:46:56]CreateOFDProtocolMessage [11:46:56]wFMCommunicate request_size=4 [11:46:56]MH_SAM_APDU [11:46:56]CAPDU: 80 11 00 00 [11:46:56]Write to MH i2c: E2 08 00 D5 03 80 11 00 00 00 00 00 00 52 [11:46:56]Write i2c OK [11:46:56]MH_I2C_Read... [11:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:56]Read from MH i2c: E2 [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: E2 17 00 [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: E2 17 00 D5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A0 [11:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:46:56]wFMCommunicate OK [11:46:56]CreateOFDProtocolMessage done [11:46:56]OFDSenderStorePacket 115357 [11:46:56]StoreOFDPacket docnum=115357 [11:46:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 33 01 00 00 F6 5A 2B 01 E9 A4 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 AF 03 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9D C2 01 00 35 04 06 00 33 F6 D4 93 3C 8D B0 EE 31 F6 73 50 68 37 [11:46:56]CheckFolder [11:46:56]dirname=/storage/ofd_packets [11:46:56]CheckFolder done [11:46:56]ProducePacketName [11:46:56]name=ofd_packets/00115357 [11:46:56]NVStorageSaveData ofd_packets/00115357 [11:46:56]File name is /storage/ofd_packets/00115357 [11:46:56]Write 337 bytes [11:46:56]NVStorageSaveData done [11:46:56]OFDSenderStorePacket done [11:46:56]KKMCreateOFDPacket done [11:46:56]NVStorageSaveData kkm_last_timestamp [11:46:56]File name is /storage/kkm_last_timestamp [11:46:56]Write 4 bytes [11:46:56]NVStorageSaveData done [11:46:56]ExternCall_PrintAddStr [11:46:56]wPrintStart [11:46:56]Write to MH i2c: 01 00 00 D6 03 D9 [11:46:56]Write i2c OK [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: 01 [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: 01 07 00 [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: 01 07 00 D6 03 00 00 00 00 00 FF 0F EE [11:46:56]RasterBufferAndPrint [11:46:56]line Счет N : (3)343813 [11:46:56]line ИНН: 02508201610067 [11:46:56]line Контрольно-Кассовый Чек [11:46:56]line ПРОДАЖА [11:46:56]line Товар: 2000053020015 [11:46:56]line Бумажные стаканы 250мл 1шт [11:46:56]line 5.000 * 7.00 [11:46:56]line = 35.00 [11:46:56]line НДС 12% НСП 1% [11:46:56]line > о реализуемом товаре [11:46:56]line ИТОГО: 35.00 [11:46:56]line НСП 1% : 0.31 [11:46:56]line НДС 12% : 3.72 [11:46:56]line Наличными: 35.00 [11:46:56]line Безнал.: 0.00 [11:46:56]line Место: АЗС № 90 "Партнер Нефть" [11:46:56]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:46:56]line СНО: Общий режим [11:46:56]line Чек 75 22.09.2024 11:46 [11:46:56]line Смена: 471 ФФД: 1.0 [11:46:56]line ЗНМ: 0300000120 [11:46:56]line РНМ: 0000000000091831 [11:46:56]line Версия ККМ: 001 [11:46:56]line ФМ: 0000000000871830 [11:46:56]line ФД: 115357 [11:46:56]line ФПД: 57135221390477 [11:46:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T114655&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115357&fm=57135221390477&tin=02508201610067®Number=0000000000091831&sum=3500 [11:46:56]line 0 [11:46:56]OFD Sender: Processing packet 115357 [packets to send 481, broken 480] [11:46:56]ProducePacketName [11:46:56]name=ofd_packets/00115357 [11:46:56]OFD Sender: To server: pG, [11:46:56]CommunicateWithHost lk.salyk.kg:30040 [11:46:56]ConnectInit lk.salyk.kg [11:46:56]written 0, free lines is 4095 [11:46:56]Connected sock=10 [11:46:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 33 01 00 00 F6 5A 2B 01 E9 A4 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 AF 03 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9D C2 01 00 35 04 06 00 33 F6 D4 93 3C 8D B0 EE 31 F6 73 50 68 37 [11:46:56]Write to MH i2c: 01 00 00 FE 03 01 [11:46:56]Write i2c OK [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: 01 [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: 01 07 00 [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: 01 07 00 FE 03 00 00 00 00 00 52 0C 66 [11:46:56]RasterBufferAndPrint [11:46:56]line [11:46:56]line [11:46:56]line [11:46:56]line [11:46:56]line [11:46:56]written 0, free lines is 3157 [11:46:56]MH_Cut [11:46:56]Write to MH i2c: D1 01 00 05 04 01 DB [11:46:56]Write i2c OK [11:46:57]MH_I2C_Read... [11:46:57]Read from MH i2c: D1 [11:46:57]MH_I2C_Read... [11:46:57]Read from MH i2c: D1 01 00 [11:46:57]MH_I2C_Read... [11:46:57]Read from MH i2c: D1 01 00 05 04 00 DA [11:46:57]Write to MH i2c: 01 00 00 06 04 0A [11:46:57]Write i2c OK [11:46:57]MH_I2C_Read... [11:46:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 3B 10 47 00 7B 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9D C2 01 00 F4 03 04 00 F5 A8 EF 66 B6 04 01 00 00 F1 7F 2F 27 A6 98 50 A7 [11:46:57]CommunicateWithHost err = 0 [11:46:57]CheckOFDResponse [11:46:57]1017 (14) - 77093643461234 [11:46:57]1041 (16) - 0000000000871830 [11:46:57]1040 (4) - 115357 [11:46:57]1012 (4) - 22.09.2024 05:19 [11:46:57]1206 (1) - 0 [11:46:57]OFD Sender: Remove packet 115357 [11:46:57]ProducePacketName [11:46:57]name=ofd_packets/00115357 [11:46:57]NVStorageDeleteData [11:46:57]OFD Sender: No OFD packet to send [11:46:58]*** Cut start [11:46:58]*** Partial cut [11:46:58]*** CUTSNS_PIN = 1 [11:46:58]*** CUTSNS_PIN = 0 [11:46:58]*** Brake cut motor [11:46:58]Read from MH i2c: 01 [11:46:58]MH_I2C_Read... [11:46:58]*** Stop cut motor [11:46:58]*** Cut end [11:46:58]Read from MH i2c: 01 07 00 [11:46:58]MH_I2C_Read... [11:46:58]Read from MH i2c: 01 07 00 06 04 00 00 00 00 00 FF 0F 1F [11:46:58]process_action close_receipt done [11:46:58]requested_data is exist [11:46:58]produce_requested_data [11:46:58]requested_item fm.sn is exist - process it [11:46:58]wFMCommunicate request_size=4 [11:46:58]MH_SAM_APDU [11:46:58]CAPDU: 80 11 00 00 [11:46:58]Write to MH i2c: E2 08 00 07 04 80 11 00 00 00 00 00 00 85 [11:46:58]Write i2c OK [11:46:58]MH_I2C_Read... [11:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:58]Read from MH i2c: E2 [11:46:58]MH_I2C_Read... [11:46:58]Read from MH i2c: E2 17 00 [11:46:58]MH_I2C_Read... [11:46:58]Read from MH i2c: E2 17 00 07 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D3 [11:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:46:58]wFMCommunicate OK [11:46:58]requested_item fd.num is exist - process it [11:46:58]SAM_PROTO_GetFieldsCounters [11:46:58]wFMCommunicate request_size=4 [11:46:58]MH_SAM_APDU [11:46:58]CAPDU: 80 13 00 00 [11:46:58]Write to MH i2c: E2 08 00 08 04 80 13 00 00 00 00 00 00 88 [11:46:58]Write i2c OK [11:46:58]MH_I2C_Read... [11:46:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:59]Read from MH i2c: E2 [11:46:59]MH_I2C_Read... [11:46:59]Read from MH i2c: E2 62 00 [11:46:59]MH_I2C_Read... [11:46:59]Read from MH i2c: E2 62 00 08 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9D C2 01 00 0E 04 04 00 D7 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 BA [11:46:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9D C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:59]wFMCommunicate OK [11:46:59]SAM_PROTO_GetFieldsCounters done [11:46:59]requested_item shift.num is exist - process it [11:46:59]requested_item shift.opened is exist - process it [11:46:59]req_shift_opened [11:46:59]FM_GetShiftState [11:46:59]SAM_PROTO_GetShiftState [11:46:59]wFMCommunicate request_size=4 [11:46:59]MH_SAM_APDU [11:46:59]CAPDU: 80 13 01 00 [11:46:59]Write to MH i2c: E2 08 00 09 04 80 13 01 00 00 00 00 00 8A [11:46:59]Write i2c OK [11:46:59]MH_I2C_Read... [11:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:59]Read from MH i2c: E2 [11:46:59]MH_I2C_Read... [11:46:59]Read from MH i2c: E2 0E 00 [11:46:59]MH_I2C_Read... [11:46:59]Read from MH i2c: E2 0E 00 09 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A3 [11:46:59]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:46:59]wFMCommunicate OK [11:46:59]SAM_PROTO_GetShiftState done [11:46:59]FM_GetShiftState done [11:46:59]req_shift_opened done [11:46:59]requested_item shift.open_date is exist - process it [11:46:59]req_shift_open_date [11:46:59]req_shift_open_date done [11:46:59]produce_requested_data done [11:46:59]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115357,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [11:46:59]process_action_free close_receipt [11:46:59]json_value_free [11:46:59]json_value_free done [11:46:59]process_json_proto returns [11:46:59]Send response to host [11:46:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115357,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [11:46:59]free response buf [11:46:59]execute_script done [11:46:59]execute_script returns [11:46:59]free content buf [11:46:59]Sock 8.Close socket [11:46:59]Sock 8.Thread stoped [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:08]accept exits with 9 [11:48:08]New connection [11:48:08]New thread 3066682724 created [11:48:08]Thread 3066826084 joined [11:48:08]Waiting for new connection... [11:48:08] Sock 9.Parse request [11:48:08]Sock 9.Check first char [11:48:08]Sock 9.First char is OK [11:48:08]request: POST /json_proto HTTP/1.0 [11:48:08]Method: POST [11:48:08]URL: /json_proto [11:48:08]Method is POST - this is cgi request [11:48:08]url: /json_proto [11:48:08]query_string will be loaded in cgi processing [11:48:08]execute_cgi json_proto POST (null) [11:48:08]execute_cgi path=json_proto method=POST [11:48:08]POST find Content-Length [11:48:08]Host: 172.17.41.136:8080 [11:48:08]Content-Length: 913 [11:48:08]Content-Type: application/json [11:48:08] [11:48:08]POST finish read [11:48:08]Found Content-Length = 913 [11:48:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343814", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:08]execute_script... [11:48:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343814", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:08]POST & json_proto [11:48:08]process_json_proto [11:48:08]json parsed OK: [11:48:08]protocol is kg_v1.0 [11:48:08]action value=close_receipt [11:48:08]process_action close_receipt [11:48:08]cmd_close_receipt [11:48:08]MH_GetDate [11:48:08]Write to MH i2c: F0 00 00 0A 04 FD [11:48:08]Write i2c OK [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: F0 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: F0 09 00 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: F0 09 00 0A 04 00 F9 03 F0 66 1B D0 5A 64 01 [11:48:08]GetLastDocTimeStamp 1727005615 [11:48:08]current date 1727005689 [11:48:08]FM_GetShiftState [11:48:08]SAM_PROTO_GetShiftState [11:48:08]wFMCommunicate request_size=4 [11:48:08]MH_SAM_APDU [11:48:08]CAPDU: 80 13 01 00 [11:48:08]Write to MH i2c: E2 08 00 0B 04 80 13 01 00 00 00 00 00 8C [11:48:08]Write i2c OK [11:48:08]MH_I2C_Read... [11:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:08]Read from MH i2c: E2 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: E2 0E 00 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: E2 0E 00 0B 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A5 [11:48:08]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:48:08]wFMCommunicate OK [11:48:08]SAM_PROTO_GetShiftState done [11:48:08]FM_GetShiftState done [11:48:08]opened in 1726965840 [11:48:08]opened+sec_in_day 1727052240 [11:48:08]quantity*price = 10500 [11:48:08]sum+1 = 10501 [11:48:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000006271 Напиток Фанта 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 76 22.09.2024 11:48 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115358 ФПД: 25160792831714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T114809&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115358&fm=25160792831714&tin=02508201610067®Number=0000000000091831&sum=21000 0 [11:48:09]StoreToDocumentArchive [11:48:09]shift 471 fd 115358 [11:48:09]save to /storage/0471/doc_00115358 [11:48:09]save last doc name /storage/0471/doc_00115358 to /storage/kkm_last_doc_name [11:48:09]save OK [11:48:09]Clear old archive folders... [11:48:09]ProcessDocumentItem done err = 0, tmpTLVsize=379 [11:48:09]tlvbuf is 01BF96F0 [11:48:09]SAM_PROTO_ClearQueue [11:48:09]wFMCommunicate request_size=4 [11:48:09]MH_SAM_APDU [11:48:09]CAPDU: 80 09 00 00 [11:48:09]Write to MH i2c: E2 08 00 18 04 80 09 00 00 00 00 00 00 8E [11:48:09]Write i2c OK [11:48:09]MH_I2C_Read... [11:48:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:10]Read from MH i2c: E2 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 03 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 03 00 18 04 00 90 00 90 [11:48:10]RAPDU: 90 00 [11:48:10]wFMCommunicate OK [11:48:10]SAM_PROTO_ClearQueue done [11:48:10]KKMCreateOFDPacket [11:48:10]OFDProtocolAddRootSTLVToBuf [11:48:10]FM_MakeSignedData [11:48:10]FM_MakeSignedData [11:48:10]SAM_PROTO_SignData [11:48:10]wFMCommunicate request_size=4 [11:48:10]MH_SAM_APDU [11:48:10]CAPDU: 80 0D 01 02 [11:48:10]Write to MH i2c: E2 08 00 19 04 80 0D 01 02 00 00 00 00 96 [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:10]Read from MH i2c: E2 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 03 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 03 00 19 04 00 90 00 91 [11:48:10]RAPDU: 90 00 [11:48:10]wFMCommunicate OK [11:48:10]wFMCommunicate request_size=255 [11:48:10]MH_SAM_APDU [11:48:10]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 [11:48:10]Write to MH i2c: E2 02 01 1A 04 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 4F [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:10]Read from MH i2c: E2 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 03 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 03 00 1A 04 00 90 00 92 [11:48:10]RAPDU: 90 00 [11:48:10]wFMCommunicate OK [11:48:10]wFMCommunicate request_size=138 [11:48:10]MH_SAM_APDU [11:48:10]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 F9 03 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9E C2 01 00 35 04 06 00 16 E2 34 1E 76 E2 [11:48:10]Write to MH i2c: E2 8D 00 1B 04 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 F9 03 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9E C2 01 00 35 04 06 00 16 E2 34 1E 76 E2 00 00 59 [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:10]Read from MH i2c: E2 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 03 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 03 00 1B 04 00 90 00 93 [11:48:10]RAPDU: 90 00 [11:48:10]wFMCommunicate OK [11:48:10]wFMCommunicate request_size=4 [11:48:10]MH_SAM_APDU [11:48:10]CAPDU: 80 0D 03 02 [11:48:10]Write to MH i2c: E2 08 00 1C 04 80 0D 03 02 00 00 00 00 9B [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:10]Read from MH i2c: E2 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 0B 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 0B 00 1C 04 00 68 DF 4C D0 EA 2B 29 BD 90 00 FA [11:48:10]RAPDU: 68 DF 4C D0 EA 2B 29 BD 90 00 [11:48:10]wFMCommunicate OK [11:48:10]SAM_PROTO_SignData done [11:48:10]FM_MakeSignedData done [11:48:10]CreateOFDProtocolMessage [11:48:10]wFMCommunicate request_size=4 [11:48:10]MH_SAM_APDU [11:48:10]CAPDU: 80 11 00 00 [11:48:10]Write to MH i2c: E2 08 00 1D 04 80 11 00 00 00 00 00 00 9B [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:10]Read from MH i2c: E2 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 17 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 17 00 1D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E9 [11:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:48:10]wFMCommunicate OK [11:48:10]CreateOFDProtocolMessage done [11:48:10]OFDSenderStorePacket 115358 [11:48:10]StoreOFDPacket docnum=115358 [11:48:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8F 01 00 00 BF 4B 87 01 00 99 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 F9 03 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9E C2 01 00 35 04 06 00 16 E2 34 1E 76 E2 68 DF 4C D0 EA 2B 29 BD [11:48:10]CheckFolder [11:48:10]dirname=/storage/ofd_packets [11:48:10]CheckFolder done [11:48:10]ProducePacketName [11:48:10]name=ofd_packets/00115358 [11:48:10]NVStorageSaveData ofd_packets/00115358 [11:48:10]File name is /storage/ofd_packets/00115358 [11:48:10]Write 429 bytes [11:48:10]NVStorageSaveData done [11:48:10]OFDSenderStorePacket done [11:48:10]KKMCreateOFDPacket done [11:48:10]NVStorageSaveData kkm_last_timestamp [11:48:10]File name is /storage/kkm_last_timestamp [11:48:10]Write 4 bytes [11:48:10]NVStorageSaveData done [11:48:10]ExternCall_PrintAddStr [11:48:10]wPrintStart [11:48:10]Write to MH i2c: 01 00 00 1E 04 22 [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: 01 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: 01 07 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: 01 07 00 1E 04 00 00 00 00 00 FF 0F 37 [11:48:10]RasterBufferAndPrint [11:48:10]line Счет N : (3)343814 [11:48:10]line ИНН: 02508201610067 [11:48:10]line Контрольно-Кассовый Чек [11:48:10]line ПРОДАЖА [11:48:10]line Товар: 5449000054227 [11:48:10]line Напиток Кока-Кола 1л [11:48:10]line 1.000 * 105.00 [11:48:10]line = 105.00 [11:48:10]line НДС 12% НСП 1% [11:48:10]line > о реализуемом товаре [11:48:10]line Товар: 5449000006271 [11:48:10]line Напиток Фанта 1л [11:48:10]line 1.000 * 105.00 [11:48:10]line = 105.00 [11:48:10]line НДС 12% НСП 1% [11:48:10]line > о реализуемом товаре [11:48:10]line ИТОГО: 210.00 [11:48:10]line НСП 1% : 1.86 [11:48:10]line НДС 12% : 22.30 [11:48:10]line Наличными: 210.00 [11:48:10]line Безнал.: 0.00 [11:48:10]line Место: АЗС № 90 "Партнер Нефть" [11:48:10]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:48:10]line СНО: Общий режим [11:48:10]line Чек 76 22.09.2024 11:48 [11:48:10]line Смена: 471 ФФД: 1.0 [11:48:10]line ЗНМ: 0300000120 [11:48:10]line РНМ: 0000000000091831 [11:48:10]line Версия ККМ: 001 [11:48:10]line ФМ: 0000000000871830 [11:48:10]line ФД: 115358 [11:48:10]line ФПД: 25160792831714 [11:48:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T114809&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115358&fm=25160792831714&tin=02508201610067®Number=0000000000091831&sum=21000 [11:48:10]line 0 [11:48:10]OFD Sender: Processing packet 115358 [packets to send 481, broken 480] [11:48:10]ProducePacketName [11:48:10]name=ofd_packets/00115358 [11:48:10]OFD Sender: To server: pG, [11:48:10]CommunicateWithHost lk.salyk.kg:30040 [11:48:10]ConnectInit lk.salyk.kg [11:48:10]written 0, free lines is 4095 [11:48:11]Connected sock=8 [11: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 31 38 33 30 8F 01 00 00 BF 4B 87 01 00 99 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 F9 03 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9E C2 01 00 35 04 06 00 16 E2 34 1E 76 E2 68 DF 4C D0 EA 2B 29 BD [11:48:11]Write to MH i2c: 01 00 00 4B 04 4F [11:48:11]Write i2c OK [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: 01 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: 01 07 00 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: 01 07 00 4B 04 00 00 00 00 00 14 0C 76 [11:48:11]RasterBufferAndPrint [11:48:11]line [11:48:11]line [11:48:11]line [11:48:11]line [11:48:11]line [11:48:11]written 0, free lines is 3095 [11:48:11]MH_Cut [11:48:11]Write to MH i2c: D1 01 00 52 04 01 28 [11:48:11]Write i2c OK [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: D1 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: D1 01 00 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: D1 01 00 52 04 00 27 [11:48:11]Write to MH i2c: 01 00 00 53 04 57 [11:48:11]Write i2c OK [11:48:11]MH_I2C_Read... [11:48:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 0D 67 47 00 4F 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9E C2 01 00 F4 03 04 00 40 A9 EF 66 B6 04 01 00 00 DD C5 51 F5 50 AA 52 6E [11:48:11]CommunicateWithHost err = 0 [11:48:11]CheckOFDResponse [11:48:11]1017 (14) - 77093643461234 [11:48:11]1041 (16) - 0000000000871830 [11:48:11]1040 (4) - 115358 [11:48:11]1012 (4) - 22.09.2024 05:21 [11:48:11]1206 (1) - 0 [11:48:11]OFD Sender: Remove packet 115358 [11:48:11]ProducePacketName [11:48:11]name=ofd_packets/00115358 [11:48:11]NVStorageDeleteData [11:48:12]OFD Sender: No OFD packet to send [11:48:12]*** Cut start [11:48:12]*** Partial cut [11:48:12]*** CUTSNS_PIN = 1 [11:48:12]*** CUTSNS_PIN = 0 [11:48:13]*** Brake cut motor [11:48:13]Read from MH i2c: 01 [11:48:13]MH_I2C_Read... [11:48:13]*** Stop cut motor [11:48:13]*** Cut end [11:48:13]Read from MH i2c: 01 07 00 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: 01 07 00 53 04 00 00 00 00 00 FF 0F 6C [11:48:13]process_action close_receipt done [11:48:13]requested_data is exist [11:48:13]produce_requested_data [11:48:13]requested_item fm.sn is exist - process it [11:48:13]wFMCommunicate request_size=4 [11:48:13]MH_SAM_APDU [11:48:13]CAPDU: 80 11 00 00 [11:48:13]Write to MH i2c: E2 08 00 54 04 80 11 00 00 00 00 00 00 D2 [11:48:13]Write i2c OK [11:48:13]MH_I2C_Read... [11:48:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:13]Read from MH i2c: E2 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 17 00 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 17 00 54 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 20 [11:48:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:48:13]wFMCommunicate OK [11:48:13]requested_item fd.num is exist - process it [11:48:13]SAM_PROTO_GetFieldsCounters [11:48:13]wFMCommunicate request_size=4 [11:48:13]MH_SAM_APDU [11:48:13]CAPDU: 80 13 00 00 [11:48:13]Write to MH i2c: E2 08 00 55 04 80 13 00 00 00 00 00 00 D5 [11:48:13]Write i2c OK [11:48:13]MH_I2C_Read... [11:48:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:13]Read from MH i2c: E2 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 62 00 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 62 00 55 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9E C2 01 00 0E 04 04 00 D7 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 0B [11: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9E C2 01 00 0E 04 04 00 D7 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 [11:48:13]wFMCommunicate OK [11:48:13]SAM_PROTO_GetFieldsCounters done [11:48:13]requested_item shift.num is exist - process it [11:48:13]requested_item shift.opened is exist - process it [11:48:13]req_shift_opened [11:48:13]FM_GetShiftState [11:48:13]SAM_PROTO_GetShiftState [11:48:13]wFMCommunicate request_size=4 [11:48:13]MH_SAM_APDU [11:48:13]CAPDU: 80 13 01 00 [11:48:13]Write to MH i2c: E2 08 00 56 04 80 13 01 00 00 00 00 00 D7 [11:48:13]Write i2c OK [11:48:13]MH_I2C_Read... [11:48:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:13]Read from MH i2c: E2 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 0E 00 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 0E 00 56 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F0 [11:48:13]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:48:13]wFMCommunicate OK [11:48:13]SAM_PROTO_GetShiftState done [11:48:13]FM_GetShiftState done [11:48:13]req_shift_opened done [11:48:13]requested_item shift.open_date is exist - process it [11:48:13]req_shift_open_date [11:48:13]req_shift_open_date done [11:48:13]produce_requested_data done [11:48:13]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115358,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [11:48:13]process_action_free close_receipt [11:48:13]json_value_free [11:48:13]json_value_free done [11:48:13]process_json_proto returns [11:48:13]Send response to host [11:48:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115358,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [11:48:13]free response buf [11:48:13]execute_script done [11:48:13]execute_script returns [11:48:13]free content buf [11:48:13]Sock 9.Close socket [11:48:13]Sock 9.Thread stoped [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:41]accept exits with 10 [11:48:41]New connection [11:48:41]New thread 3066826084 created [11:48:41]Thread 3066682724 joined [11:48:41]Waiting for new connection... [11:48:41] Sock 10.Parse request [11:48:41]Sock 10.Check first char [11:48:41]Sock 10.First char is OK [11:48:41]request: POST /json_proto HTTP/1.0 [11:48:41]Method: POST [11:48:41]URL: /json_proto [11:48:41]Method is POST - this is cgi request [11:48:41]url: /json_proto [11:48:41]query_string will be loaded in cgi processing [11:48:41]execute_cgi json_proto POST (null) [11:48:41]execute_cgi path=json_proto method=POST [11:48:41]POST find Content-Length [11:48:41]Host: 172.17.41.136:8080 [11:48:41]Content-Length: 644 [11:48:41]Content-Type: application/json [11:48:41] [11:48:41]POST finish read [11:48:41]Found Content-Length = 644 [11:48:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343815", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:41]execute_script... [11:48:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343815", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:41]POST & json_proto [11:48:41]process_json_proto [11:48:41]json parsed OK: [11:48:41]protocol is kg_v1.0 [11:48:41]action value=close_receipt [11:48:41]process_action close_receipt [11:48:41]cmd_close_receipt [11:48:41]MH_GetDate [11:48:41]Write to MH i2c: F0 00 00 57 04 4A [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: F0 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: F0 09 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: F0 09 00 57 04 00 1A 04 F0 66 1B D0 5A 64 70 [11:48:41]GetLastDocTimeStamp 1727005689 [11:48:41]current date 1727005722 [11:48:41]FM_GetShiftState [11:48:41]SAM_PROTO_GetShiftState [11:48:41]wFMCommunicate request_size=4 [11:48:41]MH_SAM_APDU [11:48:41]CAPDU: 80 13 01 00 [11:48:41]Write to MH i2c: E2 08 00 58 04 80 13 01 00 00 00 00 00 D9 [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:41]Read from MH i2c: E2 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 0E 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 0E 00 58 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F2 [11:48:41]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:48:41]wFMCommunicate OK [11:48:41]SAM_PROTO_GetShiftState done [11:48:41]FM_GetShiftState done [11:48:41]opened in 1726965840 [11:48:41]opened+sec_in_day 1727052240 [11:48:41]quantity*price = 3500 [11:48:41]sum+1 = 3501 [11:48:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 77 22.09.2024 11:48 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115359 ФПД: 223944072011011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T114842&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115359&fm=223944072011011&tin=02508201610067®Number=0000000000091831&sum=3500 0 [11:48:42]StoreToDocumentArchive [11:48:42]shift 471 fd 115359 [11:48:42]save to /storage/0471/doc_00115359 [11:48:42]save last doc name /storage/0471/doc_00115359 to /storage/kkm_last_doc_name [11:48:42]save OK [11:48:42]Clear old archive folders... [11:48:42]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:48:42]tlvbuf is 01BFA7D0 [11:48:42]SAM_PROTO_ClearQueue [11:48:42]wFMCommunicate request_size=4 [11:48:42]MH_SAM_APDU [11:48:42]CAPDU: 80 09 00 00 [11:48:42]Write to MH i2c: E2 08 00 65 04 80 09 00 00 00 00 00 00 DB [11:48:42]Write i2c OK [11:48:42]MH_I2C_Read... [11:48:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:42]Read from MH i2c: E2 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: E2 03 00 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: E2 03 00 65 04 00 90 00 DD [11:48:42]RAPDU: 90 00 [11:48:42]wFMCommunicate OK [11:48:42]SAM_PROTO_ClearQueue done [11:48:42]KKMCreateOFDPacket [11:48:42]OFDProtocolAddRootSTLVToBuf [11:48:42]FM_MakeSignedData [11:48:42]FM_MakeSignedData [11:48:42]SAM_PROTO_SignData [11:48:42]wFMCommunicate request_size=4 [11:48:42]MH_SAM_APDU [11:48:42]CAPDU: 80 0D 01 02 [11:48:42]Write to MH i2c: E2 08 00 66 04 80 0D 01 02 00 00 00 00 E3 [11:48:42]Write i2c OK [11:48:42]MH_I2C_Read... [11:48:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:42]Read from MH i2c: E2 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: E2 03 00 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: E2 03 00 66 04 00 90 00 DE [11:48:42]RAPDU: 90 00 [11:48:42]wFMCommunicate OK [11:48:42]wFMCommunicate request_size=255 [11:48:42]MH_SAM_APDU [11:48:42]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 1A 04 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 [11:48:42]Write to MH i2c: E2 02 01 67 04 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 1A 04 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 00 00 61 [11:48:42]Write i2c OK [11:48:42]MH_I2C_Read... [11:48:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:43]Read from MH i2c: E2 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 03 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 03 00 67 04 00 90 00 DF [11:48:43]RAPDU: 90 00 [11:48:43]wFMCommunicate OK [11:48:43]wFMCommunicate request_size=34 [11:48:43]MH_SAM_APDU [11:48:43]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9F C2 01 00 35 04 06 00 CB AD 0A DC 9D 03 [11:48:43]Write to MH i2c: E2 25 00 68 04 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9F C2 01 00 35 04 06 00 CB AD 0A DC 9D 03 00 00 02 [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:43]Read from MH i2c: E2 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 03 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 03 00 68 04 00 90 00 E0 [11:48:43]RAPDU: 90 00 [11:48:43]wFMCommunicate OK [11:48:43]wFMCommunicate request_size=4 [11:48:43]MH_SAM_APDU [11:48:43]CAPDU: 80 0D 03 02 [11:48:43]Write to MH i2c: E2 08 00 69 04 80 0D 03 02 00 00 00 00 E8 [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:43]Read from MH i2c: E2 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 0B 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 0B 00 69 04 00 BD 77 86 89 44 A4 48 B4 90 00 10 [11:48:43]RAPDU: BD 77 86 89 44 A4 48 B4 90 00 [11:48:43]wFMCommunicate OK [11:48:43]SAM_PROTO_SignData done [11:48:43]FM_MakeSignedData done [11:48:43]CreateOFDProtocolMessage [11:48:43]wFMCommunicate request_size=4 [11:48:43]MH_SAM_APDU [11:48:43]CAPDU: 80 11 00 00 [11:48:43]Write to MH i2c: E2 08 00 6A 04 80 11 00 00 00 00 00 00 E8 [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:43]Read from MH i2c: E2 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 17 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 17 00 6A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 36 [11:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:48:43]wFMCommunicate OK [11:48:43]CreateOFDProtocolMessage done [11:48:43]OFDSenderStorePacket 115359 [11:48:43]StoreOFDPacket docnum=115359 [11:48:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 BB CC 1F 01 16 F7 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 1A 04 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9F C2 01 00 35 04 06 00 CB AD 0A DC 9D 03 BD 77 86 89 44 A4 48 B4 [11:48:43]CheckFolder [11:48:43]dirname=/storage/ofd_packets [11:48:43]CheckFolder done [11:48:43]ProducePacketName [11:48:43]name=ofd_packets/00115359 [11:48:43]NVStorageSaveData ofd_packets/00115359 [11:48:43]File name is /storage/ofd_packets/00115359 [11:48:43]Write 325 bytes [11:48:43]NVStorageSaveData done [11:48:43]OFDSenderStorePacket done [11:48:43]KKMCreateOFDPacket done [11:48:43]NVStorageSaveData kkm_last_timestamp [11:48:43]File name is /storage/kkm_last_timestamp [11:48:43]Write 4 bytes [11:48:43]NVStorageSaveData done [11:48:43]ExternCall_PrintAddStr [11:48:43]wPrintStart [11:48:43]Write to MH i2c: 01 00 00 6B 04 6F [11:48:43]OFD Sender: Processing packet 115359 [packets to send 481, broken 480] [11:48:43]ProducePacketName [11:48:43]name=ofd_packets/00115359 [11:48:43]OFD Sender: To server: pG, [11:48:43]CommunicateWithHost lk.salyk.kg:30040 [11:48:43]ConnectInit lk.salyk.kg [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: 01 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: 01 07 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: 01 07 00 6B 04 00 00 00 00 00 FF 0F 84 [11:48:43]RasterBufferAndPrint [11:48:43]line Счет N : (3)343815 [11:48:43]line ИНН: 02508201610067 [11:48:43]line Контрольно-Кассовый Чек [11:48:43]line ПРОДАЖА [11:48:43]line Товар: 4700000310326 [11:48:43]line Вода Адыгене 1л б/г [11:48:43]line 1.000 * 35.00 [11:48:43]line = 35.00 [11:48:43]line НДС 12% НСП 1% [11:48:43]line > о реализуемом товаре [11:48:43]line ИТОГО: 35.00 [11:48:43]line НСП 1% : 0.31 [11:48:43]line НДС 12% : 3.72 [11:48:43]line Наличными: 35.00 [11:48:43]line Безнал.: 0.00 [11:48:43]line Место: АЗС № 90 "Партнер Нефть" [11:48:43]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:48:43]line СНО: Общий режим [11:48:43]line Чек 77 22.09.2024 11:48 [11:48:43]line Смена: 471 ФФД: 1.0 [11:48:43]line ЗНМ: 0300000120 [11:48:43]line РНМ: 0000000000091831 [11:48:43]line Версия ККМ: 001 [11:48:43]line ФМ: 0000000000871830 [11:48:43]line ФД: 115359 [11:48:43]line ФПД: 223944072011011 [11:48:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T114842&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115359&fm=223944072011011&tin=02508201610067®Number=0000000000091831&sum=3500 [11:48:43]line 0 [11:48:43]written 0, free lines is 4095 [11:48:43]Connected sock=8 [11:48:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 BB CC 1F 01 16 F7 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 1A 04 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9F C2 01 00 35 04 06 00 CB AD 0A DC 9D 03 BD 77 86 89 44 A4 48 B4 [11:48:43]Write to MH i2c: 01 00 00 92 04 96 [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: 01 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: 01 07 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: 01 07 00 92 04 00 00 00 00 00 83 0C 2C [11:48:43]RasterBufferAndPrint [11:48:43]line [11:48:43]line [11:48:43]line [11:48:43]line [11:48:43]line [11:48:43]written 0, free lines is 3209 [11:48:43]MH_Cut [11:48:43]Write to MH i2c: D1 01 00 99 04 01 6F [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: D1 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: D1 01 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: D1 01 00 99 04 00 6E [11:48:43]Write to MH i2c: 01 00 00 9A 04 9E [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 94 04 47 00 A5 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 31 38 33 30 10 04 04 00 9F C2 01 00 F4 03 04 00 60 A9 EF 66 B6 04 01 00 00 BB C9 E9 34 DB D5 0C 27 [11:48:44]CommunicateWithHost err = 0 [11:48:44]CheckOFDResponse [11:48:44]1017 (14) - 77093643461234 [11:48:44]1041 (16) - 0000000000871830 [11:48:44]1040 (4) - 115359 [11:48:44]1012 (4) - 22.09.2024 05:21 [11:48:44]1206 (1) - 0 [11:48:44]OFD Sender: Remove packet 115359 [11:48:44]ProducePacketName [11:48:44]name=ofd_packets/00115359 [11:48:44]NVStorageDeleteData [11:48:44]OFD Sender: No OFD packet to send [11:48:45]*** Cut start [11:48:45]*** Partial cut [11:48:45]*** CUTSNS_PIN = 1 [11:48:45]*** CUTSNS_PIN = 0 [11:48:45]*** Brake cut motor [11:48:45]Read from MH i2c: 01 [11:48:45]MH_I2C_Read... [11:48:45]*** Stop cut motor [11:48:45]*** Cut end [11:48:45]Read from MH i2c: 01 07 00 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: 01 07 00 9A 04 00 00 00 00 00 FF 0F B3 [11:48:45]process_action close_receipt done [11:48:45]requested_data is exist [11:48:45]produce_requested_data [11:48:45]requested_item fm.sn is exist - process it [11:48:45]wFMCommunicate request_size=4 [11:48:45]MH_SAM_APDU [11:48:45]CAPDU: 80 11 00 00 [11:48:45]Write to MH i2c: E2 08 00 9B 04 80 11 00 00 00 00 00 00 19 [11:48:45]Write i2c OK [11:48:45]MH_I2C_Read... [11:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:45]Read from MH i2c: E2 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 17 00 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 17 00 9B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 67 [11:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:48:45]wFMCommunicate OK [11:48:45]requested_item fd.num is exist - process it [11:48:45]SAM_PROTO_GetFieldsCounters [11:48:45]wFMCommunicate request_size=4 [11:48:45]MH_SAM_APDU [11:48:45]CAPDU: 80 13 00 00 [11:48:45]Write to MH i2c: E2 08 00 9C 04 80 13 00 00 00 00 00 00 1C [11:48:45]Write i2c OK [11:48:45]MH_I2C_Read... [11:48:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:45]Read from MH i2c: E2 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 62 00 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 62 00 9C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9F C2 01 00 0E 04 04 00 D7 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 56 [11:48:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9F C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:45]wFMCommunicate OK [11:48:45]SAM_PROTO_GetFieldsCounters done [11:48:45]requested_item shift.num is exist - process it [11:48:45]requested_item shift.opened is exist - process it [11:48:45]req_shift_opened [11:48:45]FM_GetShiftState [11:48:45]SAM_PROTO_GetShiftState [11:48:45]wFMCommunicate request_size=4 [11:48:45]MH_SAM_APDU [11:48:45]CAPDU: 80 13 01 00 [11:48:45]Write to MH i2c: E2 08 00 9D 04 80 13 01 00 00 00 00 00 1E [11:48:45]Write i2c OK [11:48:45]MH_I2C_Read... [11:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:45]Read from MH i2c: E2 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 0E 00 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 0E 00 9D 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 37 [11:48:45]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:48:45]wFMCommunicate OK [11:48:45]SAM_PROTO_GetShiftState done [11:48:45]FM_GetShiftState done [11:48:45]req_shift_opened done [11:48:45]requested_item shift.open_date is exist - process it [11:48:45]req_shift_open_date [11:48:45]req_shift_open_date done [11:48:45]produce_requested_data done [11:48:45]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115359,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [11:48:45]process_action_free close_receipt [11:48:45]json_value_free [11:48:45]json_value_free done [11:48:45]process_json_proto returns [11:48:45]Send response to host [11:48:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115359,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [11:48:45]free response buf [11:48:45]execute_script done [11:48:45]execute_script returns [11:48:45]free content buf [11:48:45]Sock 10.Close socket [11:48:45]Sock 10.Thread stoped [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:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:53]accept exits with 9 [11:49:53]New connection [11:49:53]New thread 3066682724 created [11:49:53]Thread 3066826084 joined [11:49:53]Waiting for new connection... [11:49:53] Sock 9.Parse request [11:49:53]Sock 9.Check first char [11:49:53]Sock 9.First char is OK [11:49:53]request: POST /json_proto HTTP/1.0 [11:49:53]Method: POST [11:49:53]URL: /json_proto [11:49:53]Method is POST - this is cgi request [11:49:53]url: /json_proto [11:49:53]query_string will be loaded in cgi processing [11:49:53]execute_cgi json_proto POST (null) [11:49:53]execute_cgi path=json_proto method=POST [11:49:53]POST find Content-Length [11:49:53]Host: 172.17.41.136:8080 [11:49:53]Content-Length: 925 [11:49:53]Content-Type: application/json [11:49:53] [11:49:53]POST finish read [11:49:53]Found Content-Length = 925 [11:49:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343816", "tax_sys" : 0, "items" : [ { "code": "4620017453130", "name": "\u0422\u0430\u0440\u0430\u043B\u043B\u0438\u043D\u0438 NF 180\u0433 \u043A\u043B\u0430\u0441", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:53]execute_script... [11:49:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343816", "tax_sys" : 0, "items" : [ { "code": "4620017453130", "name": "\u0422\u0430\u0440\u0430\u043B\u043B\u0438\u043D\u0438 NF 180\u0433 \u043A\u043B\u0430\u0441", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:53]POST & json_proto [11:49:53]process_json_proto [11:49:53]json parsed OK: [11:49:53]protocol is kg_v1.0 [11:49:53]action value=close_receipt [11:49:53]process_action close_receipt [11:49:53]cmd_close_receipt [11:49:53]MH_GetDate [11:49:53]Write to MH i2c: F0 00 00 9E 04 91 [11:49:53]Write i2c OK [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: F0 [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: F0 09 00 [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: F0 09 00 9E 04 00 62 04 F0 66 1B D0 5A 64 FF [11:49:53]GetLastDocTimeStamp 1727005722 [11:49:53]current date 1727005794 [11:49:53]FM_GetShiftState [11:49:53]SAM_PROTO_GetShiftState [11:49:53]wFMCommunicate request_size=4 [11:49:53]MH_SAM_APDU [11:49:53]CAPDU: 80 13 01 00 [11:49:53]Write to MH i2c: E2 08 00 9F 04 80 13 01 00 00 00 00 00 20 [11:49:53]Write i2c OK [11:49:53]MH_I2C_Read... [11:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:53]Read from MH i2c: E2 [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: E2 0E 00 [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: E2 0E 00 9F 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 39 [11:49:53]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:49:53]wFMCommunicate OK [11:49:53]SAM_PROTO_GetShiftState done [11:49:53]FM_GetShiftState done [11:49:53]opened in 1726965840 [11:49:53]opened+sec_in_day 1727052240 [11:49:53]quantity*price = 9000 [11:49:53]sum+1 = 9001 [11:49:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620016307540 Салфетки Absolut Nat FITOGUARD алоэ 20 ш 1.000 * 55.00 = 55.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.29 НДС 12% : 15.40 Наличными: 145.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 78 22.09.2024 11:49 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115360 ФПД: 142742882153893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T114954&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115360&fm=142742882153893&tin=02508201610067®Number=0000000000091831&sum=14500 0 [11:49:54]StoreToDocumentArchive [11:49:54]shift 471 fd 115360 [11:49:54]save to /storage/0471/doc_00115360 [11:49:54]save last doc name /storage/0471/doc_00115360 to /storage/kkm_last_doc_name [11:49:54]save OK [11:49:54]Clear old archive folders... [11:49:54]ProcessDocumentItem done err = 0, tmpTLVsize=403 [11:49:54]tlvbuf is 01BE4410 [11:49:54]SAM_PROTO_ClearQueue [11:49:54]wFMCommunicate request_size=4 [11:49:54]MH_SAM_APDU [11:49:54]CAPDU: 80 09 00 00 [11:49:54]Write to MH i2c: E2 08 00 AC 04 80 09 00 00 00 00 00 00 22 [11:49:54]Write i2c OK [11:49:54]MH_I2C_Read... [11:49:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:54]Read from MH i2c: E2 [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: E2 03 00 [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: E2 03 00 AC 04 00 90 00 24 [11:49:54]RAPDU: 90 00 [11:49:54]wFMCommunicate OK [11:49:54]SAM_PROTO_ClearQueue done [11:49:54]KKMCreateOFDPacket [11:49:54]OFDProtocolAddRootSTLVToBuf [11:49:54]FM_MakeSignedData [11:49:54]FM_MakeSignedData [11:49:54]SAM_PROTO_SignData [11:49:54]wFMCommunicate request_size=4 [11:49:54]MH_SAM_APDU [11:49:54]CAPDU: 80 0D 01 02 [11:49:54]Write to MH i2c: E2 08 00 AD 04 80 0D 01 02 00 00 00 00 2A [11:49:54]Write i2c OK [11:49:54]MH_I2C_Read... [11:49:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:54]Read from MH i2c: E2 [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: E2 03 00 [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: E2 03 00 AD 04 00 90 00 25 [11:49:54]RAPDU: 90 00 [11:49:54]wFMCommunicate OK [11:49:54]wFMCommunicate request_size=255 [11:49:54]MH_SAM_APDU [11:49:54]CAPDU: 80 0D 02 02 FA 03 00 93 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 [11:49:54]Write to MH i2c: E2 02 01 AE 04 80 0D 02 02 FA 00 03 00 93 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 C1 [11:49:54]Write i2c OK [11:49:54]MH_I2C_Read... [11:49:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:55]Read from MH i2c: E2 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 03 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 03 00 AE 04 00 90 00 26 [11:49:55]RAPDU: 90 00 [11:49:55]wFMCommunicate OK [11:49:55]wFMCommunicate request_size=162 [11:49:55]MH_SAM_APDU [11:49:55]CAPDU: 80 0D 02 02 9D 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 62 04 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A0 C2 01 00 35 04 06 00 81 D2 EA C8 F5 A5 [11:49:55]Write to MH i2c: E2 A5 00 AF 04 80 0D 02 02 9D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 62 04 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A0 C2 01 00 35 04 06 00 81 D2 EA C8 F5 A5 00 00 E7 [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:55]Read from MH i2c: E2 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 03 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 03 00 AF 04 00 90 00 27 [11:49:55]RAPDU: 90 00 [11:49:55]wFMCommunicate OK [11:49:55]wFMCommunicate request_size=4 [11:49:55]MH_SAM_APDU [11:49:55]CAPDU: 80 0D 03 02 [11:49:55]Write to MH i2c: E2 08 00 B0 04 80 0D 03 02 00 00 00 00 2F [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:55]Read from MH i2c: E2 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 0B 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 0B 00 B0 04 00 1B A0 8B 10 49 EE 77 49 90 00 7D [11:49:55]RAPDU: 1B A0 8B 10 49 EE 77 49 90 00 [11:49:55]wFMCommunicate OK [11:49:55]SAM_PROTO_SignData done [11:49:55]FM_MakeSignedData done [11:49:55]CreateOFDProtocolMessage [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 B1 04 80 11 00 00 00 00 00 00 2F [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 B1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7D [11:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:49:55]wFMCommunicate OK [11:49:55]CreateOFDProtocolMessage done [11:49:55]OFDSenderStorePacket 115360 [11:49:55]StoreOFDPacket docnum=115360 [11:49:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A7 01 00 00 FC C1 9F 01 24 32 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 62 04 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A0 C2 01 00 35 04 06 00 81 D2 EA C8 F5 A5 1B A0 8B 10 49 EE 77 49 [11:49:55]CheckFolder [11:49:55]dirname=/storage/ofd_packets [11:49:55]CheckFolder done [11:49:55]ProducePacketName [11:49:55]name=ofd_packets/00115360 [11:49:55]NVStorageSaveData ofd_packets/00115360 [11:49:55]File name is /storage/ofd_packets/00115360 [11:49:55]Write 453 bytes [11:49:55]NVStorageSaveData done [11:49:55]OFDSenderStorePacket done [11:49:55]KKMCreateOFDPacket done [11:49:55]NVStorageSaveData kkm_last_timestamp [11:49:55]File name is /storage/kkm_last_timestamp [11:49:55]Write 4 bytes [11:49:55]NVStorageSaveData done [11:49:55]ExternCall_PrintAddStr [11:49:55]wPrintStart [11:49:55]Write to MH i2c: 01 00 00 B2 04 B6 [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: 01 [11:49:55]MH_I2C_Read... [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 B2 04 00 00 00 00 00 FF 0F CB [11:49:55]RasterBufferAndPrint [11:49:55]line Счет N : (3)343816 [11:49:55]line ИНН: 02508201610067 [11:49:55]line Контрольно-Кассовый Чек [11:49:55]line ПРОДАЖА [11:49:55]line Товар: 4620017453130 [11:49:55]line Тараллини NF 180г клас [11:49:55]line 1.000 * 90.00 [11:49:55]line = 90.00 [11:49:55]line НДС 12% НСП 1% [11:49:55]line > о реализуемом товаре [11:49:55]line Товар: 4620016307540 [11:49:55]line Салфетки Absolut Nat FITOGUARD алоэ 20 ш [11:49:55]line 1.000 * 55.00 [11:49:55]line = 55.00 [11:49:55]line НДС 12% НСП 1% [11:49:55]line > о реализуемом товаре [11:49:55]line ИТОГО: 145.00 [11:49:55]line НСП 1% : 1.29 [11:49:55]line НДС 12% : 15.40 [11:49:55]line Наличными: 145.00 [11:49:55]line Безнал.: 0.00 [11:49:55]line Место: АЗС № 90 "Партнер Нефть" [11:49:55]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:49:55]line СНО: Общий режим [11:49:55]line Чек 78 22.09.2024 11:49 [11:49:55]line Смена: 471 ФФД: 1.0 [11:49:55]line ЗНМ: 0300000120 [11:49:55]line РНМ: 0000000000091831 [11:49:55]line Версия ККМ: 001 [11:49:55]line ФМ: 0000000000871830 [11:49:55]line ФД: 115360 [11:49:55]line ФПД: 142742882153893 [11:49:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T114954&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115360&fm=142742882153893&tin=02508201610067®Number=0000000000091831&sum=14500 [11:49:55]line 0 [11:49:55]OFD Sender: Processing packet 115360 [packets to send 481, broken 480] [11:49:55]ProducePacketName [11:49:55]name=ofd_packets/00115360 [11:49:55]OFD Sender: To server: pG, [11:49:55]CommunicateWithHost lk.salyk.kg:30040 [11:49:55]ConnectInit lk.salyk.kg [11:49:55]written 0, free lines is 4095 [11:49:56]Connected sock=10 [11:49:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A7 01 00 00 FC C1 9F 01 24 32 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 62 04 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A0 C2 01 00 35 04 06 00 81 D2 EA C8 F5 A5 1B A0 8B 10 49 EE 77 49 [11:49:56]Write to MH i2c: 01 00 00 E0 04 E4 [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: 01 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: 01 07 00 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: 01 07 00 E0 04 00 00 00 00 00 FD 0B F3 [11:49:56]RasterBufferAndPrint [11:49:56]line [11:49:56]line [11:49:56]line [11:49:56]line [11:49:56]line [11:49:56]written 0, free lines is 3071 [11:49:56]MH_Cut [11:49:56]Write to MH i2c: D1 01 00 E7 04 01 BD [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: D1 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: D1 01 00 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: D1 01 00 E7 04 00 BC [11:49:56]Write to MH i2c: 01 00 00 E8 04 EC [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 59 27 47 00 B3 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A0 C2 01 00 F4 03 04 00 A9 A9 EF 66 B6 04 01 00 00 C3 67 29 A2 F5 A8 2C 4F [11:49:56]CommunicateWithHost err = 0 [11:49:56]CheckOFDResponse [11:49:56]1017 (14) - 77093643461234 [11:49:56]1041 (16) - 0000000000871830 [11:49:56]1040 (4) - 115360 [11:49:56]1012 (4) - 22.09.2024 05:22 [11:49:56]1206 (1) - 0 [11:49:56]OFD Sender: Remove packet 115360 [11:49:56]ProducePacketName [11:49:56]name=ofd_packets/00115360 [11:49:56]NVStorageDeleteData [11:49:56]OFD Sender: No OFD packet to send [11:49:57]*** Cut start [11:49:57]*** Partial cut [11:49:57]*** CUTSNS_PIN = 1 [11:49:57]*** CUTSNS_PIN = 0 [11:49:58]*** Brake cut motor [11:49:58]Read from MH i2c: 01 [11:49:58]MH_I2C_Read... [11:49:58]*** Stop cut motor [11:49:58]*** Cut end [11:49:58]Read from MH i2c: 01 07 00 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: 01 07 00 E8 04 00 00 00 00 00 FF 0F 01 [11:49:58]process_action close_receipt done [11:49:58]requested_data is exist [11:49:58]produce_requested_data [11:49:58]requested_item fm.sn is exist - process it [11:49:58]wFMCommunicate request_size=4 [11:49:58]MH_SAM_APDU [11:49:58]CAPDU: 80 11 00 00 [11:49:58]Write to MH i2c: E2 08 00 E9 04 80 11 00 00 00 00 00 00 67 [11:49:58]Write i2c OK [11:49:58]MH_I2C_Read... [11:49:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:58]Read from MH i2c: E2 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 17 00 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 17 00 E9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B5 [11:49:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:49:58]wFMCommunicate OK [11:49:58]requested_item fd.num is exist - process it [11:49:58]SAM_PROTO_GetFieldsCounters [11:49:58]wFMCommunicate request_size=4 [11:49:58]MH_SAM_APDU [11:49:58]CAPDU: 80 13 00 00 [11:49:58]Write to MH i2c: E2 08 00 EA 04 80 13 00 00 00 00 00 00 6A [11:49:58]Write i2c OK [11:49:58]MH_I2C_Read... [11:49:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:58]Read from MH i2c: E2 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 62 00 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 62 00 EA 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A0 C2 01 00 0E 04 04 00 D7 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 A8 [11:49:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A0 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:58]wFMCommunicate OK [11:49:58]SAM_PROTO_GetFieldsCounters done [11:49:58]requested_item shift.num is exist - process it [11:49:58]requested_item shift.opened is exist - process it [11:49:58]req_shift_opened [11:49:58]FM_GetShiftState [11:49:58]SAM_PROTO_GetShiftState [11:49:58]wFMCommunicate request_size=4 [11:49:58]MH_SAM_APDU [11:49:58]CAPDU: 80 13 01 00 [11:49:58]Write to MH i2c: E2 08 00 EB 04 80 13 01 00 00 00 00 00 6C [11:49:58]Write i2c OK [11:49:58]MH_I2C_Read... [11:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:58]Read from MH i2c: E2 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 0E 00 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 0E 00 EB 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 85 [11:49:58]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:49:58]wFMCommunicate OK [11:49:58]SAM_PROTO_GetShiftState done [11:49:58]FM_GetShiftState done [11:49:58]req_shift_opened done [11:49:58]requested_item shift.open_date is exist - process it [11:49:58]req_shift_open_date [11:49:58]req_shift_open_date done [11:49:58]produce_requested_data done [11:49:58]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115360,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [11:49:58]process_action_free close_receipt [11:49:58]json_value_free [11:49:58]json_value_free done [11:49:58]process_json_proto returns [11:49:58]Send response to host [11:49:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115360,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [11:49:58]free response buf [11:49:58]execute_script done [11:49:58]execute_script returns [11:49:58]free content buf [11:49:58]Sock 9.Close socket [11:49:58]Sock 9.Thread stoped [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50: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:39]accept exits with 8 [11:50:39]New connection [11:50:39]New thread 3066826084 created [11:50:39]Thread 3066682724 joined [11:50:39]Waiting for new connection... [11:50:39] Sock 8.Parse request [11:50:39]Sock 8.Check first char [11:50:39]Sock 8.First char is OK [11:50:39]request: POST /json_proto HTTP/1.0 [11:50:39]Method: POST [11:50:39]URL: /json_proto [11:50:39]Method is POST - this is cgi request [11:50:39]url: /json_proto [11:50:39]query_string will be loaded in cgi processing [11:50:39]execute_cgi json_proto POST (null) [11:50:39]execute_cgi path=json_proto method=POST [11:50:39]POST find Content-Length [11:50:39]Host: 172.17.41.136:8080 [11:50:39]Content-Length: 655 [11:50:39]Content-Type: application/json [11:50:39] [11:50:39]POST finish read [11:50:39]Found Content-Length = 655 [11:50:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343817", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:39]execute_script... [11:50:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343817", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:39]POST & json_proto [11:50:39]process_json_proto [11:50:39]json parsed OK: [11:50:39]protocol is kg_v1.0 [11:50:39]action value=close_receipt [11:50:39]process_action close_receipt [11:50:39]cmd_close_receipt [11:50:39]MH_GetDate [11:50:39]Write to MH i2c: F0 00 00 EC 04 DF [11:50:39]Write i2c OK [11:50:39]MH_I2C_Read... [11:50:39]Read from MH i2c: F0 [11:50:39]MH_I2C_Read... [11:50:39]Read from MH i2c: F0 09 00 [11:50:39]MH_I2C_Read... [11:50:39]Read from MH i2c: F0 09 00 EC 04 00 90 04 F0 66 1B D0 5A 64 7B [11:50:39]GetLastDocTimeStamp 1727005794 [11:50:39]current date 1727005840 [11:50:39]FM_GetShiftState [11:50:39]SAM_PROTO_GetShiftState [11:50:39]wFMCommunicate request_size=4 [11:50:39]MH_SAM_APDU [11:50:39]CAPDU: 80 13 01 00 [11:50:39]Write to MH i2c: E2 08 00 ED 04 80 13 01 00 00 00 00 00 6E [11:50:39]Write i2c OK [11:50:39]MH_I2C_Read... [11:50:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:39]Read from MH i2c: E2 [11:50:39]MH_I2C_Read... [11:50:39]Read from MH i2c: E2 0E 00 [11:50:39]MH_I2C_Read... [11:50:39]Read from MH i2c: E2 0E 00 ED 04 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 87 [11:50:39]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:50:39]wFMCommunicate OK [11:50:39]SAM_PROTO_GetShiftState done [11:50:39]FM_GetShiftState done [11:50:39]opened in 1726965840 [11:50:39]opened+sec_in_day 1727052240 [11:50:39]quantity*price = 8500 [11:50:39]sum+1 = 8501 [11:50:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 79 22.09.2024 11:50 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115361 ФПД: 179782492621151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T115040&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115361&fm=179782492621151&tin=02508201610067®Number=0000000000091831&sum=8500 0 [11:50:40]StoreToDocumentArchive [11:50:40]shift 471 fd 115361 [11:50:40]save to /storage/0471/doc_00115361 [11:50:40]save last doc name /storage/0471/doc_00115361 to /storage/kkm_last_doc_name [11:50:40]save OK [11:50:40]Clear old archive folders... [11:50:40]ProcessDocumentItem done err = 0, tmpTLVsize=294 [11:50:40]tlvbuf is 01C05FA0 [11:50:40]SAM_PROTO_ClearQueue [11:50:40]wFMCommunicate request_size=4 [11:50:40]MH_SAM_APDU [11:50:40]CAPDU: 80 09 00 00 [11:50:40]Write to MH i2c: E2 08 00 FA 04 80 09 00 00 00 00 00 00 70 [11:50:40]Write i2c OK [11:50:40]MH_I2C_Read... [11:50:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:40]Read from MH i2c: E2 [11:50:40]MH_I2C_Read... [11:50:40]Read from MH i2c: E2 03 00 [11:50:40]MH_I2C_Read... [11:50:40]Read from MH i2c: E2 03 00 FA 04 00 90 00 72 [11:50:40]RAPDU: 90 00 [11:50:40]wFMCommunicate OK [11:50:40]SAM_PROTO_ClearQueue done [11:50:40]KKMCreateOFDPacket [11:50:40]OFDProtocolAddRootSTLVToBuf [11:50:40]FM_MakeSignedData [11:50:40]FM_MakeSignedData [11:50:40]SAM_PROTO_SignData [11:50:40]wFMCommunicate request_size=4 [11:50:40]MH_SAM_APDU [11:50:40]CAPDU: 80 0D 01 02 [11:50:40]Write to MH i2c: E2 08 00 FB 04 80 0D 01 02 00 00 00 00 78 [11:50:40]Write i2c OK [11:50:40]MH_I2C_Read... [11:50:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:40]Read from MH i2c: E2 [11:50:40]MH_I2C_Read... [11:50:40]Read from MH i2c: E2 03 00 [11:50:40]MH_I2C_Read... [11:50:40]Read from MH i2c: E2 03 00 FB 04 00 90 00 73 [11:50:40]RAPDU: 90 00 [11:50:40]wFMCommunicate OK [11:50:40]wFMCommunicate request_size=255 [11:50:40]MH_SAM_APDU [11:50:40]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 90 04 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [11:50:40]Write to MH i2c: E2 02 01 FC 04 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 90 04 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 6D [11:50:40]Write i2c OK [11:50:40]MH_I2C_Read... [11:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:40]Read from MH i2c: E2 [11:50:40]MH_I2C_Read... [11:50:40]Read from MH i2c: E2 03 00 [11:50:40]MH_I2C_Read... [11:50:40]Read from MH i2c: E2 03 00 FC 04 00 90 00 74 [11:50:40]RAPDU: 90 00 [11:50:40]wFMCommunicate OK [11:50:40]wFMCommunicate request_size=53 [11:50:40]MH_SAM_APDU [11:50:40]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A1 C2 01 00 35 04 06 00 A3 82 DF 9C 09 5F [11:50:40]Write to MH i2c: E2 38 00 FD 04 80 0D 02 02 30 00 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A1 C2 01 00 35 04 06 00 A3 82 DF 9C 09 5F 00 00 D4 [11:50:41]Write i2c OK [11:50:41]MH_I2C_Read... [11:50:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:41]Read from MH i2c: E2 [11:50:41]MH_I2C_Read... [11:50:41]Read from MH i2c: E2 03 00 [11:50:41]MH_I2C_Read... [11:50:41]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [11:50:41]RAPDU: 90 00 [11:50:41]wFMCommunicate OK [11:50:41]wFMCommunicate request_size=4 [11:50:41]MH_SAM_APDU [11:50:41]CAPDU: 80 0D 03 02 [11:50:41]Write to MH i2c: E2 08 00 FE 04 80 0D 03 02 00 00 00 00 7D [11:50:41]Write i2c OK [11:50:41]MH_I2C_Read... [11:50:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:41]Read from MH i2c: E2 [11:50:41]MH_I2C_Read... [11:50:41]Read from MH i2c: E2 0B 00 [11:50:41]MH_I2C_Read... [11:50:41]Read from MH i2c: E2 0B 00 FE 04 00 B1 B7 6C C3 50 94 BC D4 90 00 89 [11:50:41]RAPDU: B1 B7 6C C3 50 94 BC D4 90 00 [11:50:41]wFMCommunicate OK [11:50:41]SAM_PROTO_SignData done [11:50:41]FM_MakeSignedData done [11:50:41]CreateOFDProtocolMessage [11:50:41]wFMCommunicate request_size=4 [11:50:41]MH_SAM_APDU [11:50:41]CAPDU: 80 11 00 00 [11:50:41]Write to MH i2c: E2 08 00 FF 04 80 11 00 00 00 00 00 00 7D [11:50:41]Write i2c OK [11:50:41]MH_I2C_Read... [11:50:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:41]Read from MH i2c: E2 [11:50:41]MH_I2C_Read... [11:50:41]Read from MH i2c: E2 17 00 [11:50:41]MH_I2C_Read... [11:50:41]Read from MH i2c: E2 17 00 FF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CB [11:50:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:50:41]wFMCommunicate OK [11:50:41]CreateOFDProtocolMessage done [11:50:41]OFDSenderStorePacket 115361 [11:50:41]StoreOFDPacket docnum=115361 [11:50:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3A 01 00 00 F7 BA 32 01 E7 5B 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 90 04 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A1 C2 01 00 35 04 06 00 A3 82 DF 9C 09 5F B1 B7 6C C3 50 94 BC D4 [11:50:41]CheckFolder [11:50:41]dirname=/storage/ofd_packets [11:50:41]CheckFolder done [11:50:41]ProducePacketName [11:50:41]name=ofd_packets/00115361 [11:50:41]NVStorageSaveData ofd_packets/00115361 [11:50:41]File name is /storage/ofd_packets/00115361 [11:50:41]Write 344 bytes [11:50:41]NVStorageSaveData done [11:50:41]OFDSenderStorePacket done [11:50:41]KKMCreateOFDPacket done [11:50:41]NVStorageSaveData kkm_last_timestamp [11:50:41]File name is /storage/kkm_last_timestamp [11:50:41]Write 4 bytes [11:50:41]NVStorageSaveData done [11:50:41]ExternCall_PrintAddStr [11:50:41]wPrintStart [11:50:41]Write to MH i2c: 01 00 00 00 05 05 [11:50:41]Write i2c OK [11:50:41]MH_I2C_Read... [11:50:41]Read from MH i2c: 01 [11:50:41]MH_I2C_Read... [11:50:41]Read from MH i2c: 01 07 00 [11:50:41]MH_I2C_Read... [11:50:41]Read from MH i2c: 01 07 00 00 05 00 00 00 00 00 FF 0F 1A [11:50:41]RasterBufferAndPrint [11:50:41]line Счет N : (3)343817 [11:50:41]line ИНН: 02508201610067 [11:50:41]line Контрольно-Кассовый Чек [11:50:41]line ПРОДАЖА [11:50:41]line Товар: 4600682557456 [11:50:41]line Напиток FLash up energy эн ж/б 0,5/0,45л [11:50:41]line 1.000 * 85.00 [11:50:41]line = 85.00 [11:50:41]line НДС 12% НСП 1% [11:50:41]line > о реализуемом товаре [11:50:41]line ИТОГО: 85.00 [11:50:41]line НСП 1% : 0.75 [11:50:41]line НДС 12% : 9.03 [11:50:41]line Наличными: 85.00 [11:50:41]line Безнал.: 0.00 [11:50:41]line Место: АЗС № 90 "Партнер Нефть" [11:50:41]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:50:41]line СНО: Общий режим [11:50:41]line Чек 79 22.09.2024 11:50 [11:50:41]line Смена: 471 ФФД: 1.0 [11:50:41]line ЗНМ: 0300000120 [11:50:41]line РНМ: 0000000000091831 [11:50:41]line Версия ККМ: 001 [11:50:41]line ФМ: 0000000000871830 [11:50:41]line ФД: 115361 [11:50:41]line ФПД: 179782492621151 [11:50:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T115040&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115361&fm=179782492621151&tin=02508201610067®Number=0000000000091831&sum=8500 [11:50:41]line 0 [11:50:41]written 0, free lines is 4095 [11:50:41]OFD Sender: Processing packet 115361 [packets to send 481, broken 480] [11:50:41]ProducePacketName [11:50:41]name=ofd_packets/00115361 [11:50:41]OFD Sender: To server: pG, [11:50:41]CommunicateWithHost lk.salyk.kg:30040 [11:50:41]ConnectInit lk.salyk.kg [11:50:41]Connected sock=9 [11:50:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3A 01 00 00 F7 BA 32 01 E7 5B 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 90 04 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A1 C2 01 00 35 04 06 00 A3 82 DF 9C 09 5F B1 B7 6C C3 50 94 BC D4 [11:50:41]Write to MH i2c: 01 00 00 28 05 2D [11:50:41]Write i2c OK [11:50:41]MH_I2C_Read... [11:50:41]Read from MH i2c: 01 [11:50:41]MH_I2C_Read... [11:50:41]Read from MH i2c: 01 07 00 [11:50:41]MH_I2C_Read... [11:50:41]Read from MH i2c: 01 07 00 28 05 00 00 00 00 00 65 0C A5 [11:50:41]RasterBufferAndPrint [11:50:41]line [11:50:41]line [11:50:41]line [11:50:41]line [11:50:41]line [11:50:41]written 0, free lines is 3178 [11:50:41]MH_Cut [11:50:41]Write to MH i2c: D1 01 00 2F 05 01 06 [11:50:41]Write i2c OK [11:50:41]MH_I2C_Read... [11:50:41]Read from MH i2c: D1 [11:50:41]MH_I2C_Read... [11:50:41]Read from MH i2c: D1 01 00 [11:50:41]MH_I2C_Read... [11:50:41]Read from MH i2c: D1 01 00 2F 05 00 05 [11:50:41]Write to MH i2c: 01 00 00 30 05 35 [11:50:41]Write i2c OK [11:50:41]MH_I2C_Read... [11:50:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A4 FB 47 00 8E A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A1 C2 01 00 F4 03 04 00 D6 A9 EF 66 B6 04 01 00 00 12 A9 D2 3B E8 61 09 84 [11:50:41]CommunicateWithHost err = 0 [11:50:41]CheckOFDResponse [11:50:41]1017 (14) - 77093643461234 [11:50:41]1041 (16) - 0000000000871830 [11:50:41]1040 (4) - 115361 [11:50:41]1012 (4) - 22.09.2024 05:23 [11:50:41]1206 (1) - 0 [11:50:41]OFD Sender: Remove packet 115361 [11:50:41]ProducePacketName [11:50:41]name=ofd_packets/00115361 [11:50:41]NVStorageDeleteData [11:50:42]OFD Sender: No OFD packet to send [11:50:42]*** Cut start [11:50:42]*** Partial cut [11:50:42]*** CUTSNS_PIN = 1 [11:50:42]*** CUTSNS_PIN = 0 [11:50:43]*** Brake cut motor [11:50:43]Read from MH i2c: 01 [11:50:43]MH_I2C_Read... [11:50:43]*** Stop cut motor [11:50:43]*** Cut end [11:50:43]Read from MH i2c: 01 07 00 [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: 01 07 00 30 05 00 00 00 00 00 FF 0F 4A [11:50:43]process_action close_receipt done [11:50:43]requested_data is exist [11:50:43]produce_requested_data [11:50:43]requested_item fm.sn is exist - process it [11:50:43]wFMCommunicate request_size=4 [11:50:43]MH_SAM_APDU [11:50:43]CAPDU: 80 11 00 00 [11:50:43]Write to MH i2c: E2 08 00 31 05 80 11 00 00 00 00 00 00 B0 [11:50:43]Write i2c OK [11:50:43]MH_I2C_Read... [11:50:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:43]Read from MH i2c: E2 [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: E2 17 00 [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: E2 17 00 31 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FE [11:50:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:50:43]wFMCommunicate OK [11:50:43]requested_item fd.num is exist - process it [11:50:43]SAM_PROTO_GetFieldsCounters [11:50:43]wFMCommunicate request_size=4 [11:50:43]MH_SAM_APDU [11:50:43]CAPDU: 80 13 00 00 [11:50:43]Write to MH i2c: E2 08 00 32 05 80 13 00 00 00 00 00 00 B3 [11:50:43]Write i2c OK [11:50:43]MH_I2C_Read... [11:50:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:43]Read from MH i2c: E2 [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: E2 62 00 [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: E2 62 00 32 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A1 C2 01 00 0E 04 04 00 D7 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 F5 [11:50:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A1 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:43]wFMCommunicate OK [11:50:43]SAM_PROTO_GetFieldsCounters done [11:50:43]requested_item shift.num is exist - process it [11:50:43]requested_item shift.opened is exist - process it [11:50:43]req_shift_opened [11:50:43]FM_GetShiftState [11:50:43]SAM_PROTO_GetShiftState [11:50:43]wFMCommunicate request_size=4 [11:50:43]MH_SAM_APDU [11:50:43]CAPDU: 80 13 01 00 [11:50:43]Write to MH i2c: E2 08 00 33 05 80 13 01 00 00 00 00 00 B5 [11:50:43]Write i2c OK [11:50:43]MH_I2C_Read... [11:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:43]Read from MH i2c: E2 [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: E2 0E 00 [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: E2 0E 00 33 05 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 CE [11:50:43]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:50:43]wFMCommunicate OK [11:50:43]SAM_PROTO_GetShiftState done [11:50:43]FM_GetShiftState done [11:50:43]req_shift_opened done [11:50:43]requested_item shift.open_date is exist - process it [11:50:43]req_shift_open_date [11:50:43]req_shift_open_date done [11:50:43]produce_requested_data done [11:50:43]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115361,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [11:50:43]process_action_free close_receipt [11:50:43]json_value_free [11:50:43]json_value_free done [11:50:43]process_json_proto returns [11:50:43]Send response to host [11:50:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115361,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [11:50:43]free response buf [11:50:43]execute_script done [11:50:43]execute_script returns [11:50:43]free content buf [11:50:43]Sock 8.Close socket [11:50:43]Sock 8.Thread stoped [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:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:35]accept exits with 10 [11:57:35]New connection [11:57:35]New thread 3066682724 created [11:57:35]Thread 3066826084 joined [11:57:35]Waiting for new connection... [11:57:35] Sock 10.Parse request [11:57:35]Sock 10.Check first char [11:57:35]Sock 10.First char is OK [11:57:35]request: POST /json_proto HTTP/1.0 [11:57:35]Method: POST [11:57:35]URL: /json_proto [11:57:35]Method is POST - this is cgi request [11:57:35]url: /json_proto [11:57:35]query_string will be loaded in cgi processing [11:57:35]execute_cgi json_proto POST (null) [11:57:35]execute_cgi path=json_proto method=POST [11:57:35]POST find Content-Length [11:57:35]Host: 172.17.41.136:8080 [11:57:35]Content-Length: 804 [11:57:35]Content-Type: application/json [11:57:35] [11:57:35]POST finish read [11:57:35]Found Content-Length = 804 [11:57:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343818", "tax_sys" : 0, "items" : [ { "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:35]execute_script... [11:57:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343818", "tax_sys" : 0, "items" : [ { "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:35]POST & json_proto [11:57:35]process_json_proto [11:57:35]json parsed OK: [11:57:35]protocol is kg_v1.0 [11:57:35]action value=close_receipt [11:57:35]process_action close_receipt [11:57:35]cmd_close_receipt [11:57:35]MH_GetDate [11:57:35]Write to MH i2c: F0 00 00 34 05 28 [11:57:35]Write i2c OK [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: F0 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: F0 09 00 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: F0 09 00 34 05 00 31 06 F0 66 1B D0 5A 64 67 [11:57:35]GetLastDocTimeStamp 1727005840 [11:57:35]current date 1727006257 [11:57:35]FM_GetShiftState [11:57:35]SAM_PROTO_GetShiftState [11:57:35]wFMCommunicate request_size=4 [11:57:35]MH_SAM_APDU [11:57:35]CAPDU: 80 13 01 00 [11:57:35]Write to MH i2c: E2 08 00 35 05 80 13 01 00 00 00 00 00 B7 [11:57:35]Write i2c OK [11:57:35]MH_I2C_Read... [11:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:35]Read from MH i2c: E2 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: E2 0E 00 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: E2 0E 00 35 05 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D0 [11:57:35]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:57:35]wFMCommunicate OK [11:57:35]SAM_PROTO_GetShiftState done [11:57:35]FM_GetShiftState done [11:57:35]opened in 1726965840 [11:57:35]opened+sec_in_day 1727052240 [11:57:35]quantity*price = 3000 [11:57:35]sum+1 = 3001 [11:57:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 30.00 НСП 1% : 0.26 НДС 12% : 3.19 Наличными: 0.00 Безнал.: 30.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 80 22.09.2024 11:57 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115362 ФПД: 68107045430128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T115737&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115362&fm=68107045430128&tin=02508201610067®Number=0000000000091831&sum=3000 0 [11:57:37]StoreToDocumentArchive [11:57:37]shift 471 fd 115362 [11:57:37]save to /storage/0471/doc_00115362 [11:57:37]save last doc name /storage/0471/doc_00115362 to /storage/kkm_last_doc_name [11:57:37]save OK [11:57:37]Clear old archive folders... [11:57:37]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:57:37]tlvbuf is 01BC4520 [11:57:37]SAM_PROTO_ClearQueue [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 09 00 00 [11:57:37]Write to MH i2c: E2 08 00 42 05 80 09 00 00 00 00 00 00 B9 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:37]Read from MH i2c: E2 03 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 03 00 42 05 00 90 00 BB [11:57:37]RAPDU: 90 00 [11:57:37]wFMCommunicate OK [11:57:37]SAM_PROTO_ClearQueue done [11:57:37]KKMCreateOFDPacket [11:57:37]OFDProtocolAddRootSTLVToBuf [11:57:37]FM_MakeSignedData [11:57:37]FM_MakeSignedData [11:57:37]SAM_PROTO_SignData [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 0D 01 02 [11:57:37]Write to MH i2c: E2 08 00 43 05 80 0D 01 02 00 00 00 00 C1 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 03 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 03 00 43 05 00 90 00 BC [11:57:37]RAPDU: 90 00 [11:57:37]wFMCommunicate OK [11:57:37]wFMCommunicate request_size=255 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 0B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 31 06 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 [11:57:37]Write to MH i2c: E2 02 01 44 05 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 0B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 31 06 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 00 00 0E [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 03 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 03 00 44 05 00 90 00 BD [11:57:37]RAPDU: 90 00 [11:57:37]wFMCommunicate OK [11:57:37]wFMCommunicate request_size=33 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A2 C2 01 00 35 04 06 00 3D F1 68 3F E3 70 [11:57:37]Write to MH i2c: E2 24 00 45 05 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A2 C2 01 00 35 04 06 00 3D F1 68 3F E3 70 00 00 DB [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 03 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 03 00 45 05 00 90 00 BE [11:57:37]RAPDU: 90 00 [11:57:37]wFMCommunicate OK [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 0D 03 02 [11:57:37]Write to MH i2c: E2 08 00 46 05 80 0D 03 02 00 00 00 00 C6 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 0B 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 0B 00 46 05 00 78 8E A1 0D 48 6E C0 02 90 00 F3 [11:57:37]RAPDU: 78 8E A1 0D 48 6E C0 02 90 00 [11:57:37]wFMCommunicate OK [11:57:37]SAM_PROTO_SignData done [11:57:37]FM_MakeSignedData done [11:57:37]CreateOFDProtocolMessage [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 11 00 00 [11:57:37]Write to MH i2c: E2 08 00 47 05 80 11 00 00 00 00 00 00 C6 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 17 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 17 00 47 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 14 [11:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:57:37]wFMCommunicate OK [11:57:37]CreateOFDProtocolMessage done [11:57:37]OFDSenderStorePacket 115362 [11:57:37]StoreOFDPacket docnum=115362 [11:57:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 26 01 00 00 F8 D8 1E 01 97 27 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 0B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 31 06 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A2 C2 01 00 35 04 06 00 3D F1 68 3F E3 70 78 8E A1 0D 48 6E C0 02 [11:57:37]CheckFolder [11:57:37]dirname=/storage/ofd_packets [11:57:37]CheckFolder done [11:57:37]ProducePacketName [11:57:37]name=ofd_packets/00115362 [11:57:37]NVStorageSaveData ofd_packets/00115362 [11:57:37]File name is /storage/ofd_packets/00115362 [11:57:37]Write 324 bytes [11:57:37]NVStorageSaveData done [11:57:37]OFDSenderStorePacket done [11:57:37]KKMCreateOFDPacket done [11:57:37]NVStorageSaveData kkm_last_timestamp [11:57:37]File name is /storage/kkm_last_timestamp [11:57:37]Write 4 bytes [11:57:37]NVStorageSaveData done [11:57:37]ExternCall_PrintAddStr [11:57:37]wPrintStart [11:57:37]Write to MH i2c: 01 00 00 48 05 4D [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 07 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 07 00 48 05 00 00 00 00 00 FF 0F 62 [11:57:37]RasterBufferAndPrint [11:57:37]line Счет N : (3)343818 [11:57:37]line ИНН: 02508201610067 [11:57:37]line Контрольно-Кассовый Чек [11:57:37]line ПРОДАЖА [11:57:37]line Товар: 4700007690018 [11:57:37]line Негаз вода Pamir 0,5 л [11:57:37]line 1.000 * 30.00 [11:57:37]line = 30.00 [11:57:37]line НДС 12% НСП 1% [11:57:37]line > о реализуемом товаре [11:57:37]line ИТОГО: 30.00 [11:57:37]line НСП 1% : 0.26 [11:57:37]line НДС 12% : 3.19 [11:57:37]line Наличными: 0.00 [11:57:37]line Безнал.: 30.00 [11:57:37]line Место: АЗС № 90 "Партнер Нефть" [11:57:37]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:57:37]line СНО: Общий режим [11:57:37]line Чек 80 22.09.2024 11:57 [11:57:37]line Смена: 471 ФФД: 1.0 [11:57:37]line ЗНМ: 0300000120 [11:57:37]line РНМ: 0000000000091831 [11:57:37]line Версия ККМ: 001 [11:57:37]line Платежная система: Бакай Банк [11:57:37]line ФМ: 0000000000871830 [11:57:37]line ФД: 115362 [11:57:37]line ФПД: 68107045430128 [11:57:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T115737&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115362&fm=68107045430128&tin=02508201610067®Number=0000000000091831&sum=3000 [11:57:37]line 0 [11:57:37]OFD Sender: Processing packet 115362 [packets to send 481, broken 480] [11:57:37]ProducePacketName [11:57:37]name=ofd_packets/00115362 [11:57:37]OFD Sender: To server: pG, [11:57:37]CommunicateWithHost lk.salyk.kg:30040 [11:57:37]ConnectInit lk.salyk.kg [11:57:37]written 0, free lines is 4095 [11:57:38]Connected sock=9 [11:57:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 26 01 00 00 F8 D8 1E 01 97 27 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 0B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 31 06 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A2 C2 01 00 35 04 06 00 3D F1 68 3F E3 70 78 8E A1 0D 48 6E C0 02 [11:57:38]Write to MH i2c: 01 00 00 71 05 76 [11:57:38]Write i2c OK [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: 01 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: 01 07 00 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: 01 07 00 71 05 00 00 00 00 00 56 0C DF [11:57:38]RasterBufferAndPrint [11:57:38]line [11:57:38]line [11:57:38]line [11:57:38]line [11:57:38]line [11:57:38]written 0, free lines is 3163 [11:57:38]MH_Cut [11:57:38]Write to MH i2c: D1 01 00 78 05 01 4F [11:57:38]Write i2c OK [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: D1 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: D1 01 00 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: D1 01 00 78 05 00 4E [11:57:38]Write to MH i2c: 01 00 00 79 05 7E [11:57:38]Write i2c OK [11:57:38]MH_I2C_Read... [11:57:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F5 48 47 00 95 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 31 38 33 30 10 04 04 00 A2 C2 01 00 F4 03 04 00 77 AB EF 66 B6 04 01 00 00 65 2F B6 71 15 D2 F4 8C [11:57:38]CommunicateWithHost err = 0 [11:57:38]CheckOFDResponse [11:57:38]1017 (14) - 77093643461234 [11:57:38]1041 (16) - 0000000000871830 [11:57:38]1040 (4) - 115362 [11:57:38]1012 (4) - 22.09.2024 05:30 [11:57:38]1206 (1) - 0 [11:57:38]OFD Sender: Remove packet 115362 [11:57:38]ProducePacketName [11:57:38]name=ofd_packets/00115362 [11:57:38]NVStorageDeleteData [11:57:39]OFD Sender: No OFD packet to send [11:57:39]*** Cut start [11:57:39]*** Partial cut [11:57:39]*** CUTSNS_PIN = 1 [11:57:39]*** CUTSNS_PIN = 0 [11:57:39]*** Brake cut motor [11:57:40]Read from MH i2c: 01 [11:57:40]MH_I2C_Read... [11:57:40]*** Stop cut motor [11:57:40]*** Cut end [11:57:40]Read from MH i2c: 01 07 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: 01 07 00 79 05 00 00 00 00 00 FF 0F 93 [11:57:40]process_action close_receipt done [11:57:40]requested_data is exist [11:57:40]produce_requested_data [11:57:40]requested_item fm.sn is exist - process it [11:57:40]wFMCommunicate request_size=4 [11:57:40]MH_SAM_APDU [11:57:40]CAPDU: 80 11 00 00 [11:57:40]Write to MH i2c: E2 08 00 7A 05 80 11 00 00 00 00 00 00 F9 [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:40]Read from MH i2c: E2 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 17 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 17 00 7A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 47 [11:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:57:40]wFMCommunicate OK [11:57:40]requested_item fd.num is exist - process it [11:57:40]SAM_PROTO_GetFieldsCounters [11:57:40]wFMCommunicate request_size=4 [11:57:40]MH_SAM_APDU [11:57:40]CAPDU: 80 13 00 00 [11:57:40]Write to MH i2c: E2 08 00 7B 05 80 13 00 00 00 00 00 00 FC [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:40]Read from MH i2c: E2 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 62 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 62 00 7B 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A2 C2 01 00 0E 04 04 00 D7 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 42 [11:57:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A2 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:40]wFMCommunicate OK [11:57:40]SAM_PROTO_GetFieldsCounters done [11:57:40]requested_item shift.num is exist - process it [11:57:40]requested_item shift.opened is exist - process it [11:57:40]req_shift_opened [11:57:40]FM_GetShiftState [11:57:40]SAM_PROTO_GetShiftState [11:57:40]wFMCommunicate request_size=4 [11:57:40]MH_SAM_APDU [11:57:40]CAPDU: 80 13 01 00 [11:57:40]Write to MH i2c: E2 08 00 7C 05 80 13 01 00 00 00 00 00 FE [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:40]Read from MH i2c: E2 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 0E 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 0E 00 7C 05 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 17 [11:57:40]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [11:57:40]wFMCommunicate OK [11:57:40]SAM_PROTO_GetShiftState done [11:57:40]FM_GetShiftState done [11:57:40]req_shift_opened done [11:57:40]requested_item shift.open_date is exist - process it [11:57:40]req_shift_open_date [11:57:40]req_shift_open_date done [11:57:40]produce_requested_data done [11:57:40]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115362,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [11:57:40]process_action_free close_receipt [11:57:40]json_value_free [11:57:40]json_value_free done [11:57:40]process_json_proto returns [11:57:40]Send response to host [11:57:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115362,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [11:57:40]free response buf [11:57:40]execute_script done [11:57:40]execute_script returns [11:57:40]free content buf [11:57:40]Sock 10.Close socket [11:57:40]Sock 10.Thread stoped [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:04]OFD Sender: No OFD packet to send [11:58:09]OFD Sender: No OFD packet to send [11:58:14]OFD Sender: No OFD packet to send [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:49]OFD Sender: No OFD packet to send [11:58:54]OFD Sender: No OFD packet to send [11:58:59]OFD Sender: No OFD packet to send [11:59:04]OFD Sender: No OFD packet to send [11:59:09]OFD Sender: No OFD packet to send [11:59:14]OFD Sender: No OFD packet to send [11:59:19]OFD Sender: No OFD packet to send [11:59:24]OFD Sender: No OFD packet to send [11:59:29]OFD Sender: No OFD packet to send [11:59:34]OFD Sender: No OFD packet to send [11:59:39]OFD Sender: No OFD packet to send [11:59:44]OFD Sender: No OFD packet to send [11:59:49]OFD Sender: No OFD packet to send [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:00]accept exits with 8 [12:12:00]New connection [12:12:00]New thread 3066826084 created [12:12:00]Thread 3066682724 joined [12:12:00]Waiting for new connection... [12:12:00] Sock 8.Parse request [12:12:00]Sock 8.Check first char [12:12:00]Sock 8.First char is OK [12:12:00]request: POST /json_proto HTTP/1.0 [12:12:00]Method: POST [12:12:00]URL: /json_proto [12:12:00]Method is POST - this is cgi request [12:12:00]url: /json_proto [12:12:00]query_string will be loaded in cgi processing [12:12:00]execute_cgi json_proto POST (null) [12:12:00]execute_cgi path=json_proto method=POST [12:12:00]POST find Content-Length [12:12:00]Host: 172.17.41.136:8080 [12:12:00]Content-Length: 669 [12:12:00]Content-Type: application/json [12:12:00] [12:12:00]POST finish read [12:12:00]Found Content-Length = 669 [12:12:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343819", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:00]execute_script... [12:12:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343819", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:00]POST & json_proto [12:12:00]process_json_proto [12:12:00]json parsed OK: [12:12:00]protocol is kg_v1.0 [12:12:00]action value=close_receipt [12:12:00]process_action close_receipt [12:12:00]cmd_close_receipt [12:12:00]MH_GetDate [12:12:00]Write to MH i2c: F0 00 00 7D 05 71 [12:12:00]Write i2c OK [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: F0 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: F0 09 00 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: F0 09 00 7D 05 00 91 09 F0 66 1B D0 5A 64 13 [12:12:00]GetLastDocTimeStamp 1727006257 [12:12:00]current date 1727007121 [12:12:00]FM_GetShiftState [12:12:00]SAM_PROTO_GetShiftState [12:12:00]wFMCommunicate request_size=4 [12:12:00]MH_SAM_APDU [12:12:00]CAPDU: 80 13 01 00 [12:12:00]Write to MH i2c: E2 08 00 7E 05 80 13 01 00 00 00 00 00 00 [12:12:00]Write i2c OK [12:12:00]MH_I2C_Read... [12:12:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:00]Read from MH i2c: E2 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: E2 0E 00 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: E2 0E 00 7E 05 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 19 [12:12:00]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:12:00]wFMCommunicate OK [12:12:00]SAM_PROTO_GetShiftState done [12:12:00]FM_GetShiftState done [12:12:00]opened in 1726965840 [12:12:00]opened+sec_in_day 1727052240 [12:12:00]quantity*price = 6500 [12:12:00]sum+1 = 6501 [12:12:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 81 22.09.2024 12:12 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115363 ФПД: 123290682560490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T121201&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115363&fm=123290682560490&tin=02508201610067®Number=0000000000091831&sum=6500 0 [12:12:01]StoreToDocumentArchive [12:12:01]shift 471 fd 115363 [12:12:01]save to /storage/0471/doc_00115363 [12:12:01]save last doc name /storage/0471/doc_00115363 to /storage/kkm_last_doc_name [12:12:01]save OK [12:12:01]Clear old archive folders... [12:12:01]ProcessDocumentItem done err = 0, tmpTLVsize=284 [12:12:01]tlvbuf is 01BC42E0 [12:12:01]SAM_PROTO_ClearQueue [12:12:01]wFMCommunicate request_size=4 [12:12:01]MH_SAM_APDU [12:12:01]CAPDU: 80 09 00 00 [12:12:01]Write to MH i2c: E2 08 00 8B 05 80 09 00 00 00 00 00 00 02 [12:12:01]Write i2c OK [12:12:01]MH_I2C_Read... [12:12:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:01]Read from MH i2c: E2 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: E2 03 00 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: E2 03 00 8B 05 00 90 00 04 [12:12:01]RAPDU: 90 00 [12:12:01]wFMCommunicate OK [12:12:01]SAM_PROTO_ClearQueue done [12:12:01]KKMCreateOFDPacket [12:12:01]OFDProtocolAddRootSTLVToBuf [12:12:01]FM_MakeSignedData [12:12:01]FM_MakeSignedData [12:12:01]SAM_PROTO_SignData [12:12:01]wFMCommunicate request_size=4 [12:12:01]MH_SAM_APDU [12:12:01]CAPDU: 80 0D 01 02 [12:12:01]Write to MH i2c: E2 08 00 8C 05 80 0D 01 02 00 00 00 00 0A [12:12:01]Write i2c OK [12:12:01]MH_I2C_Read... [12:12:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:01]Read from MH i2c: E2 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: E2 03 00 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: E2 03 00 8C 05 00 90 00 05 [12:12:01]RAPDU: 90 00 [12:12:01]wFMCommunicate OK [12:12:01]wFMCommunicate request_size=255 [12:12:01]MH_SAM_APDU [12:12:01]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 91 09 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [12:12:01]Write to MH i2c: E2 02 01 8D 05 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 91 09 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 AC [12:12:01]Write i2c OK [12:12:01]MH_I2C_Read... [12:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:02]Read from MH i2c: E2 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 03 00 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 03 00 8D 05 00 90 00 06 [12:12:02]RAPDU: 90 00 [12:12:02]wFMCommunicate OK [12:12:02]wFMCommunicate request_size=43 [12:12:02]MH_SAM_APDU [12:12:02]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A3 C2 01 00 35 04 06 00 70 21 D9 56 8F EA [12:12:02]Write to MH i2c: E2 2E 00 8E 05 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A3 C2 01 00 35 04 06 00 70 21 D9 56 8F EA 00 00 8F [12:12:02]Write i2c OK [12:12:02]MH_I2C_Read... [12:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:02]Read from MH i2c: E2 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 03 00 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 03 00 8E 05 00 90 00 07 [12:12:02]RAPDU: 90 00 [12:12:02]wFMCommunicate OK [12:12:02]wFMCommunicate request_size=4 [12:12:02]MH_SAM_APDU [12:12:02]CAPDU: 80 0D 03 02 [12:12:02]Write to MH i2c: E2 08 00 8F 05 80 0D 03 02 00 00 00 00 0F [12:12:02]Write i2c OK [12:12:02]MH_I2C_Read... [12:12:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:02]Read from MH i2c: E2 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 0B 00 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 0B 00 8F 05 00 6C 51 55 8F 4A AE 08 B6 90 00 67 [12:12:02]RAPDU: 6C 51 55 8F 4A AE 08 B6 90 00 [12:12:02]wFMCommunicate OK [12:12:02]SAM_PROTO_SignData done [12:12:02]FM_MakeSignedData done [12:12:02]CreateOFDProtocolMessage [12:12:02]wFMCommunicate request_size=4 [12:12:02]MH_SAM_APDU [12:12:02]CAPDU: 80 11 00 00 [12:12:02]Write to MH i2c: E2 08 00 90 05 80 11 00 00 00 00 00 00 0F [12:12:02]Write i2c OK [12:12:02]MH_I2C_Read... [12:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:02]Read from MH i2c: E2 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 17 00 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 17 00 90 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5D [12:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:12:02]wFMCommunicate OK [12:12:02]CreateOFDProtocolMessage done [12:12:02]OFDSenderStorePacket 115363 [12:12:02]StoreOFDPacket docnum=115363 [12:12:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 18 7D 28 01 2A 02 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 91 09 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A3 C2 01 00 35 04 06 00 70 21 D9 56 8F EA 6C 51 55 8F 4A AE 08 B6 [12:12:02]CheckFolder [12:12:02]dirname=/storage/ofd_packets [12:12:02]CheckFolder done [12:12:02]ProducePacketName [12:12:02]name=ofd_packets/00115363 [12:12:02]NVStorageSaveData ofd_packets/00115363 [12:12:02]File name is /storage/ofd_packets/00115363 [12:12:02]Write 334 bytes [12:12:02]NVStorageSaveData done [12:12:02]OFDSenderStorePacket done [12:12:02]KKMCreateOFDPacket done [12:12:02]NVStorageSaveData kkm_last_timestamp [12:12:02]File name is /storage/kkm_last_timestamp [12:12:02]Write 4 bytes [12:12:02]NVStorageSaveData done [12:12:02]ExternCall_PrintAddStr [12:12:02]wPrintStart [12:12:02]Write to MH i2c: 01 00 00 91 05 96 [12:12:02]Write i2c OK [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: 01 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: 01 07 00 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: 01 07 00 91 05 00 00 00 00 00 FF 0F AB [12:12:02]RasterBufferAndPrint [12:12:02]line Счет N : (3)343819 [12:12:02]line ИНН: 02508201610067 [12:12:02]line Контрольно-Кассовый Чек [12:12:02]line ПРОДАЖА [12:12:02]line Товар: 4700040114137 [12:12:02]line Султан чай 1л. зел лимон [12:12:02]line 1.000 * 65.00 [12:12:02]line = 65.00 [12:12:02]line НДС 12% НСП 1% [12:12:02]line > о реализуемом товаре [12:12:02]line ИТОГО: 65.00 [12:12:02]line НСП 1% : 0.57 [12:12:02]line НДС 12% : 6.90 [12:12:02]line Наличными: 65.00 [12:12:02]line Безнал.: 0.00 [12:12:02]line Место: АЗС № 90 "Партнер Нефть" [12:12:02]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:12:02]line СНО: Общий режим [12:12:02]line Чек 81 22.09.2024 12:12 [12:12:02]line Смена: 471 ФФД: 1.0 [12:12:02]line ЗНМ: 0300000120 [12:12:02]line РНМ: 0000000000091831 [12:12:02]line Версия ККМ: 001 [12:12:02]line ФМ: 0000000000871830 [12:12:02]line ФД: 115363 [12:12:02]line ФПД: 123290682560490 [12:12:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T121201&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115363&fm=123290682560490&tin=02508201610067®Number=0000000000091831&sum=6500 [12:12:02]line 0 [12:12:02]OFD Sender: Processing packet 115363 [packets to send 481, broken 480] [12:12:02]ProducePacketName [12:12:02]name=ofd_packets/00115363 [12:12:02]OFD Sender: To server: pG, [12:12:02]CommunicateWithHost lk.salyk.kg:30040 [12:12:02]ConnectInit lk.salyk.kg [12:12:02]written 0, free lines is 4095 [12:12:02]Connected sock=10 [12:12:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 18 7D 28 01 2A 02 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 91 09 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A3 C2 01 00 35 04 06 00 70 21 D9 56 8F EA 6C 51 55 8F 4A AE 08 B6 [12:12:02]Write to MH i2c: 01 00 00 B8 05 BD [12:12:02]Write i2c OK [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: 01 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: 01 07 00 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: 01 07 00 B8 05 00 00 00 00 00 83 0C 53 [12:12:02]RasterBufferAndPrint [12:12:02]line [12:12:02]line [12:12:02]line [12:12:02]line [12:12:02]line [12:12:02]written 0, free lines is 3207 [12:12:02]MH_Cut [12:12:02]Write to MH i2c: D1 01 00 BF 05 01 96 [12:12:02]Write i2c OK [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: D1 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: D1 01 00 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: D1 01 00 BF 05 00 95 [12:12:02]Write to MH i2c: 01 00 00 C0 05 C5 [12:12:02]Write i2c OK [12:12:02]MH_I2C_Read... [12:12:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 49 26 47 00 17 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A3 C2 01 00 F4 03 04 00 D7 AE EF 66 B6 04 01 00 00 5A 00 0B 22 09 7D 6D E5 [12:12:03]CommunicateWithHost err = 0 [12:12:03]CheckOFDResponse [12:12:03]1017 (14) - 77093643461234 [12:12:03]1041 (16) - 0000000000871830 [12:12:03]1040 (4) - 115363 [12:12:03]1012 (4) - 22.09.2024 05:44 [12:12:03]1206 (1) - 0 [12:12:03]OFD Sender: Remove packet 115363 [12:12:03]ProducePacketName [12:12:03]name=ofd_packets/00115363 [12:12:03]NVStorageDeleteData [12:12:03]OFD Sender: No OFD packet to send [12:12:04]*** Cut start [12:12:04]*** Partial cut [12:12:04]*** CUTSNS_PIN = 1 [12:12:04]*** CUTSNS_PIN = 0 [12:12:04]*** Brake cut motor [12:12:04]Read from MH i2c: 01 [12:12:04]MH_I2C_Read... [12:12:04]*** Stop cut motor [12:12:04]*** Cut end [12:12:04]Read from MH i2c: 01 07 00 [12:12:04]MH_I2C_Read... [12:12:04]Read from MH i2c: 01 07 00 C0 05 00 00 00 00 00 FF 0F DA [12:12:04]process_action close_receipt done [12:12:04]requested_data is exist [12:12:04]produce_requested_data [12:12:04]requested_item fm.sn is exist - process it [12:12:04]wFMCommunicate request_size=4 [12:12:04]MH_SAM_APDU [12:12:04]CAPDU: 80 11 00 00 [12:12:04]Write to MH i2c: E2 08 00 C1 05 80 11 00 00 00 00 00 00 40 [12:12:04]Write i2c OK [12:12:04]MH_I2C_Read... [12:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:04]Read from MH i2c: E2 [12:12:04]MH_I2C_Read... [12:12:04]Read from MH i2c: E2 17 00 [12:12:04]MH_I2C_Read... [12:12:04]Read from MH i2c: E2 17 00 C1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8E [12:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:12:04]wFMCommunicate OK [12:12:04]requested_item fd.num is exist - process it [12:12:04]SAM_PROTO_GetFieldsCounters [12:12:04]wFMCommunicate request_size=4 [12:12:04]MH_SAM_APDU [12:12:04]CAPDU: 80 13 00 00 [12:12:04]Write to MH i2c: E2 08 00 C2 05 80 13 00 00 00 00 00 00 43 [12:12:04]Write i2c OK [12:12:04]MH_I2C_Read... [12:12:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:04]Read from MH i2c: E2 [12:12:04]MH_I2C_Read... [12:12:04]Read from MH i2c: E2 62 00 [12:12:04]MH_I2C_Read... [12:12:04]Read from MH i2c: E2 62 00 C2 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A3 C2 01 00 0E 04 04 00 D7 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 8D [12:12:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A3 C2 01 00 0E 04 04 00 D7 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 [12:12:04]wFMCommunicate OK [12:12:04]SAM_PROTO_GetFieldsCounters done [12:12:04]requested_item shift.num is exist - process it [12:12:04]requested_item shift.opened is exist - process it [12:12:04]req_shift_opened [12:12:04]FM_GetShiftState [12:12:04]SAM_PROTO_GetShiftState [12:12:04]wFMCommunicate request_size=4 [12:12:04]MH_SAM_APDU [12:12:04]CAPDU: 80 13 01 00 [12:12:04]Write to MH i2c: E2 08 00 C3 05 80 13 01 00 00 00 00 00 45 [12:12:04]Write i2c OK [12:12:04]MH_I2C_Read... [12:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:04]Read from MH i2c: E2 [12:12:04]MH_I2C_Read... [12:12:04]Read from MH i2c: E2 0E 00 [12:12:04]MH_I2C_Read... [12:12:04]Read from MH i2c: E2 0E 00 C3 05 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 5E [12:12:04]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:12:04]wFMCommunicate OK [12:12:04]SAM_PROTO_GetShiftState done [12:12:04]FM_GetShiftState done [12:12:04]req_shift_opened done [12:12:04]requested_item shift.open_date is exist - process it [12:12:04]req_shift_open_date [12:12:04]req_shift_open_date done [12:12:04]produce_requested_data done [12:12:04]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115363,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [12:12:04]process_action_free close_receipt [12:12:04]json_value_free [12:12:04]json_value_free done [12:12:04]process_json_proto returns [12:12:04]Send response to host [12:12:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115363,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [12:12:04]free response buf [12:12:04]execute_script done [12:12:04]execute_script returns [12:12:04]free content buf [12:12:04]Sock 8.Close socket [12:12:04]Sock 8.Thread stoped [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:24]OFD Sender: No OFD packet to send [12:15:29]OFD Sender: No OFD packet to send [12:15:34]OFD Sender: No OFD packet to send [12:15:39]OFD Sender: No OFD packet to send [12:15:44]OFD Sender: No OFD packet to send [12:15:49]OFD Sender: No OFD packet to send [12:15:54]OFD Sender: No OFD packet to send [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:20]accept exits with 9 [12:18:20]New connection [12:18:20]New thread 3066682724 created [12:18:20]Thread 3066826084 joined [12:18:20]Waiting for new connection... [12:18:20] Sock 9.Parse request [12:18:20]Sock 9.Check first char [12:18:20]Sock 9.First char is OK [12:18:20]request: POST /json_proto HTTP/1.0 [12:18:20]Method: POST [12:18:20]URL: /json_proto [12:18:20]Method is POST - this is cgi request [12:18:20]url: /json_proto [12:18:20]query_string will be loaded in cgi processing [12:18:20]execute_cgi json_proto POST (null) [12:18:20]execute_cgi path=json_proto method=POST [12:18:20]POST find Content-Length [12:18:20]Host: 172.17.41.136:8080 [12:18:20]Content-Length: 756 [12:18:20]Content-Type: application/json [12:18:20] [12:18:20]POST finish read [12:18:20]Found Content-Length = 756 [12:18:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116851", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:20]execute_script... [12:18: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)24616696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116851", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:20]POST & json_proto [12:18:20]process_json_proto [12:18:20]json parsed OK: [12:18:20]protocol is kg_v1.0 [12:18:20]action value=close_receipt [12:18:20]process_action close_receipt [12:18:20]cmd_close_receipt [12:18:20]MH_GetDate [12:18:20]Write to MH i2c: F0 00 00 C4 05 B8 [12:18:20]Write i2c OK [12:18:20]MH_I2C_Read... [12:18:20]Read from MH i2c: F0 [12:18:20]MH_I2C_Read... [12:18:20]Read from MH i2c: F0 09 00 [12:18:20]MH_I2C_Read... [12:18:20]Read from MH i2c: F0 09 00 C4 05 00 0D 0B F0 66 1B D0 5A 64 D8 [12:18:20]GetLastDocTimeStamp 1727007121 [12:18:20]current date 1727007501 [12:18:20]FM_GetShiftState [12:18:20]SAM_PROTO_GetShiftState [12:18:20]wFMCommunicate request_size=4 [12:18:20]MH_SAM_APDU [12:18:20]CAPDU: 80 13 01 00 [12:18:20]Write to MH i2c: E2 08 00 C5 05 80 13 01 00 00 00 00 00 47 [12:18:20]Write i2c OK [12:18:20]MH_I2C_Read... [12:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:20]Read from MH i2c: E2 [12:18:20]MH_I2C_Read... [12:18:20]Read from MH i2c: E2 0E 00 [12:18:20]MH_I2C_Read... [12:18:20]Read from MH i2c: E2 0E 00 C5 05 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 60 [12:18:20]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:18:20]wFMCommunicate OK [12:18:20]SAM_PROTO_GetShiftState done [12:18:20]FM_GetShiftState done [12:18:20]opened in 1726965840 [12:18:20]opened+sec_in_day 1727052240 [12:18:20]quantity*price = 0 [12:18:20]sum+1 = 1 [12:18:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 82 22.09.2024 12:18 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116851 ФМ: 0000000000871830 ФД: 115364 ФПД: 21685346019154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T121821&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115364&fm=21685346019154&tin=02508201610067®Number=0000000000091831&sum=0 [12:18:21]StoreToDocumentArchive [12:18:21]shift 471 fd 115364 [12:18:21]save to /storage/0471/doc_00115364 [12:18:21]save last doc name /storage/0471/doc_00115364 to /storage/kkm_last_doc_name [12:18:21]save OK [12:18:21]Clear old archive folders... [12:18:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:21]tlvbuf is 01C042B0 [12:18:21]SAM_PROTO_ClearQueue [12:18:21]wFMCommunicate request_size=4 [12:18:21]MH_SAM_APDU [12:18:21]CAPDU: 80 09 00 00 [12:18:21]Write to MH i2c: E2 08 00 D2 05 80 09 00 00 00 00 00 00 49 [12:18:21]Write i2c OK [12:18:21]MH_I2C_Read... [12:18:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:21]Read from MH i2c: E2 [12:18:21]MH_I2C_Read... [12:18:21]Read from MH i2c: E2 03 00 [12:18:21]MH_I2C_Read... [12:18:21]Read from MH i2c: E2 03 00 D2 05 00 90 00 4B [12:18:21]RAPDU: 90 00 [12:18:21]wFMCommunicate OK [12:18:21]SAM_PROTO_ClearQueue done [12:18:21]KKMCreateOFDPacket [12:18:21]OFDProtocolAddRootSTLVToBuf [12:18:21]FM_MakeSignedData [12:18:21]FM_MakeSignedData [12:18:21]SAM_PROTO_SignData [12:18:21]wFMCommunicate request_size=4 [12:18:21]MH_SAM_APDU [12:18:21]CAPDU: 80 0D 01 02 [12:18:21]Write to MH i2c: E2 08 00 D3 05 80 0D 01 02 00 00 00 00 51 [12:18:21]Write i2c OK [12:18:21]MH_I2C_Read... [12:18:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:21]Read from MH i2c: E2 [12:18:21]MH_I2C_Read... [12:18:21]Read from MH i2c: E2 03 00 [12:18:21]MH_I2C_Read... [12:18:21]Read from MH i2c: E2 03 00 D3 05 00 90 00 4C [12:18:21]RAPDU: 90 00 [12:18:21]wFMCommunicate OK [12:18:21]wFMCommunicate request_size=255 [12:18:21]MH_SAM_APDU [12:18:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0D 0B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A4 C2 01 00 35 04 06 00 13 [12:18:21]Write to MH i2c: E2 02 01 D4 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0D 0B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A4 C2 01 00 35 04 06 00 13 00 00 0A [12:18:21]Write i2c OK [12:18:21]MH_I2C_Read... [12:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:22]Read from MH i2c: E2 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: E2 03 00 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: E2 03 00 D4 05 00 90 00 4D [12:18:22]RAPDU: 90 00 [12:18:22]wFMCommunicate OK [12:18:22]wFMCommunicate request_size=10 [12:18:22]MH_SAM_APDU [12:18:22]CAPDU: 80 0D 02 02 05 B9 03 58 A7 52 [12:18:22]Write to MH i2c: E2 0D 00 D5 05 80 0D 02 02 05 00 B9 03 58 A7 52 00 00 6B [12:18:22]Write i2c OK [12:18:22]MH_I2C_Read... [12:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:22]Read from MH i2c: E2 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: E2 03 00 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: E2 03 00 D5 05 00 90 00 4E [12:18:22]RAPDU: 90 00 [12:18:22]wFMCommunicate OK [12:18:22]wFMCommunicate request_size=4 [12:18:22]MH_SAM_APDU [12:18:22]CAPDU: 80 0D 03 02 [12:18:22]Write to MH i2c: E2 08 00 D6 05 80 0D 03 02 00 00 00 00 56 [12:18:22]Write i2c OK [12:18:22]MH_I2C_Read... [12:18:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:22]Read from MH i2c: E2 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: E2 0B 00 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: E2 0B 00 D6 05 00 66 C0 16 C2 01 B9 80 F2 90 00 81 [12:18:22]RAPDU: 66 C0 16 C2 01 B9 80 F2 90 00 [12:18:22]wFMCommunicate OK [12:18:22]SAM_PROTO_SignData done [12:18:22]FM_MakeSignedData done [12:18:22]CreateOFDProtocolMessage [12:18:22]wFMCommunicate request_size=4 [12:18:22]MH_SAM_APDU [12:18:22]CAPDU: 80 11 00 00 [12:18:22]Write to MH i2c: E2 08 00 D7 05 80 11 00 00 00 00 00 00 56 [12:18:22]Write i2c OK [12:18:22]MH_I2C_Read... [12:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:22]Read from MH i2c: E2 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: E2 17 00 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: E2 17 00 D7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A4 [12:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:18:22]wFMCommunicate OK [12:18:22]CreateOFDProtocolMessage done [12:18:22]OFDSenderStorePacket 115364 [12:18:22]StoreOFDPacket docnum=115364 [12:18:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 98 45 07 01 0E CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0D 0B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A4 C2 01 00 35 04 06 00 13 B9 03 58 A7 52 66 C0 16 C2 01 B9 80 F2 [12:18:22]CheckFolder [12:18:22]dirname=/storage/ofd_packets [12:18:22]CheckFolder done [12:18:22]ProducePacketName [12:18:22]name=ofd_packets/00115364 [12:18:22]NVStorageSaveData ofd_packets/00115364 [12:18:22]File name is /storage/ofd_packets/00115364 [12:18:22]Write 301 bytes [12:18:22]NVStorageSaveData done [12:18:22]OFDSenderStorePacket done [12:18:22]KKMCreateOFDPacket done [12:18:22]NVStorageSaveData kkm_last_timestamp [12:18:22]File name is /storage/kkm_last_timestamp [12:18:22]Write 4 bytes [12:18:22]NVStorageSaveData done [12:18:22]ExternCall_PrintAddStr [12:18:22]wPrintStart [12:18:22]Write to MH i2c: 01 00 00 D8 05 DD [12:18:22]Write i2c OK [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: 01 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: 01 07 00 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: 01 07 00 D8 05 00 00 00 00 00 FF 0F F2 [12:18:22]RasterBufferAndPrint [12:18:22]line Счет N : (1)24616696 [12:18:22]line ИНН: 02508201610067 [12:18:22]line Контрольно-Кассовый Чек [12:18:22]line ПРОДАЖА [12:18:22]line ТРК (МРК, ГНК) : 63 [12:18:22]line Товар: 2710124130 [12:18:22]line Аи-92-К-5 [12:18:22]line 30.000 * 0.00 [12:18:22]line = 0.00 [12:18:22]line НДС 12% НСП 1% [12:18:22]line > о реализуемом товаре [12:18:22]line ИТОГО: 0.00 [12:18:22]line НСП 1% : 0.00 [12:18:22]line НДС 12% : 0.00 [12:18:22]line Наличными: 0.00 [12:18:22]line Безнал.: 0.00 [12:18:22]line Место: АЗС № 90 "Партнер Нефть" [12:18:22]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:18:22]line СНО: Общий режим [12:18:22]line Чек 82 22.09.2024 12:18 [12:18:22]line Смена: 471 ФФД: 1.0 [12:18:22]line ЗНМ: 0300000120 [12:18:22]line РНМ: 0000000000091831 [12:18:22]line Версия ККМ: 001 [12:18:22]line Талоны: ТК ГПНА Online [12:18:22]line 30116851 [12:18:22]line ФМ: 0000000000871830 [12:18:22]line ФД: 115364 [12:18:22]line ФПД: 21685346019154 [12:18:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T121821&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115364&fm=21685346019154&tin=02508201610067®Number=0000000000091831&sum=0 [12:18:22]written 0, free lines is 4095 [12:18:22]OFD Sender: Processing packet 115364 [packets to send 481, broken 480] [12:18:22]ProducePacketName [12:18:22]name=ofd_packets/00115364 [12:18:22]OFD Sender: To server: pG, [12:18:22]CommunicateWithHost lk.salyk.kg:30040 [12:18:22]ConnectInit lk.salyk.kg [12:18:22]Connected sock=10 [12:18:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 98 45 07 01 0E CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0D 0B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A4 C2 01 00 35 04 06 00 13 B9 03 58 A7 52 66 C0 16 C2 01 B9 80 F2 [12:18:22]Write to MH i2c: 01 00 00 01 06 07 [12:18:22]Write i2c OK [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: 01 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: 01 07 00 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: 01 07 00 01 06 00 00 00 00 00 67 0C 81 [12:18:22]RasterBufferAndPrint [12:18:22]line [12:18:22]line [12:18:22]line [12:18:22]line [12:18:22]line [12:18:22]written 0, free lines is 3179 [12:18:22]MH_Cut [12:18:22]Write to MH i2c: D1 01 00 08 06 01 E0 [12:18:22]Write i2c OK [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: D1 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: D1 01 00 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: D1 01 00 08 06 00 DF [12:18:22]Write to MH i2c: 01 00 00 09 06 0F [12:18:22]Write i2c OK [12:18:22]MH_I2C_Read... [12:18:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 90 33 47 00 FD 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A4 C2 01 00 F4 03 04 00 53 B0 EF 66 B6 04 01 00 00 16 61 DA 62 E7 EE 33 DC [12:18:23]CommunicateWithHost err = 0 [12:18:23]CheckOFDResponse [12:18:23]1017 (14) - 77093643461234 [12:18:23]1041 (16) - 0000000000871830 [12:18:23]1040 (4) - 115364 [12:18:23]1012 (4) - 22.09.2024 05:51 [12:18:23]1206 (1) - 0 [12:18:23]OFD Sender: Remove packet 115364 [12:18:23]ProducePacketName [12:18:23]name=ofd_packets/00115364 [12:18:23]NVStorageDeleteData [12:18:23]OFD Sender: No OFD packet to send [12:18:24]*** Cut start [12:18:24]*** Partial cut [12:18:24]*** CUTSNS_PIN = 1 [12:18:24]*** CUTSNS_PIN = 0 [12:18:24]*** Brake cut motor [12:18:24]Read from MH i2c: 01 [12:18:24]MH_I2C_Read... [12:18:24]*** Stop cut motor [12:18:24]*** Cut end [12:18:24]Read from MH i2c: 01 07 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: 01 07 00 09 06 00 00 00 00 00 FF 0F 24 [12:18:24]process_action close_receipt done [12:18:24]requested_data is exist [12:18:24]produce_requested_data [12:18:24]requested_item fm.sn is exist - process it [12:18:24]wFMCommunicate request_size=4 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 11 00 00 [12:18:24]Write to MH i2c: E2 08 00 0A 06 80 11 00 00 00 00 00 00 8A [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:24]Read from MH i2c: E2 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 17 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 17 00 0A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D8 [12:18:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:18:24]wFMCommunicate OK [12:18:24]requested_item fd.num is exist - process it [12:18:24]SAM_PROTO_GetFieldsCounters [12:18:24]wFMCommunicate request_size=4 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 13 00 00 [12:18:24]Write to MH i2c: E2 08 00 0B 06 80 13 00 00 00 00 00 00 8D [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:24]Read from MH i2c: E2 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 62 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 62 00 0B 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A4 C2 01 00 0E 04 04 00 D7 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 DB [12:18:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A4 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:24]wFMCommunicate OK [12:18:24]SAM_PROTO_GetFieldsCounters done [12:18:24]requested_item shift.num is exist - process it [12:18:24]requested_item shift.opened is exist - process it [12:18:24]req_shift_opened [12:18:24]FM_GetShiftState [12:18:24]SAM_PROTO_GetShiftState [12:18:24]wFMCommunicate request_size=4 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 13 01 00 [12:18:24]Write to MH i2c: E2 08 00 0C 06 80 13 01 00 00 00 00 00 8F [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:24]Read from MH i2c: E2 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 0E 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 0E 00 0C 06 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A8 [12:18:24]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:18:24]wFMCommunicate OK [12:18:24]SAM_PROTO_GetShiftState done [12:18:24]FM_GetShiftState done [12:18:24]req_shift_opened done [12:18:24]requested_item shift.open_date is exist - process it [12:18:24]req_shift_open_date [12:18:24]req_shift_open_date done [12:18:24]produce_requested_data done [12:18:24]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115364,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [12:18:24]process_action_free close_receipt [12:18:24]json_value_free [12:18:24]json_value_free done [12:18:24]process_json_proto returns [12:18:24]Send response to host [12:18:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115364,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [12:18:24]free response buf [12:18:24]execute_script done [12:18:24]execute_script returns [12:18:24]free content buf [12:18:24]Sock 9.Close socket [12:18:24]Sock 9.Thread stoped [12:18:28]OFD Sender: No OFD packet to send [12:18:29]accept exits with 8 [12:18:29]New connection [12:18:29]New thread 3066826084 created [12:18:29]Thread 3066682724 joined [12:18:29]Waiting for new connection... [12:18:29] Sock 8.Parse request [12:18:29]Sock 8.Check first char [12:18:29]Sock 8.First char is OK [12:18:29]request: POST /json_proto HTTP/1.0 [12:18:29]Method: POST [12:18:29]URL: /json_proto [12:18:29]Method is POST - this is cgi request [12:18:29]url: /json_proto [12:18:29]query_string will be loaded in cgi processing [12:18:29]execute_cgi json_proto POST (null) [12:18:29]execute_cgi path=json_proto method=POST [12:18:29]POST find Content-Length [12:18:29]Host: 172.17.41.136:8080 [12:18:29]Content-Length: 680 [12:18:29]Content-Type: application/json [12:18:29] [12:18:29]POST finish read [12:18:29]Found Content-Length = 680 [12:18:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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" ] } } [12:18:29]execute_script... [12: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)24616698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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" ] } } [12:18:29]POST & json_proto [12:18:29]process_json_proto [12:18:29]json parsed OK: [12:18:29]protocol is kg_v1.0 [12:18:29]action value=close_receipt [12:18:29]process_action close_receipt [12:18:29]cmd_close_receipt [12:18:29]MH_GetDate [12:18:29]Write to MH i2c: F0 00 00 0D 06 02 [12:18:29]Write i2c OK [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: F0 [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: F0 09 00 [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: F0 09 00 0D 06 00 16 0B F0 66 1B D0 5A 64 2B [12:18:29]GetLastDocTimeStamp 1727007501 [12:18:29]current date 1727007510 [12:18:29]FM_GetShiftState [12:18:29]SAM_PROTO_GetShiftState [12:18:29]wFMCommunicate request_size=4 [12:18:29]MH_SAM_APDU [12:18:29]CAPDU: 80 13 01 00 [12:18:29]Write to MH i2c: E2 08 00 0E 06 80 13 01 00 00 00 00 00 91 [12:18:29]Write i2c OK [12:18:29]MH_I2C_Read... [12:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:29]Read from MH i2c: E2 [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: E2 0E 00 [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: E2 0E 00 0E 06 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 AA [12:18:29]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:18:29]wFMCommunicate OK [12:18:29]SAM_PROTO_GetShiftState done [12:18:29]FM_GetShiftState done [12:18:29]opened in 1726965840 [12:18:29]opened+sec_in_day 1727052240 [12:18:29]quantity*price = 80004 [12:18:29]sum+1 = 80005 [12:18:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 83 22.09.2024 12:18 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115365 ФПД: 59866908925579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T121830&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115365&fm=59866908925579&tin=02508201610067®Number=0000000000091831&sum=80000 [12:18:30]StoreToDocumentArchive [12:18:30]shift 471 fd 115365 [12:18:30]save to /storage/0471/doc_00115365 [12:18:30]save last doc name /storage/0471/doc_00115365 to /storage/kkm_last_doc_name [12:18:30]save OK [12:18:30]Clear old archive folders... [12:18:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:30]tlvbuf is 01C04150 [12:18:30]SAM_PROTO_ClearQueue [12:18:30]wFMCommunicate request_size=4 [12:18:30]MH_SAM_APDU [12:18:30]CAPDU: 80 09 00 00 [12:18:30]Write to MH i2c: E2 08 00 1B 06 80 09 00 00 00 00 00 00 93 [12:18:30]Write i2c OK [12:18:30]MH_I2C_Read... [12:18:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:30]Read from MH i2c: E2 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 03 00 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 03 00 1B 06 00 90 00 95 [12:18:30]RAPDU: 90 00 [12:18:30]wFMCommunicate OK [12:18:30]SAM_PROTO_ClearQueue done [12:18:30]KKMCreateOFDPacket [12:18:30]OFDProtocolAddRootSTLVToBuf [12:18:30]FM_MakeSignedData [12:18:30]FM_MakeSignedData [12:18:30]SAM_PROTO_SignData [12:18:30]wFMCommunicate request_size=4 [12:18:30]MH_SAM_APDU [12:18:30]CAPDU: 80 0D 01 02 [12:18:30]Write to MH i2c: E2 08 00 1C 06 80 0D 01 02 00 00 00 00 9B [12:18:30]Write i2c OK [12:18:30]MH_I2C_Read... [12:18:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:30]Read from MH i2c: E2 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 03 00 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 03 00 1C 06 00 90 00 96 [12:18:30]RAPDU: 90 00 [12:18:30]wFMCommunicate OK [12:18:30]wFMCommunicate request_size=255 [12:18:30]MH_SAM_APDU [12:18:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 16 0B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A5 C2 01 00 35 04 06 00 36 [12:18:30]Write to MH i2c: E2 02 01 1D 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 16 0B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A5 C2 01 00 35 04 06 00 36 00 00 FF [12:18:30]Write i2c OK [12:18:30]MH_I2C_Read... [12:18:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:31]Read from MH i2c: E2 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: E2 03 00 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: E2 03 00 1D 06 00 90 00 97 [12:18:31]RAPDU: 90 00 [12:18:31]wFMCommunicate OK [12:18:31]wFMCommunicate request_size=10 [12:18:31]MH_SAM_APDU [12:18:31]CAPDU: 80 0D 02 02 05 72 D9 D7 1E 8B [12:18:31]Write to MH i2c: E2 0D 00 1E 06 80 0D 02 02 05 00 72 D9 D7 1E 8B 00 00 73 [12:18:31]Write i2c OK [12:18:31]MH_I2C_Read... [12:18:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:31]Read from MH i2c: E2 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: E2 03 00 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: E2 03 00 1E 06 00 90 00 98 [12:18:31]RAPDU: 90 00 [12:18:31]wFMCommunicate OK [12:18:31]wFMCommunicate request_size=4 [12:18:31]MH_SAM_APDU [12:18:31]CAPDU: 80 0D 03 02 [12:18:31]Write to MH i2c: E2 08 00 1F 06 80 0D 03 02 00 00 00 00 A0 [12:18:31]Write i2c OK [12:18:31]MH_I2C_Read... [12:18:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:31]Read from MH i2c: E2 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: E2 0B 00 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: E2 0B 00 1F 06 00 12 D4 B1 CE 4D 21 FB CC 90 00 3B [12:18:31]RAPDU: 12 D4 B1 CE 4D 21 FB CC 90 00 [12:18:31]wFMCommunicate OK [12:18:31]SAM_PROTO_SignData done [12:18:31]FM_MakeSignedData done [12:18:31]CreateOFDProtocolMessage [12:18:31]wFMCommunicate request_size=4 [12:18:31]MH_SAM_APDU [12:18:31]CAPDU: 80 11 00 00 [12:18:31]Write to MH i2c: E2 08 00 20 06 80 11 00 00 00 00 00 00 A0 [12:18:31]Write i2c OK [12:18:31]MH_I2C_Read... [12:18:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:31]Read from MH i2c: E2 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: E2 17 00 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: E2 17 00 20 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EE [12:18:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:18:31]wFMCommunicate OK [12:18:31]CreateOFDProtocolMessage done [12:18:31]OFDSenderStorePacket 115365 [12:18:31]StoreOFDPacket docnum=115365 [12:18:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 1D 8B 07 01 FA 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 16 0B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A5 C2 01 00 35 04 06 00 36 72 D9 D7 1E 8B 12 D4 B1 CE 4D 21 FB CC [12:18:31]CheckFolder [12:18:31]dirname=/storage/ofd_packets [12:18:31]CheckFolder done [12:18:31]ProducePacketName [12:18:31]name=ofd_packets/00115365 [12:18:31]NVStorageSaveData ofd_packets/00115365 [12:18:31]File name is /storage/ofd_packets/00115365 [12:18:31]Write 301 bytes [12:18:31]NVStorageSaveData done [12:18:31]OFDSenderStorePacket done [12:18:31]KKMCreateOFDPacket done [12:18:31]NVStorageSaveData kkm_last_timestamp [12:18:31]File name is /storage/kkm_last_timestamp [12:18:31]Write 4 bytes [12:18:31]NVStorageSaveData done [12:18:31]ExternCall_PrintAddStr [12:18:31]wPrintStart [12:18:31]Write to MH i2c: 01 00 00 21 06 27 [12:18:31]Write i2c OK [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: 01 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: 01 07 00 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: 01 07 00 21 06 00 00 00 00 00 FF 0F 3C [12:18:31]RasterBufferAndPrint [12:18:31]line Счет N : (1)24616698 [12:18:31]line ИНН: 02508201610067 [12:18:31]line Контрольно-Кассовый Чек [12:18:31]line ПРОДАЖА [12:18:31]line ТРК (МРК, ГНК) : 43 [12:18:31]line Товар: 2710124130 [12:18:31]line Аи-92-К-5 [12:18:31]line 11.800 * 67.80 [12:18:31]line = 800.04 [12:18:31]line НДС 12% НСП 1% [12:18:31]line > о реализуемом товаре [12:18:31]line ОКРУГЛЕНИЕ: -0.04 [12:18:31]line ИТОГО: 800.00 [12:18:31]line Внесено: 800.00 [12:18:31]line СДАЧА: 0.00 [12:18:31]line НСП 1% : 7.08 [12:18:31]line НДС 12% : 84.96 [12:18:31]line Наличными: 800.00 [12:18:31]line Безнал.: 0.00 [12:18:31]line Место: АЗС № 90 "Партнер Нефть" [12:18:31]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:18:31]line СНО: Общий режим [12:18:31]line Чек 83 22.09.2024 12:18 [12:18:31]line Смена: 471 ФФД: 1.0 [12:18:31]line ЗНМ: 0300000120 [12:18:31]line РНМ: 0000000000091831 [12:18:31]line Версия ККМ: 001 [12:18:31]line ФМ: 0000000000871830 [12:18:31]line ФД: 115365 [12:18:31]line ФПД: 59866908925579 [12:18:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T121830&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115365&fm=59866908925579&tin=02508201610067®Number=0000000000091831&sum=80000 [12:18:31]written 0, free lines is 4095 [12:18:31]OFD Sender: Processing packet 115365 [packets to send 481, broken 480] [12:18:31]ProducePacketName [12:18:31]name=ofd_packets/00115365 [12:18:31]OFD Sender: To server: pG, [12:18:31]CommunicateWithHost lk.salyk.kg:30040 [12:18:31]ConnectInit lk.salyk.kg [12:18:31]Connected sock=10 [12: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 31 38 33 30 0F 01 00 00 1D 8B 07 01 FA 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 16 0B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A5 C2 01 00 35 04 06 00 36 72 D9 D7 1E 8B 12 D4 B1 CE 4D 21 FB CC [12:18:31]Write to MH i2c: 01 00 00 4B 06 51 [12:18:31]Write i2c OK [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: 01 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: 01 07 00 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: 01 07 00 4B 06 00 00 00 00 00 6A 0C CE [12:18:31]RasterBufferAndPrint [12:18:31]line [12:18:31]line [12:18:31]line [12:18:31]line [12:18:31]line [12:18:31]written 0, free lines is 3183 [12:18:31]MH_Cut [12:18:31]Write to MH i2c: D1 01 00 52 06 01 2A [12:18:31]Write i2c OK [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: D1 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: D1 01 00 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: D1 01 00 52 06 00 29 [12:18:31]Write to MH i2c: 01 00 00 53 06 59 [12:18:31]Write i2c OK [12:18:31]MH_I2C_Read... [12:18:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 91 3D 47 00 01 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 31 38 33 30 10 04 04 00 A5 C2 01 00 F4 03 04 00 5C B0 EF 66 B6 04 01 00 00 A0 84 E7 AE 94 71 63 70 [12:18:31]CommunicateWithHost err = 0 [12:18:31]CheckOFDResponse [12:18:31]1017 (14) - 77093643461234 [12:18:31]1041 (16) - 0000000000871830 [12:18:31]1040 (4) - 115365 [12:18:31]1012 (4) - 22.09.2024 05:51 [12:18:31]1206 (1) - 0 [12:18:31]OFD Sender: Remove packet 115365 [12:18:31]ProducePacketName [12:18:31]name=ofd_packets/00115365 [12:18:31]NVStorageDeleteData [12:18:32]OFD Sender: No OFD packet to send [12:18:32]*** Cut start [12:18:32]*** Partial cut [12:18:32]*** CUTSNS_PIN = 1 [12:18:32]*** CUTSNS_PIN = 0 [12:18:33]*** Brake cut motor [12:18:33]Read from MH i2c: 01 [12:18:33]MH_I2C_Read... [12:18:33]*** Stop cut motor [12:18:33]*** Cut end [12:18:33]Read from MH i2c: 01 07 00 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: 01 07 00 53 06 00 00 00 00 00 FF 0F 6E [12:18:33]process_action close_receipt done [12:18:33]requested_data is exist [12:18:33]produce_requested_data [12:18:33]requested_item fm.sn is exist - process it [12:18:33]wFMCommunicate request_size=4 [12:18:33]MH_SAM_APDU [12:18:33]CAPDU: 80 11 00 00 [12:18:33]Write to MH i2c: E2 08 00 54 06 80 11 00 00 00 00 00 00 D4 [12:18:33]Write i2c OK [12:18:33]MH_I2C_Read... [12:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:33]Read from MH i2c: E2 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: E2 17 00 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: E2 17 00 54 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 22 [12:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:18:33]wFMCommunicate OK [12:18:33]requested_item fd.num is exist - process it [12:18:33]SAM_PROTO_GetFieldsCounters [12:18:33]wFMCommunicate request_size=4 [12:18:33]MH_SAM_APDU [12:18:33]CAPDU: 80 13 00 00 [12:18:33]Write to MH i2c: E2 08 00 55 06 80 13 00 00 00 00 00 00 D7 [12:18:33]Write i2c OK [12:18:33]MH_I2C_Read... [12:18:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:33]Read from MH i2c: E2 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: E2 62 00 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: E2 62 00 55 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A5 C2 01 00 0E 04 04 00 D7 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 29 [12: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A5 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:33]wFMCommunicate OK [12:18:33]SAM_PROTO_GetFieldsCounters done [12:18:33]requested_item shift.num is exist - process it [12:18:33]requested_item shift.opened is exist - process it [12:18:33]req_shift_opened [12:18:33]FM_GetShiftState [12:18:33]SAM_PROTO_GetShiftState [12:18:33]wFMCommunicate request_size=4 [12:18:33]MH_SAM_APDU [12:18:33]CAPDU: 80 13 01 00 [12:18:33]Write to MH i2c: E2 08 00 56 06 80 13 01 00 00 00 00 00 D9 [12:18:33]Write i2c OK [12:18:33]MH_I2C_Read... [12:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:33]Read from MH i2c: E2 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: E2 0E 00 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: E2 0E 00 56 06 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F2 [12:18:33]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:18:33]wFMCommunicate OK [12:18:33]SAM_PROTO_GetShiftState done [12:18:33]FM_GetShiftState done [12:18:33]req_shift_opened done [12:18:33]requested_item shift.open_date is exist - process it [12:18:33]req_shift_open_date [12:18:33]req_shift_open_date done [12:18:33]produce_requested_data done [12:18:33]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115365,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [12:18:33]process_action_free close_receipt [12:18:33]json_value_free [12:18:33]json_value_free done [12:18:33]process_json_proto returns [12:18:33]Send response to host [12:18:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115365,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [12:18:33]free response buf [12:18:33]execute_script done [12:18:33]execute_script returns [12:18:33]free content buf [12:18:33]Sock 8.Close socket [12:18:33]Sock 8.Thread stoped [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:45]accept exits with 9 [12:20:45]New connection [12:20:45]New thread 3066682724 created [12:20:45]Thread 3066826084 joined [12:20:45]Waiting for new connection... [12:20:45] Sock 9.Parse request [12:20:45]Sock 9.Check first char [12:20:45]Sock 9.First char is OK [12:20:45]request: POST /json_proto HTTP/1.0 [12:20:45]Method: POST [12:20:45]URL: /json_proto [12:20:45]Method is POST - this is cgi request [12:20:45]url: /json_proto [12:20:45]query_string will be loaded in cgi processing [12:20:45]execute_cgi json_proto POST (null) [12:20:45]execute_cgi path=json_proto method=POST [12:20:45]POST find Content-Length [12:20:45]Host: 172.17.41.136:8080 [12:20:45]Content-Length: 684 [12:20:45]Content-Type: application/json [12:20:45] [12:20:45]POST finish read [12:20:45]Found Content-Length = 684 [12:20:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:45]execute_script... [12:20: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)24616697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:45]POST & json_proto [12:20:45]process_json_proto [12:20:45]json parsed OK: [12:20:45]protocol is kg_v1.0 [12:20:45]action value=close_receipt [12:20:45]process_action close_receipt [12:20:45]cmd_close_receipt [12:20:45]MH_GetDate [12:20:45]Write to MH i2c: F0 00 00 57 06 4C [12:20:45]Write i2c OK [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: F0 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: F0 09 00 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: F0 09 00 57 06 00 9E 0B F0 66 1B D0 5A 64 FD [12:20:45]GetLastDocTimeStamp 1727007510 [12:20:45]current date 1727007646 [12:20:45]FM_GetShiftState [12:20:45]SAM_PROTO_GetShiftState [12:20:45]wFMCommunicate request_size=4 [12:20:45]MH_SAM_APDU [12:20:45]CAPDU: 80 13 01 00 [12:20:45]Write to MH i2c: E2 08 00 58 06 80 13 01 00 00 00 00 00 DB [12:20:45]Write i2c OK [12:20:45]MH_I2C_Read... [12:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:45]Read from MH i2c: E2 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 0E 00 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 0E 00 58 06 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F4 [12:20:45]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:20:45]wFMCommunicate OK [12:20:45]SAM_PROTO_GetShiftState done [12:20:45]FM_GetShiftState done [12:20:45]opened in 1726965840 [12:20:45]opened+sec_in_day 1727052240 [12:20:45]quantity*price = 300064 [12:20:45]sum+1 = 300066 [12:20:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 84 22.09.2024 12:20 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115366 ФПД: 109651864308211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T122046&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115366&fm=109651864308211&tin=02508201610067®Number=0000000000091831&sum=300000 [12:20:46]StoreToDocumentArchive [12:20:46]shift 471 fd 115366 [12:20:46]save to /storage/0471/doc_00115366 [12:20:46]save last doc name /storage/0471/doc_00115366 to /storage/kkm_last_doc_name [12:20:46]save OK [12:20:46]Clear old archive folders... [12:20:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:46]tlvbuf is 01C47730 [12:20:46]SAM_PROTO_ClearQueue [12:20:46]wFMCommunicate request_size=4 [12:20:46]MH_SAM_APDU [12:20:46]CAPDU: 80 09 00 00 [12:20:46]Write to MH i2c: E2 08 00 65 06 80 09 00 00 00 00 00 00 DD [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:46]Read from MH i2c: E2 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 03 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 03 00 65 06 00 90 00 DF [12:20:46]RAPDU: 90 00 [12:20:46]wFMCommunicate OK [12:20:46]SAM_PROTO_ClearQueue done [12:20:46]KKMCreateOFDPacket [12:20:46]OFDProtocolAddRootSTLVToBuf [12:20:46]FM_MakeSignedData [12:20:46]FM_MakeSignedData [12:20:46]SAM_PROTO_SignData [12:20:46]wFMCommunicate request_size=4 [12:20:46]MH_SAM_APDU [12:20:46]CAPDU: 80 0D 01 02 [12:20:46]Write to MH i2c: E2 08 00 66 06 80 0D 01 02 00 00 00 00 E5 [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:46]Read from MH i2c: E2 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 03 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 03 00 66 06 00 90 00 E0 [12:20:46]RAPDU: 90 00 [12:20:46]wFMCommunicate OK [12:20:46]wFMCommunicate request_size=255 [12:20:46]MH_SAM_APDU [12:20:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9E 0B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A6 C2 01 00 35 04 06 00 63 [12:20:46]Write to MH i2c: E2 02 01 67 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9E 0B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A6 C2 01 00 35 04 06 00 63 00 00 94 [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:46]Read from MH i2c: E2 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 03 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 03 00 67 06 00 90 00 E1 [12:20:46]RAPDU: 90 00 [12:20:46]wFMCommunicate OK [12:20:46]wFMCommunicate request_size=10 [12:20:46]MH_SAM_APDU [12:20:46]CAPDU: 80 0D 02 02 05 BA 50 6B C9 F3 [12:20:46]Write to MH i2c: E2 0D 00 68 06 80 0D 02 02 05 00 BA 50 6B C9 F3 00 00 23 [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:46]Read from MH i2c: E2 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 03 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 03 00 68 06 00 90 00 E2 [12:20:46]RAPDU: 90 00 [12:20:46]wFMCommunicate OK [12:20:46]wFMCommunicate request_size=4 [12:20:46]MH_SAM_APDU [12:20:46]CAPDU: 80 0D 03 02 [12:20:46]Write to MH i2c: E2 08 00 69 06 80 0D 03 02 00 00 00 00 EA [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:46]Read from MH i2c: E2 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 0B 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 0B 00 69 06 00 24 2B F5 5B 13 B0 3F 35 90 00 C1 [12:20:46]RAPDU: 24 2B F5 5B 13 B0 3F 35 90 00 [12:20:46]wFMCommunicate OK [12:20:46]SAM_PROTO_SignData done [12:20:46]FM_MakeSignedData done [12:20:46]CreateOFDProtocolMessage [12:20:46]wFMCommunicate request_size=4 [12:20:46]MH_SAM_APDU [12:20:46]CAPDU: 80 11 00 00 [12:20:46]Write to MH i2c: E2 08 00 6A 06 80 11 00 00 00 00 00 00 EA [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:46]Read from MH i2c: E2 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 17 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 17 00 6A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 38 [12:20:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:20:46]wFMCommunicate OK [12:20:46]CreateOFDProtocolMessage done [12:20:46]OFDSenderStorePacket 115366 [12:20:46]StoreOFDPacket docnum=115366 [12:20:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 67 80 07 01 0F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9E 0B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A6 C2 01 00 35 04 06 00 63 BA 50 6B C9 F3 24 2B F5 5B 13 B0 3F 35 [12:20:46]CheckFolder [12:20:46]dirname=/storage/ofd_packets [12:20:46]CheckFolder done [12:20:46]ProducePacketName [12:20:46]name=ofd_packets/00115366 [12:20:46]NVStorageSaveData ofd_packets/00115366 [12:20:46]File name is /storage/ofd_packets/00115366 [12:20:46]Write 301 bytes [12:20:46]NVStorageSaveData done [12:20:46]OFDSenderStorePacket done [12:20:46]KKMCreateOFDPacket done [12:20:46]NVStorageSaveData kkm_last_timestamp [12:20:46]File name is /storage/kkm_last_timestamp [12:20:46]Write 4 bytes [12:20:46]NVStorageSaveData done [12:20:46]ExternCall_PrintAddStr [12:20:46]wPrintStart [12:20:46]Write to MH i2c: 01 00 00 6B 06 71 [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 07 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 07 00 6B 06 00 00 00 00 00 FF 0F 86 [12:20:46]RasterBufferAndPrint [12:20:46]line Счет N : (1)24616697 [12:20:46]line ИНН: 02508201610067 [12:20:46]line Контрольно-Кассовый Чек [12:20:46]line ПРОДАЖА [12:20:46]line ТРК (МРК, ГНК) : 52 [12:20:46]line Товар: 2710124500 [12:20:46]line Аи-95-К-5 [12:20:46]line 40.440 * 74.20 [12:20:46]line = 3000.65 [12:20:46]line НДС 12% НСП 1% [12:20:46]line > о реализуемом товаре [12:20:46]line ОКРУГЛЕНИЕ: -0.65 [12:20:46]line ИТОГО: 3000.00 [12:20:46]line Внесено: 3000.00 [12:20:46]line СДАЧА: 0.00 [12:20:46]line НСП 1% : 26.55 [12:20:46]line НДС 12% : 318.65 [12:20:46]line Наличными: 3000.00 [12:20:46]line Безнал.: 0.00 [12:20:46]line Место: АЗС № 90 "Партнер Нефть" [12:20:46]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:20:46]line СНО: Общий режим [12:20:46]line Чек 84 22.09.2024 12:20 [12:20:46]line Смена: 471 ФФД: 1.0 [12:20:46]line ЗНМ: 0300000120 [12:20:46]line РНМ: 0000000000091831 [12:20:46]line Версия ККМ: 001 [12:20:46]line ФМ: 0000000000871830 [12:20:46]line ФД: 115366 [12:20:46]line ФПД: 109651864308211 [12:20:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T122046&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115366&fm=109651864308211&tin=02508201610067®Number=0000000000091831&sum=300000 [12:20:47]OFD Sender: Processing packet 115366 [packets to send 481, broken 480] [12:20:47]ProducePacketName [12:20:47]name=ofd_packets/00115366 [12:20:47]OFD Sender: To server: pG, [12:20:47]CommunicateWithHost lk.salyk.kg:30040 [12:20:47]ConnectInit lk.salyk.kg [12:20:47]written 0, free lines is 4095 [12:20:47]Connected sock=10 [12:20:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 67 80 07 01 0F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9E 0B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A6 C2 01 00 35 04 06 00 63 BA 50 6B C9 F3 24 2B F5 5B 13 B0 3F 35 [12:20:47]Write to MH i2c: 01 00 00 95 06 9B [12:20:47]Write i2c OK [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: 01 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: 01 07 00 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: 01 07 00 95 06 00 00 00 00 00 5E 0C 0C [12:20:47]RasterBufferAndPrint [12:20:47]line [12:20:47]line [12:20:47]line [12:20:47]line [12:20:47]line [12:20:47]written 0, free lines is 3171 [12:20:47]MH_Cut [12:20:47]Write to MH i2c: D1 01 00 9C 06 01 74 [12:20:47]Write i2c OK [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: D1 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: D1 01 00 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: D1 01 00 9C 06 00 73 [12:20:47]Write to MH i2c: 01 00 00 9D 06 A3 [12:20:47]Write i2c OK [12:20:47]MH_I2C_Read... [12:20:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 9E 4C 47 00 DD 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A6 C2 01 00 F4 03 04 00 E4 B0 EF 66 B6 04 01 00 00 52 A8 B0 BF D4 CE ED 01 [12:20:47]CommunicateWithHost err = 0 [12:20:47]CheckOFDResponse [12:20:47]1017 (14) - 77093643461234 [12:20:47]1041 (16) - 0000000000871830 [12:20:47]1040 (4) - 115366 [12:20:47]1012 (4) - 22.09.2024 05:53 [12:20:47]1206 (1) - 0 [12:20:47]OFD Sender: Remove packet 115366 [12:20:47]ProducePacketName [12:20:47]name=ofd_packets/00115366 [12:20:47]NVStorageDeleteData [12:20:48]OFD Sender: No OFD packet to send [12:20:48]*** Cut start [12:20:48]*** Partial cut [12:20:48]*** CUTSNS_PIN = 1 [12:20:48]*** CUTSNS_PIN = 0 [12:20:49]*** Brake cut motor [12:20:49]Read from MH i2c: 01 [12:20:49]MH_I2C_Read... [12:20:49]*** Stop cut motor [12:20:49]*** Cut end [12:20:49]Read from MH i2c: 01 07 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: 01 07 00 9D 06 00 00 00 00 00 FF 0F B8 [12:20:49]process_action close_receipt done [12:20:49]requested_data is exist [12:20:49]produce_requested_data [12:20:49]requested_item fm.sn is exist - process it [12:20:49]wFMCommunicate request_size=4 [12:20:49]MH_SAM_APDU [12:20:49]CAPDU: 80 11 00 00 [12:20:49]Write to MH i2c: E2 08 00 9E 06 80 11 00 00 00 00 00 00 1E [12:20:49]Write i2c OK [12:20:49]MH_I2C_Read... [12:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:49]Read from MH i2c: E2 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 17 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 17 00 9E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6C [12:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:20:49]wFMCommunicate OK [12:20:49]requested_item fd.num is exist - process it [12:20:49]SAM_PROTO_GetFieldsCounters [12:20:49]wFMCommunicate request_size=4 [12:20:49]MH_SAM_APDU [12:20:49]CAPDU: 80 13 00 00 [12:20:49]Write to MH i2c: E2 08 00 9F 06 80 13 00 00 00 00 00 00 21 [12:20:49]Write i2c OK [12:20:49]MH_I2C_Read... [12:20:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:49]Read from MH i2c: E2 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 62 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 62 00 9F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A6 C2 01 00 0E 04 04 00 D7 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 77 [12:20:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A6 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:49]wFMCommunicate OK [12:20:49]SAM_PROTO_GetFieldsCounters done [12:20:49]requested_item shift.num is exist - process it [12:20:49]requested_item shift.opened is exist - process it [12:20:49]req_shift_opened [12:20:49]FM_GetShiftState [12:20:49]SAM_PROTO_GetShiftState [12:20:49]wFMCommunicate request_size=4 [12:20:49]MH_SAM_APDU [12:20:49]CAPDU: 80 13 01 00 [12:20:49]Write to MH i2c: E2 08 00 A0 06 80 13 01 00 00 00 00 00 23 [12:20:49]Write i2c OK [12:20:49]MH_I2C_Read... [12:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:49]Read from MH i2c: E2 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 0E 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 0E 00 A0 06 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 3C [12:20:49]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:20:49]wFMCommunicate OK [12:20:49]SAM_PROTO_GetShiftState done [12:20:49]FM_GetShiftState done [12:20:49]req_shift_opened done [12:20:49]requested_item shift.open_date is exist - process it [12:20:49]req_shift_open_date [12:20:49]req_shift_open_date done [12:20:49]produce_requested_data done [12:20:49]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115366,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [12:20:49]process_action_free close_receipt [12:20:49]json_value_free [12:20:49]json_value_free done [12:20:49]process_json_proto returns [12:20:49]Send response to host [12:20:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115366,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [12:20:49]free response buf [12:20:49]execute_script done [12:20:49]execute_script returns [12:20:49]free content buf [12:20:49]Sock 9.Close socket [12:20:49]Sock 9.Thread stoped [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:33]accept exits with 8 [12:26:33]New connection [12:26:33]New thread 3066826084 created [12:26:33]Thread 3066682724 joined [12:26:33]Waiting for new connection... [12:26:33] Sock 8.Parse request [12:26:33]Sock 8.Check first char [12:26:33]Sock 8.First char is OK [12:26:33]request: POST /json_proto HTTP/1.0 [12:26:33]Method: POST [12:26:33]URL: /json_proto [12:26:33]Method is POST - this is cgi request [12:26:33]url: /json_proto [12:26:33]query_string will be loaded in cgi processing [12:26:33]execute_cgi json_proto POST (null) [12:26:33]execute_cgi path=json_proto method=POST [12:26:33]POST find Content-Length [12:26:33]Host: 172.17.41.136:8080 [12:26:33]Content-Length: 646 [12:26:33]Content-Type: application/json [12:26:33] [12:26:33]POST finish read [12:26:33]Found Content-Length = 646 [12:26:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343820", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:33]execute_script... [12:26:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343820", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:33]POST & json_proto [12:26:33]process_json_proto [12:26:33]json parsed OK: [12:26:33]protocol is kg_v1.0 [12:26:33]action value=close_receipt [12:26:33]process_action close_receipt [12:26:33]cmd_close_receipt [12:26:33]MH_GetDate [12:26:33]Write to MH i2c: F0 00 00 A1 06 96 [12:26:33]Write i2c OK [12:26:33]MH_I2C_Read... [12:26:33]Read from MH i2c: F0 [12:26:33]MH_I2C_Read... [12:26:33]Read from MH i2c: F0 09 00 [12:26:33]MH_I2C_Read... [12:26:33]Read from MH i2c: F0 09 00 A1 06 00 FA 0C F0 66 1B D0 5A 64 A4 [12:26:33]GetLastDocTimeStamp 1727007646 [12:26:33]current date 1727007994 [12:26:33]FM_GetShiftState [12:26:33]SAM_PROTO_GetShiftState [12:26:33]wFMCommunicate request_size=4 [12:26:33]MH_SAM_APDU [12:26:33]CAPDU: 80 13 01 00 [12:26:33]Write to MH i2c: E2 08 00 A2 06 80 13 01 00 00 00 00 00 25 [12:26:33]Write i2c OK [12:26:33]MH_I2C_Read... [12:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:33]Read from MH i2c: E2 [12:26:33]MH_I2C_Read... [12:26:33]Read from MH i2c: E2 0E 00 [12:26:33]MH_I2C_Read... [12:26:33]Read from MH i2c: E2 0E 00 A2 06 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 3E [12:26:33]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:26:33]wFMCommunicate OK [12:26:33]SAM_PROTO_GetShiftState done [12:26:33]FM_GetShiftState done [12:26:33]opened in 1726965840 [12:26:33]opened+sec_in_day 1727052240 [12:26:33]quantity*price = 26000 [12:26:33]sum+1 = 26001 [12:26:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 85 22.09.2024 12:26 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115367 ФПД: 256188287486385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T122634&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115367&fm=256188287486385&tin=02508201610067®Number=0000000000091831&sum=26000 0 [12:26:34]StoreToDocumentArchive [12:26:34]shift 471 fd 115367 [12:26:34]save to /storage/0471/doc_00115367 [12:26:34]save last doc name /storage/0471/doc_00115367 to /storage/kkm_last_doc_name [12:26:34]save OK [12:26:34]Clear old archive folders... [12:26:34]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:26:34]tlvbuf is 01BE3920 [12:26:34]SAM_PROTO_ClearQueue [12:26:34]wFMCommunicate request_size=4 [12:26:34]MH_SAM_APDU [12:26:34]CAPDU: 80 09 00 00 [12:26:34]Write to MH i2c: E2 08 00 AF 06 80 09 00 00 00 00 00 00 27 [12:26:34]Write i2c OK [12:26:34]MH_I2C_Read... [12:26:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:34]Read from MH i2c: E2 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 03 00 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 03 00 AF 06 00 90 00 29 [12:26:34]RAPDU: 90 00 [12:26:34]wFMCommunicate OK [12:26:34]SAM_PROTO_ClearQueue done [12:26:34]KKMCreateOFDPacket [12:26:34]OFDProtocolAddRootSTLVToBuf [12:26:34]FM_MakeSignedData [12:26:34]FM_MakeSignedData [12:26:34]SAM_PROTO_SignData [12:26:34]wFMCommunicate request_size=4 [12:26:34]MH_SAM_APDU [12:26:34]CAPDU: 80 0D 01 02 [12:26:34]Write to MH i2c: E2 08 00 B0 06 80 0D 01 02 00 00 00 00 2F [12:26:34]Write i2c OK [12:26:34]MH_I2C_Read... [12:26:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:34]Read from MH i2c: E2 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 03 00 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 03 00 B0 06 00 90 00 2A [12:26:34]RAPDU: 90 00 [12:26:34]wFMCommunicate OK [12:26:34]wFMCommunicate request_size=255 [12:26:34]MH_SAM_APDU [12:26:34]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 FA 0C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 [12:26:34]Write to MH i2c: E2 02 01 B1 06 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 FA 0C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 00 00 7E [12:26:34]Write i2c OK [12:26:34]MH_I2C_Read... [12:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:35]Read from MH i2c: E2 [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: E2 03 00 [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: E2 03 00 B1 06 00 90 00 2B [12:26:35]RAPDU: 90 00 [12:26:35]wFMCommunicate OK [12:26:35]wFMCommunicate request_size=41 [12:26:35]MH_SAM_APDU [12:26:35]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A7 C2 01 00 35 04 06 00 E9 00 7B DF 09 B1 [12:26:35]Write to MH i2c: E2 2C 00 B2 06 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A7 C2 01 00 35 04 06 00 E9 00 7B DF 09 B1 00 00 63 [12:26:35]Write i2c OK [12:26:35]MH_I2C_Read... [12:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:35]Read from MH i2c: E2 [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: E2 03 00 [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: E2 03 00 B2 06 00 90 00 2C [12:26:35]RAPDU: 90 00 [12:26:35]wFMCommunicate OK [12:26:35]wFMCommunicate request_size=4 [12:26:35]MH_SAM_APDU [12:26:35]CAPDU: 80 0D 03 02 [12:26:35]Write to MH i2c: E2 08 00 B3 06 80 0D 03 02 00 00 00 00 34 [12:26:35]Write i2c OK [12:26:35]MH_I2C_Read... [12:26:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:35]Read from MH i2c: E2 [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: E2 0B 00 [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: E2 0B 00 B3 06 00 43 86 F1 70 F5 A3 55 6D 90 00 B9 [12:26:35]RAPDU: 43 86 F1 70 F5 A3 55 6D 90 00 [12:26:35]wFMCommunicate OK [12:26:35]SAM_PROTO_SignData done [12:26:35]FM_MakeSignedData done [12:26:35]CreateOFDProtocolMessage [12:26:35]wFMCommunicate request_size=4 [12:26:35]MH_SAM_APDU [12:26:35]CAPDU: 80 11 00 00 [12:26:35]Write to MH i2c: E2 08 00 B4 06 80 11 00 00 00 00 00 00 34 [12:26:35]Write i2c OK [12:26:35]MH_I2C_Read... [12:26:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:35]Read from MH i2c: E2 [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: E2 17 00 [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: E2 17 00 B4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 82 [12:26:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:26:35]wFMCommunicate OK [12:26:35]CreateOFDProtocolMessage done [12:26:35]OFDSenderStorePacket 115367 [12:26:35]StoreOFDPacket docnum=115367 [12:26:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2E 01 00 00 94 0D 26 01 20 48 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 FA 0C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A7 C2 01 00 35 04 06 00 E9 00 7B DF 09 B1 43 86 F1 70 F5 A3 55 6D [12:26:35]CheckFolder [12:26:35]dirname=/storage/ofd_packets [12:26:35]CheckFolder done [12:26:35]ProducePacketName [12:26:35]name=ofd_packets/00115367 [12:26:35]NVStorageSaveData ofd_packets/00115367 [12:26:35]File name is /storage/ofd_packets/00115367 [12:26:35]Write 332 bytes [12:26:35]NVStorageSaveData done [12:26:35]OFDSenderStorePacket done [12:26:35]KKMCreateOFDPacket done [12:26:35]NVStorageSaveData kkm_last_timestamp [12:26:35]File name is /storage/kkm_last_timestamp [12:26:35]Write 4 bytes [12:26:35]NVStorageSaveData done [12:26:35]ExternCall_PrintAddStr [12:26:35]wPrintStart [12:26:35]Write to MH i2c: 01 00 00 B5 06 BB [12:26:35]Write i2c OK [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: 01 [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: 01 07 00 [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: 01 07 00 B5 06 00 00 00 00 00 FF 0F D0 [12:26:35]RasterBufferAndPrint [12:26:35]line Счет N : (3)343820 [12:26:35]line ИНН: 02508201610067 [12:26:35]line Контрольно-Кассовый Чек [12:26:35]line ПРОДАЖА [12:26:35]line Товар: 2000036220012 [12:26:35]line Кофе Капучино XL(GABB TRADE) [12:26:35]line 2.000 * 130.00 [12:26:35]line = 260.00 [12:26:35]line НДС 12% НСП 1% [12:26:35]line > о реализуемом товаре [12:26:35]line ИТОГО: 260.00 [12:26:35]line НСП 1% : 2.30 [12:26:35]line НДС 12% : 27.61 [12:26:35]line Наличными: 260.00 [12:26:35]line Безнал.: 0.00 [12:26:35]line Место: АЗС № 90 "Партнер Нефть" [12:26:35]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:26:35]line СНО: Общий режим [12:26:35]line Чек 85 22.09.2024 12:26 [12:26:35]line Смена: 471 ФФД: 1.0 [12:26:35]line ЗНМ: 0300000120 [12:26:35]line РНМ: 0000000000091831 [12:26:35]line Версия ККМ: 001 [12:26:35]line ФМ: 0000000000871830 [12:26:35]line ФД: 115367 [12:26:35]line ФПД: 256188287486385 [12:26:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T122634&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115367&fm=256188287486385&tin=02508201610067®Number=0000000000091831&sum=26000 [12:26:35]line 0 [12:26:35]OFD Sender: Processing packet 115367 [packets to send 481, broken 480] [12:26:35]ProducePacketName [12:26:35]name=ofd_packets/00115367 [12:26:35]OFD Sender: To server: pG, [12:26:35]CommunicateWithHost lk.salyk.kg:30040 [12:26:35]ConnectInit lk.salyk.kg [12:26:35]written 0, free lines is 4095 [12:26:35]Connected sock=10 [12:26:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2E 01 00 00 94 0D 26 01 20 48 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 FA 0C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A7 C2 01 00 35 04 06 00 E9 00 7B DF 09 B1 43 86 F1 70 F5 A3 55 6D [12:26:36]Write to MH i2c: 01 00 00 DD 06 E3 [12:26:36]Write i2c OK [12:26:36]MH_I2C_Read... [12:26:36]Read from MH i2c: 01 [12:26:36]MH_I2C_Read... [12:26:36]Read from MH i2c: 01 07 00 [12:26:36]MH_I2C_Read... [12:26:36]Read from MH i2c: 01 07 00 DD 06 00 00 00 00 00 6B 0C 61 [12:26:36]RasterBufferAndPrint [12:26:36]line [12:26:36]line [12:26:36]line [12:26:36]line [12:26:36]line [12:26:36]written 0, free lines is 3183 [12:26:36]MH_Cut [12:26:36]Write to MH i2c: D1 01 00 E4 06 01 BC [12:26:36]Write i2c OK [12:26:36]MH_I2C_Read... [12:26:36]Read from MH i2c: D1 [12:26:36]MH_I2C_Read... [12:26:36]Read from MH i2c: D1 01 00 [12:26:36]MH_I2C_Read... [12:26:36]Read from MH i2c: D1 01 00 E4 06 00 BB [12:26:36]Write to MH i2c: 01 00 00 E5 06 EB [12:26:36]Write i2c OK [12:26:36]MH_I2C_Read... [12:26:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 7F 51 47 00 46 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A7 C2 01 00 F4 03 04 00 40 B2 EF 66 B6 04 01 00 00 AC 2F E2 7E 4E CF 3E A3 [12:26:36]CommunicateWithHost err = 0 [12:26:36]CheckOFDResponse [12:26:36]1017 (14) - 77093643461234 [12:26:36]1041 (16) - 0000000000871830 [12:26:36]1040 (4) - 115367 [12:26:36]1012 (4) - 22.09.2024 05:59 [12:26:36]1206 (1) - 0 [12:26:36]OFD Sender: Remove packet 115367 [12:26:36]ProducePacketName [12:26:36]name=ofd_packets/00115367 [12:26:36]NVStorageDeleteData [12:26:36]OFD Sender: No OFD packet to send [12:26:37]*** Cut start [12:26:37]*** Partial cut [12:26:37]*** CUTSNS_PIN = 1 [12:26:37]*** CUTSNS_PIN = 0 [12:26:37]*** Brake cut motor [12:26:37]Read from MH i2c: 01 [12:26:37]MH_I2C_Read... [12:26:37]*** Stop cut motor [12:26:37]*** Cut end [12:26:37]Read from MH i2c: 01 07 00 [12:26:37]MH_I2C_Read... [12:26:37]Read from MH i2c: 01 07 00 E5 06 00 00 00 00 00 FF 0F 00 [12:26:37]process_action close_receipt done [12:26:37]requested_data is exist [12:26:37]produce_requested_data [12:26:37]requested_item fm.sn is exist - process it [12:26:37]wFMCommunicate request_size=4 [12:26:37]MH_SAM_APDU [12:26:37]CAPDU: 80 11 00 00 [12:26:37]Write to MH i2c: E2 08 00 E6 06 80 11 00 00 00 00 00 00 66 [12:26:37]Write i2c OK [12:26:37]MH_I2C_Read... [12:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:37]Read from MH i2c: E2 [12:26:37]MH_I2C_Read... [12:26:37]Read from MH i2c: E2 17 00 [12:26:37]MH_I2C_Read... [12:26:37]Read from MH i2c: E2 17 00 E6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B4 [12:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:26:37]wFMCommunicate OK [12:26:37]requested_item fd.num is exist - process it [12:26:37]SAM_PROTO_GetFieldsCounters [12:26:37]wFMCommunicate request_size=4 [12:26:37]MH_SAM_APDU [12:26:37]CAPDU: 80 13 00 00 [12:26:37]Write to MH i2c: E2 08 00 E7 06 80 13 00 00 00 00 00 00 69 [12:26:37]Write i2c OK [12:26:37]MH_I2C_Read... [12:26:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:38]Read from MH i2c: E2 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 62 00 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 62 00 E7 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A7 C2 01 00 0E 04 04 00 D7 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 C3 [12:26:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A7 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:38]wFMCommunicate OK [12:26:38]SAM_PROTO_GetFieldsCounters done [12:26:38]requested_item shift.num is exist - process it [12:26:38]requested_item shift.opened is exist - process it [12:26:38]req_shift_opened [12:26:38]FM_GetShiftState [12:26:38]SAM_PROTO_GetShiftState [12:26:38]wFMCommunicate request_size=4 [12:26:38]MH_SAM_APDU [12:26:38]CAPDU: 80 13 01 00 [12:26:38]Write to MH i2c: E2 08 00 E8 06 80 13 01 00 00 00 00 00 6B [12:26:38]Write i2c OK [12:26:38]MH_I2C_Read... [12:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:38]Read from MH i2c: E2 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 0E 00 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 0E 00 E8 06 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 84 [12:26:38]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:26:38]wFMCommunicate OK [12:26:38]SAM_PROTO_GetShiftState done [12:26:38]FM_GetShiftState done [12:26:38]req_shift_opened done [12:26:38]requested_item shift.open_date is exist - process it [12:26:38]req_shift_open_date [12:26:38]req_shift_open_date done [12:26:38]produce_requested_data done [12:26:38]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115367,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [12:26:38]process_action_free close_receipt [12:26:38]json_value_free [12:26:38]json_value_free done [12:26:38]process_json_proto returns [12:26:38]Send response to host [12:26:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115367,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [12:26:38]free response buf [12:26:38]execute_script done [12:26:38]execute_script returns [12:26:38]free content buf [12:26:38]Sock 8.Close socket [12:26:38]Sock 8.Thread stoped [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]accept exits with 9 [12:32:27]New connection [12:32:27]New thread 3066682724 created [12:32:27]Thread 3066826084 joined [12:32:27]Waiting for new connection... [12:32:27] Sock 9.Parse request [12:32:27]Sock 9.Check first char [12:32:27]Sock 9.First char is OK [12:32:27]request: POST /json_proto HTTP/1.0 [12:32:27]Method: POST [12:32:27]URL: /json_proto [12:32:27]Method is POST - this is cgi request [12:32:27]url: /json_proto [12:32:27]query_string will be loaded in cgi processing [12:32:27]execute_cgi json_proto POST (null) [12:32:27]execute_cgi path=json_proto method=POST [12:32:27]POST find Content-Length [12:32:27]Host: 172.17.41.136:8080 [12:32:27]Content-Length: 1021 [12:32:27]Content-Type: application/json [12:32:27] [12:32:27]POST finish read [12:32:27]Found Content-Length = 1021 [12:32:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343821", "tax_sys" : 0, "items" : [ { "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:27]execute_script... [12:32:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343821", "tax_sys" : 0, "items" : [ { "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:27]POST & json_proto [12:32:27]process_json_proto [12:32:27]json parsed OK: [12:32:27]protocol is kg_v1.0 [12:32:27]action value=close_receipt [12:32:27]process_action close_receipt [12:32:27]cmd_close_receipt [12:32:27]MH_GetDate [12:32:27]Write to MH i2c: F0 00 00 E9 06 DE [12:32:27]Write i2c OK [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: F0 [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: F0 09 00 [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: F0 09 00 E9 06 00 5C 0E F0 66 1B D0 5A 64 50 [12:32:27]GetLastDocTimeStamp 1727007994 [12:32:27]current date 1727008348 [12:32:27]FM_GetShiftState [12:32:27]SAM_PROTO_GetShiftState [12:32:27]wFMCommunicate request_size=4 [12:32:27]MH_SAM_APDU [12:32:27]CAPDU: 80 13 01 00 [12:32:27]Write to MH i2c: E2 08 00 EA 06 80 13 01 00 00 00 00 00 6D [12:32:27]Write i2c OK [12:32:27]MH_I2C_Read... [12:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:27]OFD Sender: No OFD packet to send [12:32:27]Read from MH i2c: E2 [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: E2 0E 00 [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: E2 0E 00 EA 06 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 86 [12:32:27]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:32:27]wFMCommunicate OK [12:32:27]SAM_PROTO_GetShiftState done [12:32:27]FM_GetShiftState done [12:32:27]opened in 1726965840 [12:32:27]opened+sec_in_day 1727052240 [12:32:27]quantity*price = 10000 [12:32:27]sum+1 = 10001 [12:32:27]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032760017 Слойка DC треугольная мясо110г 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 86 22.09.2024 12:32 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115368 ФПД: 64220755974546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T123228&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115368&fm=64220755974546&tin=02508201610067®Number=0000000000091831&sum=23000 0 [12:32:28]StoreToDocumentArchive [12:32:28]shift 471 fd 115368 [12:32:28]save to /storage/0471/doc_00115368 [12:32:28]save last doc name /storage/0471/doc_00115368 to /storage/kkm_last_doc_name [12:32:28]save OK [12:32:28]Clear old archive folders... [12:32:28]ProcessDocumentItem done err = 0, tmpTLVsize=428 [12:32:28]tlvbuf is 01C0C4B0 [12:32:28]SAM_PROTO_ClearQueue [12:32:28]wFMCommunicate request_size=4 [12:32:28]MH_SAM_APDU [12:32:28]CAPDU: 80 09 00 00 [12:32:28]Write to MH i2c: E2 08 00 F7 06 80 09 00 00 00 00 00 00 6F [12:32:28]Write i2c OK [12:32:28]MH_I2C_Read... [12:32:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:28]Read from MH i2c: E2 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 03 00 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 03 00 F7 06 00 90 00 71 [12:32:28]RAPDU: 90 00 [12:32:28]wFMCommunicate OK [12:32:28]SAM_PROTO_ClearQueue done [12:32:28]KKMCreateOFDPacket [12:32:28]OFDProtocolAddRootSTLVToBuf [12:32:28]FM_MakeSignedData [12:32:28]FM_MakeSignedData [12:32:28]SAM_PROTO_SignData [12:32:28]wFMCommunicate request_size=4 [12:32:28]MH_SAM_APDU [12:32:28]CAPDU: 80 0D 01 02 [12:32:28]Write to MH i2c: E2 08 00 F8 06 80 0D 01 02 00 00 00 00 77 [12:32:28]Write i2c OK [12:32:28]MH_I2C_Read... [12:32:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:28]Read from MH i2c: E2 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 03 00 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 03 00 F8 06 00 90 00 72 [12:32:28]RAPDU: 90 00 [12:32:28]wFMCommunicate OK [12:32:28]wFMCommunicate request_size=255 [12:32:28]MH_SAM_APDU [12:32:28]CAPDU: 80 0D 02 02 FA 03 00 AC 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 [12:32:28]Write to MH i2c: E2 02 01 F9 06 80 0D 02 02 FA 00 03 00 AC 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F7 [12:32:28]Write i2c OK [12:32:28]MH_I2C_Read... [12:32:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:29]Read from MH i2c: E2 [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: E2 03 00 [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: E2 03 00 F9 06 00 90 00 73 [12:32:29]RAPDU: 90 00 [12:32:29]wFMCommunicate OK [12:32:29]wFMCommunicate request_size=187 [12:32:29]MH_SAM_APDU [12:32:29]CAPDU: 80 0D 02 02 B6 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 5C 0E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A8 C2 01 00 35 04 06 00 3A 68 8F 58 D9 92 [12:32:29]Write to MH i2c: E2 BE 00 FA 06 80 0D 02 02 B6 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 5C 0E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A8 C2 01 00 35 04 06 00 3A 68 8F 58 D9 92 00 00 E1 [12:32:29]Write i2c OK [12:32:29]MH_I2C_Read... [12:32:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:29]Read from MH i2c: E2 [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: E2 03 00 [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: E2 03 00 FA 06 00 90 00 74 [12:32:29]RAPDU: 90 00 [12:32:29]wFMCommunicate OK [12:32:29]wFMCommunicate request_size=4 [12:32:29]MH_SAM_APDU [12:32:29]CAPDU: 80 0D 03 02 [12:32:29]Write to MH i2c: E2 08 00 FB 06 80 0D 03 02 00 00 00 00 7C [12:32:29]Write i2c OK [12:32:29]MH_I2C_Read... [12:32:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:29]Read from MH i2c: E2 [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: E2 0B 00 [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: E2 0B 00 FB 06 00 02 A7 34 10 3B 97 7A 16 90 00 CC [12:32:29]RAPDU: 02 A7 34 10 3B 97 7A 16 90 00 [12:32:29]wFMCommunicate OK [12:32:29]SAM_PROTO_SignData done [12:32:29]FM_MakeSignedData done [12:32:29]CreateOFDProtocolMessage [12:32:29]wFMCommunicate request_size=4 [12:32:29]MH_SAM_APDU [12:32:29]CAPDU: 80 11 00 00 [12:32:29]Write to MH i2c: E2 08 00 FC 06 80 11 00 00 00 00 00 00 7C [12:32:29]Write i2c OK [12:32:29]MH_I2C_Read... [12:32:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:29]Read from MH i2c: E2 [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: E2 17 00 [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: E2 17 00 FC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CA [12:32:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:32:29]wFMCommunicate OK [12:32:29]CreateOFDProtocolMessage done [12:32:29]OFDSenderStorePacket 115368 [12:32:29]StoreOFDPacket docnum=115368 [12:32:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 C0 01 00 00 A1 B9 B8 01 E8 CE 5A 03 01 00 03 00 AC 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 5C 0E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A8 C2 01 00 35 04 06 00 3A 68 8F 58 D9 92 02 A7 34 10 3B 97 7A 16 [12:32:29]CheckFolder [12:32:29]dirname=/storage/ofd_packets [12:32:29]CheckFolder done [12:32:29]ProducePacketName [12:32:29]name=ofd_packets/00115368 [12:32:29]NVStorageSaveData ofd_packets/00115368 [12:32:29]File name is /storage/ofd_packets/00115368 [12:32:29]Write 478 bytes [12:32:29]NVStorageSaveData done [12:32:29]OFDSenderStorePacket done [12:32:29]KKMCreateOFDPacket done [12:32:29]NVStorageSaveData kkm_last_timestamp [12:32:29]File name is /storage/kkm_last_timestamp [12:32:29]Write 4 bytes [12:32:29]NVStorageSaveData done [12:32:29]ExternCall_PrintAddStr [12:32:29]wPrintStart [12:32:29]Write to MH i2c: 01 00 00 FD 06 03 [12:32:29]Write i2c OK [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: 01 [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: 01 07 00 [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: 01 07 00 FD 06 00 00 00 00 00 FF 0F 18 [12:32:29]RasterBufferAndPrint [12:32:29]line Счет N : (3)343821 [12:32:29]line ИНН: 02508201610067 [12:32:29]line Контрольно-Кассовый Чек [12:32:29]line ПРОДАЖА [12:32:29]line Товар: 5449000273680 [12:32:29]line Сок Piko Pulpy красный виноград ПЭТ 0,5л [12:32:29]line 1.000 * 100.00 [12:32:29]line = 100.00 [12:32:29]line НДС 12% НСП 1% [12:32:29]line > о реализуемом товаре [12:32:29]line Товар: 2000032760017 [12:32:29]line Слойка DC треугольная мясо110г [12:32:29]line 2.000 * 65.00 [12:32:29]line = 130.00 [12:32:29]line НДС 12% НСП 1% [12:32:29]line > о реализуемом товаре [12:32:29]line ИТОГО: 230.00 [12:32:29]line НСП 1% : 2.03 [12:32:29]line НДС 12% : 24.42 [12:32:29]line Наличными: 230.00 [12:32:29]line Безнал.: 0.00 [12:32:29]line Место: АЗС № 90 "Партнер Нефть" [12:32:29]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:32:29]line СНО: Общий режим [12:32:29]line Чек 86 22.09.2024 12:32 [12:32:29]line Смена: 471 ФФД: 1.0 [12:32:29]line ЗНМ: 0300000120 [12:32:29]line РНМ: 0000000000091831 [12:32:29]line Версия ККМ: 001 [12:32:29]line ФМ: 0000000000871830 [12:32:29]line ФД: 115368 [12:32:29]line ФПД: 64220755974546 [12:32:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T123228&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115368&fm=64220755974546&tin=02508201610067®Number=0000000000091831&sum=23000 [12:32:29]OFD Sender: Processing packet 115368 [packets to send 481, broken 480] [12:32:29]ProducePacketName [12:32:29]name=ofd_packets/00115368 [12:32:29]OFD Sender: To server: pG, [12:32:29]CommunicateWithHost lk.salyk.kg:30040 [12:32:29]ConnectInit lk.salyk.kg [12:32:29]line 0 [12:32:29]written 0, free lines is 4095 [12:32:30]Connected sock=10 [12:32:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 C0 01 00 00 A1 B9 B8 01 E8 CE 5A 03 01 00 03 00 AC 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 5C 0E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A8 C2 01 00 35 04 06 00 3A 68 8F 58 D9 92 02 A7 34 10 3B 97 7A 16 [12:32:30]Write to MH i2c: 01 00 00 2C 07 33 [12:32:30]Write i2c OK [12:32:30]MH_I2C_Read... [12:32:30]Read from MH i2c: 01 [12:32:30]MH_I2C_Read... [12:32:30]Read from MH i2c: 01 07 00 [12:32:30]MH_I2C_Read... [12:32:30]Read from MH i2c: 01 07 00 2C 07 00 00 00 00 00 DD 0B 22 [12:32:30]RasterBufferAndPrint [12:32:30]line [12:32:30]line [12:32:30]line [12:32:30]line [12:32:30]line [12:32:30]written 0, free lines is 3040 [12:32:30]MH_Cut [12:32:30]Write to MH i2c: D1 01 00 33 07 01 0C [12:32:30]Write i2c OK [12:32:30]MH_I2C_Read... [12:32:30]Read from MH i2c: D1 [12:32:30]MH_I2C_Read... [12:32:30]Read from MH i2c: D1 01 00 [12:32:30]MH_I2C_Read... [12:32:30]Read from MH i2c: D1 01 00 33 07 00 0B [12:32:30]Write to MH i2c: 01 00 00 34 07 3B [12:32:30]Write i2c OK [12:32:30]MH_I2C_Read... [12:32:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D0 15 47 00 49 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A8 C2 01 00 F4 03 04 00 A3 B3 EF 66 B6 04 01 00 00 54 A3 EC 59 C6 B3 04 69 [12:32:30]CommunicateWithHost err = 0 [12:32:30]CheckOFDResponse [12:32:30]1017 (14) - 77093643461234 [12:32:30]1041 (16) - 0000000000871830 [12:32:30]1040 (4) - 115368 [12:32:30]1012 (4) - 22.09.2024 06:05 [12:32:30]1206 (1) - 0 [12:32:30]OFD Sender: Remove packet 115368 [12:32:30]ProducePacketName [12:32:30]name=ofd_packets/00115368 [12:32:30]NVStorageDeleteData [12:32:30]OFD Sender: No OFD packet to send [12:32:31]*** Cut start [12:32:31]*** Partial cut [12:32:31]*** CUTSNS_PIN = 1 [12:32:31]*** CUTSNS_PIN = 0 [12:32:32]*** Brake cut motor [12:32:32]Read from MH i2c: 01 [12:32:32]MH_I2C_Read... [12:32:32]*** Stop cut motor [12:32:32]*** Cut end [12:32:32]Read from MH i2c: 01 07 00 [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: 01 07 00 34 07 00 00 00 00 00 FF 0F 50 [12:32:32]process_action close_receipt done [12:32:32]requested_data is exist [12:32:32]produce_requested_data [12:32:32]requested_item fm.sn is exist - process it [12:32:32]wFMCommunicate request_size=4 [12:32:32]MH_SAM_APDU [12:32:32]CAPDU: 80 11 00 00 [12:32:32]Write to MH i2c: E2 08 00 35 07 80 11 00 00 00 00 00 00 B6 [12:32:32]Write i2c OK [12:32:32]MH_I2C_Read... [12:32:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:32]Read from MH i2c: E2 [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: E2 17 00 [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: E2 17 00 35 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 04 [12:32:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:32:32]wFMCommunicate OK [12:32:32]requested_item fd.num is exist - process it [12:32:32]SAM_PROTO_GetFieldsCounters [12:32:32]wFMCommunicate request_size=4 [12:32:32]MH_SAM_APDU [12:32:32]CAPDU: 80 13 00 00 [12:32:32]Write to MH i2c: E2 08 00 36 07 80 13 00 00 00 00 00 00 B9 [12:32:32]Write i2c OK [12:32:32]MH_I2C_Read... [12:32:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:32]Read from MH i2c: E2 [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: E2 62 00 [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: E2 62 00 36 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A8 C2 01 00 0E 04 04 00 D7 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 17 [12:32: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A8 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:32]wFMCommunicate OK [12:32:32]SAM_PROTO_GetFieldsCounters done [12:32:32]requested_item shift.num is exist - process it [12:32:32]requested_item shift.opened is exist - process it [12:32:32]req_shift_opened [12:32:32]FM_GetShiftState [12:32:32]SAM_PROTO_GetShiftState [12:32:32]wFMCommunicate request_size=4 [12:32:32]MH_SAM_APDU [12:32:32]CAPDU: 80 13 01 00 [12:32:32]Write to MH i2c: E2 08 00 37 07 80 13 01 00 00 00 00 00 BB [12:32:32]Write i2c OK [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: E2 [12:32:32]MH_I2C_Read... [12:32:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:32]Read from MH i2c: E2 0E 00 [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: E2 0E 00 37 07 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D4 [12:32:32]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:32:32]wFMCommunicate OK [12:32:32]SAM_PROTO_GetShiftState done [12:32:32]FM_GetShiftState done [12:32:32]req_shift_opened done [12:32:32]requested_item shift.open_date is exist - process it [12:32:32]req_shift_open_date [12:32:32]req_shift_open_date done [12:32:32]produce_requested_data done [12:32:32]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115368,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [12:32:32]process_action_free close_receipt [12:32:32]json_value_free [12:32:32]json_value_free done [12:32:32]process_json_proto returns [12:32:32]Send response to host [12:32:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115368,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [12:32:32]free response buf [12:32:32]execute_script done [12:32:32]execute_script returns [12:32:32]free content buf [12:32:32]Sock 9.Close socket [12:32:32]Sock 9.Thread stoped [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:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:26]OFD Sender: No OFD packet to send [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:46]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:16]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:37:58]accept exits with 8 [12:37:58]New connection [12:37:58]New thread 3066826084 created [12:37:58]Thread 3066682724 joined [12:37:58]Waiting for new connection... [12:37:58] Sock 8.Parse request [12:37:58]Sock 8.Check first char [12:37:58]Sock 8.First char is OK [12:37:58]request: POST /json_proto HTTP/1.0 [12:37:58]Method: POST [12:37:58]URL: /json_proto [12:37:58]Method is POST - this is cgi request [12:37:58]url: /json_proto [12:37:58]query_string will be loaded in cgi processing [12:37:58]execute_cgi json_proto POST (null) [12:37:58]execute_cgi path=json_proto method=POST [12:37:58]POST find Content-Length [12:37:58]Host: 172.17.41.136:8080 [12:37:58]Content-Length: 668 [12:37:58]Content-Type: application/json [12:37:58] [12:37:58]POST finish read [12:37:58]Found Content-Length = 668 [12:37:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343822", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:58]execute_script... [12:37:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343822", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:58]POST & json_proto [12:37:58]process_json_proto [12:37:58]json parsed OK: [12:37:58]protocol is kg_v1.0 [12:37:58]action value=close_receipt [12:37:58]process_action close_receipt [12:37:58]cmd_close_receipt [12:37:58]MH_GetDate [12:37:58]Write to MH i2c: F0 00 00 38 07 2E [12:37:58]Write i2c OK [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: F0 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: F0 09 00 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: F0 09 00 38 07 00 A7 0F F0 66 1B D0 5A 64 EC [12:37:58]GetLastDocTimeStamp 1727008348 [12:37:58]current date 1727008679 [12:37:58]FM_GetShiftState [12:37:58]SAM_PROTO_GetShiftState [12:37:58]wFMCommunicate request_size=4 [12:37:58]MH_SAM_APDU [12:37:58]CAPDU: 80 13 01 00 [12:37:58]Write to MH i2c: E2 08 00 39 07 80 13 01 00 00 00 00 00 BD [12:37:58]Write i2c OK [12:37:58]MH_I2C_Read... [12:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:58]Read from MH i2c: E2 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: E2 0E 00 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: E2 0E 00 39 07 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D6 [12:37:58]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:37:58]wFMCommunicate OK [12:37:58]SAM_PROTO_GetShiftState done [12:37:58]FM_GetShiftState done [12:37:58]opened in 1726965840 [12:37:58]opened+sec_in_day 1727052240 [12:37:58]quantity*price = 7500 [12:37:58]sum+1 = 7501 [12:37:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 87 22.09.2024 12:37 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115369 ФПД: 54555249699927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T123759&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115369&fm=54555249699927&tin=02508201610067®Number=0000000000091831&sum=7500 0 [12:37:59]StoreToDocumentArchive [12:37:59]shift 471 fd 115369 [12:37:59]save to /storage/0471/doc_00115369 [12:37:59]save last doc name /storage/0471/doc_00115369 to /storage/kkm_last_doc_name [12:37:59]save OK [12:37:59]Clear old archive folders... [12:37:59]ProcessDocumentItem done err = 0, tmpTLVsize=287 [12:37:59]tlvbuf is 01BE3190 [12:37:59]SAM_PROTO_ClearQueue [12:37:59]wFMCommunicate request_size=4 [12:37:59]MH_SAM_APDU [12:37:59]CAPDU: 80 09 00 00 [12:37:59]Write to MH i2c: E2 08 00 46 07 80 09 00 00 00 00 00 00 BF [12:37:59]Write i2c OK [12:37:59]MH_I2C_Read... [12:37:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:59]Read from MH i2c: E2 [12:37:59]MH_I2C_Read... [12:37:59]Read from MH i2c: E2 03 00 [12:37:59]MH_I2C_Read... [12:37:59]Read from MH i2c: E2 03 00 46 07 00 90 00 C1 [12:37:59]RAPDU: 90 00 [12:37:59]wFMCommunicate OK [12:37:59]SAM_PROTO_ClearQueue done [12:37:59]KKMCreateOFDPacket [12:37:59]OFDProtocolAddRootSTLVToBuf [12:37:59]FM_MakeSignedData [12:37:59]FM_MakeSignedData [12:37:59]SAM_PROTO_SignData [12:37:59]wFMCommunicate request_size=4 [12:37:59]MH_SAM_APDU [12:37:59]CAPDU: 80 0D 01 02 [12:37:59]Write to MH i2c: E2 08 00 47 07 80 0D 01 02 00 00 00 00 C7 [12:37:59]Write i2c OK [12:37:59]MH_I2C_Read... [12:37:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:59]Read from MH i2c: E2 [12:37:59]MH_I2C_Read... [12:37:59]Read from MH i2c: E2 03 00 [12:37:59]MH_I2C_Read... [12:37:59]Read from MH i2c: E2 03 00 47 07 00 90 00 C2 [12:37:59]RAPDU: 90 00 [12:37:59]wFMCommunicate OK [12:37:59]wFMCommunicate request_size=255 [12:37:59]MH_SAM_APDU [12:37:59]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 A7 0F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [12:37:59]Write to MH i2c: E2 02 01 48 07 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 A7 0F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 7F [12:37:59]Write i2c OK [12:37:59]MH_I2C_Read... [12:37:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:59]Read from MH i2c: E2 [12:37:59]MH_I2C_Read... [12:37:59]Read from MH i2c: E2 03 00 [12:37:59]MH_I2C_Read... [12:37:59]Read from MH i2c: E2 03 00 48 07 00 90 00 C3 [12:37:59]RAPDU: 90 00 [12:37:59]wFMCommunicate OK [12:37:59]wFMCommunicate request_size=46 [12:37:59]MH_SAM_APDU [12:37:59]CAPDU: 80 0D 02 02 29 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A9 C2 01 00 35 04 06 00 31 9E 22 47 6C 57 [12:37:59]Write to MH i2c: E2 31 00 49 07 80 0D 02 02 29 00 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A9 C2 01 00 35 04 06 00 31 9E 22 47 6C 57 00 00 B6 [12:37:59]Write i2c OK [12:37:59]MH_I2C_Read... [12:37:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:59]Read from MH i2c: E2 [12:37:59]MH_I2C_Read... [12:37:59]Read from MH i2c: E2 03 00 [12:37:59]MH_I2C_Read... [12:37:59]Read from MH i2c: E2 03 00 49 07 00 90 00 C4 [12:37:59]RAPDU: 90 00 [12:37:59]wFMCommunicate OK [12:37:59]wFMCommunicate request_size=4 [12:37:59]MH_SAM_APDU [12:37:59]CAPDU: 80 0D 03 02 [12:37:59]Write to MH i2c: E2 08 00 4A 07 80 0D 03 02 00 00 00 00 CC [12:37:59]Write i2c OK [12:37:59]MH_I2C_Read... [12:37:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:00]Read from MH i2c: E2 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 0B 00 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 0B 00 4A 07 00 42 72 61 B1 93 78 29 40 90 00 07 [12:38:00]RAPDU: 42 72 61 B1 93 78 29 40 90 00 [12:38:00]wFMCommunicate OK [12:38:00]SAM_PROTO_SignData done [12:38:00]FM_MakeSignedData done [12:38:00]CreateOFDProtocolMessage [12:38:00]wFMCommunicate request_size=4 [12:38:00]MH_SAM_APDU [12:38:00]CAPDU: 80 11 00 00 [12:38:00]Write to MH i2c: E2 08 00 4B 07 80 11 00 00 00 00 00 00 CC [12:38:00]Write i2c OK [12:38:00]MH_I2C_Read... [12:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:00]Read from MH i2c: E2 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 17 00 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 17 00 4B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1A [12:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:38:00]wFMCommunicate OK [12:38:00]CreateOFDProtocolMessage done [12:38:00]OFDSenderStorePacket 115369 [12:38:00]StoreOFDPacket docnum=115369 [12:38:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 33 01 00 00 24 9F 2B 01 89 38 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 A7 0F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A9 C2 01 00 35 04 06 00 31 9E 22 47 6C 57 42 72 61 B1 93 78 29 40 [12:38:00]CheckFolder [12:38:00]dirname=/storage/ofd_packets [12:38:00]CheckFolder done [12:38:00]ProducePacketName [12:38:00]name=ofd_packets/00115369 [12:38:00]NVStorageSaveData ofd_packets/00115369 [12:38:00]File name is /storage/ofd_packets/00115369 [12:38:00]Write 337 bytes [12:38:00]NVStorageSaveData done [12:38:00]OFDSenderStorePacket done [12:38:00]KKMCreateOFDPacket done [12:38:00]NVStorageSaveData kkm_last_timestamp [12:38:00]File name is /storage/kkm_last_timestamp [12:38:00]Write 4 bytes [12:38:00]NVStorageSaveData done [12:38:00]ExternCall_PrintAddStr [12:38:00]wPrintStart [12:38:00]Write to MH i2c: 01 00 00 4C 07 53 [12:38:00]Write i2c OK [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: 01 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: 01 07 00 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: 01 07 00 4C 07 00 00 00 00 00 FF 0F 68 [12:38:00]RasterBufferAndPrint [12:38:00]line Счет N : (3)343822 [12:38:00]line ИНН: 02508201610067 [12:38:00]line Контрольно-Кассовый Чек [12:38:00]line ПРОДАЖА [12:38:00]line Товар: 5449000189394 [12:38:00]line Холодный чай Fuse ягода 0,5л [12:38:00]line 1.000 * 75.00 [12:38:00]line = 75.00 [12:38:00]line НДС 12% НСП 1% [12:38:00]line > о реализуемом товаре [12:38:00]line ИТОГО: 75.00 [12:38:00]line НСП 1% : 0.66 [12:38:00]line НДС 12% : 7.96 [12:38:00]line Наличными: 75.00 [12:38:00]line Безнал.: 0.00 [12:38:00]line Место: АЗС № 90 "Партнер Нефть" [12:38:00]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:38:00]line СНО: Общий режим [12:38:00]line Чек 87 22.09.2024 12:37 [12:38:00]line Смена: 471 ФФД: 1.0 [12:38:00]line ЗНМ: 0300000120 [12:38:00]line РНМ: 0000000000091831 [12:38:00]line Версия ККМ: 001 [12:38:00]line ФМ: 0000000000871830 [12:38:00]line ФД: 115369 [12:38:00]line ФПД: 54555249699927 [12:38:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T123759&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115369&fm=54555249699927&tin=02508201610067®Number=0000000000091831&sum=7500 [12:38:00]line 0 [12:38:00]OFD Sender: Processing packet 115369 [packets to send 481, broken 480] [12:38:00]ProducePacketName [12:38:00]name=ofd_packets/00115369 [12:38:00]OFD Sender: To server: pG, [12:38:00]CommunicateWithHost lk.salyk.kg:30040 [12:38:00]ConnectInit lk.salyk.kg [12:38:00]written 0, free lines is 4095 [12:38:00]Connected sock=9 [12:38:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 33 01 00 00 24 9F 2B 01 89 38 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 A7 0F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A9 C2 01 00 35 04 06 00 31 9E 22 47 6C 57 42 72 61 B1 93 78 29 40 [12:38:00]Write to MH i2c: 01 00 00 73 07 7A [12:38:00]Write i2c OK [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: 01 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: 01 07 00 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: 01 07 00 73 07 00 00 00 00 00 72 0C FF [12:38:00]RasterBufferAndPrint [12:38:00]line [12:38:00]line [12:38:00]line [12:38:00]line [12:38:00]line [12:38:00]written 0, free lines is 3189 [12:38:00]MH_Cut [12:38:00]Write to MH i2c: D1 01 00 7A 07 01 53 [12:38:00]Write i2c OK [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: D1 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: D1 01 00 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: D1 01 00 7A 07 00 52 [12:38:00]Write to MH i2c: 01 00 00 7B 07 82 [12:38:00]Write i2c OK [12:38:00]MH_I2C_Read... [12:38:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 49 BC 47 00 E0 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 31 38 33 30 10 04 04 00 A9 C2 01 00 F4 03 04 00 ED B4 EF 66 B6 04 01 00 00 CB 6A 85 7D 93 AA E0 E7 [12:38:01]CommunicateWithHost err = 0 [12:38:01]CheckOFDResponse [12:38:01]1017 (14) - 77093643461234 [12:38:01]1041 (16) - 0000000000871830 [12:38:01]1040 (4) - 115369 [12:38:01]1012 (4) - 22.09.2024 06:10 [12:38:01]1206 (1) - 0 [12:38:01]OFD Sender: Remove packet 115369 [12:38:01]ProducePacketName [12:38:01]name=ofd_packets/00115369 [12:38:01]NVStorageDeleteData [12:38:01]OFD Sender: No OFD packet to send [12:38:02]*** Cut start [12:38:02]*** Partial cut [12:38:02]*** CUTSNS_PIN = 1 [12:38:02]*** CUTSNS_PIN = 0 [12:38:02]*** Brake cut motor [12:38:02]Read from MH i2c: 01 [12:38:02]MH_I2C_Read... [12:38:02]*** Stop cut motor [12:38:02]*** Cut end [12:38:02]Read from MH i2c: 01 07 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: 01 07 00 7B 07 00 00 00 00 00 FF 0F 97 [12:38:02]process_action close_receipt done [12:38:02]requested_data is exist [12:38:02]produce_requested_data [12:38:02]requested_item fm.sn is exist - process it [12:38:02]wFMCommunicate request_size=4 [12:38:02]MH_SAM_APDU [12:38:02]CAPDU: 80 11 00 00 [12:38:02]Write to MH i2c: E2 08 00 7C 07 80 11 00 00 00 00 00 00 FD [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:02]Read from MH i2c: E2 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 17 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 17 00 7C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4B [12:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:38:02]wFMCommunicate OK [12:38:02]requested_item fd.num is exist - process it [12:38:02]SAM_PROTO_GetFieldsCounters [12:38:02]wFMCommunicate request_size=4 [12:38:02]MH_SAM_APDU [12:38:02]CAPDU: 80 13 00 00 [12:38:02]Write to MH i2c: E2 08 00 7D 07 80 13 00 00 00 00 00 00 00 [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:02]Read from MH i2c: E2 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 62 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 62 00 7D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A9 C2 01 00 0E 04 04 00 D7 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 62 [12:38:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A9 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:02]wFMCommunicate OK [12:38:02]SAM_PROTO_GetFieldsCounters done [12:38:02]requested_item shift.num is exist - process it [12:38:02]requested_item shift.opened is exist - process it [12:38:02]req_shift_opened [12:38:02]FM_GetShiftState [12:38:02]SAM_PROTO_GetShiftState [12:38:02]wFMCommunicate request_size=4 [12:38:02]MH_SAM_APDU [12:38:02]CAPDU: 80 13 01 00 [12:38:02]Write to MH i2c: E2 08 00 7E 07 80 13 01 00 00 00 00 00 02 [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:02]Read from MH i2c: E2 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 0E 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 0E 00 7E 07 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 1B [12:38:02]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:38:02]wFMCommunicate OK [12:38:02]SAM_PROTO_GetShiftState done [12:38:02]FM_GetShiftState done [12:38:02]req_shift_opened done [12:38:02]requested_item shift.open_date is exist - process it [12:38:02]req_shift_open_date [12:38:02]req_shift_open_date done [12:38:02]produce_requested_data done [12:38:02]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115369,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [12:38:02]process_action_free close_receipt [12:38:02]json_value_free [12:38:02]json_value_free done [12:38:02]process_json_proto returns [12:38:02]Send response to host [12:38:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115369,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [12:38:02]free response buf [12:38:02]execute_script done [12:38:02]execute_script returns [12:38:02]free content buf [12:38:02]Sock 8.Close socket [12:38:02]Sock 8.Thread stoped [12:38:06]OFD Sender: No OFD packet to send [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:42]accept exits with 10 [12:39:42]New connection [12:39:42]New thread 3066682724 created [12:39:42]Thread 3066826084 joined [12:39:42]Waiting for new connection... [12:39:42] Sock 10.Parse request [12:39:42]Sock 10.Check first char [12:39:42]Sock 10.First char is OK [12:39:42]request: POST /json_proto HTTP/1.0 [12:39:42]Method: POST [12:39:42]URL: /json_proto [12:39:42]Method is POST - this is cgi request [12:39:42]url: /json_proto [12:39:42]query_string will be loaded in cgi processing [12:39:42]execute_cgi json_proto POST (null) [12:39:42]execute_cgi path=json_proto method=POST [12:39:42]POST find Content-Length [12:39:42]Host: 172.17.41.136:8080 [12:39:42]Content-Length: 668 [12:39:42]Content-Type: application/json [12:39:42] [12:39:42]POST finish read [12:39:42]Found Content-Length = 668 [12:39:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343823", "tax_sys" : 0, "items" : [ { "code": "4607010740191", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0441\u0430\u043B\u044F\u043C\u0438 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 21.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:42]execute_script... [12:39:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343823", "tax_sys" : 0, "items" : [ { "code": "4607010740191", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0441\u0430\u043B\u044F\u043C\u0438 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 21.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:42]POST & json_proto [12:39:42]process_json_proto [12:39:42]json parsed OK: [12:39:42]protocol is kg_v1.0 [12:39:42]action value=close_receipt [12:39:42]process_action close_receipt [12:39:42]cmd_close_receipt [12:39:42]MH_GetDate [12:39:42]Write to MH i2c: F0 00 00 7F 07 75 [12:39:42]Write i2c OK [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: F0 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: F0 09 00 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: F0 09 00 7F 07 00 0F 10 F0 66 1B D0 5A 64 9C [12:39:42]GetLastDocTimeStamp 1727008679 [12:39:42]current date 1727008783 [12:39:42]FM_GetShiftState [12:39:42]SAM_PROTO_GetShiftState [12:39:42]wFMCommunicate request_size=4 [12:39:42]MH_SAM_APDU [12:39:42]CAPDU: 80 13 01 00 [12:39:42]Write to MH i2c: E2 08 00 80 07 80 13 01 00 00 00 00 00 04 [12:39:42]Write i2c OK [12:39:42]MH_I2C_Read... [12:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:42]Read from MH i2c: E2 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: E2 0E 00 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: E2 0E 00 80 07 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 1D [12:39:42]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:39:42]wFMCommunicate OK [12:39:42]SAM_PROTO_GetShiftState done [12:39:42]FM_GetShiftState done [12:39:42]opened in 1726965840 [12:39:42]opened+sec_in_day 1727052240 [12:39:42]quantity*price = 2100 [12:39:42]sum+1 = 2101 [12:39:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 21.00 НСП 1% : 0.19 НДС 12% : 2.23 Наличными: 21.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 88 22.09.2024 12:39 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115370 ФПД: 139554769994358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T123943&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115370&fm=139554769994358&tin=02508201610067®Number=0000000000091831&sum=2100 0 [12:39:43]StoreToDocumentArchive [12:39:43]shift 471 fd 115370 [12:39:43]save to /storage/0471/doc_00115370 [12:39:43]save last doc name /storage/0471/doc_00115370 to /storage/kkm_last_doc_name [12:39:43]save OK [12:39:43]Clear old archive folders... [12:39:43]ProcessDocumentItem done err = 0, tmpTLVsize=283 [12:39:43]tlvbuf is 01BC4CD0 [12:39:43]SAM_PROTO_ClearQueue [12:39:43]wFMCommunicate request_size=4 [12:39:43]MH_SAM_APDU [12:39:43]CAPDU: 80 09 00 00 [12:39:43]Write to MH i2c: E2 08 00 8D 07 80 09 00 00 00 00 00 00 06 [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:43]Read from MH i2c: E2 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: E2 03 00 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: E2 03 00 8D 07 00 90 00 08 [12:39:43]RAPDU: 90 00 [12:39:43]wFMCommunicate OK [12:39:43]SAM_PROTO_ClearQueue done [12:39:43]KKMCreateOFDPacket [12:39:43]OFDProtocolAddRootSTLVToBuf [12:39:43]FM_MakeSignedData [12:39:43]FM_MakeSignedData [12:39:43]SAM_PROTO_SignData [12:39:43]wFMCommunicate request_size=4 [12:39:43]MH_SAM_APDU [12:39:43]CAPDU: 80 0D 01 02 [12:39:43]Write to MH i2c: E2 08 00 8E 07 80 0D 01 02 00 00 00 00 0E [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:43]Read from MH i2c: E2 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: E2 03 00 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: E2 03 00 8E 07 00 90 00 09 [12:39:43]RAPDU: 90 00 [12:39:43]wFMCommunicate OK [12:39:43]wFMCommunicate request_size=255 [12:39:43]MH_SAM_APDU [12:39:43]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 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 0F 10 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 [12:39:43]Write to MH i2c: E2 02 01 8F 07 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 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 0F 10 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 00 00 75 [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:44]Read from MH i2c: E2 [12:39:44]MH_I2C_Read... [12:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:44]Read from MH i2c: E2 03 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: E2 03 00 8F 07 00 90 00 0A [12:39:44]RAPDU: 90 00 [12:39:44]wFMCommunicate OK [12:39:44]wFMCommunicate request_size=42 [12:39:44]MH_SAM_APDU [12:39:44]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AA C2 01 00 35 04 06 00 7E EC A0 7E 02 76 [12:39:44]Write to MH i2c: E2 2D 00 90 07 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AA C2 01 00 35 04 06 00 7E EC A0 7E 02 76 00 00 4E [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:44]Read from MH i2c: E2 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: E2 03 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: E2 03 00 90 07 00 90 00 0B [12:39:44]RAPDU: 90 00 [12:39:44]wFMCommunicate OK [12:39:44]wFMCommunicate request_size=4 [12:39:44]MH_SAM_APDU [12:39:44]CAPDU: 80 0D 03 02 [12:39:44]Write to MH i2c: E2 08 00 91 07 80 0D 03 02 00 00 00 00 13 [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:44]Read from MH i2c: E2 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: E2 0B 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: E2 0B 00 91 07 00 E5 8E 75 8C 29 C4 39 1D 90 00 CB [12:39:44]RAPDU: E5 8E 75 8C 29 C4 39 1D 90 00 [12:39:44]wFMCommunicate OK [12:39:44]SAM_PROTO_SignData done [12:39:44]FM_MakeSignedData done [12:39:44]CreateOFDProtocolMessage [12:39:44]wFMCommunicate request_size=4 [12:39:44]MH_SAM_APDU [12:39:44]CAPDU: 80 11 00 00 [12:39:44]Write to MH i2c: E2 08 00 92 07 80 11 00 00 00 00 00 00 13 [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:44]Read from MH i2c: E2 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: E2 17 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: E2 17 00 92 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 61 [12:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:39:44]wFMCommunicate OK [12:39:44]CreateOFDProtocolMessage done [12:39:44]OFDSenderStorePacket 115370 [12:39:44]StoreOFDPacket docnum=115370 [12:39:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2F 01 00 00 D0 D8 27 01 E2 AA 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 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 0F 10 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AA C2 01 00 35 04 06 00 7E EC A0 7E 02 76 E5 8E 75 8C 29 C4 39 1D [12:39:44]CheckFolder [12:39:44]dirname=/storage/ofd_packets [12:39:44]CheckFolder done [12:39:44]ProducePacketName [12:39:44]name=ofd_packets/00115370 [12:39:44]NVStorageSaveData ofd_packets/00115370 [12:39:44]File name is /storage/ofd_packets/00115370 [12:39:44]Write 333 bytes [12:39:44]NVStorageSaveData done [12:39:44]OFDSenderStorePacket done [12:39:44]KKMCreateOFDPacket done [12:39:44]NVStorageSaveData kkm_last_timestamp [12:39:44]File name is /storage/kkm_last_timestamp [12:39:44]Write 4 bytes [12:39:44]NVStorageSaveData done [12:39:44]ExternCall_PrintAddStr [12:39:44]wPrintStart [12:39:44]Write to MH i2c: 01 00 00 93 07 9A [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 93 07 00 00 00 00 00 FF 0F AF [12:39:44]RasterBufferAndPrint [12:39:44]line Счет N : (3)343823 [12:39:44]line ИНН: 02508201610067 [12:39:44]line Контрольно-Кассовый Чек [12:39:44]line ПРОДАЖА [12:39:44]line Товар: 4607010740191 [12:39:44]line Сух Кириешки салями 40г [12:39:44]line 1.000 * 21.00 [12:39:44]line = 21.00 [12:39:44]line НДС 12% НСП 1% [12:39:44]line > о реализуемом товаре [12:39:44]line ИТОГО: 21.00 [12:39:44]line НСП 1% : 0.19 [12:39:44]line НДС 12% : 2.23 [12:39:44]line Наличными: 21.00 [12:39:44]line Безнал.: 0.00 [12:39:44]line Место: АЗС № 90 "Партнер Нефть" [12:39:44]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:39:44]line СНО: Общий режим [12:39:44]line Чек 88 22.09.2024 12:39 [12:39:44]line Смена: 471 ФФД: 1.0 [12:39:44]line ЗНМ: 0300000120 [12:39:44]line РНМ: 0000000000091831 [12:39:44]line Версия ККМ: 001 [12:39:44]line ФМ: 0000000000871830 [12:39:44]line ФД: 115370 [12:39:44]line ФПД: 139554769994358 [12:39:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T123943&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115370&fm=139554769994358&tin=02508201610067®Number=0000000000091831&sum=2100 [12:39:44]line 0 [12:39:44]OFD Sender: Processing packet 115370 [packets to send 481, broken 480] [12:39:44]ProducePacketName [12:39:44]name=ofd_packets/00115370 [12:39:44]OFD Sender: To server: pG, [12:39:44]CommunicateWithHost lk.salyk.kg:30040 [12:39:44]ConnectInit lk.salyk.kg [12:39:44]written 0, free lines is 4095 [12:39:44]Connected sock=9 [12:39:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2F 01 00 00 D0 D8 27 01 E2 AA 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 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 0F 10 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AA C2 01 00 35 04 06 00 7E EC A0 7E 02 76 E5 8E 75 8C 29 C4 39 1D [12:39:44]Write to MH i2c: 01 00 00 BA 07 C1 [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 BA 07 00 00 00 00 00 7F 0C 53 [12:39:44]RasterBufferAndPrint [12:39:44]line [12:39:44]line [12:39:44]line [12:39:44]line [12:39:44]line [12:39:44]written 0, free lines is 3203 [12:39:44]MH_Cut [12:39:44]Write to MH i2c: D1 01 00 C1 07 01 9A [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: D1 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: D1 01 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: D1 01 00 C1 07 00 99 [12:39:44]Write to MH i2c: 01 00 00 C2 07 C9 [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D2 F9 47 00 2B 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AA C2 01 00 F4 03 04 00 55 B5 EF 66 B6 04 01 00 00 09 AF A1 6D 96 2B 92 21 [12:39:45]CommunicateWithHost err = 0 [12:39:45]CheckOFDResponse [12:39:45]1017 (14) - 77093643461234 [12:39:45]1041 (16) - 0000000000871830 [12:39:45]1040 (4) - 115370 [12:39:45]1012 (4) - 22.09.2024 06:12 [12:39:45]1206 (1) - 0 [12:39:45]OFD Sender: Remove packet 115370 [12:39:45]ProducePacketName [12:39:45]name=ofd_packets/00115370 [12:39:45]NVStorageDeleteData [12:39:45]OFD Sender: No OFD packet to send [12:39:46]*** Cut start [12:39:46]*** Partial cut [12:39:46]*** CUTSNS_PIN = 1 [12:39:46]*** CUTSNS_PIN = 0 [12:39:46]*** Brake cut motor [12:39:46]Read from MH i2c: 01 [12:39:46]MH_I2C_Read... [12:39:46]*** Stop cut motor [12:39:46]*** Cut end [12:39:46]Read from MH i2c: 01 07 00 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: 01 07 00 C2 07 00 00 00 00 00 FF 0F DE [12:39:46]process_action close_receipt done [12:39:46]requested_data is exist [12:39:46]produce_requested_data [12:39:46]requested_item fm.sn is exist - process it [12:39:46]wFMCommunicate request_size=4 [12:39:46]MH_SAM_APDU [12:39:46]CAPDU: 80 11 00 00 [12:39:46]Write to MH i2c: E2 08 00 C3 07 80 11 00 00 00 00 00 00 44 [12:39:46]Write i2c OK [12:39:46]MH_I2C_Read... [12:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:46]Read from MH i2c: E2 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 17 00 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 17 00 C3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 92 [12:39:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:39:46]wFMCommunicate OK [12:39:46]requested_item fd.num is exist - process it [12:39:46]SAM_PROTO_GetFieldsCounters [12:39:46]wFMCommunicate request_size=4 [12:39:46]MH_SAM_APDU [12:39:46]CAPDU: 80 13 00 00 [12:39:46]Write to MH i2c: E2 08 00 C4 07 80 13 00 00 00 00 00 00 47 [12:39:46]Write i2c OK [12:39:46]MH_I2C_Read... [12:39:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:47]Read from MH i2c: E2 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: E2 62 00 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: E2 62 00 C4 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AA C2 01 00 0E 04 04 00 D7 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 AD [12:39:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AA C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:47]wFMCommunicate OK [12:39:47]SAM_PROTO_GetFieldsCounters done [12:39:47]requested_item shift.num is exist - process it [12:39:47]requested_item shift.opened is exist - process it [12:39:47]req_shift_opened [12:39:47]FM_GetShiftState [12:39:47]SAM_PROTO_GetShiftState [12:39:47]wFMCommunicate request_size=4 [12:39:47]MH_SAM_APDU [12:39:47]CAPDU: 80 13 01 00 [12:39:47]Write to MH i2c: E2 08 00 C5 07 80 13 01 00 00 00 00 00 49 [12:39:47]Write i2c OK [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: E2 [12:39:47]MH_I2C_Read... [12:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:47]Read from MH i2c: E2 0E 00 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: E2 0E 00 C5 07 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 62 [12:39:47]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:39:47]wFMCommunicate OK [12:39:47]SAM_PROTO_GetShiftState done [12:39:47]FM_GetShiftState done [12:39:47]req_shift_opened done [12:39:47]requested_item shift.open_date is exist - process it [12:39:47]req_shift_open_date [12:39:47]req_shift_open_date done [12:39:47]produce_requested_data done [12:39:47]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115370,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [12:39:47]process_action_free close_receipt [12:39:47]json_value_free [12:39:47]json_value_free done [12:39:47]process_json_proto returns [12:39:47]Send response to host [12:39:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115370,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [12:39:47]free response buf [12:39:47]execute_script done [12:39:47]execute_script returns [12:39:47]free content buf [12:39:47]Sock 10.Close socket [12:39:47]Sock 10.Thread stoped [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:53]accept exits with 8 [12:47:53]New connection [12:47:53]New thread 3066826084 created [12:47:53]Thread 3066682724 joined [12:47:53]Waiting for new connection... [12:47:53] Sock 8.Parse request [12:47:53]Sock 8.Check first char [12:47:53]Sock 8.First char is OK [12:47:53]request: POST /json_proto HTTP/1.0 [12:47:53]Method: POST [12:47:53]URL: /json_proto [12:47:53]Method is POST - this is cgi request [12:47:53]url: /json_proto [12:47:53]query_string will be loaded in cgi processing [12:47:53]execute_cgi json_proto POST (null) [12:47:53]execute_cgi path=json_proto method=POST [12:47:53]POST find Content-Length [12:47:53]Host: 172.17.41.136:8080 [12:47:53]Content-Length: 1525 [12:47:53]Content-Type: application/json [12:47:53] [12:47:53]POST finish read [12:47:53]Found Content-Length = 1525 [12:47:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343824", "tax_sys" : 0, "items" : [ { "code": "5449000134912", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 515.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:53]execute_script... [12:47:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343824", "tax_sys" : 0, "items" : [ { "code": "5449000134912", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 515.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:53]POST & json_proto [12:47:53]process_json_proto [12:47:53]json parsed OK: [12:47:53]protocol is kg_v1.0 [12:47:53]action value=close_receipt [12:47:53]process_action close_receipt [12:47:53]cmd_close_receipt [12:47:53]MH_GetDate [12:47:53]Write to MH i2c: F0 00 00 C6 07 BC [12:47:53]Write i2c OK [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: F0 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: F0 09 00 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: F0 09 00 C6 07 00 FA 11 F0 66 1B D0 5A 64 CF [12:47:53]GetLastDocTimeStamp 1727008783 [12:47:53]current date 1727009274 [12:47:53]FM_GetShiftState [12:47:53]SAM_PROTO_GetShiftState [12:47:53]wFMCommunicate request_size=4 [12:47:53]MH_SAM_APDU [12:47:53]CAPDU: 80 13 01 00 [12:47:53]Write to MH i2c: E2 08 00 C7 07 80 13 01 00 00 00 00 00 4B [12:47:53]Write i2c OK [12:47:53]MH_I2C_Read... [12:47:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:53]Read from MH i2c: E2 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: E2 0E 00 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: E2 0E 00 C7 07 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 64 [12:47:53]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:47:53]wFMCommunicate OK [12:47:53]SAM_PROTO_GetShiftState done [12:47:53]FM_GetShiftState done [12:47:53]opened in 1726965840 [12:47:53]opened+sec_in_day 1727052240 [12:47:53]quantity*price = 9000 [12:47:53]sum+1 = 9001 [12:47:53]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001570095 Напиток Pepsi 2л 1.000 * 210.00 = 210.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 515.00 НСП 1% : 4.56 НДС 12% : 54.69 Наличными: 515.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 89 22.09.2024 12:47 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115371 ФПД: 39374424276099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T124754&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115371&fm=39374424276099&tin=02508201610067®Number=0000000000091831&sum=51500 0 [12:47:54]StoreToDocumentArchive [12:47:54]shift 471 fd 115371 [12:47:54]save to /storage/0471/doc_00115371 [12:47:54]save last doc name /storage/0471/doc_00115371 to /storage/kkm_last_doc_name [12:47:54]save OK [12:47:54]Clear old archive folders... [12:47:54]ProcessDocumentItem done err = 0, tmpTLVsize=637 [12:47:54]tlvbuf is B6EBBB40 [12:47:54]SAM_PROTO_ClearQueue [12:47:54]wFMCommunicate request_size=4 [12:47:54]MH_SAM_APDU [12:47:54]CAPDU: 80 09 00 00 [12:47:54]Write to MH i2c: E2 08 00 D4 07 80 09 00 00 00 00 00 00 4D [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:54]Read from MH i2c: E2 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 03 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 03 00 D4 07 00 90 00 4F [12:47:54]RAPDU: 90 00 [12:47:54]wFMCommunicate OK [12:47:54]SAM_PROTO_ClearQueue done [12:47:54]KKMCreateOFDPacket [12:47:54]OFDProtocolAddRootSTLVToBuf [12:47:54]FM_MakeSignedData [12:47:54]FM_MakeSignedData [12:47:54]SAM_PROTO_SignData [12:47:54]wFMCommunicate request_size=4 [12:47:54]MH_SAM_APDU [12:47:54]CAPDU: 80 0D 01 02 [12:47:54]Write to MH i2c: E2 08 00 D5 07 80 0D 01 02 00 00 00 00 55 [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:54]Read from MH i2c: E2 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 03 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 03 00 D5 07 00 90 00 50 [12:47:54]RAPDU: 90 00 [12:47:54]wFMCommunicate OK [12:47:54]wFMCommunicate request_size=255 [12:47:54]MH_SAM_APDU [12:47:54]CAPDU: 80 0D 02 02 FA 03 00 7D 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 [12:47:54]Write to MH i2c: E2 02 01 D6 07 80 0D 02 02 FA 00 03 00 7D 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 00 00 7C [12:47:54]Write i2c OK [12:47:54]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 D6 07 00 90 00 51 [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 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [12:47:55]Write to MH i2c: E2 02 01 D7 07 80 0D 02 02 FA 00 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 1E [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 D7 07 00 90 00 52 [12:47:55]RAPDU: 90 00 [12:47:55]wFMCommunicate OK [12:47:55]wFMCommunicate request_size=146 [12:47:55]MH_SAM_APDU [12:47:55]CAPDU: 80 0D 02 02 8D 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 15 00 00 00 00 07 04 06 00 2C C9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 FA 11 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AB C2 01 00 35 04 06 00 23 CF 92 92 7C 83 [12:47:55]Write to MH i2c: E2 95 00 D8 07 80 0D 02 02 8D 00 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 15 00 00 00 00 07 04 06 00 2C C9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 FA 11 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AB C2 01 00 35 04 06 00 23 CF 92 92 7C 83 00 00 E6 [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 D8 07 00 90 00 53 [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 D9 07 80 0D 03 02 00 00 00 00 5B [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 D9 07 00 18 C0 A5 4E 0F 32 00 96 90 00 FE [12:47:55]RAPDU: 18 C0 A5 4E 0F 32 00 96 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 DA 07 80 11 00 00 00 00 00 00 5B [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 DA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A9 [12:47:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:47:55]wFMCommunicate OK [12:47:55]CreateOFDProtocolMessage done [12:47:55]OFDSenderStorePacket 115371 [12:47:55]StoreOFDPacket docnum=115371 [12:47:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 91 02 00 00 40 5A 89 02 C0 9E 5A 03 01 00 03 00 7D 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 15 00 00 00 00 07 04 06 00 2C C9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 FA 11 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AB C2 01 00 35 04 06 00 23 CF 92 92 7C 83 18 C0 A5 4E 0F 32 00 96 [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/00115371 [12:47:55]NVStorageSaveData ofd_packets/00115371 [12:47:55]File name is /storage/ofd_packets/00115371 [12:47:55]Write 687 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 DB 07 E2 [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 DB 07 00 00 00 00 00 FF 0F F7 [12:47:55]RasterBufferAndPrint [12:47:55]line Счет N : (3)343824 [12:47:55]line ИНН: 02508201610067 [12:47:55]line Контрольно-Кассовый Чек [12:47:55]line ПРОДАЖА [12:47:55]line Товар: 5449000134912 [12:47:55]line Холодный чай Fuse манго,ромашка 0,33 ж/б [12:47:55]line 1.000 * 90.00 [12:47:55]line = 90.00 [12:47:55]line НДС 12% НСП 1% [12:47:55]line > о реализуемом товаре [12:47:55]line Товар: 5449000027474 [12:47:55]line Напиток FuzeTea зел чай манго,ромашка 1л [12:47:55]line 1.000 * 105.00 [12:47:55]line = 105.00 [12:47:55]line НДС 12% НСП 1% [12:47:55]line > о реализуемом товаре [12:47:55]line Товар: 4870001570095 [12:47:55]line Напиток Pepsi 2л [12:47:55]line 1.000 * 210.00 [12:47:55]line = 210.00 [12:47:55]line НДС 12% НСП 1% [12:47:55]line > о реализуемом товаре [12:47:55]line Товар: 4870001570071 [12:47:55]line Напиток Pepsi 1л [12:47:55]line 1.000 * 110.00 [12:47:55]line = 110.00 [12:47:55]line НДС 12% НСП 1% [12:47:55]line > о реализуемом товаре [12:47:55]line ИТОГО: 515.00 [12:47:55]line НСП 1% : 4.56 [12:47:55]line НДС 12% : 54.69 [12:47:55]line Наличными: 515.00 [12:47:55]line Безнал.: 0.00 [12:47:55]line Место: АЗС № 90 "Партнер Нефть" [12:47:55]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:47:55]line СНО: Общий режим [12:47:55]line Чек 89 22.09.2024 12:47 [12:47:55]line Смена: 471 ФФД: 1.0 [12:47:55]line ЗНМ: 0300000120 [12:47:55]line РНМ: 0000000000091831 [12:47:55]line Версия ККМ: 001 [12:47:55]line ФМ: 0000000000871830 [12:47:55]line ФД: 115371 [12:47:55]line ФПД: 39374424276099 [12:47:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T124754&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115371&fm=39374424276099&tin=02508201610067®Number=0000000000091831&sum=51500 [12:47:55]line 0 [12:47:55]OFD Sender: Processing packet 115371 [packets to send 481, broken 480] [12:47:55]ProducePacketName [12:47:55]name=ofd_packets/00115371 [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]written 0, free lines is 4095 [12:47:56]Connected sock=10 [12:47:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 91 02 00 00 40 5A 89 02 C0 9E 5A 03 01 00 03 00 7D 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 15 00 00 00 00 07 04 06 00 2C C9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 FA 11 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AB C2 01 00 35 04 06 00 23 CF 92 92 7C 83 18 C0 A5 4E 0F 32 00 96 [12:47:56]Write to MH i2c: 01 00 00 16 08 1E [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 16 08 00 00 00 00 00 D0 0A FF [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 2771 [12:47:56]MH_Cut [12:47:56]Write to MH i2c: D1 01 00 1D 08 01 F7 [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 1D 08 00 F6 [12:47:56]Write to MH i2c: 01 00 00 1E 08 26 [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 31 38 33 30 4F 00 00 00 3E 76 47 00 E1 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AB C2 01 00 F4 03 04 00 41 B7 EF 66 B6 04 01 00 00 DA 60 5F 87 EC BC 21 8D [12:47:56]CommunicateWithHost err = 0 [12:47:56]CheckOFDResponse [12:47:56]1017 (14) - 77093643461234 [12:47:56]1041 (16) - 0000000000871830 [12:47:56]1040 (4) - 115371 [12:47:56]1012 (4) - 22.09.2024 06:20 [12:47:56]1206 (1) - 0 [12:47:56]OFD Sender: Remove packet 115371 [12:47:56]ProducePacketName [12:47:56]name=ofd_packets/00115371 [12:47:56]NVStorageDeleteData [12:47:57]OFD Sender: No OFD packet to send [12:47:58]*** Cut start [12:47:58]*** Partial cut [12:47:58]*** CUTSNS_PIN = 1 [12:47:58]*** CUTSNS_PIN = 0 [12:47:58]*** Brake cut motor [12:47:58]Read from MH i2c: 01 [12:47:58]MH_I2C_Read... [12:47:58]*** Stop cut motor [12:47:58]*** Cut end [12:47:58]Read from MH i2c: 01 07 00 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: 01 07 00 1E 08 00 00 00 00 00 FF 0F 3B [12:47:58]process_action close_receipt done [12:47:58]requested_data is exist [12:47:58]produce_requested_data [12:47:58]requested_item fm.sn is exist - process it [12:47:58]wFMCommunicate request_size=4 [12:47:58]MH_SAM_APDU [12:47:58]CAPDU: 80 11 00 00 [12:47:58]Write to MH i2c: E2 08 00 1F 08 80 11 00 00 00 00 00 00 A1 [12:47:58]Write i2c OK [12:47:58]MH_I2C_Read... [12:47:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:58]Read from MH i2c: E2 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 17 00 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 17 00 1F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EF [12:47:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:47:58]wFMCommunicate OK [12:47:58]requested_item fd.num is exist - process it [12:47:58]SAM_PROTO_GetFieldsCounters [12:47:58]wFMCommunicate request_size=4 [12:47:58]MH_SAM_APDU [12:47:58]CAPDU: 80 13 00 00 [12:47:58]Write to MH i2c: E2 08 00 20 08 80 13 00 00 00 00 00 00 A4 [12:47:58]Write i2c OK [12:47:58]MH_I2C_Read... [12:47:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:59]Read from MH i2c: E2 [12:47:59]MH_I2C_Read... [12:47:59]Read from MH i2c: E2 62 00 [12:47:59]MH_I2C_Read... [12:47:59]Read from MH i2c: E2 62 00 20 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AB C2 01 00 0E 04 04 00 D7 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 0E [12:47:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AB C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:59]wFMCommunicate OK [12:47:59]SAM_PROTO_GetFieldsCounters done [12:47:59]requested_item shift.num is exist - process it [12:47:59]requested_item shift.opened is exist - process it [12:47:59]req_shift_opened [12:47:59]FM_GetShiftState [12:47:59]SAM_PROTO_GetShiftState [12:47:59]wFMCommunicate request_size=4 [12:47:59]MH_SAM_APDU [12:47:59]CAPDU: 80 13 01 00 [12:47:59]Write to MH i2c: E2 08 00 21 08 80 13 01 00 00 00 00 00 A6 [12:47:59]Write i2c OK [12:47:59]MH_I2C_Read... [12:47:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:59]Read from MH i2c: E2 [12:47:59]MH_I2C_Read... [12:47:59]Read from MH i2c: E2 0E 00 [12:47:59]MH_I2C_Read... [12:47:59]Read from MH i2c: E2 0E 00 21 08 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 BF [12:47:59]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:47:59]wFMCommunicate OK [12:47:59]SAM_PROTO_GetShiftState done [12:47:59]FM_GetShiftState done [12:47:59]req_shift_opened done [12:47:59]requested_item shift.open_date is exist - process it [12:47:59]req_shift_open_date [12:47:59]req_shift_open_date done [12:47:59]produce_requested_data done [12:47:59]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115371,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [12:47:59]process_action_free close_receipt [12:47:59]json_value_free [12:47:59]json_value_free done [12:47:59]process_json_proto returns [12:47:59]Send response to host [12:47:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115371,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [12:47:59]free response buf [12:47:59]execute_script done [12:47:59]execute_script returns [12:47:59]free content buf [12:47:59]Sock 8.Close socket [12:47:59]Sock 8.Thread stoped [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [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:14]accept exits with 9 [12:49:14]New connection [12:49:14]New thread 3066682724 created [12:49:14]Thread 3066826084 joined [12:49:14]Waiting for new connection... [12:49:14] Sock 9.Parse request [12:49:14]Sock 9.Check first char [12:49:14]Sock 9.First char is OK [12:49:14]request: POST /json_proto HTTP/1.0 [12:49:14]Method: POST [12:49:14]URL: /json_proto [12:49:14]Method is POST - this is cgi request [12:49:14]url: /json_proto [12:49:14]query_string will be loaded in cgi processing [12:49:14]execute_cgi json_proto POST (null) [12:49:14]execute_cgi path=json_proto method=POST [12:49:14]POST find Content-Length [12:49:14]Host: 172.17.41.136:8080 [12:49:14]Content-Length: 679 [12:49:14]Content-Type: application/json [12:49:14] [12:49:14]POST finish read [12:49:14]Found Content-Length = 679 [12:49:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:49:14]execute_script... [12: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)24616734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:49:14]POST & json_proto [12:49:14]process_json_proto [12:49:14]json parsed OK: [12:49:14]protocol is kg_v1.0 [12:49:14]action value=close_receipt [12:49:14]process_action close_receipt [12:49:14]cmd_close_receipt [12:49:14]MH_GetDate [12:49:14]Write to MH i2c: F0 00 00 22 08 19 [12:49:14]Write i2c OK [12:49:14]MH_I2C_Read... [12:49:14]Read from MH i2c: F0 [12:49:14]MH_I2C_Read... [12:49:14]Read from MH i2c: F0 09 00 [12:49:14]MH_I2C_Read... [12:49:14]Read from MH i2c: F0 09 00 22 08 00 4C 12 F0 66 1B D0 5A 64 7F [12:49:14]GetLastDocTimeStamp 1727009274 [12:49:14]current date 1727009356 [12:49:14]FM_GetShiftState [12:49:14]SAM_PROTO_GetShiftState [12:49:14]wFMCommunicate request_size=4 [12:49:14]MH_SAM_APDU [12:49:14]CAPDU: 80 13 01 00 [12:49:14]Write to MH i2c: E2 08 00 23 08 80 13 01 00 00 00 00 00 A8 [12:49:14]Write i2c OK [12:49:14]MH_I2C_Read... [12:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:14]Read from MH i2c: E2 [12:49:14]MH_I2C_Read... [12:49:14]Read from MH i2c: E2 0E 00 [12:49:14]MH_I2C_Read... [12:49:14]Read from MH i2c: E2 0E 00 23 08 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C1 [12:49:14]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:49:14]wFMCommunicate OK [12:49:14]SAM_PROTO_GetShiftState done [12:49:14]FM_GetShiftState done [12:49:14]opened in 1726965840 [12:49:14]opened+sec_in_day 1727052240 [12:49:14]quantity*price = 50036 [12:49:14]sum+1 = 50037 [12:49:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 90 22.09.2024 12:49 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115372 ФПД: 269875031895095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T124916&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115372&fm=269875031895095&tin=02508201610067®Number=0000000000091831&sum=50000 [12:49:15]StoreToDocumentArchive [12:49:15]shift 471 fd 115372 [12:49:15]save to /storage/0471/doc_00115372 [12:49:15]save last doc name /storage/0471/doc_00115372 to /storage/kkm_last_doc_name [12:49:15]save OK [12:49:15]Clear old archive folders... [12:49:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:15]tlvbuf is 01C0B960 [12:49:15]SAM_PROTO_ClearQueue [12:49:15]wFMCommunicate request_size=4 [12:49:15]MH_SAM_APDU [12:49:15]CAPDU: 80 09 00 00 [12:49:15]Write to MH i2c: E2 08 00 30 08 80 09 00 00 00 00 00 00 AA [12:49:15]Write i2c OK [12:49:15]MH_I2C_Read... [12:49:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:15]Read from MH i2c: E2 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 03 00 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 03 00 30 08 00 90 00 AC [12:49:15]RAPDU: 90 00 [12:49:15]wFMCommunicate OK [12:49:15]SAM_PROTO_ClearQueue done [12:49:15]KKMCreateOFDPacket [12:49:15]OFDProtocolAddRootSTLVToBuf [12:49:15]FM_MakeSignedData [12:49:15]FM_MakeSignedData [12:49:15]SAM_PROTO_SignData [12:49:15]wFMCommunicate request_size=4 [12:49:15]MH_SAM_APDU [12:49:15]CAPDU: 80 0D 01 02 [12:49:15]Write to MH i2c: E2 08 00 31 08 80 0D 01 02 00 00 00 00 B2 [12:49:15]Write i2c OK [12:49:15]MH_I2C_Read... [12:49:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:15]Read from MH i2c: E2 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 03 00 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 03 00 31 08 00 90 00 AD [12:49:15]RAPDU: 90 00 [12:49:15]wFMCommunicate OK [12:49:15]wFMCommunicate request_size=255 [12:49:15]MH_SAM_APDU [12: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 35 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 5A 00 00 00 F4 03 04 00 4C 12 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AC C2 01 00 35 04 06 00 F5 [12:49:16]Write to MH i2c: E2 02 01 32 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5A 00 00 00 F4 03 04 00 4C 12 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AC C2 01 00 35 04 06 00 F5 00 00 73 [12:49:16]Write i2c OK [12:49:16]MH_I2C_Read... [12:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:16]Read from MH i2c: E2 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 03 00 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 03 00 32 08 00 90 00 AE [12:49:16]RAPDU: 90 00 [12:49:16]wFMCommunicate OK [12:49:16]wFMCommunicate request_size=10 [12:49:16]MH_SAM_APDU [12:49:16]CAPDU: 80 0D 02 02 05 73 2D 68 EC 37 [12:49:16]Write to MH i2c: E2 0D 00 33 08 80 0D 02 02 05 00 73 2D 68 EC 37 00 00 EA [12:49:16]Write i2c OK [12:49:16]MH_I2C_Read... [12:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:16]Read from MH i2c: E2 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 03 00 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 03 00 33 08 00 90 00 AF [12:49:16]RAPDU: 90 00 [12:49:16]wFMCommunicate OK [12:49:16]wFMCommunicate request_size=4 [12:49:16]MH_SAM_APDU [12:49:16]CAPDU: 80 0D 03 02 [12:49:16]Write to MH i2c: E2 08 00 34 08 80 0D 03 02 00 00 00 00 B7 [12:49:16]Write i2c OK [12:49:16]MH_I2C_Read... [12:49:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:16]Read from MH i2c: E2 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 0B 00 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 0B 00 34 08 00 4E AD 35 3C 96 96 04 D8 90 00 2C [12:49:16]RAPDU: 4E AD 35 3C 96 96 04 D8 90 00 [12:49:16]wFMCommunicate OK [12:49:16]SAM_PROTO_SignData done [12:49:16]FM_MakeSignedData done [12:49:16]CreateOFDProtocolMessage [12:49:16]wFMCommunicate request_size=4 [12:49:16]MH_SAM_APDU [12:49:16]CAPDU: 80 11 00 00 [12:49:16]Write to MH i2c: E2 08 00 35 08 80 11 00 00 00 00 00 00 B7 [12:49:16]Write i2c OK [12:49:16]MH_I2C_Read... [12:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:16]Read from MH i2c: E2 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 17 00 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 17 00 35 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 05 [12:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:49:16]wFMCommunicate OK [12:49:16]CreateOFDProtocolMessage done [12:49:16]OFDSenderStorePacket 115372 [12:49:16]StoreOFDPacket docnum=115372 [12:49:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 54 C7 07 01 6A CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5A 00 00 00 F4 03 04 00 4C 12 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AC C2 01 00 35 04 06 00 F5 73 2D 68 EC 37 4E AD 35 3C 96 96 04 D8 [12:49:16]CheckFolder [12:49:16]dirname=/storage/ofd_packets [12:49:16]CheckFolder done [12:49:16]ProducePacketName [12:49:16]name=ofd_packets/00115372 [12:49:16]NVStorageSaveData ofd_packets/00115372 [12:49:16]File name is /storage/ofd_packets/00115372 [12:49:16]Write 301 bytes [12:49:16]NVStorageSaveData done [12:49:16]OFDSenderStorePacket done [12:49:16]KKMCreateOFDPacket done [12:49:16]NVStorageSaveData kkm_last_timestamp [12:49:16]File name is /storage/kkm_last_timestamp [12:49:16]Write 4 bytes [12:49:16]NVStorageSaveData done [12:49:16]ExternCall_PrintAddStr [12:49:16]wPrintStart [12:49:16]Write to MH i2c: 01 00 00 36 08 3E [12:49:16]Write i2c OK [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: 01 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: 01 07 00 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: 01 07 00 36 08 00 00 00 00 00 FF 0F 53 [12:49:16]RasterBufferAndPrint [12:49:16]line Счет N : (1)24616734 [12:49:16]line ИНН: 02508201610067 [12:49:16]line Контрольно-Кассовый Чек [12:49:16]line ПРОДАЖА [12:49:16]line ТРК (МРК, ГНК) : 33 [12:49:16]line Товар: 2710124130 [12:49:16]line Аи-92-К-5 [12:49:16]line 7.380 * 67.80 [12:49:16]line = 500.36 [12:49:16]line НДС 12% НСП 1% [12:49:16]line > о реализуемом товаре [12:49:16]line ОКРУГЛЕНИЕ: -0.36 [12:49:16]line ИТОГО: 500.00 [12:49:16]line Внесено: 500.00 [12:49:16]line СДАЧА: 0.00 [12:49:16]line НСП 1% : 4.43 [12:49:16]line НДС 12% : 53.14 [12:49:16]line Наличными: 500.00 [12:49:16]line Безнал.: 0.00 [12:49:16]line Место: АЗС № 90 "Партнер Нефть" [12:49:16]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:49:16]line СНО: Общий режим [12:49:16]line Чек 90 22.09.2024 12:49 [12:49:16]line Смена: 471 ФФД: 1.0 [12:49:16]line ЗНМ: 0300000120 [12:49:16]line РНМ: 0000000000091831 [12:49:16]line Версия ККМ: 001 [12:49:16]line ФМ: 0000000000871830 [12:49:16]line ФД: 115372 [12:49:16]line ФПД: 269875031895095 [12:49:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T124916&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115372&fm=269875031895095&tin=02508201610067®Number=0000000000091831&sum=50000 [12:49:16]written 0, free lines is 4095 [12:49:16]OFD Sender: Processing packet 115372 [packets to send 481, broken 480] [12:49:16]ProducePacketName [12:49:16]name=ofd_packets/00115372 [12:49:16]OFD Sender: To server: pG, [12:49:16]CommunicateWithHost lk.salyk.kg:30040 [12:49:16]ConnectInit lk.salyk.kg [12:49:16]Connected sock=10 [12: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 31 38 33 30 0F 01 00 00 54 C7 07 01 6A CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5A 00 00 00 F4 03 04 00 4C 12 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AC C2 01 00 35 04 06 00 F5 73 2D 68 EC 37 4E AD 35 3C 96 96 04 D8 [12:49:16]Write to MH i2c: 01 00 00 60 08 68 [12:49:16]Write i2c OK [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: 01 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: 01 07 00 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: 01 07 00 60 08 00 00 00 00 00 57 0C D2 [12:49:16]RasterBufferAndPrint [12:49:16]line [12:49:16]line [12:49:16]line [12:49:16]line [12:49:16]line [12:49:16]written 0, free lines is 3165 [12:49:16]MH_Cut [12:49:16]Write to MH i2c: D1 01 00 67 08 01 41 [12:49:16]Write i2c OK [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: D1 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: D1 01 00 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: D1 01 00 67 08 00 40 [12:49:16]Write to MH i2c: 01 00 00 68 08 70 [12:49:16]Write i2c OK [12:49:16]MH_I2C_Read... [12:49:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A6 99 47 00 53 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AC C2 01 00 F4 03 04 00 91 B7 EF 66 B6 04 01 00 00 42 32 AC 13 10 A2 00 F9 [12:49:17]CommunicateWithHost err = 0 [12:49:17]CheckOFDResponse [12:49:17]1017 (14) - 77093643461234 [12:49:17]1041 (16) - 0000000000871830 [12:49:17]1040 (4) - 115372 [12:49:17]1012 (4) - 22.09.2024 06:22 [12:49:17]1206 (1) - 0 [12:49:17]OFD Sender: Remove packet 115372 [12:49:17]ProducePacketName [12:49:17]name=ofd_packets/00115372 [12:49:17]NVStorageDeleteData [12:49:17]OFD Sender: No OFD packet to send [12:49:18]*** Cut start [12:49:18]*** Partial cut [12:49:18]*** CUTSNS_PIN = 1 [12:49:18]*** CUTSNS_PIN = 0 [12:49:18]*** Brake cut motor [12:49:18]Read from MH i2c: 01 [12:49:18]*** Stop cut motor [12:49:18]*** Cut end [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: 01 07 00 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: 01 07 00 68 08 00 00 00 00 00 FF 0F 85 [12:49:18]process_action close_receipt done [12:49:18]requested_data is exist [12:49:18]produce_requested_data [12:49:18]requested_item fm.sn is exist - process it [12:49:18]wFMCommunicate request_size=4 [12:49:18]MH_SAM_APDU [12:49:18]CAPDU: 80 11 00 00 [12:49:18]Write to MH i2c: E2 08 00 69 08 80 11 00 00 00 00 00 00 EB [12:49:18]Write i2c OK [12:49:18]MH_I2C_Read... [12:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:18]Read from MH i2c: E2 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: E2 17 00 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: E2 17 00 69 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 39 [12:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:49:18]wFMCommunicate OK [12:49:18]requested_item fd.num is exist - process it [12:49:18]SAM_PROTO_GetFieldsCounters [12:49:18]wFMCommunicate request_size=4 [12:49:18]MH_SAM_APDU [12:49:18]CAPDU: 80 13 00 00 [12:49:18]Write to MH i2c: E2 08 00 6A 08 80 13 00 00 00 00 00 00 EE [12:49:18]Write i2c OK [12:49:18]MH_I2C_Read... [12:49:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:18]Read from MH i2c: E2 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: E2 62 00 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: E2 62 00 6A 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AC C2 01 00 0E 04 04 00 D7 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 5C [12:49:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AC C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:18]wFMCommunicate OK [12:49:18]SAM_PROTO_GetFieldsCounters done [12:49:18]requested_item shift.num is exist - process it [12:49:18]requested_item shift.opened is exist - process it [12:49:18]req_shift_opened [12:49:18]FM_GetShiftState [12:49:18]SAM_PROTO_GetShiftState [12:49:18]wFMCommunicate request_size=4 [12:49:18]MH_SAM_APDU [12:49:18]CAPDU: 80 13 01 00 [12:49:18]Write to MH i2c: E2 08 00 6B 08 80 13 01 00 00 00 00 00 F0 [12:49:18]Write i2c OK [12:49:18]MH_I2C_Read... [12:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:19]Read from MH i2c: E2 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 0E 00 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 0E 00 6B 08 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 09 [12:49:19]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:49:19]wFMCommunicate OK [12:49:19]SAM_PROTO_GetShiftState done [12:49:19]FM_GetShiftState done [12:49:19]req_shift_opened done [12:49:19]requested_item shift.open_date is exist - process it [12:49:19]req_shift_open_date [12:49:19]req_shift_open_date done [12:49:19]produce_requested_data done [12:49:19]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115372,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [12:49:19]process_action_free close_receipt [12:49:19]json_value_free [12:49:19]json_value_free done [12:49:19]process_json_proto returns [12:49:19]Send response to host [12:49:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115372,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [12:49:19]free response buf [12:49:19]execute_script done [12:49:19]execute_script returns [12:49:19]free content buf [12:49:19]Sock 9.Close socket [12:49:19]Sock 9.Thread stoped [12:49: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:36]accept exits with 8 [12:49:36]New connection [12:49:36]New thread 3066826084 created [12:49:36]Thread 3066682724 joined [12:49:36]Waiting for new connection... [12:49:36] Sock 8.Parse request [12:49:36]Sock 8.Check first char [12:49:36]Sock 8.First char is OK [12:49:36]request: POST /json_proto HTTP/1.0 [12:49:36]Method: POST [12:49:36]URL: /json_proto [12:49:36]Method is POST - this is cgi request [12:49:36]url: /json_proto [12:49:36]query_string will be loaded in cgi processing [12:49:36]execute_cgi json_proto POST (null) [12:49:36]execute_cgi path=json_proto method=POST [12:49:36]POST find Content-Length [12:49:36]Host: 172.17.41.136:8080 [12:49:36]Content-Length: 625 [12:49:36]Content-Type: application/json [12:49:36] [12:49:36]POST finish read [12:49:36]Found Content-Length = 625 [12:49:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 14.430, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:36]execute_script... [12:49:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 14.430, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:36]POST & json_proto [12:49:36]process_json_proto [12:49:36]json parsed OK: [12:49:36]protocol is kg_v1.0 [12:49:36]action value=close_receipt [12:49:36]process_action close_receipt [12:49:36]cmd_close_receipt [12:49:36]MH_GetDate [12:49:36]Write to MH i2c: F0 00 00 6C 08 63 [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: F0 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: F0 09 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: F0 09 00 6C 08 00 61 12 F0 66 1B D0 5A 64 DE [12:49:36]GetLastDocTimeStamp 1727009356 [12:49:36]current date 1727009377 [12:49:36]FM_GetShiftState [12:49:36]SAM_PROTO_GetShiftState [12:49:36]wFMCommunicate request_size=4 [12:49:36]MH_SAM_APDU [12:49:36]CAPDU: 80 13 01 00 [12:49:36]Write to MH i2c: E2 08 00 6D 08 80 13 01 00 00 00 00 00 F2 [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:36]Read from MH i2c: E2 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 0E 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 0E 00 6D 08 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 0B [12:49:36]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:49:36]wFMCommunicate OK [12:49:36]SAM_PROTO_GetShiftState done [12:49:36]FM_GetShiftState done [12:49:36]opened in 1726965840 [12:49:36]opened+sec_in_day 1727052240 [12:49:36]quantity*price = 99999 [12:49:36]sum+1 = 100001 [12:49:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 91 22.09.2024 12:49 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115373 ФПД: 129077111671649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T124937&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115373&fm=129077111671649&tin=02508201610067®Number=0000000000091831&sum=100000 [12:49:37]StoreToDocumentArchive [12:49:37]shift 471 fd 115373 [12:49:37]save to /storage/0471/doc_00115373 [12:49:37]save last doc name /storage/0471/doc_00115373 to /storage/kkm_last_doc_name [12:49:37]save OK [12:49:37]Clear old archive folders... [12:49:37]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:49:37]tlvbuf is 01BE2DE0 [12:49:37]SAM_PROTO_ClearQueue [12:49:37]wFMCommunicate request_size=4 [12:49:37]MH_SAM_APDU [12:49:37]CAPDU: 80 09 00 00 [12:49:37]Write to MH i2c: E2 08 00 7A 08 80 09 00 00 00 00 00 00 F4 [12:49:37]Write i2c OK [12:49:37]MH_I2C_Read... [12:49:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:37]Read from MH i2c: E2 [12:49:37]MH_I2C_Read... [12:49:37]Read from MH i2c: E2 03 00 [12:49:37]MH_I2C_Read... [12:49:37]Read from MH i2c: E2 03 00 7A 08 00 90 00 F6 [12:49:37]RAPDU: 90 00 [12:49:37]wFMCommunicate OK [12:49:37]SAM_PROTO_ClearQueue done [12:49:37]KKMCreateOFDPacket [12:49:37]OFDProtocolAddRootSTLVToBuf [12:49:37]FM_MakeSignedData [12:49:37]FM_MakeSignedData [12:49:37]SAM_PROTO_SignData [12:49:37]wFMCommunicate request_size=4 [12:49:37]MH_SAM_APDU [12:49:37]CAPDU: 80 0D 01 02 [12:49:37]Write to MH i2c: E2 08 00 7B 08 80 0D 01 02 00 00 00 00 FC [12:49:37]Write i2c OK [12:49:37]MH_I2C_Read... [12:49:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:37]Read from MH i2c: E2 [12:49:37]MH_I2C_Read... [12:49:37]Read from MH i2c: E2 03 00 [12:49:37]MH_I2C_Read... [12:49:37]Read from MH i2c: E2 03 00 7B 08 00 90 00 F7 [12:49:37]RAPDU: 90 00 [12:49:37]wFMCommunicate OK [12:49:37]wFMCommunicate request_size=253 [12:49:37]MH_SAM_APDU [12:49:37]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 61 12 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AD C2 01 00 35 04 06 00 75 65 1B 63 CB 61 [12:49:37]Write to MH i2c: E2 00 01 7C 08 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 61 12 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AD C2 01 00 35 04 06 00 75 65 1B 63 CB 61 00 00 F0 [12:49:37]Write i2c OK [12:49:37]MH_I2C_Read... [12:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:38]Read from MH i2c: E2 [12:49:38]MH_I2C_Read... [12:49:38]Read from MH i2c: E2 03 00 [12:49:38]MH_I2C_Read... [12:49:38]Read from MH i2c: E2 03 00 7C 08 00 90 00 F8 [12:49:38]RAPDU: 90 00 [12:49:38]wFMCommunicate OK [12:49:38]wFMCommunicate request_size=4 [12:49:38]MH_SAM_APDU [12:49:38]CAPDU: 80 0D 03 02 [12:49:38]Write to MH i2c: E2 08 00 7D 08 80 0D 03 02 00 00 00 00 00 [12:49:38]Write i2c OK [12:49:38]MH_I2C_Read... [12:49:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:38]Read from MH i2c: E2 [12:49:38]MH_I2C_Read... [12:49:38]Read from MH i2c: E2 0B 00 [12:49:38]MH_I2C_Read... [12:49:38]Read from MH i2c: E2 0B 00 7D 08 00 53 BC 76 6B C5 7C 04 9D 90 00 D3 [12:49:38]RAPDU: 53 BC 76 6B C5 7C 04 9D 90 00 [12:49:38]wFMCommunicate OK [12:49:38]SAM_PROTO_SignData done [12:49:38]FM_MakeSignedData done [12:49:38]CreateOFDProtocolMessage [12:49:38]wFMCommunicate request_size=4 [12:49:38]MH_SAM_APDU [12:49:38]CAPDU: 80 11 00 00 [12:49:38]Write to MH i2c: E2 08 00 7E 08 80 11 00 00 00 00 00 00 00 [12:49:38]Write i2c OK [12:49:38]MH_I2C_Read... [12:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:38]Read from MH i2c: E2 [12:49:38]MH_I2C_Read... [12:49:38]Read from MH i2c: E2 17 00 [12:49:38]MH_I2C_Read... [12:49:38]Read from MH i2c: E2 17 00 7E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4E [12:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:49:38]wFMCommunicate OK [12:49:38]CreateOFDProtocolMessage done [12:49:38]OFDSenderStorePacket 115373 [12:49:38]StoreOFDPacket docnum=115373 [12:49:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 BC 63 00 01 1D 37 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 61 12 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AD C2 01 00 35 04 06 00 75 65 1B 63 CB 61 53 BC 76 6B C5 7C 04 9D [12:49:38]CheckFolder [12:49:38]dirname=/storage/ofd_packets [12:49:38]CheckFolder done [12:49:38]ProducePacketName [12:49:38]name=ofd_packets/00115373 [12:49:38]NVStorageSaveData ofd_packets/00115373 [12:49:38]File name is /storage/ofd_packets/00115373 [12:49:38]Write 294 bytes [12:49:38]NVStorageSaveData done [12:49:38]OFDSenderStorePacket done [12:49:38]KKMCreateOFDPacket done [12:49:38]NVStorageSaveData kkm_last_timestamp [12:49:38]File name is /storage/kkm_last_timestamp [12:49:38]Write 4 bytes [12:49:38]NVStorageSaveData done [12:49:38]ExternCall_PrintAddStr [12:49:38]wPrintStart [12:49:38]Write to MH i2c: 01 00 00 7F 08 87 [12:49:38]Write i2c OK [12:49:38]MH_I2C_Read... [12:49:38]Read from MH i2c: 01 [12:49:38]MH_I2C_Read... [12:49:38]Read from MH i2c: 01 07 00 [12:49:38]MH_I2C_Read... [12:49:38]Read from MH i2c: 01 07 00 7F 08 00 00 00 00 00 FF 0F 9C [12:49:38]RasterBufferAndPrint [12:49:38]line Счет N : (1)24616735 [12:49:38]line ИНН: 02508201610067 [12:49:38]line Контрольно-Кассовый Чек [12:49:38]line ПРОДАЖА [12:49:38]line ТРК (МРК, ГНК) : 54 [12:49:38]line Товар: 2710124130 [12:49:38]line SU-92 [12:49:38]line 14.430 * 69.30 [12:49:38]line = 1000.00 [12:49:38]line НДС 12% НСП 1% [12:49:38]line > о реализуемом товаре [12:49:38]line ИТОГО: 1000.00 [12:49:38]line НСП 1% : 8.85 [12:49:38]line НДС 12% : 106.19 [12:49:38]line Наличными: 1000.00 [12:49:38]line Безнал.: 0.00 [12:49:38]line Место: АЗС № 90 "Партнер Нефть" [12:49:38]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:49:38]line СНО: Общий режим [12:49:38]line Чек 91 22.09.2024 12:49 [12:49:38]line Смена: 471 ФФД: 1.0 [12:49:38]line ЗНМ: 0300000120 [12:49:38]line РНМ: 0000000000091831 [12:49:38]line Версия ККМ: 001 [12:49:38]line ФМ: 0000000000871830 [12:49:38]line ФД: 115373 [12:49:38]line ФПД: 129077111671649 [12:49:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T124937&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115373&fm=129077111671649&tin=02508201610067®Number=0000000000091831&sum=100000 [12:49:38]written 0, free lines is 4095 [12:49:38]OFD Sender: Processing packet 115373 [packets to send 481, broken 480] [12:49:38]ProducePacketName [12:49:38]name=ofd_packets/00115373 [12:49:38]OFD Sender: To server: pG, [12:49:38]CommunicateWithHost lk.salyk.kg:30040 [12:49:38]ConnectInit lk.salyk.kg [12:49:38]Write to MH i2c: 01 00 00 A6 08 AE [12:49:38]Write i2c OK [12:49:38]MH_I2C_Read... [12:49:38]Read from MH i2c: 01 [12:49:38]MH_I2C_Read... [12:49:38]Read from MH i2c: 01 07 00 [12:49:38]MH_I2C_Read... [12:49:38]Read from MH i2c: 01 07 00 A6 08 00 00 00 00 00 8F 0C 50 [12:49:38]RasterBufferAndPrint [12:49:38]line [12:49:38]line [12:49:38]line [12:49:38]line [12:49:38]line [12:49:38]written 0, free lines is 3219 [12:49:38]MH_Cut [12:49:38]Write to MH i2c: D1 01 00 AD 08 01 87 [12:49:38]Write i2c OK [12:49:38]MH_I2C_Read... [12:49:38]Read from MH i2c: D1 [12:49:38]MH_I2C_Read... [12:49:38]Read from MH i2c: D1 01 00 [12:49:38]MH_I2C_Read... [12:49:38]Read from MH i2c: D1 01 00 AD 08 00 86 [12:49:38]Write to MH i2c: 01 00 00 AE 08 B6 [12:49:38]Write i2c OK [12:49:38]MH_I2C_Read... [12:49:38]Connected sock=10 [12:49:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 BC 63 00 01 1D 37 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 61 12 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AD C2 01 00 35 04 06 00 75 65 1B 63 CB 61 53 BC 76 6B C5 7C 04 9D [12:49:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F3 7E 47 00 59 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AD C2 01 00 F4 03 04 00 A7 B7 EF 66 B6 04 01 00 00 C0 62 31 DB 9E 31 13 E0 [12:49:39]CommunicateWithHost err = 0 [12:49:39]CheckOFDResponse [12:49:39]1017 (14) - 77093643461234 [12:49:39]1041 (16) - 0000000000871830 [12:49:39]1040 (4) - 115373 [12:49:39]1012 (4) - 22.09.2024 06:22 [12:49:39]1206 (1) - 0 [12:49:39]OFD Sender: Remove packet 115373 [12:49:39]ProducePacketName [12:49:39]name=ofd_packets/00115373 [12:49:39]NVStorageDeleteData [12:49:39]OFD Sender: No OFD packet to send [12:49:39]*** Cut start [12:49:39]*** Partial cut [12:49:39]*** CUTSNS_PIN = 1 [12:49:39]*** CUTSNS_PIN = 0 [12:49:40]*** Brake cut motor [12:49:40]Read from MH i2c: 01 [12:49:40]MH_I2C_Read... [12:49:40]*** Stop cut motor [12:49:40]*** Cut end [12:49:40]Read from MH i2c: 01 07 00 [12:49:40]MH_I2C_Read... [12:49:40]Read from MH i2c: 01 07 00 AE 08 00 00 00 00 00 FF 0F CB [12:49:40]process_action close_receipt done [12:49:40]requested_data is exist [12:49:40]produce_requested_data [12:49:40]requested_item fm.sn is exist - process it [12:49:40]wFMCommunicate request_size=4 [12:49:40]MH_SAM_APDU [12:49:40]CAPDU: 80 11 00 00 [12:49:40]Write to MH i2c: E2 08 00 AF 08 80 11 00 00 00 00 00 00 31 [12:49:40]Write i2c OK [12:49:40]MH_I2C_Read... [12:49:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:40]Read from MH i2c: E2 [12:49:40]MH_I2C_Read... [12:49:40]Read from MH i2c: E2 17 00 [12:49:40]MH_I2C_Read... [12:49:40]Read from MH i2c: E2 17 00 AF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7F [12:49:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:49:40]wFMCommunicate OK [12:49:40]requested_item fd.num is exist - process it [12:49:40]SAM_PROTO_GetFieldsCounters [12:49:40]wFMCommunicate request_size=4 [12:49:40]MH_SAM_APDU [12:49:40]CAPDU: 80 13 00 00 [12:49:40]Write to MH i2c: E2 08 00 B0 08 80 13 00 00 00 00 00 00 34 [12:49:40]Write i2c OK [12:49:40]MH_I2C_Read... [12:49:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:40]Read from MH i2c: E2 [12:49:40]MH_I2C_Read... [12:49:40]Read from MH i2c: E2 62 00 [12:49:40]MH_I2C_Read... [12:49:40]Read from MH i2c: E2 62 00 B0 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AD C2 01 00 0E 04 04 00 D7 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 A6 [12:49:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AD C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:40]wFMCommunicate OK [12:49:40]SAM_PROTO_GetFieldsCounters done [12:49:40]requested_item shift.num is exist - process it [12:49:40]requested_item shift.opened is exist - process it [12:49:40]req_shift_opened [12:49:40]FM_GetShiftState [12:49:40]SAM_PROTO_GetShiftState [12:49:40]wFMCommunicate request_size=4 [12:49:40]MH_SAM_APDU [12:49:40]CAPDU: 80 13 01 00 [12:49:40]Write to MH i2c: E2 08 00 B1 08 80 13 01 00 00 00 00 00 36 [12:49:40]Write i2c OK [12:49:40]MH_I2C_Read... [12:49:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:40]Read from MH i2c: E2 [12:49:40]MH_I2C_Read... [12:49:40]Read from MH i2c: E2 0E 00 [12:49:40]MH_I2C_Read... [12:49:40]Read from MH i2c: E2 0E 00 B1 08 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 4F [12:49:40]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:49:40]wFMCommunicate OK [12:49:40]SAM_PROTO_GetShiftState done [12:49:40]FM_GetShiftState done [12:49:40]req_shift_opened done [12:49:40]requested_item shift.open_date is exist - process it [12:49:40]req_shift_open_date [12:49:40]req_shift_open_date done [12:49:40]produce_requested_data done [12:49:40]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115373,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [12:49:40]process_action_free close_receipt [12:49:40]json_value_free [12:49:40]json_value_free done [12:49:40]process_json_proto returns [12:49:40]Send response to host [12:49:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115373,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [12:49:40]free response buf [12:49:40]execute_script done [12:49:40]execute_script returns [12:49:40]free content buf [12:49:40]Sock 8.Close socket [12:49:40]Sock 8.Thread stoped [12:49:40]accept exits with 9 [12:49:40]New connection [12:49:40]New thread 3066682724 created [12:49:40]Thread 3066826084 joined [12:49:40]Waiting for new connection... [12:49:40] Sock 9.Parse request [12:49:40]Sock 9.Check first char [12:49:40]Sock 9.First char is OK [12:49:40]request: POST /json_proto HTTP/1.0 [12:49:40]Method: POST [12:49:40]URL: /json_proto [12:49:40]Method is POST - this is cgi request [12:49:40]url: /json_proto [12:49:40]query_string will be loaded in cgi processing [12:49:40]execute_cgi json_proto POST (null) [12:49:40]execute_cgi path=json_proto method=POST [12:49:40]POST find Content-Length [12:49:40]Host: 172.17.41.136:8080 [12:49:40]Content-Length: 679 [12:49:40]Content-Type: application/json [12:49:40] [12:49:40]POST finish read [12:49:40]Found Content-Length = 679 [12:49:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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" ] } } [12:49:40]execute_script... [12:49:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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" ] } } [12:49:40]POST & json_proto [12:49:40]process_json_proto [12:49:40]json parsed OK: [12:49:40]protocol is kg_v1.0 [12:49:40]action value=close_receipt [12:49:40]process_action close_receipt [12:49:40]cmd_close_receipt [12:49:40]MH_GetDate [12:49:40]Write to MH i2c: F0 00 00 B2 08 A9 [12:49:40]Write i2c OK [12:49:40]MH_I2C_Read... [12:49:40]Read from MH i2c: F0 [12:49:40]MH_I2C_Read... [12:49:40]Read from MH i2c: F0 09 00 [12:49:40]MH_I2C_Read... [12:49:40]Read from MH i2c: F0 09 00 B2 08 00 66 12 F0 66 1B D0 5A 64 29 [12:49:40]GetLastDocTimeStamp 1727009377 [12:49:40]current date 1727009382 [12:49:40]FM_GetShiftState [12:49:40]SAM_PROTO_GetShiftState [12:49:40]wFMCommunicate request_size=4 [12:49:40]MH_SAM_APDU [12:49:40]CAPDU: 80 13 01 00 [12:49:40]Write to MH i2c: E2 08 00 B3 08 80 13 01 00 00 00 00 00 38 [12:49:40]Write i2c OK [12:49:40]MH_I2C_Read... [12:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:41]Read from MH i2c: E2 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: E2 0E 00 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: E2 0E 00 B3 08 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 51 [12:49:41]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:49:41]wFMCommunicate OK [12:49:41]SAM_PROTO_GetShiftState done [12:49:41]FM_GetShiftState done [12:49:41]opened in 1726965840 [12:49:41]opened+sec_in_day 1727052240 [12:49:41]quantity*price = 20001 [12:49:41]sum+1 = 20002 [12:49:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 92 22.09.2024 12:49 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115374 ФПД: 160442429806942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T124942&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115374&fm=160442429806942&tin=02508201610067®Number=0000000000091831&sum=20000 [12:49:42]StoreToDocumentArchive [12:49:42]shift 471 fd 115374 [12:49:42]save to /storage/0471/doc_00115374 [12:49:42]save last doc name /storage/0471/doc_00115374 to /storage/kkm_last_doc_name [12:49:42]save OK [12:49:42]Clear old archive folders... [12:49:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:42]tlvbuf is 01C26AD0 [12:49:42]SAM_PROTO_ClearQueue [12:49:42]wFMCommunicate request_size=4 [12:49:42]MH_SAM_APDU [12:49:42]CAPDU: 80 09 00 00 [12:49:42]Write to MH i2c: E2 08 00 C0 08 80 09 00 00 00 00 00 00 3A [12:49:42]Write i2c OK [12:49:42]MH_I2C_Read... [12:49:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:42]Read from MH i2c: E2 [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: E2 03 00 [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: E2 03 00 C0 08 00 90 00 3C [12:49:42]RAPDU: 90 00 [12:49:42]wFMCommunicate OK [12:49:42]SAM_PROTO_ClearQueue done [12:49:42]KKMCreateOFDPacket [12:49:42]OFDProtocolAddRootSTLVToBuf [12:49:42]FM_MakeSignedData [12:49:42]FM_MakeSignedData [12:49:42]SAM_PROTO_SignData [12:49:42]wFMCommunicate request_size=4 [12:49:42]MH_SAM_APDU [12:49:42]CAPDU: 80 0D 01 02 [12:49:42]Write to MH i2c: E2 08 00 C1 08 80 0D 01 02 00 00 00 00 42 [12:49:42]Write i2c OK [12:49:42]MH_I2C_Read... [12:49:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:42]Read from MH i2c: E2 [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: E2 03 00 [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: E2 03 00 C1 08 00 90 00 3D [12:49:42]RAPDU: 90 00 [12:49:42]wFMCommunicate OK [12:49:42]wFMCommunicate request_size=255 [12:49:42]MH_SAM_APDU [12:49:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5C 00 00 00 F4 03 04 00 66 12 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AE C2 01 00 35 04 06 00 91 [12:49:42]Write to MH i2c: E2 02 01 C2 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5C 00 00 00 F4 03 04 00 66 12 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AE C2 01 00 35 04 06 00 91 00 00 BF [12:49:42]Write i2c OK [12:49:42]MH_I2C_Read... [12:49:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:42]Read from MH i2c: E2 [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: E2 03 00 [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: E2 03 00 C2 08 00 90 00 3E [12:49:42]RAPDU: 90 00 [12:49:42]wFMCommunicate OK [12:49:42]wFMCommunicate request_size=10 [12:49:42]MH_SAM_APDU [12:49:42]CAPDU: 80 0D 02 02 05 EB EA 09 19 5E [12:49:42]Write to MH i2c: E2 0D 00 C3 08 80 0D 02 02 05 00 EB EA 09 19 5E 00 00 A4 [12:49:42]Write i2c OK [12:49:42]MH_I2C_Read... [12:49:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:43]Read from MH i2c: E2 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 03 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 03 00 C3 08 00 90 00 3F [12:49:43]RAPDU: 90 00 [12:49:43]wFMCommunicate OK [12:49:43]wFMCommunicate request_size=4 [12:49:43]MH_SAM_APDU [12:49:43]CAPDU: 80 0D 03 02 [12:49:43]Write to MH i2c: E2 08 00 C4 08 80 0D 03 02 00 00 00 00 47 [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:43]Read from MH i2c: E2 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 0B 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 0B 00 C4 08 00 52 C8 0B 0D 70 75 4F 9F 90 00 4D [12:49:43]RAPDU: 52 C8 0B 0D 70 75 4F 9F 90 00 [12:49:43]wFMCommunicate OK [12:49:43]SAM_PROTO_SignData done [12:49:43]FM_MakeSignedData done [12:49:43]CreateOFDProtocolMessage [12:49:43]wFMCommunicate request_size=4 [12:49:43]MH_SAM_APDU [12:49:43]CAPDU: 80 11 00 00 [12:49:43]Write to MH i2c: E2 08 00 C5 08 80 11 00 00 00 00 00 00 47 [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:43]Read from MH i2c: E2 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 17 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 17 00 C5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 95 [12:49:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:49:43]wFMCommunicate OK [12:49:43]CreateOFDProtocolMessage done [12:49:43]OFDSenderStorePacket 115374 [12:49:43]StoreOFDPacket docnum=115374 [12:49:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 E5 C1 07 01 A5 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 35 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 5C 00 00 00 F4 03 04 00 66 12 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AE C2 01 00 35 04 06 00 91 EB EA 09 19 5E 52 C8 0B 0D 70 75 4F 9F [12:49:43]CheckFolder [12:49:43]dirname=/storage/ofd_packets [12:49:43]CheckFolder done [12:49:43]ProducePacketName [12:49:43]name=ofd_packets/00115374 [12:49:43]NVStorageSaveData ofd_packets/00115374 [12:49:43]File name is /storage/ofd_packets/00115374 [12:49:43]Write 301 bytes [12:49:43]NVStorageSaveData done [12:49:43]OFDSenderStorePacket done [12:49:43]KKMCreateOFDPacket done [12:49:43]NVStorageSaveData kkm_last_timestamp [12:49:43]File name is /storage/kkm_last_timestamp [12:49:43]Write 4 bytes [12:49:43]NVStorageSaveData done [12:49:43]ExternCall_PrintAddStr [12:49:43]wPrintStart [12:49:43]Write to MH i2c: 01 00 00 C6 08 CE [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: 01 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: 01 07 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: 01 07 00 C6 08 00 00 00 00 00 FF 0F E3 [12:49:43]RasterBufferAndPrint [12:49:43]line Счет N : (1)24616736 [12:49:43]line ИНН: 02508201610067 [12:49:43]line Контрольно-Кассовый Чек [12:49:43]line ПРОДАЖА [12:49:43]line ТРК (МРК, ГНК) : 43 [12:49:43]line Товар: 2710124130 [12:49:43]line Аи-92-К-5 [12:49:43]line 2.950 * 67.80 [12:49:43]line = 200.01 [12:49:43]line НДС 12% НСП 1% [12:49:43]line > о реализуемом товаре [12:49:43]line ОКРУГЛЕНИЕ: -0.01 [12:49:43]line ИТОГО: 200.00 [12:49:43]line Внесено: 200.00 [12:49:43]line СДАЧА: 0.00 [12:49:43]line НСП 1% : 1.77 [12:49:43]line НДС 12% : 21.24 [12:49:43]line Наличными: 200.00 [12:49:43]line Безнал.: 0.00 [12:49:43]line Место: АЗС № 90 "Партнер Нефть" [12:49:43]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:49:43]line СНО: Общий режим [12:49:43]line Чек 92 22.09.2024 12:49 [12:49:43]line Смена: 471 ФФД: 1.0 [12:49:43]line ЗНМ: 0300000120 [12:49:43]line РНМ: 0000000000091831 [12:49:43]line Версия ККМ: 001 [12:49:43]line ФМ: 0000000000871830 [12:49:43]line ФД: 115374 [12:49:43]line ФПД: 160442429806942 [12:49:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T124942&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115374&fm=160442429806942&tin=02508201610067®Number=0000000000091831&sum=20000 [12:49:43]OFD Sender: Processing packet 115374 [packets to send 481, broken 480] [12:49:43]ProducePacketName [12:49:43]name=ofd_packets/00115374 [12:49:43]OFD Sender: To server: pG, [12:49:43]CommunicateWithHost lk.salyk.kg:30040 [12:49:43]ConnectInit lk.salyk.kg [12:49:43]written 0, free lines is 4095 [12:49:43]Write to MH i2c: 01 00 00 F0 08 F8 [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: 01 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: 01 07 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: 01 07 00 F0 08 00 00 00 00 00 6A 0C 75 [12:49:43]RasterBufferAndPrint [12:49:43]line [12:49:43]line [12:49:43]line [12:49:43]line [12:49:43]line [12:49:43]written 0, free lines is 3185 [12:49:43]MH_Cut [12:49:43]Write to MH i2c: D1 01 00 F7 08 01 D1 [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: D1 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: D1 01 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: D1 01 00 F7 08 00 D0 [12:49:43]Write to MH i2c: 01 00 00 F8 08 00 [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:44]Connected sock=10 [12:49:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 E5 C1 07 01 A5 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 35 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 5C 00 00 00 F4 03 04 00 66 12 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AE C2 01 00 35 04 06 00 91 EB EA 09 19 5E 52 C8 0B 0D 70 75 4F 9F [12:49:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A9 E8 47 00 C9 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AE C2 01 00 F4 03 04 00 AD B7 EF 66 B6 04 01 00 00 83 C2 8F 92 97 3A 94 4A [12:49:44]CommunicateWithHost err = 0 [12:49:44]CheckOFDResponse [12:49:44]1017 (14) - 77093643461234 [12:49:44]1041 (16) - 0000000000871830 [12:49:44]1040 (4) - 115374 [12:49:44]1012 (4) - 22.09.2024 06:22 [12:49:44]1206 (1) - 0 [12:49:44]OFD Sender: Remove packet 115374 [12:49:44]ProducePacketName [12:49:44]name=ofd_packets/00115374 [12:49:44]NVStorageDeleteData [12:49:45]OFD Sender: No OFD packet to send [12:49:45]*** Cut start [12:49:45]*** Partial cut [12:49:45]*** CUTSNS_PIN = 1 [12:49:45]*** CUTSNS_PIN = 0 [12:49:45]*** Brake cut motor [12:49:45]Read from MH i2c: 01 [12:49:45]MH_I2C_Read... [12:49:45]*** Stop cut motor [12:49:45]*** Cut end [12:49:45]Read from MH i2c: 01 07 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: 01 07 00 F8 08 00 00 00 00 00 FF 0F 15 [12:49:45]process_action close_receipt done [12:49:45]requested_data is exist [12:49:45]produce_requested_data [12:49:45]requested_item fm.sn is exist - process it [12:49:45]wFMCommunicate request_size=4 [12:49:45]MH_SAM_APDU [12:49:45]CAPDU: 80 11 00 00 [12:49:45]Write to MH i2c: E2 08 00 F9 08 80 11 00 00 00 00 00 00 7B [12:49:45]Write i2c OK [12:49:45]MH_I2C_Read... [12:49:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:45]Read from MH i2c: E2 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 17 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 17 00 F9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C9 [12:49:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:49:45]wFMCommunicate OK [12:49:45]requested_item fd.num is exist - process it [12:49:45]SAM_PROTO_GetFieldsCounters [12:49:45]wFMCommunicate request_size=4 [12:49:45]MH_SAM_APDU [12:49:45]CAPDU: 80 13 00 00 [12:49:45]Write to MH i2c: E2 08 00 FA 08 80 13 00 00 00 00 00 00 7E [12:49:45]Write i2c OK [12:49:45]MH_I2C_Read... [12:49:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:46]Read from MH i2c: E2 [12:49:46]MH_I2C_Read... [12:49:46]Read from MH i2c: E2 62 00 [12:49:46]MH_I2C_Read... [12:49:46]Read from MH i2c: E2 62 00 FA 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AE C2 01 00 0E 04 04 00 D7 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 F4 [12:49:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AE C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:46]wFMCommunicate OK [12:49:46]SAM_PROTO_GetFieldsCounters done [12:49:46]requested_item shift.num is exist - process it [12:49:46]requested_item shift.opened is exist - process it [12:49:46]req_shift_opened [12:49:46]FM_GetShiftState [12:49:46]SAM_PROTO_GetShiftState [12:49:46]wFMCommunicate request_size=4 [12:49:46]MH_SAM_APDU [12:49:46]CAPDU: 80 13 01 00 [12:49:46]Write to MH i2c: E2 08 00 FB 08 80 13 01 00 00 00 00 00 80 [12:49:46]Write i2c OK [12:49:46]MH_I2C_Read... [12:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:46]Read from MH i2c: E2 [12:49:46]MH_I2C_Read... [12:49:46]Read from MH i2c: E2 0E 00 [12:49:46]MH_I2C_Read... [12:49:46]Read from MH i2c: E2 0E 00 FB 08 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 99 [12:49:46]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:49:46]wFMCommunicate OK [12:49:46]SAM_PROTO_GetShiftState done [12:49:46]FM_GetShiftState done [12:49:46]req_shift_opened done [12:49:46]requested_item shift.open_date is exist - process it [12:49:46]req_shift_open_date [12:49:46]req_shift_open_date done [12:49:46]produce_requested_data done [12:49:46]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115374,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [12:49:46]process_action_free close_receipt [12:49:46]json_value_free [12:49:46]json_value_free done [12:49:46]process_json_proto returns [12:49:46]Send response to host [12:49:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115374,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [12:49:46]free response buf [12:49:46]execute_script done [12:49:46]execute_script returns [12:49:46]free content buf [12:49:46]Sock 9.Close socket [12:49:46]Sock 9.Thread stoped [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]OFD Sender: No OFD packet to send [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:53]accept exits with 8 [12:52:53]New connection [12:52:53]New thread 3066826084 created [12:52:53]Thread 3066682724 joined [12:52:53]Waiting for new connection... [12:52:53] Sock 8.Parse request [12:52:53]Sock 8.Check first char [12:52:53]Sock 8.First char is OK [12:52:53]request: POST /json_proto HTTP/1.0 [12:52:53]Method: POST [12:52:53]URL: /json_proto [12:52:53]Method is POST - this is cgi request [12:52:53]url: /json_proto [12:52:53]query_string will be loaded in cgi processing [12:52:53]execute_cgi json_proto POST (null) [12:52:53]execute_cgi path=json_proto method=POST [12:52:53]POST find Content-Length [12:52:53]Host: 172.17.41.136:8080 [12:52:53]Content-Length: 971 [12:52:53]Content-Type: application/json [12:52:53] [12:52:53]POST finish read [12:52:53]Found Content-Length = 971 [12:52:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343825", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:53]execute_script... [12: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 : (3)343825", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:53]POST & json_proto [12:52:53]process_json_proto [12:52:53]json parsed OK: [12:52:53]protocol is kg_v1.0 [12:52:53]action value=close_receipt [12:52:53]process_action close_receipt [12:52:53]cmd_close_receipt [12:52:53]MH_GetDate [12:52:53]Write to MH i2c: F0 00 00 FC 08 F3 [12:52:53]Write i2c OK [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: F0 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: F0 09 00 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: F0 09 00 FC 08 00 26 13 F0 66 1B D0 5A 64 34 [12:52:53]GetLastDocTimeStamp 1727009382 [12:52:53]current date 1727009574 [12:52:53]FM_GetShiftState [12:52:53]SAM_PROTO_GetShiftState [12:52:53]wFMCommunicate request_size=4 [12:52:53]MH_SAM_APDU [12:52:53]CAPDU: 80 13 01 00 [12:52:53]Write to MH i2c: E2 08 00 FD 08 80 13 01 00 00 00 00 00 82 [12:52:53]Write i2c OK [12:52:53]MH_I2C_Read... [12:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:53]Read from MH i2c: E2 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: E2 0E 00 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: E2 0E 00 FD 08 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 9B [12:52:53]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:52:53]wFMCommunicate OK [12:52:53]SAM_PROTO_GetShiftState done [12:52:53]FM_GetShiftState done [12:52:53]opened in 1726965840 [12:52:53]opened+sec_in_day 1727052240 [12:52:53]quantity*price = 6000 [12:52:53]sum+1 = 6001 [12:52:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.40 Наличными: 145.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 93 22.09.2024 12:52 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115375 ФПД: 163690084060983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125254&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115375&fm=163690084060983&tin=02508201610067®Number=0000000000091831&sum=14500 0 [12:52:54]StoreToDocumentArchive [12:52:54]shift 471 fd 115375 [12:52:54]save to /storage/0471/doc_00115375 [12:52:54]save last doc name /storage/0471/doc_00115375 to /storage/kkm_last_doc_name [12:52:54]save OK [12:52:54]Clear old archive folders... [12:52:54]ProcessDocumentItem done err = 0, tmpTLVsize=405 [12:52:54]tlvbuf is 01BDFFA0 [12:52:54]SAM_PROTO_ClearQueue [12:52:54]wFMCommunicate request_size=4 [12:52:54]MH_SAM_APDU [12:52:54]CAPDU: 80 09 00 00 [12:52:54]Write to MH i2c: E2 08 00 0A 09 80 09 00 00 00 00 00 00 85 [12:52:54]Write i2c OK [12:52:54]MH_I2C_Read... [12:52:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:54]Read from MH i2c: E2 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: E2 03 00 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: E2 03 00 0A 09 00 90 00 87 [12:52:54]RAPDU: 90 00 [12:52:54]wFMCommunicate OK [12:52:54]SAM_PROTO_ClearQueue done [12:52:54]KKMCreateOFDPacket [12:52:54]OFDProtocolAddRootSTLVToBuf [12:52:54]FM_MakeSignedData [12:52:54]FM_MakeSignedData [12:52:54]SAM_PROTO_SignData [12:52:54]wFMCommunicate request_size=4 [12:52:54]MH_SAM_APDU [12:52:54]CAPDU: 80 0D 01 02 [12:52:54]Write to MH i2c: E2 08 00 0B 09 80 0D 01 02 00 00 00 00 8D [12:52:54]Write i2c OK [12:52:54]MH_I2C_Read... [12:52:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:54]Read from MH i2c: E2 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: E2 03 00 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: E2 03 00 0B 09 00 90 00 88 [12:52:54]RAPDU: 90 00 [12:52:54]wFMCommunicate OK [12:52:54]wFMCommunicate request_size=255 [12:52:54]MH_SAM_APDU [12:52:54]CAPDU: 80 0D 02 02 FA 03 00 95 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 [12:52:54]Write to MH i2c: E2 02 01 0C 09 80 0D 02 02 FA 00 03 00 95 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 49 [12:52:54]Write i2c OK [12:52:54]MH_I2C_Read... [12:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:55]Read from MH i2c: E2 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 03 00 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 03 00 0C 09 00 90 00 89 [12:52:55]RAPDU: 90 00 [12:52:55]wFMCommunicate OK [12:52:55]wFMCommunicate request_size=164 [12:52:55]MH_SAM_APDU [12:52:55]CAPDU: 80 0D 02 02 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 26 13 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AF C2 01 00 35 04 06 00 94 E0 11 50 4F 37 [12:52:55]Write to MH i2c: E2 A7 00 0D 09 80 0D 02 02 9F 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 26 13 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AF C2 01 00 35 04 06 00 94 E0 11 50 4F 37 00 00 FA [12:52:55]Write i2c OK [12:52:55]MH_I2C_Read... [12:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:55]Read from MH i2c: E2 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 03 00 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 03 00 0D 09 00 90 00 8A [12:52:55]RAPDU: 90 00 [12:52:55]wFMCommunicate OK [12:52:55]wFMCommunicate request_size=4 [12:52:55]MH_SAM_APDU [12:52:55]CAPDU: 80 0D 03 02 [12:52:55]Write to MH i2c: E2 08 00 0E 09 80 0D 03 02 00 00 00 00 92 [12:52:55]Write i2c OK [12:52:55]MH_I2C_Read... [12:52:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:55]Read from MH i2c: E2 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 0B 00 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 0B 00 0E 09 00 EB F8 59 B6 8B 92 FD 7F 90 00 1E [12:52:55]RAPDU: EB F8 59 B6 8B 92 FD 7F 90 00 [12:52:55]wFMCommunicate OK [12:52:55]SAM_PROTO_SignData done [12:52:55]FM_MakeSignedData done [12:52:55]CreateOFDProtocolMessage [12:52:55]wFMCommunicate request_size=4 [12:52:55]MH_SAM_APDU [12:52:55]CAPDU: 80 11 00 00 [12:52:55]Write to MH i2c: E2 08 00 0F 09 80 11 00 00 00 00 00 00 92 [12:52:55]Write i2c OK [12:52:55]MH_I2C_Read... [12:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:55]Read from MH i2c: E2 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 17 00 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 17 00 0F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E0 [12:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:52:55]wFMCommunicate OK [12:52:55]CreateOFDProtocolMessage done [12:52:55]OFDSenderStorePacket 115375 [12:52:55]StoreOFDPacket docnum=115375 [12:52:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A9 01 00 00 B5 9D A1 01 69 6A 5A 03 01 00 03 00 95 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 26 13 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AF C2 01 00 35 04 06 00 94 E0 11 50 4F 37 EB F8 59 B6 8B 92 FD 7F [12:52:55]CheckFolder [12:52:55]dirname=/storage/ofd_packets [12:52:55]CheckFolder done [12:52:55]ProducePacketName [12:52:55]name=ofd_packets/00115375 [12:52:55]NVStorageSaveData ofd_packets/00115375 [12:52:55]File name is /storage/ofd_packets/00115375 [12:52:55]Write 455 bytes [12:52:55]NVStorageSaveData done [12:52:55]OFDSenderStorePacket done [12:52:55]KKMCreateOFDPacket done [12:52:55]NVStorageSaveData kkm_last_timestamp [12:52:55]File name is /storage/kkm_last_timestamp [12:52:55]Write 4 bytes [12:52:55]NVStorageSaveData done [12:52:55]ExternCall_PrintAddStr [12:52:55]wPrintStart [12:52:55]Write to MH i2c: 01 00 00 10 09 19 [12:52:55]Write i2c OK [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: 01 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: 01 07 00 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: 01 07 00 10 09 00 00 00 00 00 FF 0F 2E [12:52:55]RasterBufferAndPrint [12:52:55]line Счет N : (3)343825 [12:52:55]line ИНН: 02508201610067 [12:52:55]line Контрольно-Кассовый Чек [12:52:55]line ПРОДАЖА [12:52:55]line Товар: 4700000310043 [12:52:55]line Вода Жалалабат 27 1л [12:52:55]line 1.000 * 60.00 [12:52:55]line = 60.00 [12:52:55]line НДС 12% НСП 1% [12:52:55]line > о реализуемом товаре [12:52:55]line Товар: 4660085515163 [12:52:55]line Шок Батончик Сникерс супер 95/80г [12:52:55]line 1.000 * 85.00 [12:52:55]line = 85.00 [12:52:55]line НДС 12% НСП 1% [12:52:55]line > о реализуемом товаре [12:52:55]line ИТОГО: 145.00 [12:52:55]line НСП 1% : 1.28 [12:52:55]line НДС 12% : 15.40 [12:52:55]line Наличными: 145.00 [12:52:55]line Безнал.: 0.00 [12:52:55]line Место: АЗС № 90 "Партнер Нефть" [12:52:55]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:52:55]line СНО: Общий режим [12:52:55]line Чек 93 22.09.2024 12:52 [12:52:55]line Смена: 471 ФФД: 1.0 [12:52:55]line ЗНМ: 0300000120 [12:52:55]line РНМ: 0000000000091831 [12:52:55]line Версия ККМ: 001 [12:52:55]line ФМ: 0000000000871830 [12:52:55]line ФД: 115375 [12:52:55]line ФПД: 163690084060983 [12:52:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125254&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115375&fm=163690084060983&tin=02508201610067®Number=0000000000091831&sum=14500 [12:52:55]OFD Sender: Processing packet 115375 [packets to send 481, broken 480] [12:52:55]ProducePacketName [12:52:55]name=ofd_packets/00115375 [12:52:55]OFD Sender: To server: pG, [12:52:55]CommunicateWithHost lk.salyk.kg:30040 [12:52:55]ConnectInit lk.salyk.kg [12:52:55]line 0 [12:52:55]written 0, free lines is 4095 [12:52:55]Connected sock=10 [12: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 31 38 33 30 A9 01 00 00 B5 9D A1 01 69 6A 5A 03 01 00 03 00 95 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 26 13 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AF C2 01 00 35 04 06 00 94 E0 11 50 4F 37 EB F8 59 B6 8B 92 FD 7F [12:52:56]Write to MH i2c: 01 00 00 3E 09 47 [12:52:56]Write i2c OK [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: 01 [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: 01 07 00 [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: 01 07 00 3E 09 00 00 00 00 00 FF 0B 58 [12:52:56]RasterBufferAndPrint [12:52:56]line [12:52:56]line [12:52:56]line [12:52:56]line [12:52:56]line [12:52:56]written 0, free lines is 3073 [12:52:56]MH_Cut [12:52:56]Write to MH i2c: D1 01 00 45 09 01 20 [12:52:56]Write i2c OK [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: D1 [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: D1 01 00 [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: D1 01 00 45 09 00 1F [12:52:56]Write to MH i2c: 01 00 00 46 09 4F [12:52:56]Write i2c OK [12:52:56]MH_I2C_Read... [12:52:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B3 C2 47 00 39 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 31 38 33 30 10 04 04 00 AF C2 01 00 F4 03 04 00 6D B8 EF 66 B6 04 01 00 00 AA 13 D1 F1 7A 8D 99 51 [12:52:56]CommunicateWithHost err = 0 [12:52:56]CheckOFDResponse [12:52:56]1017 (14) - 77093643461234 [12:52:56]1041 (16) - 0000000000871830 [12:52:56]1040 (4) - 115375 [12:52:56]1012 (4) - 22.09.2024 06:25 [12:52:56]1206 (1) - 0 [12:52:56]OFD Sender: Remove packet 115375 [12:52:56]ProducePacketName [12:52:56]name=ofd_packets/00115375 [12:52:56]NVStorageDeleteData [12:52:56]OFD Sender: No OFD packet to send [12:52:57]*** Cut start [12:52:57]*** Partial cut [12:52:57]*** CUTSNS_PIN = 1 [12:52:57]*** CUTSNS_PIN = 0 [12:52:57]*** Brake cut motor [12:52:58]Read from MH i2c: 01 [12:52:58]MH_I2C_Read... [12:52:58]*** Stop cut motor [12:52:58]*** Cut end [12:52:58]Read from MH i2c: 01 07 00 [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: 01 07 00 46 09 00 00 00 00 00 FF 0F 64 [12:52:58]process_action close_receipt done [12:52:58]requested_data is exist [12:52:58]produce_requested_data [12:52:58]requested_item fm.sn is exist - process it [12:52:58]wFMCommunicate request_size=4 [12:52:58]MH_SAM_APDU [12:52:58]CAPDU: 80 11 00 00 [12:52:58]Write to MH i2c: E2 08 00 47 09 80 11 00 00 00 00 00 00 CA [12:52:58]Write i2c OK [12:52:58]MH_I2C_Read... [12:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:58]Read from MH i2c: E2 [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: E2 17 00 [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: E2 17 00 47 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 18 [12:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:52:58]wFMCommunicate OK [12:52:58]requested_item fd.num is exist - process it [12:52:58]SAM_PROTO_GetFieldsCounters [12:52:58]wFMCommunicate request_size=4 [12:52:58]MH_SAM_APDU [12:52:58]CAPDU: 80 13 00 00 [12:52:58]Write to MH i2c: E2 08 00 48 09 80 13 00 00 00 00 00 00 CD [12:52:58]Write i2c OK [12:52:58]MH_I2C_Read... [12:52:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:58]Read from MH i2c: E2 [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: E2 62 00 [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: E2 62 00 48 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AF C2 01 00 0E 04 04 00 D7 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 47 [12:52:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AF C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:58]wFMCommunicate OK [12:52:58]SAM_PROTO_GetFieldsCounters done [12:52:58]requested_item shift.num is exist - process it [12:52:58]requested_item shift.opened is exist - process it [12:52:58]req_shift_opened [12:52:58]FM_GetShiftState [12:52:58]SAM_PROTO_GetShiftState [12:52:58]wFMCommunicate request_size=4 [12:52:58]MH_SAM_APDU [12:52:58]CAPDU: 80 13 01 00 [12:52:58]Write to MH i2c: E2 08 00 49 09 80 13 01 00 00 00 00 00 CF [12:52:58]Write i2c OK [12:52:58]MH_I2C_Read... [12:52:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:58]Read from MH i2c: E2 [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: E2 0E 00 [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: E2 0E 00 49 09 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 E8 [12:52:58]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:52:58]wFMCommunicate OK [12:52:58]SAM_PROTO_GetShiftState done [12:52:58]FM_GetShiftState done [12:52:58]req_shift_opened done [12:52:58]requested_item shift.open_date is exist - process it [12:52:58]req_shift_open_date [12:52:58]req_shift_open_date done [12:52:58]produce_requested_data done [12:52:58]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115375,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [12:52:58]process_action_free close_receipt [12:52:58]json_value_free [12:52:58]json_value_free done [12:52:58]process_json_proto returns [12:52:58]Send response to host [12:52:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115375,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [12:52:58]free response buf [12:52:58]execute_script done [12:52:58]execute_script returns [12:52:58]free content buf [12:52:58]Sock 8.Close socket [12:52:58]Sock 8.Thread stoped [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54: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:40]accept exits with 9 [12:54:40]New connection [12:54:40]New thread 3066682724 created [12:54:40]Thread 3066826084 joined [12:54:40]Waiting for new connection... [12:54:40] Sock 9.Parse request [12:54:40]Sock 9.Check first char [12:54:40]Sock 9.First char is OK [12:54:40]request: POST /json_proto HTTP/1.0 [12:54:40]Method: POST [12:54:40]URL: /json_proto [12:54:40]Method is POST - this is cgi request [12:54:40]url: /json_proto [12:54:40]query_string will be loaded in cgi processing [12:54:40]execute_cgi json_proto POST (null) [12:54:40]execute_cgi path=json_proto method=POST [12:54:40]POST find Content-Length [12:54:40]Host: 172.17.41.136:8080 [12:54:40]Content-Length: 626 [12:54:40]Content-Type: application/json [12:54:40] [12:54:40]POST finish read [12:54:40]Found Content-Length = 626 [12:54:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343826", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 3.000, "sum" : 345.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 345.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:40]execute_script... [12:54:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343826", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 3.000, "sum" : 345.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 345.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:40]POST & json_proto [12:54:40]process_json_proto [12:54:40]json parsed OK: [12:54:40]protocol is kg_v1.0 [12:54:40]action value=close_receipt [12:54:40]process_action close_receipt [12:54:40]cmd_close_receipt [12:54:40]MH_GetDate [12:54:40]Write to MH i2c: F0 00 00 4A 09 42 [12:54:40]Write i2c OK [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: F0 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: F0 09 00 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: F0 09 00 4A 09 00 91 13 F0 66 1B D0 5A 64 EE [12:54:40]GetLastDocTimeStamp 1727009574 [12:54:40]current date 1727009681 [12:54:40]FM_GetShiftState [12:54:40]SAM_PROTO_GetShiftState [12:54:40]wFMCommunicate request_size=4 [12:54:40]MH_SAM_APDU [12:54:40]CAPDU: 80 13 01 00 [12:54:40]Write to MH i2c: E2 08 00 4B 09 80 13 01 00 00 00 00 00 D1 [12:54:40]Write i2c OK [12:54:40]MH_I2C_Read... [12:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:40]Read from MH i2c: E2 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: E2 0E 00 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: E2 0E 00 4B 09 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 EA [12:54:40]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:54:40]wFMCommunicate OK [12:54:40]SAM_PROTO_GetShiftState done [12:54:40]FM_GetShiftState done [12:54:40]opened in 1726965840 [12:54:40]opened+sec_in_day 1727052240 [12:54:40]quantity*price = 34500 [12:54:40]sum+1 = 34501 [12:54:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 345.00 НСП 1% : 3.05 НДС 12% : 36.64 Наличными: 345.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 94 22.09.2024 12:54 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115376 ФПД: 192324398732271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125441&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115376&fm=192324398732271&tin=02508201610067®Number=0000000000091831&sum=34500 0 [12:54:41]StoreToDocumentArchive [12:54:41]shift 471 fd 115376 [12:54:41]save to /storage/0471/doc_00115376 [12:54:41]save last doc name /storage/0471/doc_00115376 to /storage/kkm_last_doc_name [12:54:41]save OK [12:54:41]Clear old archive folders... [12:54:41]ProcessDocumentItem done err = 0, tmpTLVsize=274 [12:54:41]tlvbuf is 01BE3B70 [12:54:41]SAM_PROTO_ClearQueue [12:54:41]wFMCommunicate request_size=4 [12:54:41]MH_SAM_APDU [12:54:41]CAPDU: 80 09 00 00 [12:54:41]Write to MH i2c: E2 08 00 58 09 80 09 00 00 00 00 00 00 D3 [12:54:41]Write i2c OK [12:54:41]MH_I2C_Read... [12:54:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:41]Read from MH i2c: E2 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: E2 03 00 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: E2 03 00 58 09 00 90 00 D5 [12:54:41]RAPDU: 90 00 [12:54:41]wFMCommunicate OK [12:54:41]SAM_PROTO_ClearQueue done [12:54:41]KKMCreateOFDPacket [12:54:41]OFDProtocolAddRootSTLVToBuf [12:54:41]FM_MakeSignedData [12:54:41]FM_MakeSignedData [12:54:41]SAM_PROTO_SignData [12:54:41]wFMCommunicate request_size=4 [12:54:41]MH_SAM_APDU [12:54:41]CAPDU: 80 0D 01 02 [12:54:41]Write to MH i2c: E2 08 00 59 09 80 0D 01 02 00 00 00 00 DB [12:54:41]Write i2c OK [12:54:41]MH_I2C_Read... [12:54:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:41]Read from MH i2c: E2 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: E2 03 00 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: E2 03 00 59 09 00 90 00 D6 [12:54:41]RAPDU: 90 00 [12:54:41]wFMCommunicate OK [12:54:41]wFMCommunicate request_size=255 [12:54:41]MH_SAM_APDU [12:54:41]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 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 91 13 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 [12:54:41]Write to MH i2c: E2 02 01 5A 09 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 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 91 13 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 00 00 73 [12:54:41]Write i2c OK [12:54:41]MH_I2C_Read... [12:54:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:42]Read from MH i2c: E2 [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: E2 03 00 [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: E2 03 00 5A 09 00 90 00 D7 [12:54:42]RAPDU: 90 00 [12:54:42]wFMCommunicate OK [12:54:42]wFMCommunicate request_size=33 [12:54:42]MH_SAM_APDU [12:54:42]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B0 C2 01 00 35 04 06 00 AE EB 03 77 D3 EF [12:54:42]Write to MH i2c: E2 24 00 5B 09 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B0 C2 01 00 35 04 06 00 AE EB 03 77 D3 EF 00 00 B0 [12:54:42]Write i2c OK [12:54:42]MH_I2C_Read... [12:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:42]Read from MH i2c: E2 [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: E2 03 00 [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: E2 03 00 5B 09 00 90 00 D8 [12:54:42]RAPDU: 90 00 [12:54:42]wFMCommunicate OK [12:54:42]wFMCommunicate request_size=4 [12:54:42]MH_SAM_APDU [12:54:42]CAPDU: 80 0D 03 02 [12:54:42]Write to MH i2c: E2 08 00 5C 09 80 0D 03 02 00 00 00 00 E0 [12:54:42]Write i2c OK [12:54:42]MH_I2C_Read... [12:54:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:42]OFD Sender: No OFD packet to send [12:54:42]Read from MH i2c: E2 [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: E2 0B 00 [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: E2 0B 00 5C 09 00 3A 6D 7D 89 3A 71 1A 0C 90 00 5F [12:54:42]RAPDU: 3A 6D 7D 89 3A 71 1A 0C 90 00 [12:54:42]wFMCommunicate OK [12:54:42]SAM_PROTO_SignData done [12:54:42]FM_MakeSignedData done [12:54:42]CreateOFDProtocolMessage [12:54:42]wFMCommunicate request_size=4 [12:54:42]MH_SAM_APDU [12:54:42]CAPDU: 80 11 00 00 [12:54:42]Write to MH i2c: E2 08 00 5D 09 80 11 00 00 00 00 00 00 E0 [12:54:42]Write i2c OK [12:54:42]MH_I2C_Read... [12:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:42]Read from MH i2c: E2 [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: E2 17 00 [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: E2 17 00 5D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2E [12:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:54:42]wFMCommunicate OK [12:54:42]CreateOFDProtocolMessage done [12:54:42]OFDSenderStorePacket 115376 [12:54:42]StoreOFDPacket docnum=115376 [12:54:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 26 01 00 00 98 DD 1E 01 66 12 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 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 91 13 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B0 C2 01 00 35 04 06 00 AE EB 03 77 D3 EF 3A 6D 7D 89 3A 71 1A 0C [12:54:42]CheckFolder [12:54:42]dirname=/storage/ofd_packets [12:54:42]CheckFolder done [12:54:42]ProducePacketName [12:54:42]name=ofd_packets/00115376 [12:54:42]NVStorageSaveData ofd_packets/00115376 [12:54:42]File name is /storage/ofd_packets/00115376 [12:54:42]Write 324 bytes [12:54:42]NVStorageSaveData done [12:54:42]OFDSenderStorePacket done [12:54:42]KKMCreateOFDPacket done [12:54:42]NVStorageSaveData kkm_last_timestamp [12:54:42]File name is /storage/kkm_last_timestamp [12:54:42]Write 4 bytes [12:54:42]NVStorageSaveData done [12:54:42]ExternCall_PrintAddStr [12:54:42]wPrintStart [12:54:42]Write to MH i2c: 01 00 00 5E 09 67 [12:54:42]Write i2c OK [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: 01 [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: 01 07 00 [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: 01 07 00 5E 09 00 00 00 00 00 FF 0F 7C [12:54:42]RasterBufferAndPrint [12:54:42]line Счет N : (3)343826 [12:54:42]line ИНН: 02508201610067 [12:54:42]line Контрольно-Кассовый Чек [12:54:42]line ПРОДАЖА [12:54:42]line Товар: 2000036240010 [12:54:42]line Кофе Латте (GABB TRADE) [12:54:42]line 3.000 * 115.00 [12:54:42]line = 345.00 [12:54:42]line НДС 12% НСП 1% [12:54:42]line > о реализуемом товаре [12:54:42]line ИТОГО: 345.00 [12:54:42]line НСП 1% : 3.05 [12:54:42]line НДС 12% : 36.64 [12:54:42]line Наличными: 345.00 [12:54:42]line Безнал.: 0.00 [12:54:42]line Место: АЗС № 90 "Партнер Нефть" [12:54:42]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:54:42]line СНО: Общий режим [12:54:42]line Чек 94 22.09.2024 12:54 [12:54:42]line Смена: 471 ФФД: 1.0 [12:54:42]line ЗНМ: 0300000120 [12:54:42]line РНМ: 0000000000091831 [12:54:42]line Версия ККМ: 001 [12:54:42]line ФМ: 0000000000871830 [12:54:42]line ФД: 115376 [12:54:42]line ФПД: 192324398732271 [12:54:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125441&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115376&fm=192324398732271&tin=02508201610067®Number=0000000000091831&sum=34500 [12:54:42]line 0 [12:54:42]written 0, free lines is 4095 [12:54:42]OFD Sender: Processing packet 115376 [packets to send 481, broken 480] [12:54:42]ProducePacketName [12:54:42]name=ofd_packets/00115376 [12:54:42]OFD Sender: To server: pG, [12:54:42]CommunicateWithHost lk.salyk.kg:30040 [12:54:42]ConnectInit lk.salyk.kg [12:54:42]Connected sock=11 [12:54:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 26 01 00 00 98 DD 1E 01 66 12 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 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 91 13 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B0 C2 01 00 35 04 06 00 AE EB 03 77 D3 EF 3A 6D 7D 89 3A 71 1A 0C [12:54:42]Write to MH i2c: 01 00 00 85 09 8E [12:54:42]Write i2c OK [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: 01 [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: 01 07 00 [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: 01 07 00 85 09 00 00 00 00 00 92 0C 33 [12:54:42]RasterBufferAndPrint [12:54:42]line [12:54:42]line [12:54:42]line [12:54:42]line [12:54:42]line [12:54:42]written 0, free lines is 3222 [12:54:42]MH_Cut [12:54:42]Write to MH i2c: D1 01 00 8C 09 01 67 [12:54:42]Write i2c OK [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: D1 [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: D1 01 00 [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: D1 01 00 8C 09 00 66 [12:54:42]Write to MH i2c: 01 00 00 8D 09 96 [12:54:42]Write i2c OK [12:54:42]MH_I2C_Read... [12:54:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 78 8B 47 00 6F 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B0 C2 01 00 F4 03 04 00 D7 B8 EF 66 B6 04 01 00 00 E9 0A A3 20 5B E2 78 08 [12:54:42]CommunicateWithHost err = 0 [12:54:42]CheckOFDResponse [12:54:42]1017 (14) - 77093643461234 [12:54:42]1041 (16) - 0000000000871830 [12:54:42]1040 (4) - 115376 [12:54:42]1012 (4) - 22.09.2024 06:27 [12:54:42]1206 (1) - 0 [12:54:42]OFD Sender: Remove packet 115376 [12:54:42]ProducePacketName [12:54:42]name=ofd_packets/00115376 [12:54:42]NVStorageDeleteData [12:54:43]OFD Sender: No OFD packet to send [12:54:43]*** Cut start [12:54:43]*** Partial cut [12:54:43]*** CUTSNS_PIN = 1 [12:54:43]*** CUTSNS_PIN = 0 [12:54:44]*** Brake cut motor [12:54:44]Read from MH i2c: 01 [12:54:44]MH_I2C_Read... [12:54:44]*** Stop cut motor [12:54:44]*** Cut end [12:54:44]Read from MH i2c: 01 07 00 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: 01 07 00 8D 09 00 00 00 00 00 FF 0F AB [12:54:44]process_action close_receipt done [12:54:44]requested_data is exist [12:54:44]produce_requested_data [12:54:44]requested_item fm.sn is exist - process it [12:54:44]wFMCommunicate request_size=4 [12:54:44]MH_SAM_APDU [12:54:44]CAPDU: 80 11 00 00 [12:54:44]Write to MH i2c: E2 08 00 8E 09 80 11 00 00 00 00 00 00 11 [12:54:44]Write i2c OK [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 [12:54:44]MH_I2C_Read... [12:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:44]Read from MH i2c: E2 17 00 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 17 00 8E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5F [12:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:54:44]wFMCommunicate OK [12:54:44]requested_item fd.num is exist - process it [12:54:44]SAM_PROTO_GetFieldsCounters [12:54:44]wFMCommunicate request_size=4 [12:54:44]MH_SAM_APDU [12:54:44]CAPDU: 80 13 00 00 [12:54:44]Write to MH i2c: E2 08 00 8F 09 80 13 00 00 00 00 00 00 14 [12:54:44]Write i2c OK [12:54:44]MH_I2C_Read... [12:54:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:44]Read from MH i2c: E2 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 62 00 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 62 00 8F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B0 C2 01 00 0E 04 04 00 D7 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 92 [12:54:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B0 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:44]wFMCommunicate OK [12:54:44]SAM_PROTO_GetFieldsCounters done [12:54:44]requested_item shift.num is exist - process it [12:54:44]requested_item shift.opened is exist - process it [12:54:44]req_shift_opened [12:54:44]FM_GetShiftState [12:54:44]SAM_PROTO_GetShiftState [12:54:44]wFMCommunicate request_size=4 [12:54:44]MH_SAM_APDU [12:54:44]CAPDU: 80 13 01 00 [12:54:44]Write to MH i2c: E2 08 00 90 09 80 13 01 00 00 00 00 00 16 [12:54:44]Write i2c OK [12:54:44]MH_I2C_Read... [12:54:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:44]Read from MH i2c: E2 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 0E 00 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 0E 00 90 09 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 2F [12:54:44]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:54:44]wFMCommunicate OK [12:54:44]SAM_PROTO_GetShiftState done [12:54:44]FM_GetShiftState done [12:54:44]req_shift_opened done [12:54:44]requested_item shift.open_date is exist - process it [12:54:44]req_shift_open_date [12:54:44]req_shift_open_date done [12:54:44]produce_requested_data done [12:54:44]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115376,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [12:54:44]process_action_free close_receipt [12:54:44]json_value_free [12:54:44]json_value_free done [12:54:44]process_json_proto returns [12:54:44]Send response to host [12:54:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115376,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [12:54:44]free response buf [12:54:44]execute_script done [12:54:44]execute_script returns [12:54:44]free content buf [12:54:44]Sock 9.Close socket [12:54:44]Sock 9.Thread stoped [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:34]accept exits with 8 [12:56:34]New connection [12:56:34]New thread 3066826084 created [12:56:34]Thread 3066682724 joined [12:56:34]Waiting for new connection... [12:56:34] Sock 8.Parse request [12:56:34]Sock 8.Check first char [12:56:34]Sock 8.First char is OK [12:56:34]request: POST /json_proto HTTP/1.0 [12:56:34]Method: POST [12:56:34]URL: /json_proto [12:56:34]Method is POST - this is cgi request [12:56:34]url: /json_proto [12:56:34]query_string will be loaded in cgi processing [12:56:34]execute_cgi json_proto POST (null) [12:56:34]execute_cgi path=json_proto method=POST [12:56:34]POST find Content-Length [12:56:34]Host: 172.17.41.136:8080 [12:56:34]Content-Length: 671 [12:56:34]Content-Type: application/json [12:56:34] [12:56:34]POST finish read [12:56:34]Found Content-Length = 671 [12:56:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343827", "tax_sys" : 0, "items" : [ { "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:34]execute_script... [12:56:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343827", "tax_sys" : 0, "items" : [ { "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:34]POST & json_proto [12:56:34]process_json_proto [12:56:34]json parsed OK: [12:56:34]protocol is kg_v1.0 [12:56:34]action value=close_receipt [12:56:34]process_action close_receipt [12:56:34]cmd_close_receipt [12:56:34]MH_GetDate [12:56:34]Write to MH i2c: F0 00 00 91 09 89 [12:56:34]Write i2c OK [12:56:34]MH_I2C_Read... [12:56:34]Read from MH i2c: F0 [12:56:34]MH_I2C_Read... [12:56:34]Read from MH i2c: F0 09 00 [12:56:34]MH_I2C_Read... [12:56:34]Read from MH i2c: F0 09 00 91 09 00 03 14 F0 66 1B D0 5A 64 A8 [12:56:34]GetLastDocTimeStamp 1727009681 [12:56:34]current date 1727009795 [12:56:34]FM_GetShiftState [12:56:34]SAM_PROTO_GetShiftState [12:56:34]wFMCommunicate request_size=4 [12:56:34]MH_SAM_APDU [12:56:34]CAPDU: 80 13 01 00 [12:56:34]Write to MH i2c: E2 08 00 92 09 80 13 01 00 00 00 00 00 18 [12:56:34]Write i2c OK [12:56:34]MH_I2C_Read... [12:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:34]Read from MH i2c: E2 [12:56:34]MH_I2C_Read... [12:56:34]Read from MH i2c: E2 0E 00 [12:56:34]MH_I2C_Read... [12:56:34]Read from MH i2c: E2 0E 00 92 09 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 31 [12:56:34]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:56:34]wFMCommunicate OK [12:56:34]SAM_PROTO_GetShiftState done [12:56:34]FM_GetShiftState done [12:56:34]opened in 1726965840 [12:56:34]opened+sec_in_day 1727052240 [12:56:34]quantity*price = 9500 [12:56:34]sum+1 = 9501 [12:56:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 95 22.09.2024 12:56 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115377 ФПД: 140455160681325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125635&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115377&fm=140455160681325&tin=02508201610067®Number=0000000000091831&sum=9500 0 [12:56:35]StoreToDocumentArchive [12:56:35]shift 471 fd 115377 [12:56:35]save to /storage/0471/doc_00115377 [12:56:35]save last doc name /storage/0471/doc_00115377 to /storage/kkm_last_doc_name [12:56:35]save OK [12:56:35]Clear old archive folders... [12:56:35]ProcessDocumentItem done err = 0, tmpTLVsize=290 [12:56:35]tlvbuf is 01BFB040 [12:56:35]SAM_PROTO_ClearQueue [12:56:35]wFMCommunicate request_size=4 [12:56:35]MH_SAM_APDU [12:56:35]CAPDU: 80 09 00 00 [12:56:35]Write to MH i2c: E2 08 00 9F 09 80 09 00 00 00 00 00 00 1A [12:56:35]Write i2c OK [12:56:35]MH_I2C_Read... [12:56:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:35]Read from MH i2c: E2 [12:56:35]MH_I2C_Read... [12:56:35]Read from MH i2c: E2 03 00 [12:56:35]MH_I2C_Read... [12:56:35]Read from MH i2c: E2 03 00 9F 09 00 90 00 1C [12:56:35]RAPDU: 90 00 [12:56:35]wFMCommunicate OK [12:56:35]SAM_PROTO_ClearQueue done [12:56:35]KKMCreateOFDPacket [12:56:35]OFDProtocolAddRootSTLVToBuf [12:56:35]FM_MakeSignedData [12:56:35]FM_MakeSignedData [12:56:35]SAM_PROTO_SignData [12:56:35]wFMCommunicate request_size=4 [12:56:35]MH_SAM_APDU [12:56:35]CAPDU: 80 0D 01 02 [12:56:35]Write to MH i2c: E2 08 00 A0 09 80 0D 01 02 00 00 00 00 22 [12:56:35]Write i2c OK [12:56:35]MH_I2C_Read... [12:56:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:35]Read from MH i2c: E2 [12:56:35]MH_I2C_Read... [12:56:35]Read from MH i2c: E2 03 00 [12:56:35]MH_I2C_Read... [12:56:35]Read from MH i2c: E2 03 00 A0 09 00 90 00 1D [12:56:35]RAPDU: 90 00 [12:56:35]wFMCommunicate OK [12:56:35]wFMCommunicate request_size=255 [12:56:35]MH_SAM_APDU [12:56:35]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 03 14 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [12:56:35]Write to MH i2c: E2 02 01 A1 09 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 03 14 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 95 [12:56:35]Write i2c OK [12:56:35]MH_I2C_Read... [12:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:36]Read from MH i2c: E2 [12:56:36]MH_I2C_Read... [12:56:36]Read from MH i2c: E2 03 00 [12:56:36]MH_I2C_Read... [12:56:36]Read from MH i2c: E2 03 00 A1 09 00 90 00 1E [12:56:36]RAPDU: 90 00 [12:56:36]wFMCommunicate OK [12:56:36]wFMCommunicate request_size=49 [12:56:36]MH_SAM_APDU [12:56:36]CAPDU: 80 0D 02 02 2C 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B1 C2 01 00 35 04 06 00 7F BE 43 F5 93 6D [12:56:36]Write to MH i2c: E2 34 00 A2 09 80 0D 02 02 2C 00 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B1 C2 01 00 35 04 06 00 7F BE 43 F5 93 6D 00 00 33 [12:56:36]Write i2c OK [12:56:36]MH_I2C_Read... [12:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:36]Read from MH i2c: E2 [12:56:36]MH_I2C_Read... [12:56:36]Read from MH i2c: E2 03 00 [12:56:36]MH_I2C_Read... [12:56:36]Read from MH i2c: E2 03 00 A2 09 00 90 00 1F [12:56:36]RAPDU: 90 00 [12:56:36]wFMCommunicate OK [12:56:36]wFMCommunicate request_size=4 [12:56:36]MH_SAM_APDU [12:56:36]CAPDU: 80 0D 03 02 [12:56:36]Write to MH i2c: E2 08 00 A3 09 80 0D 03 02 00 00 00 00 27 [12:56:36]Write i2c OK [12:56:36]MH_I2C_Read... [12:56:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:36]Read from MH i2c: E2 [12:56:36]MH_I2C_Read... [12:56:36]Read from MH i2c: E2 0B 00 [12:56:36]MH_I2C_Read... [12:56:36]Read from MH i2c: E2 0B 00 A3 09 00 7B 97 ED EF 88 09 40 5D 90 00 44 [12:56:36]RAPDU: 7B 97 ED EF 88 09 40 5D 90 00 [12:56:36]wFMCommunicate OK [12:56:36]SAM_PROTO_SignData done [12:56:36]FM_MakeSignedData done [12:56:36]CreateOFDProtocolMessage [12:56:36]wFMCommunicate request_size=4 [12:56:36]MH_SAM_APDU [12:56:36]CAPDU: 80 11 00 00 [12:56:36]Write to MH i2c: E2 08 00 A4 09 80 11 00 00 00 00 00 00 27 [12:56:36]Write i2c OK [12:56:36]MH_I2C_Read... [12:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:36]Read from MH i2c: E2 [12:56:36]MH_I2C_Read... [12:56:36]Read from MH i2c: E2 17 00 [12:56:36]MH_I2C_Read... [12:56:36]Read from MH i2c: E2 17 00 A4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 75 [12:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:56:36]wFMCommunicate OK [12:56:36]CreateOFDProtocolMessage done [12:56:36]OFDSenderStorePacket 115377 [12:56:36]StoreOFDPacket docnum=115377 [12:56:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 36 01 00 00 CF 2D 2E 01 C4 DD 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 03 14 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B1 C2 01 00 35 04 06 00 7F BE 43 F5 93 6D 7B 97 ED EF 88 09 40 5D [12:56:36]CheckFolder [12:56:36]dirname=/storage/ofd_packets [12:56:36]CheckFolder done [12:56:36]ProducePacketName [12:56:36]name=ofd_packets/00115377 [12:56:36]NVStorageSaveData ofd_packets/00115377 [12:56:36]File name is /storage/ofd_packets/00115377 [12:56:36]Write 340 bytes [12:56:36]NVStorageSaveData done [12:56:36]OFDSenderStorePacket done [12:56:36]KKMCreateOFDPacket done [12:56:36]NVStorageSaveData kkm_last_timestamp [12:56:36]File name is /storage/kkm_last_timestamp [12:56:36]Write 4 bytes [12:56:36]NVStorageSaveData done [12:56:36]ExternCall_PrintAddStr [12:56:36]wPrintStart [12:56:36]Write to MH i2c: 01 00 00 A5 09 AE [12:56:36]OFD Sender: Processing packet 115377 [packets to send 481, broken 480] [12:56:36]ProducePacketName [12:56:36]name=ofd_packets/00115377 [12:56:36]OFD Sender: To server: pG, [12:56:36]CommunicateWithHost lk.salyk.kg:30040 [12:56:36]ConnectInit lk.salyk.kg [12:56:36]Write i2c OK [12:56:36]MH_I2C_Read... [12:56:36]Read from MH i2c: 01 [12:56:36]MH_I2C_Read... [12:56:36]Read from MH i2c: 01 07 00 [12:56:36]MH_I2C_Read... [12:56:36]Read from MH i2c: 01 07 00 A5 09 00 00 00 00 00 FF 0F C3 [12:56:36]RasterBufferAndPrint [12:56:36]line Счет N : (3)343827 [12:56:36]line ИНН: 02508201610067 [12:56:36]line Контрольно-Кассовый Чек [12:56:36]line ПРОДАЖА [12:56:36]line Товар: 4700000483334 [12:56:36]line Напиток Nitro Fresh Дикие ягоды [12:56:36]line 1.000 * 95.00 [12:56:36]line = 95.00 [12:56:36]line НДС 12% НСП 1% [12:56:36]line > о реализуемом товаре [12:56:36]line ИТОГО: 95.00 [12:56:36]line НСП 1% : 0.84 [12:56:36]line НДС 12% : 10.09 [12:56:36]line Наличными: 95.00 [12:56:36]line Безнал.: 0.00 [12:56:36]line Место: АЗС № 90 "Партнер Нефть" [12:56:36]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:56:36]line СНО: Общий режим [12:56:36]line Чек 95 22.09.2024 12:56 [12:56:36]line Смена: 471 ФФД: 1.0 [12:56:36]line ЗНМ: 0300000120 [12:56:36]line РНМ: 0000000000091831 [12:56:36]line Версия ККМ: 001 [12:56:36]line ФМ: 0000000000871830 [12:56:36]line ФД: 115377 [12:56:36]line ФПД: 140455160681325 [12:56:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125635&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115377&fm=140455160681325&tin=02508201610067®Number=0000000000091831&sum=9500 [12:56:36]line 0 [12:56:36]written 0, free lines is 4095 [12:56:36]Write to MH i2c: 01 00 00 CD 09 D6 [12:56:36]Write i2c OK [12:56:36]MH_I2C_Read... [12:56:36]Read from MH i2c: 01 [12:56:36]MH_I2C_Read... [12:56:36]Read from MH i2c: 01 07 00 [12:56:36]MH_I2C_Read... [12:56:36]Read from MH i2c: 01 07 00 CD 09 00 00 00 00 00 57 0C 40 [12:56:36]RasterBufferAndPrint [12:56:36]line [12:56:36]line [12:56:36]line [12:56:36]line [12:56:36]line [12:56:36]written 0, free lines is 3163 [12:56:36]MH_Cut [12:56:36]Write to MH i2c: D1 01 00 D4 09 01 AF [12:56:36]Write i2c OK [12:56:36]MH_I2C_Read... [12:56:36]Read from MH i2c: D1 [12:56:36]MH_I2C_Read... [12:56:36]Read from MH i2c: D1 01 00 [12:56:36]MH_I2C_Read... [12:56:36]Read from MH i2c: D1 01 00 D4 09 00 AE [12:56:36]Write to MH i2c: 01 00 00 D5 09 DE [12:56:36]Write i2c OK [12:56:36]MH_I2C_Read... [12:56:38]*** Cut start [12:56:38]*** Partial cut [12:56:38]*** CUTSNS_PIN = 1 [12:56:38]*** CUTSNS_PIN = 0 [12:56:38]*** Brake cut motor [12:56:38]Read from MH i2c: 01 [12:56:38]MH_I2C_Read... [12:56:38]*** Stop cut motor [12:56:38]*** Cut end [12:56:38]Read from MH i2c: 01 07 00 [12:56:38]MH_I2C_Read... [12:56:38]Read from MH i2c: 01 07 00 D5 09 00 00 00 00 00 FF 0F F3 [12:56:38]process_action close_receipt done [12:56:38]requested_data is exist [12:56:38]produce_requested_data [12:56:38]requested_item fm.sn is exist - process it [12:56:38]wFMCommunicate request_size=4 [12:56:38]MH_SAM_APDU [12:56:38]CAPDU: 80 11 00 00 [12:56:38]Write to MH i2c: E2 08 00 D6 09 80 11 00 00 00 00 00 00 59 [12:56:38]Write i2c OK [12:56:38]MH_I2C_Read... [12:56:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:38]Read from MH i2c: E2 [12:56:38]MH_I2C_Read... [12:56:38]Read from MH i2c: E2 17 00 [12:56:38]MH_I2C_Read... [12:56:38]Read from MH i2c: E2 17 00 D6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A7 [12:56:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:56:38]wFMCommunicate OK [12:56:38]requested_item fd.num is exist - process it [12:56:38]SAM_PROTO_GetFieldsCounters [12:56:38]wFMCommunicate request_size=4 [12:56:38]MH_SAM_APDU [12:56:38]CAPDU: 80 13 00 00 [12:56:38]Write to MH i2c: E2 08 00 D7 09 80 13 00 00 00 00 00 00 5C [12:56:38]Write i2c OK [12:56:38]MH_I2C_Read... [12:56:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:39]Read from MH i2c: E2 [12:56:39]MH_I2C_Read... [12:56:39]Read from MH i2c: E2 62 00 [12:56:39]MH_I2C_Read... [12:56:39]Read from MH i2c: E2 62 00 D7 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B1 C2 01 00 0E 04 04 00 D7 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 DE [12:56: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B1 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:39]wFMCommunicate OK [12:56:39]SAM_PROTO_GetFieldsCounters done [12:56:39]requested_item shift.num is exist - process it [12:56:39]requested_item shift.opened is exist - process it [12:56:39]req_shift_opened [12:56:39]FM_GetShiftState [12:56:39]SAM_PROTO_GetShiftState [12:56:39]wFMCommunicate request_size=4 [12:56:39]MH_SAM_APDU [12:56:39]CAPDU: 80 13 01 00 [12:56:39]Write to MH i2c: E2 08 00 D8 09 80 13 01 00 00 00 00 00 5E [12:56:39]Write i2c OK [12:56:39]MH_I2C_Read... [12:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:39]Read from MH i2c: E2 [12:56:39]MH_I2C_Read... [12:56:39]Read from MH i2c: E2 0E 00 [12:56:39]MH_I2C_Read... [12:56:39]Read from MH i2c: E2 0E 00 D8 09 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 77 [12:56:39]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:56:39]wFMCommunicate OK [12:56:39]SAM_PROTO_GetShiftState done [12:56:39]FM_GetShiftState done [12:56:39]req_shift_opened done [12:56:39]requested_item shift.open_date is exist - process it [12:56:39]req_shift_open_date [12:56:39]req_shift_open_date done [12:56:39]produce_requested_data done [12:56:39]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115377,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [12:56:39]process_action_free close_receipt [12:56:39]json_value_free [12:56:39]json_value_free done [12:56:39]process_json_proto returns [12:56:39]Send response to host [12:56:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115377,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [12:56:39]free response buf [12:56:39]execute_script done [12:56:39]execute_script returns [12:56:39]free content buf [12:56:39]Sock 8.Close socket [12:56:39]Sock 8.Thread stoped [12:56:41]ConnectInit Can't take IP for lk.salyk.kg [12:56:41]CommunicateWithHost connect error [12:56:41]CommunicateWithHost err = -1 [12:56:41]OFD Sender: Server communicate error [12:56:46]OFD Sender: Processing packet 115377 [packets to send 481, broken 480] [12:56:46]ProducePacketName [12:56:46]name=ofd_packets/00115377 [12:56:46]OFD Sender: To server: pG, [12:56:46]CommunicateWithHost lk.salyk.kg:30040 [12:56:46]ConnectInit lk.salyk.kg [12:56:51]ConnectInit Can't take IP for lk.salyk.kg [12:56:51]CommunicateWithHost connect error [12:56:51]CommunicateWithHost err = -1 [12:56:51]OFD Sender: Server communicate error [12:56:56]OFD Sender: Processing packet 115377 [packets to send 481, broken 480] [12:56:56]ProducePacketName [12:56:56]name=ofd_packets/00115377 [12:56:56]OFD Sender: To server: pG, [12:56:56]CommunicateWithHost lk.salyk.kg:30040 [12:56:56]ConnectInit lk.salyk.kg [12:57:01]ConnectInit Can't take IP for lk.salyk.kg [12:57:01]CommunicateWithHost connect error [12:57:01]CommunicateWithHost err = -1 [12:57:01]OFD Sender: Server communicate error [12:57:06]OFD Sender: Processing packet 115377 [packets to send 481, broken 480] [12:57:06]ProducePacketName [12:57:06]name=ofd_packets/00115377 [12:57:06]OFD Sender: To server: pG, [12:57:06]CommunicateWithHost lk.salyk.kg:30040 [12:57:06]ConnectInit lk.salyk.kg [12:57:11]ConnectInit Can't take IP for lk.salyk.kg [12:57:11]CommunicateWithHost connect error [12:57:11]CommunicateWithHost err = -1 [12:57:11]OFD Sender: Server communicate error [12:57:16]OFD Sender: Processing packet 115377 [packets to send 481, broken 480] [12:57:16]ProducePacketName [12:57:16]name=ofd_packets/00115377 [12:57:16]OFD Sender: To server: pG, [12:57:16]CommunicateWithHost lk.salyk.kg:30040 [12:57:16]ConnectInit lk.salyk.kg [12:57:21]ConnectInit Can't take IP for lk.salyk.kg [12:57:21]CommunicateWithHost connect error [12:57:21]CommunicateWithHost err = -1 [12:57:21]OFD Sender: Server communicate error [12:57:26]OFD Sender: Processing packet 115377 [packets to send 481, broken 480] [12:57:26]ProducePacketName [12:57:26]name=ofd_packets/00115377 [12:57:26]OFD Sender: To server: pG, [12:57:26]CommunicateWithHost lk.salyk.kg:30040 [12:57:26]ConnectInit lk.salyk.kg [12:57:31]ConnectInit Can't take IP for lk.salyk.kg [12:57:31]CommunicateWithHost connect error [12:57:31]CommunicateWithHost err = -1 [12:57:31]OFD Sender: Server communicate error [12:57:36]OFD Sender: Processing packet 115377 [packets to send 481, broken 480] [12:57:36]ProducePacketName [12:57:36]name=ofd_packets/00115377 [12:57:36]OFD Sender: To server: pG, [12:57:36]CommunicateWithHost lk.salyk.kg:30040 [12:57:36]ConnectInit lk.salyk.kg [12:57:41]ConnectInit Can't take IP for lk.salyk.kg [12:57:41]CommunicateWithHost connect error [12:57:41]CommunicateWithHost err = -1 [12:57:41]OFD Sender: Server communicate error [12:57:46]OFD Sender: Processing packet 115377 [packets to send 481, broken 480] [12:57:46]ProducePacketName [12:57:46]name=ofd_packets/00115377 [12:57:46]OFD Sender: To server: pG, [12:57:46]CommunicateWithHost lk.salyk.kg:30040 [12:57:46]ConnectInit lk.salyk.kg [12:57:46]Connected sock=8 [12:57:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 36 01 00 00 CF 2D 2E 01 C4 DD 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 03 14 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B1 C2 01 00 35 04 06 00 7F BE 43 F5 93 6D 7B 97 ED EF 88 09 40 5D [12:57:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 22 FF 47 00 C5 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B1 C2 01 00 F4 03 04 00 8F B9 EF 66 B6 04 01 00 00 15 70 C6 3D FB 21 4B 95 [12:57:47]CommunicateWithHost err = 0 [12:57:47]CheckOFDResponse [12:57:47]1017 (14) - 77093643461234 [12:57:47]1041 (16) - 0000000000871830 [12:57:47]1040 (4) - 115377 [12:57:47]1012 (4) - 22.09.2024 06:30 [12:57:47]1206 (1) - 0 [12:57:47]OFD Sender: Remove packet 115377 [12:57:47]ProducePacketName [12:57:47]name=ofd_packets/00115377 [12:57:47]NVStorageDeleteData [12:57:47]OFD Sender: No OFD packet to send [12:57:50]ConnectInit Can't connect to host [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]accept exits with 10 [12:59:42]New connection [12:59:42]New thread 3066682724 created [12:59:42]Thread 3066826084 joined [12:59:42]Waiting for new connection... [12:59:42] Sock 10.Parse request [12:59:42]Sock 10.Check first char [12:59:42]Sock 10.First char is OK [12:59:42]request: POST /json_proto HTTP/1.0 [12:59:42]Method: POST [12:59:42]URL: /json_proto [12:59:42]Method is POST - this is cgi request [12:59:42]url: /json_proto [12:59:42]query_string will be loaded in cgi processing [12:59:42]execute_cgi json_proto POST (null) [12:59:42]execute_cgi path=json_proto method=POST [12:59:42]POST find Content-Length [12:59:42]Host: 172.17.41.136:8080 [12:59:42]Content-Length: 950 [12:59:42]Content-Type: application/json [12:59:42] [12:59:42]POST finish read [12:59:42]Found Content-Length = 950 [12:59:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343828", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 133.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:42]execute_script... [12:59:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343828", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 133.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:42]POST & json_proto [12:59:42]process_json_proto [12:59:42]json parsed OK: [12:59:42]protocol is kg_v1.0 [12:59:42]action value=close_receipt [12:59:42]process_action close_receipt [12:59:42]cmd_close_receipt [12:59:42]MH_GetDate [12:59:42]Write to MH i2c: F0 00 00 D9 09 D1 [12:59:42]Write i2c OK [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: F0 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: F0 09 00 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: F0 09 00 D9 09 00 BF 14 F0 66 1B D0 5A 64 AC [12:59:42]GetLastDocTimeStamp 1727009795 [12:59:42]current date 1727009983 [12:59:42]FM_GetShiftState [12:59:42]SAM_PROTO_GetShiftState [12:59:42]wFMCommunicate request_size=4 [12:59:42]MH_SAM_APDU [12:59:42]CAPDU: 80 13 01 00 [12:59:42]Write to MH i2c: E2 08 00 DA 09 80 13 01 00 00 00 00 00 60 [12:59:42]Write i2c OK [12:59:42]MH_I2C_Read... [12:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:42]Read from MH i2c: E2 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: E2 0E 00 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: E2 0E 00 DA 09 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 79 [12:59:42]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:59:42]wFMCommunicate OK [12:59:42]SAM_PROTO_GetShiftState done [12:59:42]FM_GetShiftState done [12:59:42]opened in 1726965840 [12:59:42]opened+sec_in_day 1727052240 [12:59:42]quantity*price = 10500 [12:59:42]sum+1 = 10501 [12:59:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 4.000 * 7.00 = 28.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 133.00 НСП 1% : 1.18 НДС 12% : 14.12 Наличными: 133.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 96 22.09.2024 12:59 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115378 ФПД: 131449495943263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125944&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115378&fm=131449495943263&tin=02508201610067®Number=0000000000091831&sum=13300 0 [12:59:43]StoreToDocumentArchive [12:59:43]shift 471 fd 115378 [12:59:43]save to /storage/0471/doc_00115378 [12:59:43]save last doc name /storage/0471/doc_00115378 to /storage/kkm_last_doc_name [12:59:43]save OK [12:59:43]Clear old archive folders... [12:59:43]ProcessDocumentItem done err = 0, tmpTLVsize=395 [12:59:43]tlvbuf is 01BFADA0 [12:59:43]SAM_PROTO_ClearQueue [12:59:43]wFMCommunicate request_size=4 [12:59:43]MH_SAM_APDU [12:59:43]CAPDU: 80 09 00 00 [12:59:43]Write to MH i2c: E2 08 00 E7 09 80 09 00 00 00 00 00 00 62 [12:59:43]Write i2c OK [12:59:43]MH_I2C_Read... [12:59:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:43]Read from MH i2c: E2 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: E2 03 00 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: E2 03 00 E7 09 00 90 00 64 [12:59:43]RAPDU: 90 00 [12:59:43]wFMCommunicate OK [12:59:43]SAM_PROTO_ClearQueue done [12:59:43]KKMCreateOFDPacket [12:59:43]OFDProtocolAddRootSTLVToBuf [12:59:43]FM_MakeSignedData [12:59:43]FM_MakeSignedData [12:59:43]SAM_PROTO_SignData [12:59:43]wFMCommunicate request_size=4 [12:59:43]MH_SAM_APDU [12:59:43]CAPDU: 80 0D 01 02 [12:59:43]Write to MH i2c: E2 08 00 E8 09 80 0D 01 02 00 00 00 00 6A [12:59:43]Write i2c OK [12:59:43]MH_I2C_Read... [12:59:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:43]Read from MH i2c: E2 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: E2 03 00 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: E2 03 00 E8 09 00 90 00 65 [12:59:43]RAPDU: 90 00 [12:59:43]wFMCommunicate OK [12:59:43]wFMCommunicate request_size=255 [12:59:43]MH_SAM_APDU [12:59:43]CAPDU: 80 0D 02 02 FA 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 [12:59:43]Write to MH i2c: E2 02 01 E9 09 80 0D 02 02 FA 00 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 00 00 63 [12:59:43]Write i2c OK [12:59:43]MH_I2C_Read... [12:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 E9 09 00 90 00 66 [12:59:44]RAPDU: 90 00 [12:59:44]wFMCommunicate OK [12:59:44]wFMCommunicate request_size=154 [12:59:44]MH_SAM_APDU [12:59:44]CAPDU: 80 0D 02 02 95 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 05 00 00 00 00 07 04 06 00 F4 33 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 C0 14 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B2 C2 01 00 35 04 06 00 77 8D 78 82 F8 5F [12:59:44]Write to MH i2c: E2 9D 00 EA 09 80 0D 02 02 95 00 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 05 00 00 00 00 07 04 06 00 F4 33 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 C0 14 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B2 C2 01 00 35 04 06 00 77 8D 78 82 F8 5F 00 00 18 [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 03 00 EA 09 00 90 00 67 [12:59:44]RAPDU: 90 00 [12:59:44]wFMCommunicate OK [12:59:44]wFMCommunicate request_size=4 [12:59:44]MH_SAM_APDU [12:59:44]CAPDU: 80 0D 03 02 [12:59:44]Write to MH i2c: E2 08 00 EB 09 80 0D 03 02 00 00 00 00 6F [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 0B 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 0B 00 EB 09 00 B3 F6 36 FD 5F F5 9C F7 90 00 33 [12:59:44]RAPDU: B3 F6 36 FD 5F F5 9C F7 90 00 [12:59:44]wFMCommunicate OK [12:59:44]SAM_PROTO_SignData done [12:59:44]FM_MakeSignedData done [12:59:44]CreateOFDProtocolMessage [12:59:44]wFMCommunicate request_size=4 [12:59:44]MH_SAM_APDU [12:59:44]CAPDU: 80 11 00 00 [12:59:44]Write to MH i2c: E2 08 00 EC 09 80 11 00 00 00 00 00 00 6F [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 17 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 17 00 EC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BD [12:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:59:44]wFMCommunicate OK [12:59:44]CreateOFDProtocolMessage done [12:59:44]OFDSenderStorePacket 115378 [12:59:44]StoreOFDPacket docnum=115378 [12:59:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9F 01 00 00 31 EC 97 01 41 43 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 05 00 00 00 00 07 04 06 00 F4 33 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 C0 14 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B2 C2 01 00 35 04 06 00 77 8D 78 82 F8 5F B3 F6 36 FD 5F F5 9C F7 [12:59:44]CheckFolder [12:59:44]dirname=/storage/ofd_packets [12:59:44]CheckFolder done [12:59:44]ProducePacketName [12:59:44]name=ofd_packets/00115378 [12:59:44]NVStorageSaveData ofd_packets/00115378 [12:59:44]File name is /storage/ofd_packets/00115378 [12:59:44]Write 445 bytes [12:59:44]NVStorageSaveData done [12:59:44]OFDSenderStorePacket done [12:59:44]KKMCreateOFDPacket done [12:59:44]NVStorageSaveData kkm_last_timestamp [12:59:44]File name is /storage/kkm_last_timestamp [12:59:44]Write 4 bytes [12:59:44]NVStorageSaveData done [12:59:44]ExternCall_PrintAddStr [12:59:44]wPrintStart [12:59:44]Write to MH i2c: 01 00 00 ED 09 F6 [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: 01 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: 01 07 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: 01 07 00 ED 09 00 00 00 00 00 FF 0F 0B [12:59:44]RasterBufferAndPrint [12:59:44]line Счет N : (3)343828 [12:59:44]line ИНН: 02508201610067 [12:59:44]line Контрольно-Кассовый Чек [12:59:44]line ПРОДАЖА [12:59:44]line Товар: 5449000054227 [12:59:44]line Напиток Кока-Кола 1л [12:59:44]line 1.000 * 105.00 [12:59:44]line = 105.00 [12:59:44]line НДС 12% НСП 1% [12:59:44]line > о реализуемом товаре [12:59:44]line Товар: 2000053020015 [12:59:44]line Бумажные стаканы 250мл 1шт [12:59:44]line 4.000 * 7.00 [12:59:44]line = 28.00 [12:59:44]line НДС 12% НСП 1% [12:59:44]line > о реализуемом товаре [12:59:44]line ИТОГО: 133.00 [12:59:44]line НСП 1% : 1.18 [12:59:44]line НДС 12% : 14.12 [12:59:44]line Наличными: 133.00 [12:59:44]line Безнал.: 0.00 [12:59:44]line Место: АЗС № 90 "Партнер Нефть" [12:59:44]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:59:44]line СНО: Общий режим [12:59:44]line Чек 96 22.09.2024 12:59 [12:59:44]line Смена: 471 ФФД: 1.0 [12:59:44]line ЗНМ: 0300000120 [12:59:44]line РНМ: 0000000000091831 [12:59:44]line Версия ККМ: 001 [12:59:44]line ФМ: 0000000000871830 [12:59:44]line ФД: 115378 [12:59:44]line ФПД: 131449495943263 [12:59:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125944&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115378&fm=131449495943263&tin=02508201610067®Number=0000000000091831&sum=13300 [12:59:44]line 0 [12:59:44]OFD Sender: Processing packet 115378 [packets to send 481, broken 480] [12:59:44]ProducePacketName [12:59:44]name=ofd_packets/00115378 [12:59:44]OFD Sender: To server: pG, [12:59:44]CommunicateWithHost lk.salyk.kg:30040 [12:59:44]ConnectInit lk.salyk.kg [12:59:44]written 0, free lines is 4095 [12:59:45]Connected sock=9 [12: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 31 38 33 30 9F 01 00 00 31 EC 97 01 41 43 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 05 00 00 00 00 07 04 06 00 F4 33 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 C0 14 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B2 C2 01 00 35 04 06 00 77 8D 78 82 F8 5F B3 F6 36 FD 5F F5 9C F7 [12:59:45]Write to MH i2c: 01 00 00 1B 0A 25 [12:59:45]Write i2c OK [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: 01 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: 01 07 00 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: 01 07 00 1B 0A 00 00 00 00 00 F3 0B 2A [12:59:45]RasterBufferAndPrint [12:59:45]line [12:59:45]line [12:59:45]line [12:59:45]line [12:59:45]line [12:59:45]written 0, free lines is 3062 [12:59:45]MH_Cut [12:59:45]Write to MH i2c: D1 01 00 22 0A 01 FE [12:59:45]Write i2c OK [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: D1 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: D1 01 00 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: D1 01 00 22 0A 00 FD [12:59:45]Write to MH i2c: 01 00 00 23 0A 2D [12:59:45]Write i2c OK [12:59:45]MH_I2C_Read... [12:59:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 87 EB 47 00 C2 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B2 C2 01 00 F4 03 04 00 06 BA EF 66 B6 04 01 00 00 01 A6 4E 11 B7 7D 6B F7 [12:59:45]CommunicateWithHost err = 0 [12:59:45]CheckOFDResponse [12:59:45]1017 (14) - 77093643461234 [12:59:45]1041 (16) - 0000000000871830 [12:59:45]1040 (4) - 115378 [12:59:45]1012 (4) - 22.09.2024 06:32 [12:59:45]1206 (1) - 0 [12:59:45]OFD Sender: Remove packet 115378 [12:59:45]ProducePacketName [12:59:45]name=ofd_packets/00115378 [12:59:45]NVStorageDeleteData [12:59:45]OFD Sender: No OFD packet to send [12:59:46]*** Cut start [12:59:46]*** Partial cut [12:59:46]*** CUTSNS_PIN = 1 [12:59:46]*** CUTSNS_PIN = 0 [12:59:46]*** Brake cut motor [12:59:47]Read from MH i2c: 01 [12:59:47]MH_I2C_Read... [12:59:47]*** Stop cut motor [12:59:47]*** Cut end [12:59:47]Read from MH i2c: 01 07 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: 01 07 00 23 0A 00 00 00 00 00 FF 0F 42 [12:59:47]process_action close_receipt done [12:59:47]requested_data is exist [12:59:47]produce_requested_data [12:59:47]requested_item fm.sn is exist - process it [12:59:47]wFMCommunicate request_size=4 [12:59:47]MH_SAM_APDU [12:59:47]CAPDU: 80 11 00 00 [12:59:47]Write to MH i2c: E2 08 00 24 0A 80 11 00 00 00 00 00 00 A8 [12:59:47]Write i2c OK [12:59:47]MH_I2C_Read... [12:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:47]Read from MH i2c: E2 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 17 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 17 00 24 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F6 [12:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:59:47]wFMCommunicate OK [12:59:47]requested_item fd.num is exist - process it [12:59:47]SAM_PROTO_GetFieldsCounters [12:59:47]wFMCommunicate request_size=4 [12:59:47]MH_SAM_APDU [12:59:47]CAPDU: 80 13 00 00 [12:59:47]Write to MH i2c: E2 08 00 25 0A 80 13 00 00 00 00 00 00 AB [12:59:47]Write i2c OK [12:59:47]MH_I2C_Read... [12:59:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:47]Read from MH i2c: E2 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 62 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 62 00 25 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B2 C2 01 00 0E 04 04 00 D7 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 31 [12: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B2 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:47]wFMCommunicate OK [12:59:47]SAM_PROTO_GetFieldsCounters done [12:59:47]requested_item shift.num is exist - process it [12:59:47]requested_item shift.opened is exist - process it [12:59:47]req_shift_opened [12:59:47]FM_GetShiftState [12:59:47]SAM_PROTO_GetShiftState [12:59:47]wFMCommunicate request_size=4 [12:59:47]MH_SAM_APDU [12:59:47]CAPDU: 80 13 01 00 [12:59:47]Write to MH i2c: E2 08 00 26 0A 80 13 01 00 00 00 00 00 AD [12:59:47]Write i2c OK [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 [12:59:47]MH_I2C_Read... [12:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:47]Read from MH i2c: E2 0E 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 0E 00 26 0A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C6 [12:59:47]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [12:59:47]wFMCommunicate OK [12:59:47]SAM_PROTO_GetShiftState done [12:59:47]FM_GetShiftState done [12:59:47]req_shift_opened done [12:59:47]requested_item shift.open_date is exist - process it [12:59:47]req_shift_open_date [12:59:47]req_shift_open_date done [12:59:47]produce_requested_data done [12:59:47]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115378,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [12:59:47]process_action_free close_receipt [12:59:47]json_value_free [12:59:47]json_value_free done [12:59:47]process_json_proto returns [12:59:47]Send response to host [12:59:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115378,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [12:59:47]free response buf [12:59:47]execute_script done [12:59:47]execute_script returns [12:59:47]free content buf [12:59:47]Sock 10.Close socket [12:59:47]Sock 10.Thread stoped [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:11]OFD Sender: No OFD packet to send [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:44]accept exits with 8 [13:04:44]New connection [13:04:44]New thread 3066826084 created [13:04:44]Thread 3066682724 joined [13:04:44]Waiting for new connection... [13:04:44] Sock 8.Parse request [13:04:44]Sock 8.Check first char [13:04:44]Sock 8.First char is OK [13:04:44]request: POST /json_proto HTTP/1.0 [13:04:44]Method: POST [13:04:44]URL: /json_proto [13:04:44]Method is POST - this is cgi request [13:04:44]url: /json_proto [13:04:44]query_string will be loaded in cgi processing [13:04:44]execute_cgi json_proto POST (null) [13:04:44]execute_cgi path=json_proto method=POST [13:04:44]POST find Content-Length [13:04:44]Host: 172.17.41.136:8080 [13:04:44]Content-Length: 957 [13:04:44]Content-Type: application/json [13:04:44] [13:04:44]POST finish read [13:04:44]Found Content-Length = 957 [13:04:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343829", "tax_sys" : 0, "items" : [ { "code": "4700003010049", "name": "Let`s GO \u0427\u0430\u0439 \u0437\u0435\u043B\u0435\u043D\u044B\u0439 \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442 0,5\u043B \u041F\u042D\u0422", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:44]execute_script... [13:04:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343829", "tax_sys" : 0, "items" : [ { "code": "4700003010049", "name": "Let`s GO \u0427\u0430\u0439 \u0437\u0435\u043B\u0435\u043D\u044B\u0439 \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442 0,5\u043B \u041F\u042D\u0422", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:44]POST & json_proto [13:04:44]process_json_proto [13:04:44]json parsed OK: [13:04:44]protocol is kg_v1.0 [13:04:44]action value=close_receipt [13:04:44]process_action close_receipt [13:04:44]cmd_close_receipt [13:04:44]MH_GetDate [13:04:44]Write to MH i2c: F0 00 00 27 0A 20 [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: F0 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: F0 09 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: F0 09 00 27 0A 00 ED 15 F0 66 1B D0 5A 64 2A [13:04:44]GetLastDocTimeStamp 1727009984 [13:04:44]current date 1727010285 [13:04:44]FM_GetShiftState [13:04:44]SAM_PROTO_GetShiftState [13:04:44]wFMCommunicate request_size=4 [13:04:44]MH_SAM_APDU [13:04:44]CAPDU: 80 13 01 00 [13:04:44]Write to MH i2c: E2 08 00 28 0A 80 13 01 00 00 00 00 00 AF [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:44]Read from MH i2c: E2 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 0E 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 0E 00 28 0A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C8 [13:04:44]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:04:44]wFMCommunicate OK [13:04:44]SAM_PROTO_GetShiftState done [13:04:44]FM_GetShiftState done [13:04:44]opened in 1726965840 [13:04:44]opened+sec_in_day 1727052240 [13:04:44]quantity*price = 5000 [13:04:44]sum+1 = 5001 [13:04:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 97 22.09.2024 13:04 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115379 ФПД: 91694263816469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T130446&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115379&fm=91694263816469&tin=02508201610067®Number=0000000000091831&sum=10000 0 [13:04:45]StoreToDocumentArchive [13:04:45]shift 471 fd 115379 [13:04:45]save to /storage/0471/doc_00115379 [13:04:45]save last doc name /storage/0471/doc_00115379 to /storage/kkm_last_doc_name [13:04:45]save OK [13:04:45]Clear old archive folders... [13:04:45]ProcessDocumentItem done err = 0, tmpTLVsize=403 [13:04:45]tlvbuf is 01C42FE0 [13:04:45]SAM_PROTO_ClearQueue [13:04:45]wFMCommunicate request_size=4 [13:04:45]MH_SAM_APDU [13:04:45]CAPDU: 80 09 00 00 [13:04:45]Write to MH i2c: E2 08 00 35 0A 80 09 00 00 00 00 00 00 B1 [13:04:45]Write i2c OK [13:04:45]MH_I2C_Read... [13:04:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:45]Read from MH i2c: E2 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 03 00 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 03 00 35 0A 00 90 00 B3 [13:04:45]RAPDU: 90 00 [13:04:45]wFMCommunicate OK [13:04:45]SAM_PROTO_ClearQueue done [13:04:45]KKMCreateOFDPacket [13:04:45]OFDProtocolAddRootSTLVToBuf [13:04:45]FM_MakeSignedData [13:04:45]FM_MakeSignedData [13:04:45]SAM_PROTO_SignData [13:04:45]wFMCommunicate request_size=4 [13:04:45]MH_SAM_APDU [13:04:45]CAPDU: 80 0D 01 02 [13:04:45]Write to MH i2c: E2 08 00 36 0A 80 0D 01 02 00 00 00 00 B9 [13:04:45]Write i2c OK [13:04:45]MH_I2C_Read... [13:04:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:45]Read from MH i2c: E2 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 03 00 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 03 00 36 0A 00 90 00 B4 [13:04:45]RAPDU: 90 00 [13:04:45]wFMCommunicate OK [13:04:45]wFMCommunicate request_size=255 [13:04:45]MH_SAM_APDU [13:04:45]CAPDU: 80 0D 02 02 FA 03 00 93 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 [13:04:45]Write to MH i2c: E2 02 01 37 0A 80 0D 02 02 FA 00 03 00 93 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 24 [13:04:45]Write i2c OK [13:04:45]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 03 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 03 00 37 0A 00 90 00 B5 [13:04:46]RAPDU: 90 00 [13:04:46]wFMCommunicate OK [13:04:46]wFMCommunicate request_size=162 [13:04:46]MH_SAM_APDU [13:04:46]CAPDU: 80 0D 02 02 9D 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 EE 15 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B3 C2 01 00 35 04 06 00 53 65 3C 05 D1 15 [13:04:46]Write to MH i2c: E2 A5 00 38 0A 80 0D 02 02 9D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 EE 15 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B3 C2 01 00 35 04 06 00 53 65 3C 05 D1 15 00 00 CB [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 03 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 03 00 38 0A 00 90 00 B6 [13:04:46]RAPDU: 90 00 [13:04:46]wFMCommunicate OK [13:04:46]wFMCommunicate request_size=4 [13:04:46]MH_SAM_APDU [13:04:46]CAPDU: 80 0D 03 02 [13:04:46]Write to MH i2c: E2 08 00 39 0A 80 0D 03 02 00 00 00 00 BE [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 0B 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 0B 00 39 0A 00 C5 90 2B 41 07 85 D4 81 90 00 61 [13:04:46]RAPDU: C5 90 2B 41 07 85 D4 81 90 00 [13:04:46]wFMCommunicate OK [13:04:46]SAM_PROTO_SignData done [13:04:46]FM_MakeSignedData done [13:04:46]CreateOFDProtocolMessage [13:04:46]wFMCommunicate request_size=4 [13:04:46]MH_SAM_APDU [13:04:46]CAPDU: 80 11 00 00 [13:04:46]Write to MH i2c: E2 08 00 3A 0A 80 11 00 00 00 00 00 00 BE [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 17 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 17 00 3A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0C [13:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:04:46]wFMCommunicate OK [13:04:46]CreateOFDProtocolMessage done [13:04:46]OFDSenderStorePacket 115379 [13:04:46]StoreOFDPacket docnum=115379 [13:04:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A7 01 00 00 17 E0 9F 01 76 2B 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 EE 15 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B3 C2 01 00 35 04 06 00 53 65 3C 05 D1 15 C5 90 2B 41 07 85 D4 81 [13:04:46]CheckFolder [13:04:46]dirname=/storage/ofd_packets [13:04:46]CheckFolder done [13:04:46]ProducePacketName [13:04:46]name=ofd_packets/00115379 [13:04:46]NVStorageSaveData ofd_packets/00115379 [13:04:46]File name is /storage/ofd_packets/00115379 [13:04:46]Write 453 bytes [13:04:46]NVStorageSaveData done [13:04:46]OFDSenderStorePacket done [13:04:46]KKMCreateOFDPacket done [13:04:46]NVStorageSaveData kkm_last_timestamp [13:04:46]File name is /storage/kkm_last_timestamp [13:04:46]Write 4 bytes [13:04:46]NVStorageSaveData done [13:04:46]ExternCall_PrintAddStr [13:04:46]wPrintStart [13:04:46]Write to MH i2c: 01 00 00 3B 0A 45 [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: 01 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: 01 07 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: 01 07 00 3B 0A 00 00 00 00 00 FF 0F 5A [13:04:46]RasterBufferAndPrint [13:04:46]line Счет N : (3)343829 [13:04:46]line ИНН: 02508201610067 [13:04:46]line Контрольно-Кассовый Чек [13:04:46]line ПРОДАЖА [13:04:46]line Товар: 4700003010049 [13:04:46]line Let`s GO Чай зеленый грейпфрут 0,5л ПЭТ [13:04:46]line 1.000 * 50.00 [13:04:46]line = 50.00 [13:04:46]line НДС 12% НСП 1% [13:04:46]line > о реализуемом товаре [13:04:46]line Товар: 4700000160358 [13:04:46]line Вода Легенда 1л [13:04:46]line 1.000 * 50.00 [13:04:46]line = 50.00 [13:04:46]line НДС 12% НСП 1% [13:04:46]line > о реализуемом товаре [13:04:46]line ИТОГО: 100.00 [13:04:46]line НСП 1% : 0.88 [13:04:46]line НДС 12% : 10.62 [13:04:46]line Наличными: 100.00 [13:04:46]line Безнал.: 0.00 [13:04:46]line Место: АЗС № 90 "Партнер Нефть" [13:04:46]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:04:46]line СНО: Общий режим [13:04:46]line Чек 97 22.09.2024 13:04 [13:04:46]line Смена: 471 ФФД: 1.0 [13:04:46]line ЗНМ: 0300000120 [13:04:46]line РНМ: 0000000000091831 [13:04:46]line Версия ККМ: 001 [13:04:46]line ФМ: 0000000000871830 [13:04:46]line ФД: 115379 [13:04:46]line ФПД: 91694263816469 [13:04:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T130446&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115379&fm=91694263816469&tin=02508201610067®Number=0000000000091831&sum=10000 [13:04:46]line 0 [13:04:46]OFD Sender: Processing packet 115379 [packets to send 481, broken 480] [13:04:46]ProducePacketName [13:04:46]name=ofd_packets/00115379 [13:04:46]OFD Sender: To server: pG, [13:04:46]CommunicateWithHost lk.salyk.kg:30040 [13:04:46]ConnectInit lk.salyk.kg [13:04:46]written 0, free lines is 4095 [13:04:47]Connected sock=10 [13:04:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A7 01 00 00 17 E0 9F 01 76 2B 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 EE 15 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B3 C2 01 00 35 04 06 00 53 65 3C 05 D1 15 C5 90 2B 41 07 85 D4 81 [13:04:47]Write to MH i2c: 01 00 00 69 0A 73 [13:04:47]Write i2c OK [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: 01 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: 01 07 00 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: 01 07 00 69 0A 00 00 00 00 00 F7 0B 7C [13:04:47]RasterBufferAndPrint [13:04:47]line [13:04:47]line [13:04:47]line [13:04:47]line [13:04:47]line [13:04:47]written 0, free lines is 3068 [13:04:47]MH_Cut [13:04:47]Write to MH i2c: D1 01 00 70 0A 01 4C [13:04:47]Write i2c OK [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: D1 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: D1 01 00 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: D1 01 00 70 0A 00 4B [13:04:47]Write to MH i2c: 01 00 00 71 0A 7B [13:04:47]Write i2c OK [13:04:47]MH_I2C_Read... [13:04:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 8B 6F 47 00 3C 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B3 C2 01 00 F4 03 04 00 34 BB EF 66 B6 04 01 00 00 98 56 4B 0B 6D B5 B0 47 [13:04:47]CommunicateWithHost err = 0 [13:04:47]CheckOFDResponse [13:04:47]1017 (14) - 77093643461234 [13:04:47]1041 (16) - 0000000000871830 [13:04:47]1040 (4) - 115379 [13:04:47]1012 (4) - 22.09.2024 06:37 [13:04:47]1206 (1) - 0 [13:04:47]OFD Sender: Remove packet 115379 [13:04:47]ProducePacketName [13:04:47]name=ofd_packets/00115379 [13:04:47]NVStorageDeleteData [13:04:47]OFD Sender: No OFD packet to send [13:04:48]*** Cut start [13:04:48]*** Partial cut [13:04:48]*** CUTSNS_PIN = 1 [13:04:48]*** CUTSNS_PIN = 0 [13:04:48]*** Brake cut motor [13:04:49]Read from MH i2c: 01 [13:04:49]MH_I2C_Read... [13:04:49]*** Stop cut motor [13:04:49]*** Cut end [13:04:49]Read from MH i2c: 01 07 00 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: 01 07 00 71 0A 00 00 00 00 00 FF 0F 90 [13:04:49]process_action close_receipt done [13:04:49]requested_data is exist [13:04:49]produce_requested_data [13:04:49]requested_item fm.sn is exist - process it [13:04:49]wFMCommunicate request_size=4 [13:04:49]MH_SAM_APDU [13:04:49]CAPDU: 80 11 00 00 [13:04:49]Write to MH i2c: E2 08 00 72 0A 80 11 00 00 00 00 00 00 F6 [13:04:49]Write i2c OK [13:04:49]MH_I2C_Read... [13:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:49]Read from MH i2c: E2 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: E2 17 00 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: E2 17 00 72 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 44 [13:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:04:49]wFMCommunicate OK [13:04:49]requested_item fd.num is exist - process it [13:04:49]SAM_PROTO_GetFieldsCounters [13:04:49]wFMCommunicate request_size=4 [13:04:49]MH_SAM_APDU [13:04:49]CAPDU: 80 13 00 00 [13:04:49]Write to MH i2c: E2 08 00 73 0A 80 13 00 00 00 00 00 00 F9 [13:04:49]Write i2c OK [13:04:49]MH_I2C_Read... [13:04:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:49]Read from MH i2c: E2 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: E2 62 00 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: E2 62 00 73 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B3 C2 01 00 0E 04 04 00 D7 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 83 [13:04:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B3 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:49]wFMCommunicate OK [13:04:49]SAM_PROTO_GetFieldsCounters done [13:04:49]requested_item shift.num is exist - process it [13:04:49]requested_item shift.opened is exist - process it [13:04:49]req_shift_opened [13:04:49]FM_GetShiftState [13:04:49]SAM_PROTO_GetShiftState [13:04:49]wFMCommunicate request_size=4 [13:04:49]MH_SAM_APDU [13:04:49]CAPDU: 80 13 01 00 [13:04:49]Write to MH i2c: E2 08 00 74 0A 80 13 01 00 00 00 00 00 FB [13:04:49]Write i2c OK [13:04:49]MH_I2C_Read... [13:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:49]Read from MH i2c: E2 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: E2 0E 00 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: E2 0E 00 74 0A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 14 [13:04:49]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:04:49]wFMCommunicate OK [13:04:49]SAM_PROTO_GetShiftState done [13:04:49]FM_GetShiftState done [13:04:49]req_shift_opened done [13:04:49]requested_item shift.open_date is exist - process it [13:04:49]req_shift_open_date [13:04:49]req_shift_open_date done [13:04:49]produce_requested_data done [13:04:49]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115379,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [13:04:49]process_action_free close_receipt [13:04:49]json_value_free [13:04:49]json_value_free done [13:04:49]process_json_proto returns [13:04:49]Send response to host [13:04:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115379,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [13:04:49]free response buf [13:04:49]execute_script done [13:04:49]execute_script returns [13:04:49]free content buf [13:04:49]Sock 8.Close socket [13:04:49]Sock 8.Thread stoped [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:35]accept exits with 9 [13:11:35]New connection [13:11:35]New thread 3066682724 created [13:11:35]Thread 3066826084 joined [13:11:35]Waiting for new connection... [13:11:35] Sock 9.Parse request [13:11:35]Sock 9.Check first char [13:11:35]Sock 9.First char is OK [13:11:35]request: POST /json_proto HTTP/1.0 [13:11:35]Method: POST [13:11:35]URL: /json_proto [13:11:35]Method is POST - this is cgi request [13:11:35]url: /json_proto [13:11:35]query_string will be loaded in cgi processing [13:11:35]execute_cgi json_proto POST (null) [13:11:35]execute_cgi path=json_proto method=POST [13:11:35]POST find Content-Length [13:11:35]Host: 172.17.41.136:8080 [13:11:35]Content-Length: 1097 [13:11:35]Content-Type: application/json [13:11:35] [13:11:35]POST finish read [13:11:35]Found Content-Length = 1097 [13:11:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343830", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 254.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:35]execute_script... [13:11:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343830", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 254.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:35]POST & json_proto [13:11:35]process_json_proto [13:11:35]json parsed OK: [13:11:35]protocol is kg_v1.0 [13:11:35]action value=close_receipt [13:11:35]process_action close_receipt [13:11:35]cmd_close_receipt [13:11:35]MH_GetDate [13:11:35]Write to MH i2c: F0 00 00 75 0A 6E [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: F0 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: F0 09 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: F0 09 00 75 0A 00 89 17 F0 66 1B D0 5A 64 16 [13:11:35]GetLastDocTimeStamp 1727010286 [13:11:35]current date 1727010697 [13:11:35]FM_GetShiftState [13:11:35]SAM_PROTO_GetShiftState [13:11:35]wFMCommunicate request_size=4 [13:11:35]MH_SAM_APDU [13:11:35]CAPDU: 80 13 01 00 [13:11:35]Write to MH i2c: E2 08 00 76 0A 80 13 01 00 00 00 00 00 FD [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:35]Read from MH i2c: E2 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 0E 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 0E 00 76 0A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 16 [13:11:35]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:11:35]wFMCommunicate OK [13:11:35]SAM_PROTO_GetShiftState done [13:11:35]FM_GetShiftState done [13:11:35]opened in 1726965840 [13:11:35]opened+sec_in_day 1727052240 [13:11:35]quantity*price = 8000 [13:11:35]sum+1 = 8001 [13:11:35]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700007690018 Негаз вода Pamir 0,5 л 1.000 * 30.00 = 30.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 254.00 НСП 1% : 2.24 НДС 12% : 26.98 Наличными: 254.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 98 22.09.2024 13:11 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115380 ФПД: 93063891847327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T131137&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115380&fm=93063891847327&tin=02508201610067®Number=0000000000091831&sum=25400 0 [13:11:36]StoreToDocumentArchive [13:11:36]shift 471 fd 115380 [13:11:36]save to /storage/0471/doc_00115380 [13:11:36]save last doc name /storage/0471/doc_00115380 to /storage/kkm_last_doc_name [13:11:36]save OK [13:11:36]Clear old archive folders... [13:11:36]ProcessDocumentItem done err = 0, tmpTLVsize=477 [13:11:36]tlvbuf is 01C42B60 [13:11:36]SAM_PROTO_ClearQueue [13:11:36]wFMCommunicate request_size=4 [13:11:36]MH_SAM_APDU [13:11:36]CAPDU: 80 09 00 00 [13:11:36]Write to MH i2c: E2 08 00 83 0A 80 09 00 00 00 00 00 00 FF [13:11:36]Write i2c OK [13:11:36]MH_I2C_Read... [13:11:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:36]Read from MH i2c: E2 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: E2 03 00 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: E2 03 00 83 0A 00 90 00 01 [13:11:36]RAPDU: 90 00 [13:11:36]wFMCommunicate OK [13:11:36]SAM_PROTO_ClearQueue done [13:11:36]KKMCreateOFDPacket [13:11:36]OFDProtocolAddRootSTLVToBuf [13:11:36]FM_MakeSignedData [13:11:36]FM_MakeSignedData [13:11:36]SAM_PROTO_SignData [13:11:36]wFMCommunicate request_size=4 [13:11:36]MH_SAM_APDU [13:11:36]CAPDU: 80 0D 01 02 [13:11:36]Write to MH i2c: E2 08 00 84 0A 80 0D 01 02 00 00 00 00 07 [13:11:36]Write i2c OK [13:11:36]MH_I2C_Read... [13:11:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:37]Read from MH i2c: E2 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 03 00 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 03 00 84 0A 00 90 00 02 [13:11:37]RAPDU: 90 00 [13:11:37]wFMCommunicate OK [13:11:37]wFMCommunicate request_size=255 [13:11:37]MH_SAM_APDU [13:11:37]CAPDU: 80 0D 02 02 FA 03 00 DD 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 [13:11:37]Write to MH i2c: E2 02 01 85 0A 80 0D 02 02 FA 00 03 00 DD 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 00 00 77 [13:11:37]Write i2c OK [13:11:37]MH_I2C_Read... [13:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:37]Read from MH i2c: E2 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 03 00 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 03 00 85 0A 00 90 00 03 [13:11:37]RAPDU: 90 00 [13:11:37]wFMCommunicate OK [13:11:37]wFMCommunicate request_size=236 [13:11:37]MH_SAM_APDU [13:11:37]CAPDU: 80 0D 02 02 E7 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0A 00 00 00 00 07 04 06 00 38 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 89 17 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B4 C2 01 00 35 04 06 00 54 A4 20 37 08 9F [13:11:37]Write to MH i2c: E2 EF 00 86 0A 80 0D 02 02 E7 00 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0A 00 00 00 00 07 04 06 00 38 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 89 17 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B4 C2 01 00 35 04 06 00 54 A4 20 37 08 9F 00 00 A3 [13:11:37]Write i2c OK [13:11:37]MH_I2C_Read... [13:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:37]Read from MH i2c: E2 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 03 00 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 03 00 86 0A 00 90 00 04 [13:11:37]RAPDU: 90 00 [13:11:37]wFMCommunicate OK [13:11:37]wFMCommunicate request_size=4 [13:11:37]MH_SAM_APDU [13:11:37]CAPDU: 80 0D 03 02 [13:11:37]Write to MH i2c: E2 08 00 87 0A 80 0D 03 02 00 00 00 00 0C [13:11:37]Write i2c OK [13:11:37]MH_I2C_Read... [13:11:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:37]Read from MH i2c: E2 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 0B 00 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 0B 00 87 0A 00 D4 C3 BB BE 0B FF EB 8B 90 00 9D [13:11:37]RAPDU: D4 C3 BB BE 0B FF EB 8B 90 00 [13:11:37]wFMCommunicate OK [13:11:37]SAM_PROTO_SignData done [13:11:37]FM_MakeSignedData done [13:11:37]CreateOFDProtocolMessage [13:11:37]wFMCommunicate request_size=4 [13:11:37]MH_SAM_APDU [13:11:37]CAPDU: 80 11 00 00 [13:11:37]Write to MH i2c: E2 08 00 88 0A 80 11 00 00 00 00 00 00 0C [13:11:37]Write i2c OK [13:11:37]MH_I2C_Read... [13:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:37]Read from MH i2c: E2 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 17 00 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 17 00 88 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5A [13:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:11:37]wFMCommunicate OK [13:11:37]CreateOFDProtocolMessage done [13:11:37]OFDSenderStorePacket 115380 [13:11:37]StoreOFDPacket docnum=115380 [13:11:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F1 01 00 00 72 2C E9 01 5F 28 5A 03 01 00 03 00 DD 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0A 00 00 00 00 07 04 06 00 38 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 89 17 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B4 C2 01 00 35 04 06 00 54 A4 20 37 08 9F D4 C3 BB BE 0B FF EB 8B [13:11:37]CheckFolder [13:11:37]dirname=/storage/ofd_packets [13:11:37]CheckFolder done [13:11:37]ProducePacketName [13:11:37]name=ofd_packets/00115380 [13:11:37]NVStorageSaveData ofd_packets/00115380 [13:11:37]File name is /storage/ofd_packets/00115380 [13:11:37]Write 527 bytes [13:11:37]NVStorageSaveData done [13:11:37]OFDSenderStorePacket done [13:11:37]KKMCreateOFDPacket done [13:11:37]NVStorageSaveData kkm_last_timestamp [13:11:37]File name is /storage/kkm_last_timestamp [13:11:37]Write 4 bytes [13:11:37]NVStorageSaveData done [13:11:37]ExternCall_PrintAddStr [13:11:37]wPrintStart [13:11:37]Write to MH i2c: 01 00 00 89 0A 93 [13:11:37]Write i2c OK [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: 01 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: 01 07 00 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: 01 07 00 89 0A 00 00 00 00 00 FF 0F A8 [13:11:38]RasterBufferAndPrint [13:11:38]line Счет N : (3)343830 [13:11:38]line ИНН: 02508201610067 [13:11:38]line Контрольно-Кассовый Чек [13:11:38]line ПРОДАЖА [13:11:38]line Товар: 4870001570057 [13:11:38]line Напиток Pepsi 0,5л [13:11:38]line 1.000 * 80.00 [13:11:38]line = 80.00 [13:11:38]line НДС 12% НСП 1% [13:11:38]line > о реализуемом товаре [13:11:38]line Товар: 4700007690018 [13:11:38]line Негаз вода Pamir 0,5 л [13:11:38]line 1.000 * 30.00 [13:11:38]line = 30.00 [13:11:38]line НДС 12% НСП 1% [13:11:38]line > о реализуемом товаре [13:11:38]line Товар: 48743587 [13:11:38]line Сигареты Winston XStyle Silver [13:11:38]line 1.000 * 144.00 [13:11:38]line = 144.00 [13:11:38]line НДС 12% НСП 1% [13:11:38]line > о реализуемом товаре [13:11:38]line ИТОГО: 254.00 [13:11:38]line НСП 1% : 2.24 [13:11:38]line НДС 12% : 26.98 [13:11:38]line Наличными: 254.00 [13:11:38]line Безнал.: 0.00 [13:11:38]line Место: АЗС № 90 "Партнер Нефть" [13:11:38]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:11:38]line СНО: Общий режим [13:11:38]line Чек 98 22.09.2024 13:11 [13:11:38]line Смена: 471 ФФД: 1.0 [13:11:38]line ЗНМ: 0300000120 [13:11:38]line РНМ: 0000000000091831 [13:11:38]line Версия ККМ: 001 [13:11:38]line ФМ: 0000000000871830 [13:11:38]line ФД: 115380 [13:11:38]line ФПД: 93063891847327 [13:11:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T131137&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115380&fm=93063891847327&tin=02508201610067®Number=0000000000091831&sum=25400 [13:11:38]line 0 [13:11:38]written 0, free lines is 4095 [13:11:38]OFD Sender: Processing packet 115380 [packets to send 481, broken 480] [13:11:38]ProducePacketName [13:11:38]name=ofd_packets/00115380 [13:11:38]OFD Sender: To server: pG, [13:11:38]CommunicateWithHost lk.salyk.kg:30040 [13:11:38]ConnectInit lk.salyk.kg [13:11:38]Connected sock=10 [13:11:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F1 01 00 00 72 2C E9 01 5F 28 5A 03 01 00 03 00 DD 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0A 00 00 00 00 07 04 06 00 38 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 89 17 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B4 C2 01 00 35 04 06 00 54 A4 20 37 08 9F D4 C3 BB BE 0B FF EB 8B [13:11:38]Write to MH i2c: 01 00 00 BD 0A C7 [13:11:38]Write i2c OK [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: 01 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: 01 07 00 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: 01 07 00 BD 0A 00 00 00 00 00 7A 0B 53 [13:11:38]RasterBufferAndPrint [13:11:38]line [13:11:38]line [13:11:38]line [13:11:38]line [13:11:38]line [13:11:38]written 0, free lines is 2942 [13:11:38]MH_Cut [13:11:38]Write to MH i2c: D1 01 00 C4 0A 01 A0 [13:11:38]Write i2c OK [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: D1 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: D1 01 00 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: D1 01 00 C4 0A 00 9F [13:11:38]Write to MH i2c: 01 00 00 C5 0A CF [13:11:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 5D 57 47 00 E3 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 31 38 33 30 10 04 04 00 B4 C2 01 00 F4 03 04 00 CF BC EF 66 B6 04 01 00 00 82 E2 98 21 BD 91 6B F4 [13:11:38]CommunicateWithHost err = 0 [13:11:38]CheckOFDResponse [13:11:38]1017 (14) - 77093643461234 [13:11:38]1041 (16) - 0000000000871830 [13:11:38]1040 (4) - 115380 [13:11:38]1012 (4) - 22.09.2024 06:44 [13:11:38]1206 (1) - 0 [13:11:38]OFD Sender: Remove packet 115380 [13:11:38]ProducePacketName [13:11:38]name=ofd_packets/00115380 [13:11:38]NVStorageDeleteData [13:11:38]Write i2c OK [13:11:38]MH_I2C_Read... [13:11:39]OFD Sender: No OFD packet to send [13:11:40]*** Cut start [13:11:40]*** Partial cut [13:11:40]*** CUTSNS_PIN = 1 [13:11:40]*** CUTSNS_PIN = 0 [13:11:40]*** Brake cut motor [13:11:40]Read from MH i2c: 01 [13:11:40]MH_I2C_Read... [13:11:40]*** Stop cut motor [13:11:40]*** Cut end [13:11:40]Read from MH i2c: 01 07 00 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: 01 07 00 C5 0A 00 00 00 00 00 FF 0F E4 [13:11:40]process_action close_receipt done [13:11:40]requested_data is exist [13:11:40]produce_requested_data [13:11:40]requested_item fm.sn is exist - process it [13:11:40]wFMCommunicate request_size=4 [13:11:40]MH_SAM_APDU [13:11:40]CAPDU: 80 11 00 00 [13:11:40]Write to MH i2c: E2 08 00 C6 0A 80 11 00 00 00 00 00 00 4A [13:11:40]Write i2c OK [13:11:40]MH_I2C_Read... [13:11:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:40]Read from MH i2c: E2 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: E2 17 00 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: E2 17 00 C6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 98 [13:11:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:11:40]wFMCommunicate OK [13:11:40]requested_item fd.num is exist - process it [13:11:40]SAM_PROTO_GetFieldsCounters [13:11:40]wFMCommunicate request_size=4 [13:11:40]MH_SAM_APDU [13:11:40]CAPDU: 80 13 00 00 [13:11:40]Write to MH i2c: E2 08 00 C7 0A 80 13 00 00 00 00 00 00 4D [13:11:40]Write i2c OK [13:11:40]MH_I2C_Read... [13:11:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:40]Read from MH i2c: E2 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: E2 62 00 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: E2 62 00 C7 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B4 C2 01 00 0E 04 04 00 D7 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 DB [13:11:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B4 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:40]wFMCommunicate OK [13:11:40]SAM_PROTO_GetFieldsCounters done [13:11:40]requested_item shift.num is exist - process it [13:11:40]requested_item shift.opened is exist - process it [13:11:40]req_shift_opened [13:11:40]FM_GetShiftState [13:11:40]SAM_PROTO_GetShiftState [13:11:40]wFMCommunicate request_size=4 [13:11:40]MH_SAM_APDU [13:11:40]CAPDU: 80 13 01 00 [13:11:40]Write to MH i2c: E2 08 00 C8 0A 80 13 01 00 00 00 00 00 4F [13:11:40]Write i2c OK [13:11:40]MH_I2C_Read... [13:11:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:41]Read from MH i2c: E2 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: E2 0E 00 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: E2 0E 00 C8 0A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 68 [13:11:41]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:11:41]wFMCommunicate OK [13:11:41]SAM_PROTO_GetShiftState done [13:11:41]FM_GetShiftState done [13:11:41]req_shift_opened done [13:11:41]requested_item shift.open_date is exist - process it [13:11:41]req_shift_open_date [13:11:41]req_shift_open_date done [13:11:41]produce_requested_data done [13:11:41]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115380,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [13:11:41]process_action_free close_receipt [13:11:41]json_value_free [13:11:41]json_value_free done [13:11:41]process_json_proto returns [13:11:41]Send response to host [13:11:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115380,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [13:11:41]free response buf [13:11:41]execute_script done [13:11:41]execute_script returns [13:11:41]free content buf [13:11:41]Sock 9.Close socket [13:11:41]Sock 9.Thread stoped [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [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]accept exits with 8 [13:16:49]New connection [13:16:49]New thread 3066826084 created [13:16:49]Thread 3066682724 joined [13:16:49]Waiting for new connection... [13:16:49] Sock 8.Parse request [13:16:49]Sock 8.Check first char [13:16:49]Sock 8.First char is OK [13:16:49]request: POST /json_proto HTTP/1.0 [13:16:49]Method: POST [13:16:49]URL: /json_proto [13:16:49]Method is POST - this is cgi request [13:16:49]url: /json_proto [13:16:49]query_string will be loaded in cgi processing [13:16:49]execute_cgi json_proto POST (null) [13:16:49]execute_cgi path=json_proto method=POST [13:16:49]POST find Content-Length [13:16:49]Host: 172.17.41.136:8080 [13:16:49]Content-Length: 896 [13:16:49]Content-Type: application/json [13:16:49] [13:16:49]POST finish read [13:16:49]Found Content-Length = 896 [13:16:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343831", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:49]execute_script... [13:16:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343831", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:49]POST & json_proto [13:16:49]process_json_proto [13:16:49]json parsed OK: [13:16:49]protocol is kg_v1.0 [13:16:49]action value=close_receipt [13:16:49]process_action close_receipt [13:16:49]cmd_close_receipt [13:16:49]MH_GetDate [13:16:49]Write to MH i2c: F0 00 00 C9 0A C2 [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: F0 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: F0 09 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: F0 09 00 C9 0A 00 C2 18 F0 66 1B D0 5A 64 A4 [13:16:49]GetLastDocTimeStamp 1727010697 [13:16:49]current date 1727011010 [13:16:49]FM_GetShiftState [13:16:49]SAM_PROTO_GetShiftState [13:16:49]wFMCommunicate request_size=4 [13:16:49]MH_SAM_APDU [13:16:49]CAPDU: 80 13 01 00 [13:16:49]Write to MH i2c: E2 08 00 CA 0A 80 13 01 00 00 00 00 00 51 [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 0E 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 0E 00 CA 0A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 6A [13:16:49]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:16:49]wFMCommunicate OK [13:16:49]SAM_PROTO_GetShiftState done [13:16:49]FM_GetShiftState done [13:16:49]opened in 1726965840 [13:16:49]opened+sec_in_day 1727052240 [13:16:49]quantity*price = 9500 [13:16:49]sum+1 = 9501 [13:16:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 99 22.09.2024 13:16 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115381 ФПД: 278331665098191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T131650&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115381&fm=278331665098191&tin=02508201610067®Number=0000000000091831&sum=20500 0 [13:16:50]StoreToDocumentArchive [13:16:50]shift 471 fd 115381 [13:16:50]save to /storage/0471/doc_00115381 [13:16:50]save last doc name /storage/0471/doc_00115381 to /storage/kkm_last_doc_name [13:16:50]save OK [13:16:50]Clear old archive folders... [13:16:50]ProcessDocumentItem done err = 0, tmpTLVsize=392 [13:16:50]tlvbuf is 01BFB2B0 [13:16:50]SAM_PROTO_ClearQueue [13:16:50]wFMCommunicate request_size=4 [13:16:50]MH_SAM_APDU [13:16:50]CAPDU: 80 09 00 00 [13:16:50]Write to MH i2c: E2 08 00 D7 0A 80 09 00 00 00 00 00 00 53 [13:16:50]Write i2c OK [13:16:50]MH_I2C_Read... [13:16:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:50]Read from MH i2c: E2 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: E2 03 00 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: E2 03 00 D7 0A 00 90 00 55 [13:16:50]RAPDU: 90 00 [13:16:50]wFMCommunicate OK [13:16:50]SAM_PROTO_ClearQueue done [13:16:50]KKMCreateOFDPacket [13:16:50]OFDProtocolAddRootSTLVToBuf [13:16:50]FM_MakeSignedData [13:16:50]FM_MakeSignedData [13:16:50]SAM_PROTO_SignData [13:16:50]wFMCommunicate request_size=4 [13:16:50]MH_SAM_APDU [13:16:50]CAPDU: 80 0D 01 02 [13:16:50]Write to MH i2c: E2 08 00 D8 0A 80 0D 01 02 00 00 00 00 5B [13:16:50]Write i2c OK [13:16:50]MH_I2C_Read... [13:16:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:50]Read from MH i2c: E2 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: E2 03 00 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: E2 03 00 D8 0A 00 90 00 56 [13:16:50]RAPDU: 90 00 [13:16:50]wFMCommunicate OK [13:16:50]wFMCommunicate request_size=255 [13:16:50]MH_SAM_APDU [13:16:50]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [13:16:50]Write to MH i2c: E2 02 01 D9 0A 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 2A [13:16:50]Write i2c OK [13:16:50]MH_I2C_Read... [13:16:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:51]Read from MH i2c: E2 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 03 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 03 00 D9 0A 00 90 00 57 [13:16:51]RAPDU: 90 00 [13:16:51]wFMCommunicate OK [13:16:51]wFMCommunicate request_size=151 [13:16:51]MH_SAM_APDU [13:16:51]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C2 18 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B5 C2 01 00 35 04 06 00 FD 24 24 07 25 CF [13:16:51]Write to MH i2c: E2 9A 00 DA 0A 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C2 18 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B5 C2 01 00 35 04 06 00 FD 24 24 07 25 CF 00 00 71 [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:51]Read from MH i2c: E2 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 03 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 03 00 DA 0A 00 90 00 58 [13:16:51]RAPDU: 90 00 [13:16:51]wFMCommunicate OK [13:16:51]wFMCommunicate request_size=4 [13:16:51]MH_SAM_APDU [13:16:51]CAPDU: 80 0D 03 02 [13:16:51]Write to MH i2c: E2 08 00 DB 0A 80 0D 03 02 00 00 00 00 60 [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:51]Read from MH i2c: E2 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 0B 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 0B 00 DB 0A 00 97 A2 61 86 46 61 17 2B 90 00 6A [13:16:51]RAPDU: 97 A2 61 86 46 61 17 2B 90 00 [13:16:51]wFMCommunicate OK [13:16:51]SAM_PROTO_SignData done [13:16:51]FM_MakeSignedData done [13:16:51]CreateOFDProtocolMessage [13:16:51]wFMCommunicate request_size=4 [13:16:51]MH_SAM_APDU [13:16:51]CAPDU: 80 11 00 00 [13:16:51]Write to MH i2c: E2 08 00 DC 0A 80 11 00 00 00 00 00 00 60 [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:51]Read from MH i2c: E2 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 17 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 17 00 DC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AE [13:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:16:51]wFMCommunicate OK [13:16:51]CreateOFDProtocolMessage done [13:16:51]OFDSenderStorePacket 115381 [13:16:51]StoreOFDPacket docnum=115381 [13:16:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9C 01 00 00 A0 B1 94 01 47 0E 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C2 18 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B5 C2 01 00 35 04 06 00 FD 24 24 07 25 CF 97 A2 61 86 46 61 17 2B [13:16:51]CheckFolder [13:16:51]dirname=/storage/ofd_packets [13:16:51]CheckFolder done [13:16:51]ProducePacketName [13:16:51]name=ofd_packets/00115381 [13:16:51]NVStorageSaveData ofd_packets/00115381 [13:16:51]File name is /storage/ofd_packets/00115381 [13:16:51]Write 442 bytes [13:16:51]NVStorageSaveData done [13:16:51]OFDSenderStorePacket done [13:16:51]KKMCreateOFDPacket done [13:16:51]NVStorageSaveData kkm_last_timestamp [13:16:51]File name is /storage/kkm_last_timestamp [13:16:51]Write 4 bytes [13:16:51]NVStorageSaveData done [13:16:51]ExternCall_PrintAddStr [13:16:51]wPrintStart [13:16:51]Write to MH i2c: 01 00 00 DD 0A E7 [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: 01 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: 01 07 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: 01 07 00 DD 0A 00 00 00 00 00 FF 0F FC [13:16:51]RasterBufferAndPrint [13:16:51]line Счет N : (3)343831 [13:16:51]line ИНН: 02508201610067 [13:16:51]line Контрольно-Кассовый Чек [13:16:51]line ПРОДАЖА [13:16:51]line Товар: 4631150682851 [13:16:51]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [13:16:51]line 1.000 * 95.00 [13:16:51]line = 95.00 [13:16:51]line НДС 12% НСП 1% [13:16:51]line > о реализуемом товаре [13:16:51]line Товар: 4870001570071 [13:16:51]line Напиток Pepsi 1л [13:16:51]line 1.000 * 110.00 [13:16:51]line = 110.00 [13:16:51]line НДС 12% НСП 1% [13:16:51]line > о реализуемом товаре [13:16:51]line ИТОГО: 205.00 [13:16:51]line НСП 1% : 1.81 [13:16:51]line НДС 12% : 21.77 [13:16:51]line Наличными: 205.00 [13:16:51]line Безнал.: 0.00 [13:16:51]line Место: АЗС № 90 "Партнер Нефть" [13:16:51]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:16:51]line СНО: Общий режим [13:16:51]line Чек 99 22.09.2024 13:16 [13:16:51]line Смена: 471 ФФД: 1.0 [13:16:51]line ЗНМ: 0300000120 [13:16:51]line РНМ: 0000000000091831 [13:16:51]line Версия ККМ: 001 [13:16:51]line ФМ: 0000000000871830 [13:16:51]line ФД: 115381 [13:16:51]line ФПД: 278331665098191 [13:16:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T131650&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115381&fm=278331665098191&tin=02508201610067®Number=0000000000091831&sum=20500 [13:16:51]line 0 [13:16:51]OFD Sender: Processing packet 115381 [packets to send 481, broken 480] [13:16:51]ProducePacketName [13:16:51]name=ofd_packets/00115381 [13:16:51]OFD Sender: To server: pG, [13:16:51]CommunicateWithHost lk.salyk.kg:30040 [13:16:51]ConnectInit lk.salyk.kg [13:16:51]written 0, free lines is 4095 [13:16:51]Connected sock=10 [13: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 31 38 33 30 9C 01 00 00 A0 B1 94 01 47 0E 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C2 18 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B5 C2 01 00 35 04 06 00 FD 24 24 07 25 CF 97 A2 61 86 46 61 17 2B [13:16:52]Write to MH i2c: 01 00 00 0B 0B 16 [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: 01 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: 01 07 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: 01 07 00 0B 0B 00 00 00 00 00 FC 0B 24 [13:16:52]RasterBufferAndPrint [13:16:52]line [13:16:52]line [13:16:52]line [13:16:52]line [13:16:52]line [13:16:52]written 0, free lines is 3071 [13:16:52]MH_Cut [13:16:52]Write to MH i2c: D1 01 00 12 0B 01 EF [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: D1 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: D1 01 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: D1 01 00 12 0B 00 EE [13:16:52]Write to MH i2c: 01 00 00 13 0B 1E [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A4 26 47 00 52 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 31 38 33 30 10 04 04 00 B5 C2 01 00 F4 03 04 00 09 BE EF 66 B6 04 01 00 00 C1 38 5D 7F BF A4 88 EB [13:16:52]CommunicateWithHost err = 0 [13:16:52]CheckOFDResponse [13:16:52]1017 (14) - 77093643461234 [13:16:52]1041 (16) - 0000000000871830 [13:16:52]1040 (4) - 115381 [13:16:52]1012 (4) - 22.09.2024 06:49 [13:16:52]1206 (1) - 0 [13:16:52]OFD Sender: Remove packet 115381 [13:16:52]ProducePacketName [13:16:52]name=ofd_packets/00115381 [13:16:52]NVStorageDeleteData [13:16:52]OFD Sender: No OFD packet to send [13:16:53]*** Cut start [13:16:53]*** Partial cut [13:16:53]*** CUTSNS_PIN = 1 [13:16:53]*** CUTSNS_PIN = 0 [13:16:53]*** Brake cut motor [13:16:54]Read from MH i2c: 01 [13:16:54]MH_I2C_Read... [13:16:54]*** Stop cut motor [13:16:54]*** Cut end [13:16:54]Read from MH i2c: 01 07 00 [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: 01 07 00 13 0B 00 00 00 00 00 FF 0F 33 [13:16:54]process_action close_receipt done [13:16:54]requested_data is exist [13:16:54]produce_requested_data [13:16:54]requested_item fm.sn is exist - process it [13:16:54]wFMCommunicate request_size=4 [13:16:54]MH_SAM_APDU [13:16:54]CAPDU: 80 11 00 00 [13:16:54]Write to MH i2c: E2 08 00 14 0B 80 11 00 00 00 00 00 00 99 [13:16:54]Write i2c OK [13:16:54]MH_I2C_Read... [13:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:54]Read from MH i2c: E2 [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: E2 17 00 [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: E2 17 00 14 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E7 [13:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:16:54]wFMCommunicate OK [13:16:54]requested_item fd.num is exist - process it [13:16:54]SAM_PROTO_GetFieldsCounters [13:16:54]wFMCommunicate request_size=4 [13:16:54]MH_SAM_APDU [13:16:54]CAPDU: 80 13 00 00 [13:16:54]Write to MH i2c: E2 08 00 15 0B 80 13 00 00 00 00 00 00 9C [13:16:54]Write i2c OK [13:16:54]MH_I2C_Read... [13:16:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:54]Read from MH i2c: E2 [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: E2 62 00 [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: E2 62 00 15 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B5 C2 01 00 0E 04 04 00 D7 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 2E [13:16:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B5 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:16:54]wFMCommunicate OK [13:16:54]SAM_PROTO_GetFieldsCounters done [13:16:54]requested_item shift.num is exist - process it [13:16:54]requested_item shift.opened is exist - process it [13:16:54]req_shift_opened [13:16:54]FM_GetShiftState [13:16:54]SAM_PROTO_GetShiftState [13:16:54]wFMCommunicate request_size=4 [13:16:54]MH_SAM_APDU [13:16:54]CAPDU: 80 13 01 00 [13:16:54]Write to MH i2c: E2 08 00 16 0B 80 13 01 00 00 00 00 00 9E [13:16:54]Write i2c OK [13:16:54]MH_I2C_Read... [13:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:54]Read from MH i2c: E2 [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: E2 0E 00 [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: E2 0E 00 16 0B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B7 [13:16:54]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:16:54]wFMCommunicate OK [13:16:54]SAM_PROTO_GetShiftState done [13:16:54]FM_GetShiftState done [13:16:54]req_shift_opened done [13:16:54]requested_item shift.open_date is exist - process it [13:16:54]req_shift_open_date [13:16:54]req_shift_open_date done [13:16:54]produce_requested_data done [13:16:54]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115381,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [13:16:54]process_action_free close_receipt [13:16:54]json_value_free [13:16:54]json_value_free done [13:16:54]process_json_proto returns [13:16:54]Send response to host [13:16:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115381,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [13:16:54]free response buf [13:16:54]execute_script done [13:16:54]execute_script returns [13:16:54]free content buf [13:16:54]Sock 8.Close socket [13:16:54]Sock 8.Thread stoped [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:11]accept exits with 9 [13:19:11]New connection [13:19:11]New thread 3066682724 created [13:19:11]Thread 3066826084 joined [13:19:11]Waiting for new connection... [13:19:11] Sock 9.Parse request [13:19:11]Sock 9.Check first char [13:19:11]Sock 9.First char is OK [13:19:11]request: POST /json_proto HTTP/1.0 [13:19:11]Method: POST [13:19:11]URL: /json_proto [13:19:11]Method is POST - this is cgi request [13:19:11]url: /json_proto [13:19:11]query_string will be loaded in cgi processing [13:19:11]execute_cgi json_proto POST (null) [13:19:11]execute_cgi path=json_proto method=POST [13:19:11]POST find Content-Length [13:19:11]Host: 172.17.41.136:8080 [13:19:11]Content-Length: 872 [13:19:11]Content-Type: application/json [13:19:11] [13:19:11]POST finish read [13:19:11]Found Content-Length = 872 [13:19:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343832", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622210309396", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \"OREO\" 38 \u0433\u0440", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:11]execute_script... [13:19:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343832", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622210309396", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \"OREO\" 38 \u0433\u0440", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:11]POST & json_proto [13:19:11]process_json_proto [13:19:11]json parsed OK: [13:19:11]protocol is kg_v1.0 [13:19:11]action value=close_receipt [13:19:11]process_action close_receipt [13:19:11]cmd_close_receipt [13:19:11]MH_GetDate [13:19:11]Write to MH i2c: F0 00 00 17 0B 11 [13:19:11]Write i2c OK [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: F0 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: F0 09 00 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: F0 09 00 17 0B 00 51 19 F0 66 1B D0 5A 64 83 [13:19:11]GetLastDocTimeStamp 1727011010 [13:19:11]current date 1727011153 [13:19:11]FM_GetShiftState [13:19:11]SAM_PROTO_GetShiftState [13:19:11]wFMCommunicate request_size=4 [13:19:11]MH_SAM_APDU [13:19:11]CAPDU: 80 13 01 00 [13:19:11]Write to MH i2c: E2 08 00 18 0B 80 13 01 00 00 00 00 00 A0 [13:19:11]Write i2c OK [13:19:11]MH_I2C_Read... [13:19:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:11]Read from MH i2c: E2 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 0E 00 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 0E 00 18 0B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B9 [13:19:11]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:19:11]wFMCommunicate OK [13:19:11]SAM_PROTO_GetShiftState done [13:19:11]FM_GetShiftState done [13:19:11]opened in 1726965840 [13:19:11]opened+sec_in_day 1727052240 [13:19:11]quantity*price = 4000 [13:19:11]sum+1 = 4001 [13:19:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 7622210309396 Печенье "OREO" 38 гр 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.92 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 100 22.09.2024 13:19 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115382 ФПД: 125763808393620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T131913&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115382&fm=125763808393620&tin=02508201610067®Number=0000000000091831&sum=10500 0 [13:19:12]StoreToDocumentArchive [13:19:12]shift 471 fd 115382 [13:19:12]save to /storage/0471/doc_00115382 [13:19:12]save last doc name /storage/0471/doc_00115382 to /storage/kkm_last_doc_name [13:19:12]save OK [13:19:12]Clear old archive folders... [13:19:12]ProcessDocumentItem done err = 0, tmpTLVsize=372 [13:19:12]tlvbuf is 01C3A9E0 [13:19:12]SAM_PROTO_ClearQueue [13:19:12]wFMCommunicate request_size=4 [13:19:12]MH_SAM_APDU [13:19:12]CAPDU: 80 09 00 00 [13:19:12]Write to MH i2c: E2 08 00 25 0B 80 09 00 00 00 00 00 00 A2 [13:19:12]Write i2c OK [13:19:12]MH_I2C_Read... [13:19:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:12]Read from MH i2c: E2 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: E2 03 00 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: E2 03 00 25 0B 00 90 00 A4 [13:19:12]RAPDU: 90 00 [13:19:12]wFMCommunicate OK [13:19:12]SAM_PROTO_ClearQueue done [13:19:12]KKMCreateOFDPacket [13:19:12]OFDProtocolAddRootSTLVToBuf [13:19:12]FM_MakeSignedData [13:19:12]FM_MakeSignedData [13:19:12]SAM_PROTO_SignData [13:19:12]wFMCommunicate request_size=4 [13:19:12]MH_SAM_APDU [13:19:12]CAPDU: 80 0D 01 02 [13:19:12]Write to MH i2c: E2 08 00 26 0B 80 0D 01 02 00 00 00 00 AA [13:19:12]Write i2c OK [13:19:12]MH_I2C_Read... [13:19:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:12]Read from MH i2c: E2 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: E2 03 00 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: E2 03 00 26 0B 00 90 00 A5 [13:19:12]RAPDU: 90 00 [13:19:12]wFMCommunicate OK [13:19:12]wFMCommunicate request_size=255 [13:19:12]MH_SAM_APDU [13:19:12]CAPDU: 80 0D 02 02 FA 03 00 74 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 [13:19:12]Write to MH i2c: E2 02 01 27 0B 80 0D 02 02 FA 00 03 00 74 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 00 00 29 [13:19:12]Write i2c OK [13:19:12]MH_I2C_Read... [13:19:13]OFD Sender: No OFD packet to send [13:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:13]Read from MH i2c: E2 [13:19:13]MH_I2C_Read... [13:19:13]Read from MH i2c: E2 03 00 [13:19:13]MH_I2C_Read... [13:19:13]Read from MH i2c: E2 03 00 27 0B 00 90 00 A6 [13:19:13]RAPDU: 90 00 [13:19:13]wFMCommunicate OK [13:19:13]wFMCommunicate request_size=131 [13:19:13]MH_SAM_APDU [13:19:13]CAPDU: 80 0D 02 02 7E 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 51 19 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B6 C2 01 00 35 04 06 00 72 61 AB 1F F9 94 [13:19:13]Write to MH i2c: E2 86 00 28 0B 80 0D 02 02 7E 00 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 51 19 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B6 C2 01 00 35 04 06 00 72 61 AB 1F F9 94 00 00 04 [13:19:13]Write i2c OK [13:19:13]MH_I2C_Read... [13:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:13]Read from MH i2c: E2 [13:19:13]MH_I2C_Read... [13:19:13]Read from MH i2c: E2 03 00 [13:19:13]MH_I2C_Read... [13:19:13]Read from MH i2c: E2 03 00 28 0B 00 90 00 A7 [13:19:13]RAPDU: 90 00 [13:19:13]wFMCommunicate OK [13:19:13]wFMCommunicate request_size=4 [13:19:13]MH_SAM_APDU [13:19:13]CAPDU: 80 0D 03 02 [13:19:13]Write to MH i2c: E2 08 00 29 0B 80 0D 03 02 00 00 00 00 AF [13:19:13]Write i2c OK [13:19:13]MH_I2C_Read... [13:19:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:13]Read from MH i2c: E2 [13:19:13]MH_I2C_Read... [13:19:13]Read from MH i2c: E2 0B 00 [13:19:13]MH_I2C_Read... [13:19:13]Read from MH i2c: E2 0B 00 29 0B 00 50 95 62 3E 4D B4 B4 6C 90 00 56 [13:19:13]RAPDU: 50 95 62 3E 4D B4 B4 6C 90 00 [13:19:13]wFMCommunicate OK [13:19:13]SAM_PROTO_SignData done [13:19:13]FM_MakeSignedData done [13:19:13]CreateOFDProtocolMessage [13:19:13]wFMCommunicate request_size=4 [13:19:13]MH_SAM_APDU [13:19:13]CAPDU: 80 11 00 00 [13:19:13]Write to MH i2c: E2 08 00 2A 0B 80 11 00 00 00 00 00 00 AF [13:19:13]Write i2c OK [13:19:13]MH_I2C_Read... [13:19:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:13]Read from MH i2c: E2 [13:19:13]MH_I2C_Read... [13:19:13]Read from MH i2c: E2 17 00 [13:19:13]MH_I2C_Read... [13:19:13]Read from MH i2c: E2 17 00 2A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FD [13:19:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:19:13]wFMCommunicate OK [13:19:13]CreateOFDProtocolMessage done [13:19:13]OFDSenderStorePacket 115382 [13:19:13]StoreOFDPacket docnum=115382 [13:19:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 88 01 00 00 E3 A4 80 01 78 8C 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 51 19 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B6 C2 01 00 35 04 06 00 72 61 AB 1F F9 94 50 95 62 3E 4D B4 B4 6C [13:19:13]CheckFolder [13:19:13]dirname=/storage/ofd_packets [13:19:13]CheckFolder done [13:19:13]ProducePacketName [13:19:13]name=ofd_packets/00115382 [13:19:13]NVStorageSaveData ofd_packets/00115382 [13:19:13]File name is /storage/ofd_packets/00115382 [13:19:13]Write 422 bytes [13:19:13]NVStorageSaveData done [13:19:13]OFDSenderStorePacket done [13:19:13]KKMCreateOFDPacket done [13:19:13]NVStorageSaveData kkm_last_timestamp [13:19:13]File name is /storage/kkm_last_timestamp [13:19:13]Write 4 bytes [13:19:13]NVStorageSaveData done [13:19:13]ExternCall_PrintAddStr [13:19:13]wPrintStart [13:19:13]Write to MH i2c: 01 00 00 2B 0B 36 [13:19:13]Write i2c OK [13:19:13]MH_I2C_Read... [13:19:13]Read from MH i2c: 01 [13:19:13]MH_I2C_Read... [13:19:13]Read from MH i2c: 01 07 00 [13:19:13]MH_I2C_Read... [13:19:13]Read from MH i2c: 01 07 00 2B 0B 00 00 00 00 00 FF 0F 4B [13:19:13]RasterBufferAndPrint [13:19:13]line Счет N : (3)343832 [13:19:13]line ИНН: 02508201610067 [13:19:13]line Контрольно-Кассовый Чек [13:19:13]line ПРОДАЖА [13:19:13]line Товар: 4700000160211 [13:19:13]line Вода Легенда 0,5л [13:19:13]line 1.000 * 40.00 [13:19:13]line = 40.00 [13:19:13]line НДС 12% НСП 1% [13:19:13]line > о реализуемом товаре [13:19:13]line Товар: 7622210309396 [13:19:13]line Печенье "OREO" 38 гр [13:19:13]line 1.000 * 65.00 [13:19:13]line = 65.00 [13:19:13]line НДС 12% НСП 1% [13:19:13]line > о реализуемом товаре [13:19:13]line ИТОГО: 105.00 [13:19:13]line НСП 1% : 0.92 [13:19:13]line НДС 12% : 11.15 [13:19:13]line Наличными: 105.00 [13:19:13]line Безнал.: 0.00 [13:19:13]line Место: АЗС № 90 "Партнер Нефть" [13:19:13]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:19:13]line СНО: Общий режим [13:19:13]line Чек 100 22.09.2024 13:19 [13:19:13]line Смена: 471 ФФД: 1.0 [13:19:13]line ЗНМ: 0300000120 [13:19:13]line РНМ: 0000000000091831 [13:19:13]line Версия ККМ: 001 [13:19:13]line ФМ: 0000000000871830 [13:19:13]line ФД: 115382 [13:19:13]line ФПД: 125763808393620 [13:19:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T131913&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115382&fm=125763808393620&tin=02508201610067®Number=0000000000091831&sum=10500 [13:19:13]line 0 [13:19:13]OFD Sender: Processing packet 115382 [packets to send 481, broken 480] [13:19:13]ProducePacketName [13:19:13]name=ofd_packets/00115382 [13:19:13]OFD Sender: To server: pG, [13:19:13]CommunicateWithHost lk.salyk.kg:30040 [13:19:13]ConnectInit lk.salyk.kg [13:19:13]written 0, free lines is 4095 [13:19:14]Connected sock=10 [13: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 31 38 33 30 88 01 00 00 E3 A4 80 01 78 8C 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 51 19 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B6 C2 01 00 35 04 06 00 72 61 AB 1F F9 94 50 95 62 3E 4D B4 B4 6C [13:19:14]Write to MH i2c: 01 00 00 58 0B 63 [13:19:14]Write i2c OK [13:19:14]MH_I2C_Read... [13:19:14]Read from MH i2c: 01 [13:19:14]MH_I2C_Read... [13:19:14]Read from MH i2c: 01 07 00 [13:19:14]MH_I2C_Read... [13:19:14]Read from MH i2c: 01 07 00 58 0B 00 00 00 00 00 17 0C 8D [13:19:14]RasterBufferAndPrint [13:19:14]line [13:19:14]line [13:19:14]line [13:19:14]line [13:19:14]line [13:19:14]written 0, free lines is 3097 [13:19:14]MH_Cut [13:19:14]Write to MH i2c: D1 01 00 5F 0B 01 3C [13:19:14]Write i2c OK [13:19:14]MH_I2C_Read... [13:19:14]Read from MH i2c: D1 [13:19:14]MH_I2C_Read... [13:19:14]Read from MH i2c: D1 01 00 [13:19:14]MH_I2C_Read... [13:19:14]Read from MH i2c: D1 01 00 5F 0B 00 3B [13:19:14]Write to MH i2c: 01 00 00 60 0B 6B [13:19:14]Write i2c OK [13:19:14]MH_I2C_Read... [13:19:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 FD A8 47 00 73 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B6 C2 01 00 F4 03 04 00 97 BE EF 66 B6 04 01 00 00 8D 23 98 CD 95 13 91 56 [13:19:14]CommunicateWithHost err = 0 [13:19:14]CheckOFDResponse [13:19:14]1017 (14) - 77093643461234 [13:19:14]1041 (16) - 0000000000871830 [13:19:14]1040 (4) - 115382 [13:19:14]1012 (4) - 22.09.2024 06:52 [13:19:14]1206 (1) - 0 [13:19:14]OFD Sender: Remove packet 115382 [13:19:14]ProducePacketName [13:19:14]name=ofd_packets/00115382 [13:19:14]NVStorageDeleteData [13:19:14]OFD Sender: No OFD packet to send [13:19:15]*** Cut start [13:19:15]*** Partial cut [13:19:15]*** CUTSNS_PIN = 1 [13:19:15]*** CUTSNS_PIN = 0 [13:19:15]*** Brake cut motor [13:19:16]Read from MH i2c: 01 [13:19:16]MH_I2C_Read... [13:19:16]*** Stop cut motor [13:19:16]*** Cut end [13:19:16]Read from MH i2c: 01 07 00 [13:19:16]MH_I2C_Read... [13:19:16]Read from MH i2c: 01 07 00 60 0B 00 00 00 00 00 FF 0F 80 [13:19:16]process_action close_receipt done [13:19:16]requested_data is exist [13:19:16]produce_requested_data [13:19:16]requested_item fm.sn is exist - process it [13:19:16]wFMCommunicate request_size=4 [13:19:16]MH_SAM_APDU [13:19:16]CAPDU: 80 11 00 00 [13:19:16]Write to MH i2c: E2 08 00 61 0B 80 11 00 00 00 00 00 00 E6 [13:19:16]Write i2c OK [13:19:16]MH_I2C_Read... [13:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:16]Read from MH i2c: E2 [13:19:16]MH_I2C_Read... [13:19:16]Read from MH i2c: E2 17 00 [13:19:16]MH_I2C_Read... [13:19:16]Read from MH i2c: E2 17 00 61 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 34 [13:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:19:16]wFMCommunicate OK [13:19:16]requested_item fd.num is exist - process it [13:19:16]SAM_PROTO_GetFieldsCounters [13:19:16]wFMCommunicate request_size=4 [13:19:16]MH_SAM_APDU [13:19:16]CAPDU: 80 13 00 00 [13:19:16]Write to MH i2c: E2 08 00 62 0B 80 13 00 00 00 00 00 00 E9 [13:19:16]Write i2c OK [13:19:16]MH_I2C_Read... [13:19:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:16]Read from MH i2c: E2 [13:19:16]MH_I2C_Read... [13:19:16]Read from MH i2c: E2 62 00 [13:19:16]MH_I2C_Read... [13:19:16]Read from MH i2c: E2 62 00 62 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B6 C2 01 00 0E 04 04 00 D7 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 7F [13: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B6 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:16]wFMCommunicate OK [13:19:16]SAM_PROTO_GetFieldsCounters done [13:19:16]requested_item shift.num is exist - process it [13:19:16]requested_item shift.opened is exist - process it [13:19:16]req_shift_opened [13:19:16]FM_GetShiftState [13:19:16]SAM_PROTO_GetShiftState [13:19:16]wFMCommunicate request_size=4 [13:19:16]MH_SAM_APDU [13:19:16]CAPDU: 80 13 01 00 [13:19:16]Write to MH i2c: E2 08 00 63 0B 80 13 01 00 00 00 00 00 EB [13:19:16]Write i2c OK [13:19:16]MH_I2C_Read... [13:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:16]Read from MH i2c: E2 [13:19:16]MH_I2C_Read... [13:19:16]Read from MH i2c: E2 0E 00 [13:19:16]MH_I2C_Read... [13:19:16]Read from MH i2c: E2 0E 00 63 0B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 04 [13:19:16]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:19:16]wFMCommunicate OK [13:19:16]SAM_PROTO_GetShiftState done [13:19:16]FM_GetShiftState done [13:19:16]req_shift_opened done [13:19:16]requested_item shift.open_date is exist - process it [13:19:16]req_shift_open_date [13:19:16]req_shift_open_date done [13:19:16]produce_requested_data done [13:19:16]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115382,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [13:19:16]process_action_free close_receipt [13:19:16]json_value_free [13:19:16]json_value_free done [13:19:16]process_json_proto returns [13:19:16]Send response to host [13:19:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115382,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [13:19:16]free response buf [13:19:16]execute_script done [13:19:16]execute_script returns [13:19:16]free content buf [13:19:16]Sock 9.Close socket [13:19:16]Sock 9.Thread stoped [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:39]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:17]accept exits with 8 [13:22:17]New connection [13:22:17]New thread 3066826084 created [13:22:17]Thread 3066682724 joined [13:22:17]Waiting for new connection... [13:22:17] Sock 8.Parse request [13:22:17]Sock 8.Check first char [13:22:17]Sock 8.First char is OK [13:22:17]request: POST /json_proto HTTP/1.0 [13:22:17]Method: POST [13:22:17]URL: /json_proto [13:22:17]Method is POST - this is cgi request [13:22:17]url: /json_proto [13:22:17]query_string will be loaded in cgi processing [13:22:17]execute_cgi json_proto POST (null) [13:22:17]execute_cgi path=json_proto method=POST [13:22:17]POST find Content-Length [13:22:17]Host: 172.17.41.136:8080 [13:22:17]Content-Length: 1670 [13:22:17]Content-Type: application/json [13:22:17] [13:22:17]POST finish read [13:22:17]Found Content-Length = 1670 [13:22:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343833", "tax_sys" : 0, "items" : [ { "code": "4601025118761", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0442\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 0,9", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 440.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:17]execute_script... [13:22:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343833", "tax_sys" : 0, "items" : [ { "code": "4601025118761", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0442\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 0,9", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 440.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:17]POST & json_proto [13:22:17]process_json_proto [13:22:17]json parsed OK: [13:22:17]protocol is kg_v1.0 [13:22:17]action value=close_receipt [13:22:17]process_action close_receipt [13:22:17]cmd_close_receipt [13:22:17]MH_GetDate [13:22:17]Write to MH i2c: F0 00 00 64 0B 5E [13:22:17]Write i2c OK [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: F0 [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: F0 09 00 [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: F0 09 00 64 0B 00 0A 1A F0 66 1B D0 5A 64 8A [13:22:17]GetLastDocTimeStamp 1727011153 [13:22:17]current date 1727011338 [13:22:17]FM_GetShiftState [13:22:17]SAM_PROTO_GetShiftState [13:22:17]wFMCommunicate request_size=4 [13:22:17]MH_SAM_APDU [13:22:17]CAPDU: 80 13 01 00 [13:22:17]Write to MH i2c: E2 08 00 65 0B 80 13 01 00 00 00 00 00 ED [13:22:17]Write i2c OK [13:22:17]MH_I2C_Read... [13:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:17]Read from MH i2c: E2 [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: E2 0E 00 [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: E2 0E 00 65 0B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 06 [13:22:17]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:22:17]wFMCommunicate OK [13:22:17]SAM_PROTO_GetShiftState done [13:22:17]FM_GetShiftState done [13:22:17]opened in 1726965840 [13:22:17]opened+sec_in_day 1727052240 [13:22:17]quantity*price = 13500 [13:22:17]sum+1 = 13501 [13:22:17]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480364 Напиток энерг Nitro экзотик 0.45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202522671 Garden напиток со вкусом граната 1,20 ПЭ 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 440.00 НСП 1% : 3.89 НДС 12% : 46.73 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 101 22.09.2024 13:22 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115383 ФПД: 158092699586223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T132218&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115383&fm=158092699586223&tin=02508201610067®Number=0000000000091831&sum=44000 0 [13:22:18]StoreToDocumentArchive [13:22:18]shift 471 fd 115383 [13:22:18]save to /storage/0471/doc_00115383 [13:22:18]save last doc name /storage/0471/doc_00115383 to /storage/kkm_last_doc_name [13:22:18]save OK [13:22:18]Clear old archive folders... [13:22:18]ProcessDocumentItem done err = 0, tmpTLVsize=700 [13:22:18]tlvbuf is 01BFA870 [13:22:18]SAM_PROTO_ClearQueue [13:22:18]wFMCommunicate request_size=4 [13:22:18]MH_SAM_APDU [13:22:18]CAPDU: 80 09 00 00 [13:22:18]Write to MH i2c: E2 08 00 72 0B 80 09 00 00 00 00 00 00 EF [13:22:18]Write i2c OK [13:22:18]MH_I2C_Read... [13:22:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:18]Read from MH i2c: E2 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 03 00 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 03 00 72 0B 00 90 00 F1 [13:22:18]RAPDU: 90 00 [13:22:18]wFMCommunicate OK [13:22:18]SAM_PROTO_ClearQueue done [13:22:18]KKMCreateOFDPacket [13:22:18]OFDProtocolAddRootSTLVToBuf [13:22:18]FM_MakeSignedData [13:22:18]FM_MakeSignedData [13:22:18]SAM_PROTO_SignData [13:22:18]wFMCommunicate request_size=4 [13:22:18]MH_SAM_APDU [13:22:18]CAPDU: 80 0D 01 02 [13:22:18]Write to MH i2c: E2 08 00 73 0B 80 0D 01 02 00 00 00 00 F7 [13:22:18]Write i2c OK [13:22:18]MH_I2C_Read... [13:22:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:18]Read from MH i2c: E2 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 03 00 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 03 00 73 0B 00 90 00 F2 [13:22:18]RAPDU: 90 00 [13:22:18]wFMCommunicate OK [13:22:18]wFMCommunicate request_size=255 [13:22:18]MH_SAM_APDU [13:22:18]CAPDU: 80 0D 02 02 FA 03 00 BC 02 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 38 37 36 31 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 39 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 [13:22:18]Write to MH i2c: E2 02 01 74 0B 80 0D 02 02 FA 00 03 00 BC 02 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 38 37 36 31 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 39 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 A9 [13:22:18]Write i2c OK [13:22:18]MH_I2C_Read... [13:22:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:18]Read from MH i2c: E2 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 03 00 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 03 00 74 0B 00 90 00 F3 [13:22:18]RAPDU: 90 00 [13:22:18]wFMCommunicate OK [13:22:18]wFMCommunicate request_size=255 [13:22:18]MH_SAM_APDU [13:22:18]CAPDU: 80 0D 02 02 FA 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 [13:22:18]Write to MH i2c: E2 02 01 75 0B 80 0D 02 02 FA 00 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 C5 [13:22:18]Write i2c OK [13:22:18]MH_I2C_Read... [13:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:19]Read from MH i2c: E2 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 03 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 03 00 75 0B 00 90 00 F4 [13:22:19]RAPDU: 90 00 [13:22:19]wFMCommunicate OK [13:22:19]wFMCommunicate request_size=209 [13:22:19]MH_SAM_APDU [13:22:19]CAPDU: 80 0D 02 02 CC 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 0A 1A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B7 C2 01 00 35 04 06 00 8F C8 D3 33 4E AF [13:22:19]Write to MH i2c: E2 D4 00 76 0B 80 0D 02 02 CC 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 0A 1A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B7 C2 01 00 35 04 06 00 8F C8 D3 33 4E AF 00 00 61 [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:19]Read from MH i2c: E2 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 03 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 03 00 76 0B 00 90 00 F5 [13:22:19]RAPDU: 90 00 [13:22:19]wFMCommunicate OK [13:22:19]wFMCommunicate request_size=4 [13:22:19]MH_SAM_APDU [13:22:19]CAPDU: 80 0D 03 02 [13:22:19]Write to MH i2c: E2 08 00 77 0B 80 0D 03 02 00 00 00 00 FD [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:19]Read from MH i2c: E2 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 0B 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 0B 00 77 0B 00 F6 20 70 53 9B 8B 7B EE 90 00 66 [13:22:19]RAPDU: F6 20 70 53 9B 8B 7B EE 90 00 [13:22:19]wFMCommunicate OK [13:22:19]SAM_PROTO_SignData done [13:22:19]FM_MakeSignedData done [13:22:19]CreateOFDProtocolMessage [13:22:19]wFMCommunicate request_size=4 [13:22:19]MH_SAM_APDU [13:22:19]CAPDU: 80 11 00 00 [13:22:19]Write to MH i2c: E2 08 00 78 0B 80 11 00 00 00 00 00 00 FD [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:19]Read from MH i2c: E2 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 17 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 17 00 78 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4B [13:22:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:22:19]wFMCommunicate OK [13:22:19]CreateOFDProtocolMessage done [13:22:19]OFDSenderStorePacket 115383 [13:22:19]StoreOFDPacket docnum=115383 [13:22:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 D0 02 00 00 68 C0 C8 02 F4 AC 5A 03 01 00 03 00 BC 02 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 38 37 36 31 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 39 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 0A 1A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B7 C2 01 00 35 04 06 00 8F C8 D3 33 4E AF F6 20 70 53 9B 8B 7B EE [13:22:19]CheckFolder [13:22:19]dirname=/storage/ofd_packets [13:22:19]CheckFolder done [13:22:19]ProducePacketName [13:22:19]name=ofd_packets/00115383 [13:22:19]NVStorageSaveData ofd_packets/00115383 [13:22:19]File name is /storage/ofd_packets/00115383 [13:22:19]Write 750 bytes [13:22:19]NVStorageSaveData done [13:22:19]OFDSenderStorePacket done [13:22:19]KKMCreateOFDPacket done [13:22:19]NVStorageSaveData kkm_last_timestamp [13:22:19]File name is /storage/kkm_last_timestamp [13:22:19]Write 4 bytes [13:22:19]NVStorageSaveData done [13:22:19]ExternCall_PrintAddStr [13:22:19]wPrintStart [13:22:19]Write to MH i2c: 01 00 00 79 0B 84 [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: 01 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: 01 07 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: 01 07 00 79 0B 00 00 00 00 00 FF 0F 99 [13:22:19]RasterBufferAndPrint [13:22:19]line Счет N : (3)343833 [13:22:19]line ИНН: 02508201610067 [13:22:19]line Контрольно-Кассовый Чек [13:22:19]line ПРОДАЖА [13:22:19]line Товар: 4601025118761 [13:22:19]line Напиток Фрутмотив тропический микс 0,9 [13:22:19]line 1.000 * 135.00 [13:22:19]line = 135.00 [13:22:19]line НДС 12% НСП 1% [13:22:19]line > о реализуемом товаре [13:22:19]line Товар: 4700000480364 [13:22:19]line Напиток энерг Nitro экзотик 0.45 ж/б [13:22:19]line 1.000 * 95.00 [13:22:19]line = 95.00 [13:22:19]line НДС 12% НСП 1% [13:22:19]line > о реализуемом товаре [13:22:19]line Товар: 4600682557456 [13:22:19]line Напиток FLash up energy эн ж/б 0,5/0,45л [13:22:19]line 1.000 * 85.00 [13:22:19]line = 85.00 [13:22:19]line НДС 12% НСП 1% [13:22:19]line > о реализуемом товаре [13:22:19]line Товар: 4870202522671 [13:22:19]line Garden напиток со вкусом граната 1,20 ПЭ [13:22:19]line 1.000 * 125.00 [13:22:19]line = 125.00 [13:22:19]line НДС 12% НСП 1% [13:22:19]line > о реализуемом товаре [13:22:19]line ИТОГО: 440.00 [13:22:19]line НСП 1% : 3.89 [13:22:19]line НДС 12% : 46.73 [13:22:19]line Наличными: 440.00 [13:22:19]line Безнал.: 0.00 [13:22:19]line Место: АЗС № 90 "Партнер Нефть" [13:22:19]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:22:19]line СНО: Общий режим [13:22:19]line Чек 101 22.09.2024 13:22 [13:22:19]line Смена: 471 ФФД: 1.0 [13:22:19]line ЗНМ: 0300000120 [13:22:19]line РНМ: 0000000000091831 [13:22:19]line Версия ККМ: 001 [13:22:19]line ФМ: 0000000000871830 [13:22:19]line ФД: 115383 [13:22:19]line ФПД: 158092699586223 [13:22:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T132218&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115383&fm=158092699586223&tin=02508201610067®Number=0000000000091831&sum=44000 [13:22:19]OFD Sender: Processing packet 115383 [packets to send 481, broken 480] [13:22:19]ProducePacketName [13:22:19]name=ofd_packets/00115383 [13:22:19]OFD Sender: To server: pG, [13:22:19]CommunicateWithHost lk.salyk.kg:30040 [13:22:19]ConnectInit lk.salyk.kg [13:22:19]line 0 [13:22:19]written 0, free lines is 4095 [13:22:20]Connected sock=10 [13:22:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 D0 02 00 00 68 C0 C8 02 F4 AC 5A 03 01 00 03 00 BC 02 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 38 37 36 31 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 39 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 0A 1A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B7 C2 01 00 35 04 06 00 8F C8 D3 33 4E AF F6 20 70 53 9B 8B 7B EE [13:22:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A8 BA 47 00 B9 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B7 C2 01 00 F4 03 04 00 51 BF EF 66 B6 04 01 00 00 79 66 EB A4 2B 6A FD 6D [13:22:20]CommunicateWithHost err = 0 [13:22:20]CheckOFDResponse [13:22:20]1017 (14) - 77093643461234 [13:22:20]1041 (16) - 0000000000871830 [13:22:20]1040 (4) - 115383 [13:22:20]1012 (4) - 22.09.2024 06:55 [13:22:20]1206 (1) - 0 [13:22:20]OFD Sender: Remove packet 115383 [13:22:20]ProducePacketName [13:22:20]name=ofd_packets/00115383 [13:22:20]NVStorageDeleteData [13:22:20]Write to MH i2c: 01 00 00 B6 0B C1 [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: 01 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: 01 07 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: 01 07 00 B6 0B 00 00 00 00 00 B3 0A 85 [13:22:20]RasterBufferAndPrint [13:22:20]line [13:22:20]line [13:22:20]line [13:22:20]line [13:22:20]line [13:22:20]written 0, free lines is 2744 [13:22:20]MH_Cut [13:22:20]Write to MH i2c: D1 01 00 BD 0B 01 9A [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: D1 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: D1 01 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: D1 01 00 BD 0B 00 99 [13:22:20]Write to MH i2c: 01 00 00 BE 0B C9 [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:21]OFD Sender: No OFD packet to send [13:22:22]*** Cut start [13:22:22]*** Partial cut [13:22:22]*** CUTSNS_PIN = 1 [13:22:22]*** CUTSNS_PIN = 0 [13:22:22]*** Brake cut motor [13:22:22]Read from MH i2c: 01 [13:22:22]MH_I2C_Read... [13:22:22]*** Stop cut motor [13:22:22]Read from MH i2c: 01 07 00 [13:22:22]MH_I2C_Read... [13:22:22]*** Cut end [13:22:22]Read from MH i2c: 01 07 00 BE 0B 00 00 00 00 00 FF 0F DE [13:22:22]process_action close_receipt done [13:22:22]requested_data is exist [13:22:22]produce_requested_data [13:22:22]requested_item fm.sn is exist - process it [13:22:22]wFMCommunicate request_size=4 [13:22:22]MH_SAM_APDU [13:22:22]CAPDU: 80 11 00 00 [13:22:22]Write to MH i2c: E2 08 00 BF 0B 80 11 00 00 00 00 00 00 44 [13:22:22]Write i2c OK [13:22:22]MH_I2C_Read... [13:22:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:23]Read from MH i2c: E2 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 17 00 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 17 00 BF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 92 [13:22:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:22:23]wFMCommunicate OK [13:22:23]requested_item fd.num is exist - process it [13:22:23]SAM_PROTO_GetFieldsCounters [13:22:23]wFMCommunicate request_size=4 [13:22:23]MH_SAM_APDU [13:22:23]CAPDU: 80 13 00 00 [13:22:23]Write to MH i2c: E2 08 00 C0 0B 80 13 00 00 00 00 00 00 47 [13:22:23]Write i2c OK [13:22:23]MH_I2C_Read... [13:22:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:23]Read from MH i2c: E2 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 62 00 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 62 00 C0 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B7 C2 01 00 0E 04 04 00 D7 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 E1 [13: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B7 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:23]wFMCommunicate OK [13:22:23]SAM_PROTO_GetFieldsCounters done [13:22:23]requested_item shift.num is exist - process it [13:22:23]requested_item shift.opened is exist - process it [13:22:23]req_shift_opened [13:22:23]FM_GetShiftState [13:22:23]SAM_PROTO_GetShiftState [13:22:23]wFMCommunicate request_size=4 [13:22:23]MH_SAM_APDU [13:22:23]CAPDU: 80 13 01 00 [13:22:23]Write to MH i2c: E2 08 00 C1 0B 80 13 01 00 00 00 00 00 49 [13:22:23]Write i2c OK [13:22:23]MH_I2C_Read... [13:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:23]Read from MH i2c: E2 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 0E 00 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 0E 00 C1 0B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 62 [13:22:23]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:22:23]wFMCommunicate OK [13:22:23]SAM_PROTO_GetShiftState done [13:22:23]FM_GetShiftState done [13:22:23]req_shift_opened done [13:22:23]requested_item shift.open_date is exist - process it [13:22:23]req_shift_open_date [13:22:23]req_shift_open_date done [13:22:23]produce_requested_data done [13:22:23]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115383,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [13:22:23]process_action_free close_receipt [13:22:23]json_value_free [13:22:23]json_value_free done [13:22:23]process_json_proto returns [13:22:23]Send response to host [13:22:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115383,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [13:22:23]free response buf [13:22:23]execute_script done [13:22:23]execute_script returns [13:22:23]free content buf [13:22:23]Sock 8.Close socket [13:22:23]Sock 8.Thread stoped [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]OFD Sender: No OFD packet to send [13:29:20]accept exits with 9 [13:29:20]New connection [13:29:20]New thread 3066682724 created [13:29:20]Thread 3066826084 joined [13:29:20]Waiting for new connection... [13:29:20] Sock 9.Parse request [13:29:20]Sock 9.Check first char [13:29:20]Sock 9.First char is OK [13:29:20]request: POST /json_proto HTTP/1.0 [13:29:20]Method: POST [13:29:20]URL: /json_proto [13:29:20]Method is POST - this is cgi request [13:29:20]url: /json_proto [13:29:20]query_string will be loaded in cgi processing [13:29:20]execute_cgi json_proto POST (null) [13:29:20]execute_cgi path=json_proto method=POST [13:29:20]POST find Content-Length [13:29:20]Host: 172.17.41.136:8080 [13:29:20]Content-Length: 1137 [13:29:20]Content-Type: application/json [13:29:20] [13:29:20]POST finish read [13:29:20]Found Content-Length = 1137 [13:29:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343834", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:20]execute_script... [13:29:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343834", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:20]POST & json_proto [13:29:20]process_json_proto [13:29:20]json parsed OK: [13:29:20]protocol is kg_v1.0 [13:29:20]action value=close_receipt [13:29:20]process_action close_receipt [13:29:20]cmd_close_receipt [13:29:20]MH_GetDate [13:29:20]Write to MH i2c: F0 00 00 C2 0B BC [13:29:20]Write i2c OK [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: F0 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: F0 09 00 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: F0 09 00 C2 0B 00 B2 1B F0 66 1B D0 5A 64 91 [13:29:20]GetLastDocTimeStamp 1727011338 [13:29:20]current date 1727011762 [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 C3 0B 80 13 01 00 00 00 00 00 4B [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 C3 0B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 64 [13:29:20]RAPDU: 09 00 01 50 68 EF 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]opened in 1726965840 [13:29:20]opened+sec_in_day 1727052240 [13:29:20]quantity*price = 11000 [13:29:20]sum+1 = 11001 [13:29:20]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.25 НДС 12% : 27.08 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 102 22.09.2024 13:29 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115384 ФПД: 51629641932050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T132922&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115384&fm=51629641932050&tin=02508201610067®Number=0000000000091831&sum=25500 0 [13:29:21]StoreToDocumentArchive [13:29:21]shift 471 fd 115384 [13:29:21]save to /storage/0471/doc_00115384 [13:29:21]save last doc name /storage/0471/doc_00115384 to /storage/kkm_last_doc_name [13:29:21]save OK [13:29:21]Clear old archive folders... [13:29:21]ProcessDocumentItem done err = 0, tmpTLVsize=475 [13:29:21]tlvbuf is 01BFB160 [13:29:21]SAM_PROTO_ClearQueue [13:29:21]wFMCommunicate request_size=4 [13:29:21]MH_SAM_APDU [13:29:21]CAPDU: 80 09 00 00 [13:29:21]Write to MH i2c: E2 08 00 D0 0B 80 09 00 00 00 00 00 00 4D [13:29:22]OFD Sender: No OFD packet to send [13:29:22]Write i2c OK [13:29:22]MH_I2C_Read... [13:29:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:22]Read from MH i2c: E2 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: E2 03 00 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: E2 03 00 D0 0B 00 90 00 4F [13:29:22]RAPDU: 90 00 [13:29:22]wFMCommunicate OK [13:29:22]SAM_PROTO_ClearQueue done [13:29:22]KKMCreateOFDPacket [13:29:22]OFDProtocolAddRootSTLVToBuf [13:29:22]FM_MakeSignedData [13:29:22]FM_MakeSignedData [13:29:22]SAM_PROTO_SignData [13:29:22]wFMCommunicate request_size=4 [13:29:22]MH_SAM_APDU [13:29:22]CAPDU: 80 0D 01 02 [13:29:22]Write to MH i2c: E2 08 00 D1 0B 80 0D 01 02 00 00 00 00 55 [13:29:22]Write i2c OK [13:29:22]MH_I2C_Read... [13:29:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:22]Read from MH i2c: E2 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: E2 03 00 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: E2 03 00 D1 0B 00 90 00 50 [13:29:22]RAPDU: 90 00 [13:29:22]wFMCommunicate OK [13:29:22]wFMCommunicate request_size=255 [13:29:22]MH_SAM_APDU [13:29:22]CAPDU: 80 0D 02 02 FA 03 00 DB 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 [13:29:22]Write to MH i2c: E2 02 01 D2 0B 80 0D 02 02 FA 00 03 00 DB 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 00 00 F3 [13:29:22]Write i2c OK [13:29:22]MH_I2C_Read... [13:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:22]Read from MH i2c: E2 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: E2 03 00 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: E2 03 00 D2 0B 00 90 00 51 [13:29:22]RAPDU: 90 00 [13:29:22]wFMCommunicate OK [13:29:22]wFMCommunicate request_size=234 [13:29:22]MH_SAM_APDU [13:29:22]CAPDU: 80 0D 02 02 E5 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 B2 1B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B8 C2 01 00 35 04 06 00 2E F4 F6 77 9D 12 [13:29:22]Write to MH i2c: E2 ED 00 D3 0B 80 0D 02 02 E5 00 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 B2 1B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B8 C2 01 00 35 04 06 00 2E F4 F6 77 9D 12 00 00 E5 [13:29:22]Write i2c OK [13:29:22]MH_I2C_Read... [13:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:22]Read from MH i2c: E2 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: E2 03 00 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: E2 03 00 D3 0B 00 90 00 52 [13:29:22]RAPDU: 90 00 [13:29:22]wFMCommunicate OK [13:29:22]wFMCommunicate request_size=4 [13:29:22]MH_SAM_APDU [13:29:22]CAPDU: 80 0D 03 02 [13:29:22]Write to MH i2c: E2 08 00 D4 0B 80 0D 03 02 00 00 00 00 5A [13:29:22]Write i2c OK [13:29:22]MH_I2C_Read... [13:29:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:23]Read from MH i2c: E2 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: E2 0B 00 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: E2 0B 00 D4 0B 00 16 84 71 41 92 55 63 24 90 00 15 [13:29:23]RAPDU: 16 84 71 41 92 55 63 24 90 00 [13:29:23]wFMCommunicate OK [13:29:23]SAM_PROTO_SignData done [13:29:23]FM_MakeSignedData done [13:29:23]CreateOFDProtocolMessage [13:29:23]wFMCommunicate request_size=4 [13:29:23]MH_SAM_APDU [13:29:23]CAPDU: 80 11 00 00 [13:29:23]Write to MH i2c: E2 08 00 D5 0B 80 11 00 00 00 00 00 00 5A [13:29:23]Write i2c OK [13:29:23]MH_I2C_Read... [13:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:23]Read from MH i2c: E2 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: E2 17 00 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: E2 17 00 D5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A8 [13:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:29:23]wFMCommunicate OK [13:29:23]CreateOFDProtocolMessage done [13:29:23]OFDSenderStorePacket 115384 [13:29:23]StoreOFDPacket docnum=115384 [13:29:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 EF 01 00 00 9A 68 E7 01 92 CB 5A 03 01 00 03 00 DB 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 B2 1B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B8 C2 01 00 35 04 06 00 2E F4 F6 77 9D 12 16 84 71 41 92 55 63 24 [13:29:23]CheckFolder [13:29:23]dirname=/storage/ofd_packets [13:29:23]CheckFolder done [13:29:23]ProducePacketName [13:29:23]name=ofd_packets/00115384 [13:29:23]NVStorageSaveData ofd_packets/00115384 [13:29:23]File name is /storage/ofd_packets/00115384 [13:29:23]Write 525 bytes [13:29:23]NVStorageSaveData done [13:29:23]OFDSenderStorePacket done [13:29:23]KKMCreateOFDPacket done [13:29:23]NVStorageSaveData kkm_last_timestamp [13:29:23]File name is /storage/kkm_last_timestamp [13:29:23]Write 4 bytes [13:29:23]NVStorageSaveData done [13:29:23]ExternCall_PrintAddStr [13:29:23]wPrintStart [13:29:23]Write to MH i2c: 01 00 00 D6 0B E1 [13:29:23]Write i2c OK [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: 01 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: 01 07 00 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: 01 07 00 D6 0B 00 00 00 00 00 FF 0F F6 [13:29:23]RasterBufferAndPrint [13:29:23]line Счет N : (3)343834 [13:29:23]line ИНН: 02508201610067 [13:29:23]line Контрольно-Кассовый Чек [13:29:23]line ПРОДАЖА [13:29:23]line Товар: 4870001570071 [13:29:23]line Напиток Pepsi 1л [13:29:23]line 1.000 * 110.00 [13:29:23]line = 110.00 [13:29:23]line НДС 12% НСП 1% [13:29:23]line > о реализуемом товаре [13:29:23]line Товар: 5449000054227 [13:29:23]line Напиток Кока-Кола 1л [13:29:23]line 1.000 * 105.00 [13:29:23]line = 105.00 [13:29:23]line НДС 12% НСП 1% [13:29:23]line > о реализуемом товаре [13:29:23]line Товар: 4700000160211 [13:29:23]line Вода Легенда 0,5л [13:29:23]line 1.000 * 40.00 [13:29:23]line = 40.00 [13:29:23]line НДС 12% НСП 1% [13:29:23]line > о реализуемом товаре [13:29:23]line ИТОГО: 255.00 [13:29:23]line НСП 1% : 2.25 [13:29:23]line НДС 12% : 27.08 [13:29:23]line Наличными: 255.00 [13:29:23]line Безнал.: 0.00 [13:29:23]line Место: АЗС № 90 "Партнер Нефть" [13:29:23]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:29:23]line СНО: Общий режим [13:29:23]line Чек 102 22.09.2024 13:29 [13:29:23]line Смена: 471 ФФД: 1.0 [13:29:23]line ЗНМ: 0300000120 [13:29:23]line РНМ: 0000000000091831 [13:29:23]line Версия ККМ: 001 [13:29:23]line ФМ: 0000000000871830 [13:29:23]line ФД: 115384 [13:29:23]line ФПД: 51629641932050 [13:29:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T132922&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115384&fm=51629641932050&tin=02508201610067®Number=0000000000091831&sum=25500 [13:29:23]line 0 [13:29:23]written 0, free lines is 4095 [13:29:23]OFD Sender: Processing packet 115384 [packets to send 481, broken 480] [13:29:23]ProducePacketName [13:29:23]name=ofd_packets/00115384 [13:29:23]OFD Sender: To server: pG, [13:29:23]CommunicateWithHost lk.salyk.kg:30040 [13:29:23]ConnectInit lk.salyk.kg [13:29:23]Connected sock=10 [13:29:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 EF 01 00 00 9A 68 E7 01 92 CB 5A 03 01 00 03 00 DB 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 B2 1B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B8 C2 01 00 35 04 06 00 2E F4 F6 77 9D 12 16 84 71 41 92 55 63 24 [13:29:23]Write to MH i2c: 01 00 00 09 0C 15 [13:29:23]Write i2c OK [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: 01 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: 01 07 00 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: 01 07 00 09 0C 00 00 00 00 00 8E 0B B5 [13:29:23]RasterBufferAndPrint [13:29:23]line [13:29:23]line [13:29:23]line [13:29:23]line [13:29:23]line [13:29:23]written 0, free lines is 2962 [13:29:23]MH_Cut [13:29:23]Write to MH i2c: D1 01 00 10 0C 01 EE [13:29:23]Write i2c OK [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: D1 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: D1 01 00 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: D1 01 00 10 0C 00 ED [13:29:23]Write to MH i2c: 01 00 00 11 0C 1D [13:29:23]Write i2c OK [13:29:23]MH_I2C_Read... [13:29:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E1 6A 47 00 21 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 31 38 33 30 10 04 04 00 B8 C2 01 00 F4 03 04 00 F8 C0 EF 66 B6 04 01 00 00 3A C5 86 A1 44 DB F6 05 [13:29:23]CommunicateWithHost err = 0 [13:29:23]CheckOFDResponse [13:29:23]1017 (14) - 77093643461234 [13:29:23]1041 (16) - 0000000000871830 [13:29:23]1040 (4) - 115384 [13:29:23]1012 (4) - 22.09.2024 07:02 [13:29:23]1206 (1) - 0 [13:29:23]OFD Sender: Remove packet 115384 [13:29:23]ProducePacketName [13:29:23]name=ofd_packets/00115384 [13:29:23]NVStorageDeleteData [13:29:24]OFD Sender: No OFD packet to send [13:29:25]*** Cut start [13:29:25]*** Partial cut [13:29:25]*** CUTSNS_PIN = 1 [13:29:25]*** CUTSNS_PIN = 0 [13:29:25]*** Brake cut motor [13:29:25]Read from MH i2c: 01 [13:29:25]MH_I2C_Read... [13:29:25]*** Stop cut motor [13:29:25]*** Cut end [13:29:25]Read from MH i2c: 01 07 00 [13:29:25]MH_I2C_Read... [13:29:25]Read from MH i2c: 01 07 00 11 0C 00 00 00 00 00 FF 0F 32 [13:29:25]process_action close_receipt done [13:29:25]requested_data is exist [13:29:25]produce_requested_data [13:29:25]requested_item fm.sn is exist - process it [13:29:25]wFMCommunicate request_size=4 [13:29:25]MH_SAM_APDU [13:29:25]CAPDU: 80 11 00 00 [13:29:25]Write to MH i2c: E2 08 00 12 0C 80 11 00 00 00 00 00 00 98 [13:29:25]Write i2c OK [13:29:25]MH_I2C_Read... [13:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:25]Read from MH i2c: E2 [13:29:25]MH_I2C_Read... [13:29:25]Read from MH i2c: E2 17 00 [13:29:25]MH_I2C_Read... [13:29:25]Read from MH i2c: E2 17 00 12 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E6 [13:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:29:25]wFMCommunicate OK [13:29:25]requested_item fd.num is exist - process it [13:29:25]SAM_PROTO_GetFieldsCounters [13:29:25]wFMCommunicate request_size=4 [13:29:25]MH_SAM_APDU [13:29:25]CAPDU: 80 13 00 00 [13:29:25]Write to MH i2c: E2 08 00 13 0C 80 13 00 00 00 00 00 00 9B [13:29:25]Write i2c OK [13:29:25]MH_I2C_Read... [13:29:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:25]Read from MH i2c: E2 [13:29:25]MH_I2C_Read... [13:29:25]Read from MH i2c: E2 62 00 [13:29:25]MH_I2C_Read... [13:29:25]Read from MH i2c: E2 62 00 13 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B8 C2 01 00 0E 04 04 00 D7 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 39 [13:29:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B8 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:25]wFMCommunicate OK [13:29:25]SAM_PROTO_GetFieldsCounters done [13:29:25]requested_item shift.num is exist - process it [13:29:25]requested_item shift.opened is exist - process it [13:29:25]req_shift_opened [13:29:25]FM_GetShiftState [13:29:25]SAM_PROTO_GetShiftState [13:29:25]wFMCommunicate request_size=4 [13:29:25]MH_SAM_APDU [13:29:25]CAPDU: 80 13 01 00 [13:29:25]Write to MH i2c: E2 08 00 14 0C 80 13 01 00 00 00 00 00 9D [13:29:25]Write i2c OK [13:29:25]MH_I2C_Read... [13:29:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:26]Read from MH i2c: E2 [13:29:26]MH_I2C_Read... [13:29:26]Read from MH i2c: E2 0E 00 [13:29:26]MH_I2C_Read... [13:29:26]Read from MH i2c: E2 0E 00 14 0C 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B6 [13:29:26]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:29:26]wFMCommunicate OK [13:29:26]SAM_PROTO_GetShiftState done [13:29:26]FM_GetShiftState done [13:29:26]req_shift_opened done [13:29:26]requested_item shift.open_date is exist - process it [13:29:26]req_shift_open_date [13:29:26]req_shift_open_date done [13:29:26]produce_requested_data done [13:29:26]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115384,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [13:29:26]process_action_free close_receipt [13:29:26]json_value_free [13:29:26]json_value_free done [13:29:26]process_json_proto returns [13:29:26]Send response to host [13:29:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115384,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [13:29:26]free response buf [13:29:26]execute_script done [13:29:26]execute_script returns [13:29:26]free content buf [13:29:26]Sock 9.Close socket [13:29:26]Sock 9.Thread stoped [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:03]accept exits with 8 [13:30:03]New connection [13:30:03]New thread 3066826084 created [13:30:03]Thread 3066682724 joined [13:30:03]Waiting for new connection... [13:30:03] Sock 8.Parse request [13:30:03]Sock 8.Check first char [13:30:03]Sock 8.First char is OK [13:30:03]request: POST /json_proto HTTP/1.0 [13:30:03]Method: POST [13:30:03]URL: /json_proto [13:30:03]Method is POST - this is cgi request [13:30:03]url: /json_proto [13:30:03]query_string will be loaded in cgi processing [13:30:03]execute_cgi json_proto POST (null) [13:30:03]execute_cgi path=json_proto method=POST [13:30:03]POST find Content-Length [13:30:03]Host: 172.17.41.136:8080 [13:30:03]Content-Length: 1547 [13:30:03]Content-Type: application/json [13:30:03] [13:30:03]POST finish read [13:30:03]Found Content-Length = 1547 [13:30:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343835", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 475.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:03]execute_script... [13:30:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343835", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 475.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:03]POST & json_proto [13:30:03]process_json_proto [13:30:03]json parsed OK: [13:30:03]protocol is kg_v1.0 [13:30:03]action value=close_receipt [13:30:03]process_action close_receipt [13:30:03]cmd_close_receipt [13:30:03]MH_GetDate [13:30:03]Write to MH i2c: F0 00 00 15 0C 10 [13:30:03]Write i2c OK [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: F0 [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: F0 09 00 [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: F0 09 00 15 0C 00 DD 1B F0 66 1B D0 5A 64 10 [13:30:04]GetLastDocTimeStamp 1727011762 [13:30:04]current date 1727011805 [13:30:04]FM_GetShiftState [13:30:04]SAM_PROTO_GetShiftState [13:30:04]wFMCommunicate request_size=4 [13:30:04]MH_SAM_APDU [13:30:04]CAPDU: 80 13 01 00 [13:30:04]Write to MH i2c: E2 08 00 16 0C 80 13 01 00 00 00 00 00 9F [13:30:04]Write i2c OK [13:30:04]MH_I2C_Read... [13:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:04]Read from MH i2c: E2 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: E2 0E 00 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: E2 0E 00 16 0C 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B8 [13:30:04]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:30:04]wFMCommunicate OK [13:30:04]SAM_PROTO_GetShiftState done [13:30:04]FM_GetShiftState done [13:30:04]opened in 1726965840 [13:30:04]opened+sec_in_day 1727052240 [13:30:04]quantity*price = 9500 [13:30:04]sum+1 = 9501 [13:30:04]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202522015 Напиток Maxi Чай Грушевый 1,2л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 475.00 НСП 1% : 4.21 НДС 12% : 50.44 Наличными: 475.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 103 22.09.2024 13:30 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115385 ФПД: 211686057455637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T133005&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115385&fm=211686057455637&tin=02508201610067®Number=0000000000091831&sum=47500 0 [13:30:05]StoreToDocumentArchive [13:30:05]shift 471 fd 115385 [13:30:05]save to /storage/0471/doc_00115385 [13:30:05]save last doc name /storage/0471/doc_00115385 to /storage/kkm_last_doc_name [13:30:05]save OK [13:30:05]Clear old archive folders... [13:30:05]ProcessDocumentItem done err = 0, tmpTLVsize=659 [13:30:05]tlvbuf is 01BE3500 [13:30:05]SAM_PROTO_ClearQueue [13:30:05]wFMCommunicate request_size=4 [13:30:05]MH_SAM_APDU [13:30:05]CAPDU: 80 09 00 00 [13:30:05]Write to MH i2c: E2 08 00 23 0C 80 09 00 00 00 00 00 00 A1 [13:30:05]Write i2c OK [13:30:05]MH_I2C_Read... [13:30:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:05]Read from MH i2c: E2 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 03 00 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 03 00 23 0C 00 90 00 A3 [13:30:05]RAPDU: 90 00 [13:30:05]wFMCommunicate OK [13:30:05]SAM_PROTO_ClearQueue done [13:30:05]KKMCreateOFDPacket [13:30:05]OFDProtocolAddRootSTLVToBuf [13:30:05]FM_MakeSignedData [13:30:05]FM_MakeSignedData [13:30:05]SAM_PROTO_SignData [13:30:05]wFMCommunicate request_size=4 [13:30:05]MH_SAM_APDU [13:30:05]CAPDU: 80 0D 01 02 [13:30:05]Write to MH i2c: E2 08 00 24 0C 80 0D 01 02 00 00 00 00 A9 [13:30:05]Write i2c OK [13:30:05]MH_I2C_Read... [13:30:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:05]Read from MH i2c: E2 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 03 00 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 03 00 24 0C 00 90 00 A4 [13:30:05]RAPDU: 90 00 [13:30:05]wFMCommunicate OK [13:30:05]wFMCommunicate request_size=255 [13:30:05]MH_SAM_APDU [13:30:05]CAPDU: 80 0D 02 02 FA 03 00 93 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [13:30:05]Write to MH i2c: E2 02 01 25 0C 80 0D 02 02 FA 00 03 00 93 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 3A [13:30:05]Write i2c OK [13:30:05]MH_I2C_Read... [13:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:05]Read from MH i2c: E2 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 03 00 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 03 00 25 0C 00 90 00 A5 [13:30:05]RAPDU: 90 00 [13:30:05]wFMCommunicate OK [13:30:05]wFMCommunicate request_size=255 [13:30:05]MH_SAM_APDU [13:30:05]CAPDU: 80 0D 02 02 FA 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 [13:30:05]Write to MH i2c: E2 02 01 26 0C 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 00 00 AD [13:30:05]Write i2c OK [13:30:05]MH_I2C_Read... [13:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:06]Read from MH i2c: E2 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 03 00 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 03 00 26 0C 00 90 00 A6 [13:30:06]RAPDU: 90 00 [13:30:06]wFMCommunicate OK [13:30:06]wFMCommunicate request_size=168 [13:30:06]MH_SAM_APDU [13:30:06]CAPDU: 80 0D 02 02 A3 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 B4 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 67 00 00 00 F4 03 04 00 DD 1B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B9 C2 01 00 35 04 06 00 C0 87 00 42 30 15 [13:30:06]Write to MH i2c: E2 AB 00 27 0C 80 0D 02 02 A3 00 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 B4 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 67 00 00 00 F4 03 04 00 DD 1B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B9 C2 01 00 35 04 06 00 C0 87 00 42 30 15 00 00 FC [13:30:06]Write i2c OK [13:30:06]MH_I2C_Read... [13:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:06]Read from MH i2c: E2 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 03 00 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 03 00 27 0C 00 90 00 A7 [13:30:06]RAPDU: 90 00 [13:30:06]wFMCommunicate OK [13:30:06]wFMCommunicate request_size=4 [13:30:06]MH_SAM_APDU [13:30:06]CAPDU: 80 0D 03 02 [13:30:06]Write to MH i2c: E2 08 00 28 0C 80 0D 03 02 00 00 00 00 AF [13:30:06]Write i2c OK [13:30:06]MH_I2C_Read... [13:30:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:06]Read from MH i2c: E2 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 0B 00 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 0B 00 28 0C 00 9A 9D 2E 03 4E 3F 37 0B 90 00 E7 [13:30:06]RAPDU: 9A 9D 2E 03 4E 3F 37 0B 90 00 [13:30:06]wFMCommunicate OK [13:30:06]SAM_PROTO_SignData done [13:30:06]FM_MakeSignedData done [13:30:06]CreateOFDProtocolMessage [13:30:06]wFMCommunicate request_size=4 [13:30:06]MH_SAM_APDU [13:30:06]CAPDU: 80 11 00 00 [13:30:06]Write to MH i2c: E2 08 00 29 0C 80 11 00 00 00 00 00 00 AF [13:30:06]Write i2c OK [13:30:06]MH_I2C_Read... [13:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:06]Read from MH i2c: E2 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 17 00 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 17 00 29 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FD [13:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:30:06]wFMCommunicate OK [13:30:06]CreateOFDProtocolMessage done [13:30:06]OFDSenderStorePacket 115385 [13:30:06]StoreOFDPacket docnum=115385 [13:30:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A7 02 00 00 E7 E6 9F 02 F0 C5 5A 03 01 00 03 00 93 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 B4 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 67 00 00 00 F4 03 04 00 DD 1B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B9 C2 01 00 35 04 06 00 C0 87 00 42 30 15 9A 9D 2E 03 4E 3F 37 0B [13:30:06]CheckFolder [13:30:06]dirname=/storage/ofd_packets [13:30:06]CheckFolder done [13:30:06]ProducePacketName [13:30:06]name=ofd_packets/00115385 [13:30:06]NVStorageSaveData ofd_packets/00115385 [13:30:06]File name is /storage/ofd_packets/00115385 [13:30:06]Write 709 bytes [13:30:06]NVStorageSaveData done [13:30:06]OFDSenderStorePacket done [13:30:06]KKMCreateOFDPacket done [13:30:06]NVStorageSaveData kkm_last_timestamp [13:30:06]File name is /storage/kkm_last_timestamp [13:30:06]Write 4 bytes [13:30:06]NVStorageSaveData done [13:30:06]ExternCall_PrintAddStr [13:30:06]wPrintStart [13:30:06]Write to MH i2c: 01 00 00 2A 0C 36 [13:30:06]Write i2c OK [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: 01 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: 01 07 00 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: 01 07 00 2A 0C 00 00 00 00 00 FF 0F 4B [13:30:06]RasterBufferAndPrint [13:30:06]line Счет N : (3)343835 [13:30:06]line ИНН: 02508201610067 [13:30:06]line Контрольно-Кассовый Чек [13:30:06]line ПРОДАЖА [13:30:06]line Товар: 4631150682851 [13:30:06]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [13:30:06]line 1.000 * 95.00 [13:30:06]line = 95.00 [13:30:06]line НДС 12% НСП 1% [13:30:06]line > о реализуемом товаре [13:30:06]line Товар: 4870202522015 [13:30:06]line Напиток Maxi Чай Грушевый 1,2л [13:30:06]line 1.000 * 125.00 [13:30:06]line = 125.00 [13:30:06]line НДС 12% НСП 1% [13:30:06]line > о реализуемом товаре [13:30:06]line Товар: 5449000027474 [13:30:06]line Напиток FuzeTea зел чай манго,ромашка 1л [13:30:06]line 1.000 * 105.00 [13:30:06]line = 105.00 [13:30:06]line НДС 12% НСП 1% [13:30:06]line > о реализуемом товаре [13:30:06]line Товар: 4640030091645 [13:30:06]line Сигареты ESSE Exchange M [13:30:06]line 1.000 * 150.00 [13:30:06]line = 150.00 [13:30:06]line НДС 12% НСП 1% [13:30:06]line > о реализуемом товаре [13:30:06]line ИТОГО: 475.00 [13:30:06]line НСП 1% : 4.21 [13:30:06]line НДС 12% : 50.44 [13:30:06]line Наличными: 475.00 [13:30:06]line Безнал.: 0.00 [13:30:06]line Место: АЗС № 90 "Партнер Нефть" [13:30:06]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:30:06]line СНО: Общий режим [13:30:06]line Чек 103 22.09.2024 13:30 [13:30:06]line Смена: 471 ФФД: 1.0 [13:30:06]line ЗНМ: 0300000120 [13:30:06]line РНМ: 0000000000091831 [13:30:06]line Версия ККМ: 001 [13:30:06]line ФМ: 0000000000871830 [13:30:06]line ФД: 115385 [13:30:06]line ФПД: 211686057455637 [13:30:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T133005&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115385&fm=211686057455637&tin=02508201610067®Number=0000000000091831&sum=47500 [13:30:06]OFD Sender: Processing packet 115385 [packets to send 481, broken 480] [13:30:06]ProducePacketName [13:30:06]name=ofd_packets/00115385 [13:30:06]OFD Sender: To server: pG, [13:30:06]CommunicateWithHost lk.salyk.kg:30040 [13:30:06]ConnectInit lk.salyk.kg [13:30:06]line 0 [13:30:06]written 0, free lines is 4095 [13:30:06]Connected sock=10 [13:30:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A7 02 00 00 E7 E6 9F 02 F0 C5 5A 03 01 00 03 00 93 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 B4 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 67 00 00 00 F4 03 04 00 DD 1B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B9 C2 01 00 35 04 06 00 C0 87 00 42 30 15 9A 9D 2E 03 4E 3F 37 0B [13:30:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 0C 56 47 00 30 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B9 C2 01 00 F4 03 04 00 24 C1 EF 66 B6 04 01 00 00 AA 89 7C DB 54 94 C3 0E [13:30:07]CommunicateWithHost err = 0 [13:30:07]CheckOFDResponse [13:30:07]1017 (14) - 77093643461234 [13:30:07]1041 (16) - 0000000000871830 [13:30:07]1040 (4) - 115385 [13:30:07]1012 (4) - 22.09.2024 07:03 [13:30:07]1206 (1) - 0 [13:30:07]OFD Sender: Remove packet 115385 [13:30:07]ProducePacketName [13:30:07]name=ofd_packets/00115385 [13:30:07]NVStorageDeleteData [13:30:07]Write to MH i2c: 01 00 00 66 0C 72 [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: 01 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: 01 07 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: 01 07 00 66 0C 00 00 00 00 00 C4 0A 47 [13:30:07]RasterBufferAndPrint [13:30:07]line [13:30:07]line [13:30:07]line [13:30:07]line [13:30:07]line [13:30:07]written 0, free lines is 2760 [13:30:07]MH_Cut [13:30:07]Write to MH i2c: D1 01 00 6D 0C 01 4B [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: D1 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: D1 01 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: D1 01 00 6D 0C 00 4A [13:30:07]Write to MH i2c: 01 00 00 6E 0C 7A [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]OFD Sender: No OFD packet to send [13:30:09]*** Cut start [13:30:09]*** Partial cut [13:30:09]*** CUTSNS_PIN = 1 [13:30:09]*** CUTSNS_PIN = 0 [13:30:09]*** Brake cut motor [13:30:09]Read from MH i2c: 01 [13:30:09]MH_I2C_Read... [13:30:09]*** Stop cut motor [13:30:09]*** Cut end [13:30:09]Read from MH i2c: 01 07 00 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: 01 07 00 6E 0C 00 00 00 00 00 FF 0F 8F [13:30:09]process_action close_receipt done [13:30:09]requested_data is exist [13:30:09]produce_requested_data [13:30:09]requested_item fm.sn is exist - process it [13:30:09]wFMCommunicate request_size=4 [13:30:09]MH_SAM_APDU [13:30:09]CAPDU: 80 11 00 00 [13:30:09]Write to MH i2c: E2 08 00 6F 0C 80 11 00 00 00 00 00 00 F5 [13:30:09]Write i2c OK [13:30:09]MH_I2C_Read... [13:30:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:09]Read from MH i2c: E2 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: E2 17 00 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: E2 17 00 6F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 43 [13:30:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:30:09]wFMCommunicate OK [13:30:09]requested_item fd.num is exist - process it [13:30:09]SAM_PROTO_GetFieldsCounters [13:30:09]wFMCommunicate request_size=4 [13:30:09]MH_SAM_APDU [13:30:09]CAPDU: 80 13 00 00 [13:30:09]Write to MH i2c: E2 08 00 70 0C 80 13 00 00 00 00 00 00 F8 [13:30:09]Write i2c OK [13:30:09]MH_I2C_Read... [13:30:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:09]Read from MH i2c: E2 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: E2 62 00 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: E2 62 00 70 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B9 C2 01 00 0E 04 04 00 D7 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 9A [13: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B9 C2 01 00 0E 04 04 00 D7 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 [13:30:09]wFMCommunicate OK [13:30:09]SAM_PROTO_GetFieldsCounters done [13:30:09]requested_item shift.num is exist - process it [13:30:09]requested_item shift.opened is exist - process it [13:30:09]req_shift_opened [13:30:09]FM_GetShiftState [13:30:09]SAM_PROTO_GetShiftState [13:30:09]wFMCommunicate request_size=4 [13:30:09]MH_SAM_APDU [13:30:09]CAPDU: 80 13 01 00 [13:30:09]Write to MH i2c: E2 08 00 71 0C 80 13 01 00 00 00 00 00 FA [13:30:09]Write i2c OK [13:30:09]MH_I2C_Read... [13:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:09]Read from MH i2c: E2 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: E2 0E 00 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: E2 0E 00 71 0C 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 13 [13:30:09]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:30:09]wFMCommunicate OK [13:30:09]SAM_PROTO_GetShiftState done [13:30:09]FM_GetShiftState done [13:30:09]req_shift_opened done [13:30:09]requested_item shift.open_date is exist - process it [13:30:09]req_shift_open_date [13:30:09]req_shift_open_date done [13:30:09]produce_requested_data done [13:30:09]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115385,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [13:30:09]process_action_free close_receipt [13:30:09]json_value_free [13:30:09]json_value_free done [13:30:09]process_json_proto returns [13:30:09]Send response to host [13:30:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115385,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [13:30:09]free response buf [13:30:09]execute_script done [13:30:09]execute_script returns [13:30:09]free content buf [13:30:09]Sock 8.Close socket [13:30:09]Sock 8.Thread stoped [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:46]accept exits with 9 [13:37:46]New connection [13:37:46]New thread 3066682724 created [13:37:46]Thread 3066826084 joined [13:37:46]Waiting for new connection... [13:37:46] Sock 9.Parse request [13:37:46]Sock 9.Check first char [13:37:46]Sock 9.First char is OK [13:37:46]request: POST /json_proto HTTP/1.0 [13:37:46]Method: POST [13:37:46]URL: /json_proto [13:37:46]Method is POST - this is cgi request [13:37:46]url: /json_proto [13:37:46]query_string will be loaded in cgi processing [13:37:46]execute_cgi json_proto POST (null) [13:37:46]execute_cgi path=json_proto method=POST [13:37:46]POST find Content-Length [13:37:46]Host: 172.17.41.136:8080 [13:37:46]Content-Length: 884 [13:37:46]Content-Type: application/json [13:37:46] [13:37:46]POST finish read [13:37:46]Found Content-Length = 884 [13:37:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343836", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 274.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:46]execute_script... [13: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 : (3)343836", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 274.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:46]POST & json_proto [13:37:46]process_json_proto [13:37:46]json parsed OK: [13:37:46]protocol is kg_v1.0 [13:37:46]action value=close_receipt [13:37:46]process_action close_receipt [13:37:46]cmd_close_receipt [13:37:46]MH_GetDate [13:37:46]Write to MH i2c: F0 00 00 72 0C 6D [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: F0 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: F0 09 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: F0 09 00 72 0C 00 AB 1D F0 66 1B D0 5A 64 3D [13:37:46]GetLastDocTimeStamp 1727011805 [13:37:46]current date 1727012267 [13:37:46]FM_GetShiftState [13:37:46]SAM_PROTO_GetShiftState [13:37:46]wFMCommunicate request_size=4 [13:37:46]MH_SAM_APDU [13:37:46]CAPDU: 80 13 01 00 [13:37:46]Write to MH i2c: E2 08 00 73 0C 80 13 01 00 00 00 00 00 FC [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:46]Read from MH i2c: E2 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 0E 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 0E 00 73 0C 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 15 [13:37:46]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:37:46]wFMCommunicate OK [13:37:46]SAM_PROTO_GetShiftState done [13:37:46]FM_GetShiftState done [13:37:46]opened in 1726965840 [13:37:46]opened+sec_in_day 1727052240 [13:37:46]quantity*price = 13000 [13:37:46]sum+1 = 13001 [13:37:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 274.00 НСП 1% : 2.42 НДС 12% : 29.09 Наличными: 274.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 104 22.09.2024 13:37 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115386 ФПД: 72559890216047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T133748&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115386&fm=72559890216047&tin=02508201610067®Number=0000000000091831&sum=27400 0 [13:37:47]StoreToDocumentArchive [13:37:47]shift 471 fd 115386 [13:37:47]save to /storage/0471/doc_00115386 [13:37:47]save last doc name /storage/0471/doc_00115386 to /storage/kkm_last_doc_name [13:37:47]save OK [13:37:47]Clear old archive folders... [13:37:47]ProcessDocumentItem done err = 0, tmpTLVsize=375 [13:37:47]tlvbuf is 01BF0F70 [13:37:47]SAM_PROTO_ClearQueue [13:37:47]wFMCommunicate request_size=4 [13:37:47]MH_SAM_APDU [13:37:47]CAPDU: 80 09 00 00 [13:37:47]Write to MH i2c: E2 08 00 80 0C 80 09 00 00 00 00 00 00 FE [13:37:47]Write i2c OK [13:37:47]MH_I2C_Read... [13:37:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:47]Read from MH i2c: E2 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 03 00 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 03 00 80 0C 00 90 00 00 [13:37:47]RAPDU: 90 00 [13:37:47]wFMCommunicate OK [13:37:47]SAM_PROTO_ClearQueue done [13:37:47]KKMCreateOFDPacket [13:37:47]OFDProtocolAddRootSTLVToBuf [13:37:47]FM_MakeSignedData [13:37:47]FM_MakeSignedData [13:37:47]SAM_PROTO_SignData [13:37:47]wFMCommunicate request_size=4 [13:37:47]MH_SAM_APDU [13:37:47]CAPDU: 80 0D 01 02 [13:37:47]Write to MH i2c: E2 08 00 81 0C 80 0D 01 02 00 00 00 00 06 [13:37:47]Write i2c OK [13:37:47]MH_I2C_Read... [13:37:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:47]Read from MH i2c: E2 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 03 00 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 03 00 81 0C 00 90 00 01 [13:37:47]RAPDU: 90 00 [13:37:47]wFMCommunicate OK [13:37:47]wFMCommunicate request_size=255 [13:37:47]MH_SAM_APDU [13:37:47]CAPDU: 80 0D 02 02 FA 03 00 77 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F [13:37:47]Write to MH i2c: E2 02 01 82 0C 80 0D 02 02 FA 00 03 00 77 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 00 1C [13:37:47]Write i2c OK [13:37:47]MH_I2C_Read... [13:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:48]Read from MH i2c: E2 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 03 00 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 03 00 82 0C 00 90 00 02 [13:37:48]RAPDU: 90 00 [13:37:48]wFMCommunicate OK [13:37:48]wFMCommunicate request_size=134 [13:37:48]MH_SAM_APDU [13:37:48]CAPDU: 80 0D 02 02 81 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 08 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 AC 1D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BA C2 01 00 35 04 06 00 41 FE 2A 7B 34 6F [13:37:48]Write to MH i2c: E2 89 00 83 0C 80 0D 02 02 81 00 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 08 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 AC 1D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BA C2 01 00 35 04 06 00 41 FE 2A 7B 34 6F 00 00 6E [13:37:48]Write i2c OK [13:37:48]MH_I2C_Read... [13:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:48]Read from MH i2c: E2 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 03 00 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 03 00 83 0C 00 90 00 03 [13:37:48]RAPDU: 90 00 [13:37:48]wFMCommunicate OK [13:37:48]wFMCommunicate request_size=4 [13:37:48]MH_SAM_APDU [13:37:48]CAPDU: 80 0D 03 02 [13:37:48]Write to MH i2c: E2 08 00 84 0C 80 0D 03 02 00 00 00 00 0B [13:37:48]Write i2c OK [13:37:48]MH_I2C_Read... [13:37:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:48]Read from MH i2c: E2 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 0B 00 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 0B 00 84 0C 00 76 6C 14 BC D9 1A 2F 4E 90 00 2E [13:37:48]RAPDU: 76 6C 14 BC D9 1A 2F 4E 90 00 [13:37:48]wFMCommunicate OK [13:37:48]SAM_PROTO_SignData done [13:37:48]FM_MakeSignedData done [13:37:48]CreateOFDProtocolMessage [13:37:48]wFMCommunicate request_size=4 [13:37:48]MH_SAM_APDU [13:37:48]CAPDU: 80 11 00 00 [13:37:48]Write to MH i2c: E2 08 00 85 0C 80 11 00 00 00 00 00 00 0B [13:37:48]Write i2c OK [13:37:48]MH_I2C_Read... [13:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:48]Read from MH i2c: E2 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 17 00 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 17 00 85 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 59 [13:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:37:48]wFMCommunicate OK [13:37:48]CreateOFDProtocolMessage done [13:37:48]OFDSenderStorePacket 115386 [13:37:48]StoreOFDPacket docnum=115386 [13:37:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8B 01 00 00 00 FF 83 01 86 A7 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 08 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 AC 1D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BA C2 01 00 35 04 06 00 41 FE 2A 7B 34 6F 76 6C 14 BC D9 1A 2F 4E [13:37:48]CheckFolder [13:37:48]dirname=/storage/ofd_packets [13:37:48]CheckFolder done [13:37:48]ProducePacketName [13:37:48]name=ofd_packets/00115386 [13:37:48]NVStorageSaveData ofd_packets/00115386 [13:37:48]File name is /storage/ofd_packets/00115386 [13:37:48]Write 425 bytes [13:37:48]NVStorageSaveData done [13:37:48]OFDSenderStorePacket done [13:37:48]KKMCreateOFDPacket done [13:37:48]NVStorageSaveData kkm_last_timestamp [13:37:48]File name is /storage/kkm_last_timestamp [13:37:48]Write 4 bytes [13:37:48]NVStorageSaveData done [13:37:48]ExternCall_PrintAddStr [13:37:48]wPrintStart [13:37:48]Write to MH i2c: 01 00 00 86 0C 92 [13:37:48]Write i2c OK [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: 01 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: 01 07 00 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: 01 07 00 86 0C 00 00 00 00 00 FF 0F A7 [13:37:48]RasterBufferAndPrint [13:37:48]line Счет N : (3)343836 [13:37:48]line ИНН: 02508201610067 [13:37:48]line Контрольно-Кассовый Чек [13:37:48]line ПРОДАЖА [13:37:48]line Товар: 47011656 [13:37:48]line Водка Пшеничная 0,1л [13:37:48]line 2.000 * 65.00 [13:37:48]line = 130.00 [13:37:48]line НДС 12% НСП 1% [13:37:48]line > о реализуемом товаре [13:37:48]line Товар: 48743570 [13:37:48]line Сигареты Winston XStyle Blue [13:37:48]line 1.000 * 144.00 [13:37:48]line = 144.00 [13:37:48]line НДС 12% НСП 1% [13:37:48]line > о реализуемом товаре [13:37:48]line ИТОГО: 274.00 [13:37:48]line НСП 1% : 2.42 [13:37:48]line НДС 12% : 29.09 [13:37:48]line Наличными: 274.00 [13:37:48]line Безнал.: 0.00 [13:37:48]line Место: АЗС № 90 "Партнер Нефть" [13:37:48]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:37:48]line СНО: Общий режим [13:37:48]line Чек 104 22.09.2024 13:37 [13:37:48]line Смена: 471 ФФД: 1.0 [13:37:48]line ЗНМ: 0300000120 [13:37:48]line РНМ: 0000000000091831 [13:37:48]line Версия ККМ: 001 [13:37:48]line ФМ: 0000000000871830 [13:37:48]line ФД: 115386 [13:37:48]line ФПД: 72559890216047 [13:37:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T133748&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115386&fm=72559890216047&tin=02508201610067®Number=0000000000091831&sum=27400 [13:37:48]line 0 [13:37:48]OFD Sender: Processing packet 115386 [packets to send 481, broken 480] [13:37:48]ProducePacketName [13:37:48]name=ofd_packets/00115386 [13:37:48]OFD Sender: To server: pG, [13:37:48]CommunicateWithHost lk.salyk.kg:30040 [13:37:48]ConnectInit lk.salyk.kg [13:37:48]written 0, free lines is 4095 [13:37:49]Connected sock=10 [13: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 31 38 33 30 8B 01 00 00 00 FF 83 01 86 A7 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 08 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 AC 1D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BA C2 01 00 35 04 06 00 41 FE 2A 7B 34 6F 76 6C 14 BC D9 1A 2F 4E [13:37:49]Write to MH i2c: 01 00 00 B3 0C BF [13:37:49]Write i2c OK [13:37:49]MH_I2C_Read... [13:37:49]Read from MH i2c: 01 [13:37:49]MH_I2C_Read... [13:37:49]Read from MH i2c: 01 07 00 [13:37:49]MH_I2C_Read... [13:37:49]Read from MH i2c: 01 07 00 B3 0C 00 00 00 00 00 1E 0C F0 [13:37:49]RasterBufferAndPrint [13:37:49]line [13:37:49]line [13:37:49]line [13:37:49]line [13:37:49]line [13:37:49]written 0, free lines is 3105 [13:37:49]MH_Cut [13:37:49]Write to MH i2c: D1 01 00 BA 0C 01 98 [13:37:49]Write i2c OK [13:37:49]MH_I2C_Read... [13:37:49]Read from MH i2c: D1 [13:37:49]MH_I2C_Read... [13:37:49]Read from MH i2c: D1 01 00 [13:37:49]MH_I2C_Read... [13:37:49]Read from MH i2c: D1 01 00 BA 0C 00 97 [13:37:49]Write to MH i2c: 01 00 00 BB 0C C7 [13:37:49]Write i2c OK [13:37:49]MH_I2C_Read... [13:37:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A6 8D 47 00 1B 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BA C2 01 00 F4 03 04 00 F2 C2 EF 66 B6 04 01 00 00 B8 41 69 58 56 9D 4B DD [13:37:49]CommunicateWithHost err = 0 [13:37:49]CheckOFDResponse [13:37:49]1017 (14) - 77093643461234 [13:37:49]1041 (16) - 0000000000871830 [13:37:49]1040 (4) - 115386 [13:37:49]1012 (4) - 22.09.2024 07:10 [13:37:49]1206 (1) - 0 [13:37:49]OFD Sender: Remove packet 115386 [13:37:49]ProducePacketName [13:37:49]name=ofd_packets/00115386 [13:37:49]NVStorageDeleteData [13:37:49]OFD Sender: No OFD packet to send [13:37:50]*** Cut start [13:37:50]*** Partial cut [13:37:50]*** CUTSNS_PIN = 1 [13:37:50]*** CUTSNS_PIN = 0 [13:37:50]*** Brake cut motor [13:37:51]Read from MH i2c: 01 [13:37:51]MH_I2C_Read... [13:37:51]*** Stop cut motor [13:37:51]*** Cut end [13:37:51]Read from MH i2c: 01 07 00 [13:37:51]MH_I2C_Read... [13:37:51]Read from MH i2c: 01 07 00 BB 0C 00 00 00 00 00 FF 0F DC [13:37:51]process_action close_receipt done [13:37:51]requested_data is exist [13:37:51]produce_requested_data [13:37:51]requested_item fm.sn is exist - process it [13:37:51]wFMCommunicate request_size=4 [13:37:51]MH_SAM_APDU [13:37:51]CAPDU: 80 11 00 00 [13:37:51]Write to MH i2c: E2 08 00 BC 0C 80 11 00 00 00 00 00 00 42 [13:37:51]Write i2c OK [13:37:51]MH_I2C_Read... [13:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:51]Read from MH i2c: E2 [13:37:51]MH_I2C_Read... [13:37:51]Read from MH i2c: E2 17 00 [13:37:51]MH_I2C_Read... [13:37:51]Read from MH i2c: E2 17 00 BC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 90 [13:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:37:51]wFMCommunicate OK [13:37:51]requested_item fd.num is exist - process it [13:37:51]SAM_PROTO_GetFieldsCounters [13:37:51]wFMCommunicate request_size=4 [13:37:51]MH_SAM_APDU [13:37:51]CAPDU: 80 13 00 00 [13:37:51]Write to MH i2c: E2 08 00 BD 0C 80 13 00 00 00 00 00 00 45 [13:37:51]Write i2c OK [13:37:51]MH_I2C_Read... [13:37:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:51]Read from MH i2c: E2 [13:37:51]MH_I2C_Read... [13:37:51]Read from MH i2c: E2 62 00 [13:37:51]MH_I2C_Read... [13:37:51]Read from MH i2c: E2 62 00 BD 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BA C2 01 00 0E 04 04 00 D7 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 EB [13:37:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BA C2 01 00 0E 04 04 00 D7 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 [13:37:51]wFMCommunicate OK [13:37:51]SAM_PROTO_GetFieldsCounters done [13:37:51]requested_item shift.num is exist - process it [13:37:51]requested_item shift.opened is exist - process it [13:37:51]req_shift_opened [13:37:51]FM_GetShiftState [13:37:51]SAM_PROTO_GetShiftState [13:37:51]wFMCommunicate request_size=4 [13:37:51]MH_SAM_APDU [13:37:51]CAPDU: 80 13 01 00 [13:37:51]Write to MH i2c: E2 08 00 BE 0C 80 13 01 00 00 00 00 00 47 [13:37:51]Write i2c OK [13:37:51]MH_I2C_Read... [13:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:51]Read from MH i2c: E2 [13:37:51]MH_I2C_Read... [13:37:51]Read from MH i2c: E2 0E 00 [13:37:51]MH_I2C_Read... [13:37:51]Read from MH i2c: E2 0E 00 BE 0C 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 60 [13:37:51]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:37:51]wFMCommunicate OK [13:37:51]SAM_PROTO_GetShiftState done [13:37:51]FM_GetShiftState done [13:37:51]req_shift_opened done [13:37:51]requested_item shift.open_date is exist - process it [13:37:51]req_shift_open_date [13:37:51]req_shift_open_date done [13:37:51]produce_requested_data done [13:37:51]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115386,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [13:37:51]process_action_free close_receipt [13:37:51]json_value_free [13:37:51]json_value_free done [13:37:51]process_json_proto returns [13:37:51]Send response to host [13:37:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115386,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [13:37:51]free response buf [13:37:51]execute_script done [13:37:51]execute_script returns [13:37:51]free content buf [13:37:51]Sock 9.Close socket [13:37:51]Sock 9.Thread stoped [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:10]OFD Sender: No OFD packet to send [13:41:15]OFD Sender: No OFD packet to send [13:41:20]OFD Sender: No OFD packet to send [13:41:25]OFD Sender: No OFD packet to send [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:45]OFD Sender: No OFD packet to send [13:41:50]OFD Sender: No OFD packet to send [13:41:55]OFD Sender: No OFD packet to send [13:42:00]OFD Sender: No OFD packet to send [13:42:05]OFD Sender: No OFD packet to send [13:42:10]OFD Sender: No OFD packet to send [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:45]OFD Sender: No OFD packet to send [13:42:50]OFD Sender: No OFD packet to send [13:42:55]OFD Sender: No OFD packet to send [13:43:00]OFD Sender: No OFD packet to send [13:43:05]OFD Sender: No OFD packet to send [13:43:10]OFD Sender: No OFD packet to send [13:43:15]OFD Sender: No OFD packet to send [13:43:20]OFD Sender: No OFD packet to send [13:43:25]OFD Sender: No OFD packet to send [13:43:30]OFD Sender: No OFD packet to send [13:43:35]OFD Sender: No OFD packet to send [13:43:40]OFD Sender: No OFD packet to send [13:43:45]OFD Sender: No OFD packet to send [13:43:50]OFD Sender: No OFD packet to send [13:43:52]accept exits with 8 [13:43:52]New connection [13:43:52]New thread 3066826084 created [13:43:52]Thread 3066682724 joined [13:43:52]Waiting for new connection... [13:43:52] Sock 8.Parse request [13:43:52]Sock 8.Check first char [13:43:52]Sock 8.First char is OK [13:43:52]request: POST /json_proto HTTP/1.0 [13:43:52]Method: POST [13:43:52]URL: /json_proto [13:43:52]Method is POST - this is cgi request [13:43:52]url: /json_proto [13:43:52]query_string will be loaded in cgi processing [13:43:52]execute_cgi json_proto POST (null) [13:43:52]execute_cgi path=json_proto method=POST [13:43:52]POST find Content-Length [13:43:52]Host: 172.17.41.136:8080 [13:43:52]Content-Length: 753 [13:43:52]Content-Type: application/json [13:43:52] [13:43:52]POST finish read [13:43:52]Found Content-Length = 753 [13:43:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 75.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30126819", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:52]execute_script... [13: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)24616792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 75.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30126819", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:52]POST & json_proto [13:43:52]process_json_proto [13:43:52]json parsed OK: [13:43:52]protocol is kg_v1.0 [13:43:52]action value=close_receipt [13:43:52]process_action close_receipt [13:43:52]cmd_close_receipt [13:43:52]MH_GetDate [13:43:52]Write to MH i2c: F0 00 00 BF 0C BA [13:43:52]Write i2c OK [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: F0 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: F0 09 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: F0 09 00 BF 0C 00 19 1F F0 66 1B D0 5A 64 FA [13:43:52]GetLastDocTimeStamp 1727012268 [13:43:52]current date 1727012633 [13:43:52]FM_GetShiftState [13:43:52]SAM_PROTO_GetShiftState [13:43:52]wFMCommunicate request_size=4 [13:43:52]MH_SAM_APDU [13:43:52]CAPDU: 80 13 01 00 [13:43:52]Write to MH i2c: E2 08 00 C0 0C 80 13 01 00 00 00 00 00 49 [13:43:52]Write i2c OK [13:43:52]MH_I2C_Read... [13:43:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:52]Read from MH i2c: E2 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 0E 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 0E 00 C0 0C 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 62 [13:43:52]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:43:52]wFMCommunicate OK [13:43:52]SAM_PROTO_GetShiftState done [13:43:52]FM_GetShiftState done [13:43:52]opened in 1726965840 [13:43:52]opened+sec_in_day 1727052240 [13:43:52]quantity*price = 0 [13:43:52]sum+1 = 1 [13:43:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 105 22.09.2024 13:43 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30126819 ФМ: 0000000000871830 ФД: 115387 ФПД: 171133633537767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T134354&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115387&fm=171133633537767&tin=02508201610067®Number=0000000000091831&sum=0 [13:43:53]StoreToDocumentArchive [13:43:53]shift 471 fd 115387 [13:43:53]save to /storage/0471/doc_00115387 [13:43:53]save last doc name /storage/0471/doc_00115387 to /storage/kkm_last_doc_name [13:43:53]save OK [13:43:53]Clear old archive folders... [13:43:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:43:53]tlvbuf is B6EBB490 [13:43:53]SAM_PROTO_ClearQueue [13:43:53]wFMCommunicate request_size=4 [13:43:53]MH_SAM_APDU [13:43:53]CAPDU: 80 09 00 00 [13:43:53]Write to MH i2c: E2 08 00 CD 0C 80 09 00 00 00 00 00 00 4B [13:43:53]Write i2c OK [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: E2 [13:43:53]MH_I2C_Read... [13:43:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:53]Read from MH i2c: E2 03 00 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: E2 03 00 CD 0C 00 90 00 4D [13:43:53]RAPDU: 90 00 [13:43:53]wFMCommunicate OK [13:43:53]SAM_PROTO_ClearQueue done [13:43:53]KKMCreateOFDPacket [13:43:53]OFDProtocolAddRootSTLVToBuf [13:43:53]FM_MakeSignedData [13:43:53]FM_MakeSignedData [13:43:53]SAM_PROTO_SignData [13:43:53]wFMCommunicate request_size=4 [13:43:53]MH_SAM_APDU [13:43:53]CAPDU: 80 0D 01 02 [13:43:53]Write to MH i2c: E2 08 00 CE 0C 80 0D 01 02 00 00 00 00 53 [13:43:53]Write i2c OK [13:43:53]MH_I2C_Read... [13:43:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:53]Read from MH i2c: E2 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: E2 03 00 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: E2 03 00 CE 0C 00 90 00 4E [13:43:53]RAPDU: 90 00 [13:43:53]wFMCommunicate OK [13:43:53]wFMCommunicate request_size=255 [13:43:53]MH_SAM_APDU [13:43:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 24 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 1A 1F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BB C2 01 00 35 04 06 00 9B A5 27 6F [13:43:53]Write to MH i2c: E2 02 01 CF 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 24 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 1A 1F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BB C2 01 00 35 04 06 00 9B A5 27 6F 00 00 E9 [13:43:53]Write i2c OK [13:43:53]MH_I2C_Read... [13:43:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:54]Read from MH i2c: E2 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 03 00 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 03 00 CF 0C 00 90 00 4F [13:43:54]RAPDU: 90 00 [13:43:54]wFMCommunicate OK [13:43:54]wFMCommunicate request_size=7 [13:43:54]MH_SAM_APDU [13:43:54]CAPDU: 80 0D 02 02 02 A6 E7 [13:43:54]Write to MH i2c: E2 0A 00 D0 0C 80 0D 02 02 02 00 A6 E7 00 00 E7 [13:43:54]Write i2c OK [13:43:54]MH_I2C_Read... [13:43:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:54]Read from MH i2c: E2 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 03 00 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 03 00 D0 0C 00 90 00 50 [13:43:54]RAPDU: 90 00 [13:43:54]wFMCommunicate OK [13:43:54]wFMCommunicate request_size=4 [13:43:54]MH_SAM_APDU [13:43:54]CAPDU: 80 0D 03 02 [13:43:54]Write to MH i2c: E2 08 00 D1 0C 80 0D 03 02 00 00 00 00 58 [13:43:54]Write i2c OK [13:43:54]MH_I2C_Read... [13:43:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:54]Read from MH i2c: E2 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 0B 00 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 0B 00 D1 0C 00 A9 65 92 95 D6 93 37 BB 90 00 E9 [13:43:54]RAPDU: A9 65 92 95 D6 93 37 BB 90 00 [13:43:54]wFMCommunicate OK [13:43:54]SAM_PROTO_SignData done [13:43:54]FM_MakeSignedData done [13:43:54]CreateOFDProtocolMessage [13:43:54]wFMCommunicate request_size=4 [13:43:54]MH_SAM_APDU [13:43:54]CAPDU: 80 11 00 00 [13:43:54]Write to MH i2c: E2 08 00 D2 0C 80 11 00 00 00 00 00 00 58 [13:43:54]Write i2c OK [13:43:54]MH_I2C_Read... [13:43:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:54]Read from MH i2c: E2 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 17 00 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 17 00 D2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A6 [13:43:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:43:54]wFMCommunicate OK [13:43:54]CreateOFDProtocolMessage done [13:43:54]OFDSenderStorePacket 115387 [13:43:54]StoreOFDPacket docnum=115387 [13:43:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 AA 6A 04 01 13 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 24 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 1A 1F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BB C2 01 00 35 04 06 00 9B A5 27 6F A6 E7 A9 65 92 95 D6 93 37 BB [13:43:54]CheckFolder [13:43:54]dirname=/storage/ofd_packets [13:43:54]CheckFolder done [13:43:54]ProducePacketName [13:43:54]name=ofd_packets/00115387 [13:43:54]NVStorageSaveData ofd_packets/00115387 [13:43:54]File name is /storage/ofd_packets/00115387 [13:43:54]Write 298 bytes [13:43:54]NVStorageSaveData done [13:43:54]OFDSenderStorePacket done [13:43:54]KKMCreateOFDPacket done [13:43:54]NVStorageSaveData kkm_last_timestamp [13:43:54]File name is /storage/kkm_last_timestamp [13:43:54]Write 4 bytes [13:43:54]NVStorageSaveData done [13:43:54]ExternCall_PrintAddStr [13:43:54]wPrintStart [13:43:54]Write to MH i2c: 01 00 00 D3 0C DF [13:43:54]Write i2c OK [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: 01 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: 01 07 00 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: 01 07 00 D3 0C 00 00 00 00 00 FF 0F F4 [13:43:54]RasterBufferAndPrint [13:43:54]line Счет N : (1)24616792 [13:43:54]line ИНН: 02508201610067 [13:43:54]line Контрольно-Кассовый Чек [13:43:54]line ПРОДАЖА [13:43:54]line ТРК (МРК, ГНК) : 22 [13:43:54]line Товар: 2710194210 [13:43:54]line ДТ-К-5 [13:43:54]line 75.000 * 0.00 [13:43:54]line = 0.00 [13:43:54]line НДС 12% НСП 1% [13:43:54]line > о реализуемом товаре [13:43:54]line ИТОГО: 0.00 [13:43:54]line НСП 1% : 0.00 [13:43:54]line НДС 12% : 0.00 [13:43:54]line Наличными: 0.00 [13:43:54]line Безнал.: 0.00 [13:43:54]line Место: АЗС № 90 "Партнер Нефть" [13:43:54]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:43:54]line СНО: Общий режим [13:43:54]line Чек 105 22.09.2024 13:43 [13:43:54]line Смена: 471 ФФД: 1.0 [13:43:54]line ЗНМ: 0300000120 [13:43:54]line РНМ: 0000000000091831 [13:43:54]line Версия ККМ: 001 [13:43:54]line Талоны: ТК ГПНА Online [13:43:54]line 30126819 [13:43:54]line ФМ: 0000000000871830 [13:43:54]line ФД: 115387 [13:43:54]line ФПД: 171133633537767 [13:43:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T134354&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115387&fm=171133633537767&tin=02508201610067®Number=0000000000091831&sum=0 [13:43:54]OFD Sender: Processing packet 115387 [packets to send 481, broken 480] [13:43:54]ProducePacketName [13:43:54]name=ofd_packets/00115387 [13:43:54]OFD Sender: To server: pG, [13:43:54]CommunicateWithHost lk.salyk.kg:30040 [13:43:54]ConnectInit lk.salyk.kg [13:43:54]written 0, free lines is 4095 [13:43:54]Connected sock=10 [13: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 31 38 33 30 0C 01 00 00 AA 6A 04 01 13 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 24 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 1A 1F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BB C2 01 00 35 04 06 00 9B A5 27 6F A6 E7 A9 65 92 95 D6 93 37 BB [13:43:54]Write to MH i2c: 01 00 00 FC 0C 08 [13:43:54]Write i2c OK [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: 01 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: 01 07 00 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: 01 07 00 FC 0C 00 00 00 00 00 6D 0C 88 [13:43:54]RasterBufferAndPrint [13:43:54]line [13:43:54]line [13:43:54]line [13:43:54]line [13:43:54]line [13:43:54]written 0, free lines is 3185 [13:43:54]MH_Cut [13:43:54]Write to MH i2c: D1 01 00 03 0D 01 E2 [13:43:54]Write i2c OK [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: D1 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: D1 01 00 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: D1 01 00 03 0D 00 E1 [13:43:54]Write to MH i2c: 01 00 00 04 0D 11 [13:43:54]Write i2c OK [13:43:54]MH_I2C_Read... [13:43:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 DA 75 47 00 6B DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BB C2 01 00 F4 03 04 00 5F C4 EF 66 B6 04 01 00 00 C3 3D 98 B9 7A 93 40 BB [13:43:55]CommunicateWithHost err = 0 [13:43:55]CheckOFDResponse [13:43:55]1017 (14) - 77093643461234 [13:43:55]1041 (16) - 0000000000871830 [13:43:55]1040 (4) - 115387 [13:43:55]1012 (4) - 22.09.2024 07:16 [13:43:55]1206 (1) - 0 [13:43:55]OFD Sender: Remove packet 115387 [13:43:55]ProducePacketName [13:43:55]name=ofd_packets/00115387 [13:43:55]NVStorageDeleteData [13:43:55]OFD Sender: No OFD packet to send [13:43:56]*** Cut start [13:43:56]*** Partial cut [13:43:56]*** CUTSNS_PIN = 1 [13:43:56]*** CUTSNS_PIN = 0 [13:43:56]*** Brake cut motor [13:43:56]Read from MH i2c: 01 [13:43:56]MH_I2C_Read... [13:43:56]*** Stop cut motor [13:43:56]*** Cut end [13:43:56]Read from MH i2c: 01 07 00 [13:43:56]MH_I2C_Read... [13:43:56]Read from MH i2c: 01 07 00 04 0D 00 00 00 00 00 FF 0F 26 [13:43:56]process_action close_receipt done [13:43:56]requested_data is exist [13:43:56]produce_requested_data [13:43:56]requested_item fm.sn is exist - process it [13:43:56]wFMCommunicate request_size=4 [13:43:56]MH_SAM_APDU [13:43:56]CAPDU: 80 11 00 00 [13:43:56]Write to MH i2c: E2 08 00 05 0D 80 11 00 00 00 00 00 00 8C [13:43:56]Write i2c OK [13:43:56]MH_I2C_Read... [13:43:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:56]Read from MH i2c: E2 [13:43:56]MH_I2C_Read... [13:43:56]Read from MH i2c: E2 17 00 [13:43:56]MH_I2C_Read... [13:43:56]Read from MH i2c: E2 17 00 05 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 DA [13:43:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:43:56]wFMCommunicate OK [13:43:56]requested_item fd.num is exist - process it [13:43:56]SAM_PROTO_GetFieldsCounters [13:43:56]wFMCommunicate request_size=4 [13:43:56]MH_SAM_APDU [13:43:56]CAPDU: 80 13 00 00 [13:43:56]Write to MH i2c: E2 08 00 06 0D 80 13 00 00 00 00 00 00 8F [13:43:56]Write i2c OK [13:43:56]MH_I2C_Read... [13:43:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:56]Read from MH i2c: E2 [13:43:56]MH_I2C_Read... [13:43:56]Read from MH i2c: E2 62 00 [13:43:56]MH_I2C_Read... [13:43:56]Read from MH i2c: E2 62 00 06 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BB C2 01 00 0E 04 04 00 D7 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 39 [13: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BB C2 01 00 0E 04 04 00 D7 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 [13:43:56]wFMCommunicate OK [13:43:56]SAM_PROTO_GetFieldsCounters done [13:43:56]requested_item shift.num is exist - process it [13:43:56]requested_item shift.opened is exist - process it [13:43:56]req_shift_opened [13:43:56]FM_GetShiftState [13:43:56]SAM_PROTO_GetShiftState [13:43:56]wFMCommunicate request_size=4 [13:43:56]MH_SAM_APDU [13:43:56]CAPDU: 80 13 01 00 [13:43:56]Write to MH i2c: E2 08 00 07 0D 80 13 01 00 00 00 00 00 91 [13:43:56]Write i2c OK [13:43:56]MH_I2C_Read... [13:43:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:57]Read from MH i2c: E2 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 0E 00 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 0E 00 07 0D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 AA [13:43:57]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:43:57]wFMCommunicate OK [13:43:57]SAM_PROTO_GetShiftState done [13:43:57]FM_GetShiftState done [13:43:57]req_shift_opened done [13:43:57]requested_item shift.open_date is exist - process it [13:43:57]req_shift_open_date [13:43:57]req_shift_open_date done [13:43:57]produce_requested_data done [13:43:57]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115387,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [13:43:57]process_action_free close_receipt [13:43:57]json_value_free [13:43:57]json_value_free done [13:43:57]process_json_proto returns [13:43:57]Send response to host [13:43:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115387,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [13:43:57]free response buf [13:43:57]execute_script done [13:43:57]execute_script returns [13:43:57]free content buf [13:43:57]Sock 8.Close socket [13:43:57]Sock 8.Thread stoped [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:36]OFD Sender: No OFD packet to send [13:46:37]accept exits with 9 [13:46:37]New connection [13:46:37]New thread 3066682724 created [13:46:37]Thread 3066826084 joined [13:46:37]Waiting for new connection... [13:46:37] Sock 9.Parse request [13:46:37]Sock 9.Check first char [13:46:37]Sock 9.First char is OK [13:46:37]request: POST /json_proto HTTP/1.0 [13:46:37]Method: POST [13:46:37]URL: /json_proto [13:46:37]Method is POST - this is cgi request [13:46:37]url: /json_proto [13:46:37]query_string will be loaded in cgi processing [13:46:37]execute_cgi json_proto POST (null) [13:46:37]execute_cgi path=json_proto method=POST [13:46:37]POST find Content-Length [13:46:37]Host: 172.17.41.136:8080 [13:46:37]Content-Length: 753 [13:46:37]Content-Type: application/json [13:46:37] [13:46:37]POST finish read [13:46:37]Found Content-Length = 753 [13:46:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 75.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30126819", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:37]execute_script... [13:46: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)24616796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 75.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30126819", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:37]POST & json_proto [13:46:37]process_json_proto [13:46:37]json parsed OK: [13:46:37]protocol is kg_v1.0 [13:46:37]action value=close_receipt [13:46:37]process_action close_receipt [13:46:37]cmd_close_receipt [13:46:37]MH_GetDate [13:46:37]Write to MH i2c: F0 00 00 08 0D 04 [13:46:37]Write i2c OK [13:46:37]MH_I2C_Read... [13:46:37]Read from MH i2c: F0 [13:46:37]MH_I2C_Read... [13:46:37]Read from MH i2c: F0 09 00 [13:46:37]MH_I2C_Read... [13:46:37]Read from MH i2c: F0 09 00 08 0D 00 BF 1F F0 66 1B D0 5A 64 EA [13:46:37]GetLastDocTimeStamp 1727012634 [13:46:37]current date 1727012799 [13:46:37]FM_GetShiftState [13:46:37]SAM_PROTO_GetShiftState [13:46:37]wFMCommunicate request_size=4 [13:46:37]MH_SAM_APDU [13:46:37]CAPDU: 80 13 01 00 [13:46:37]Write to MH i2c: E2 08 00 09 0D 80 13 01 00 00 00 00 00 93 [13:46:37]Write i2c OK [13:46:37]MH_I2C_Read... [13:46:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:37]Read from MH i2c: E2 [13:46:37]MH_I2C_Read... [13:46:37]Read from MH i2c: E2 0E 00 [13:46:37]MH_I2C_Read... [13:46:37]Read from MH i2c: E2 0E 00 09 0D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 AC [13:46:37]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:46:37]wFMCommunicate OK [13:46:37]SAM_PROTO_GetShiftState done [13:46:37]FM_GetShiftState done [13:46:37]opened in 1726965840 [13:46:37]opened+sec_in_day 1727052240 [13:46:37]quantity*price = 0 [13:46:37]sum+1 = 1 [13:46:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 106 22.09.2024 13:46 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30126819 ФМ: 0000000000871830 ФД: 115388 ФПД: 124993083317834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T134639&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115388&fm=124993083317834&tin=02508201610067®Number=0000000000091831&sum=0 [13:46:38]StoreToDocumentArchive [13:46:38]shift 471 fd 115388 [13:46:38]save to /storage/0471/doc_00115388 [13:46:38]save last doc name /storage/0471/doc_00115388 to /storage/kkm_last_doc_name [13:46:38]save OK [13:46:38]Clear old archive folders... [13:46:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:46:38]tlvbuf is 01C087C0 [13:46:38]SAM_PROTO_ClearQueue [13:46:38]wFMCommunicate request_size=4 [13:46:38]MH_SAM_APDU [13:46:38]CAPDU: 80 09 00 00 [13:46:38]Write to MH i2c: E2 08 00 16 0D 80 09 00 00 00 00 00 00 95 [13:46:38]Write i2c OK [13:46:38]MH_I2C_Read... [13:46:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:38]Read from MH i2c: E2 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: E2 03 00 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: E2 03 00 16 0D 00 90 00 97 [13:46:38]RAPDU: 90 00 [13:46:38]wFMCommunicate OK [13:46:38]SAM_PROTO_ClearQueue done [13:46:38]KKMCreateOFDPacket [13:46:38]OFDProtocolAddRootSTLVToBuf [13:46:38]FM_MakeSignedData [13:46:38]FM_MakeSignedData [13:46:38]SAM_PROTO_SignData [13:46:38]wFMCommunicate request_size=4 [13:46:38]MH_SAM_APDU [13:46:38]CAPDU: 80 0D 01 02 [13:46:38]Write to MH i2c: E2 08 00 17 0D 80 0D 01 02 00 00 00 00 9D [13:46:38]Write i2c OK [13:46:38]MH_I2C_Read... [13:46:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:39]Read from MH i2c: E2 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 03 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 03 00 17 0D 00 90 00 98 [13:46:39]RAPDU: 90 00 [13:46:39]wFMCommunicate OK [13:46:39]wFMCommunicate request_size=255 [13:46:39]MH_SAM_APDU [13:46:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 24 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 BF 1F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BC C2 01 00 35 04 06 00 71 AE 38 54 [13:46:39]Write to MH i2c: E2 02 01 18 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 24 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 BF 1F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BC C2 01 00 35 04 06 00 71 AE 38 54 00 00 AF [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:39]Read from MH i2c: E2 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 03 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 03 00 18 0D 00 90 00 99 [13:46:39]RAPDU: 90 00 [13:46:39]wFMCommunicate OK [13:46:39]wFMCommunicate request_size=7 [13:46:39]MH_SAM_APDU [13:46:39]CAPDU: 80 0D 02 02 02 9E 4A [13:46:39]Write to MH i2c: E2 0A 00 19 0D 80 0D 02 02 02 00 9E 4A 00 00 8C [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:39]Read from MH i2c: E2 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 03 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 03 00 19 0D 00 90 00 9A [13:46:39]RAPDU: 90 00 [13:46:39]wFMCommunicate OK [13:46:39]wFMCommunicate request_size=4 [13:46:39]MH_SAM_APDU [13:46:39]CAPDU: 80 0D 03 02 [13:46:39]Write to MH i2c: E2 08 00 1A 0D 80 0D 03 02 00 00 00 00 A2 [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:39]Read from MH i2c: E2 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 0B 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 0B 00 1A 0D 00 D7 FE BE 8A 0D 49 B2 36 90 00 FE [13:46:39]RAPDU: D7 FE BE 8A 0D 49 B2 36 90 00 [13:46:39]wFMCommunicate OK [13:46:39]SAM_PROTO_SignData done [13:46:39]FM_MakeSignedData done [13:46:39]CreateOFDProtocolMessage [13:46:39]wFMCommunicate request_size=4 [13:46:39]MH_SAM_APDU [13:46:39]CAPDU: 80 11 00 00 [13:46:39]Write to MH i2c: E2 08 00 1B 0D 80 11 00 00 00 00 00 00 A2 [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:39]Read from MH i2c: E2 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 17 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 17 00 1B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F0 [13:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:46:39]wFMCommunicate OK [13:46:39]CreateOFDProtocolMessage done [13:46:39]OFDSenderStorePacket 115388 [13:46:39]StoreOFDPacket docnum=115388 [13:46:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 5C 30 04 01 DE 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 24 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 BF 1F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BC C2 01 00 35 04 06 00 71 AE 38 54 9E 4A D7 FE BE 8A 0D 49 B2 36 [13:46:39]CheckFolder [13:46:39]dirname=/storage/ofd_packets [13:46:39]CheckFolder done [13:46:39]ProducePacketName [13:46:39]name=ofd_packets/00115388 [13:46:39]NVStorageSaveData ofd_packets/00115388 [13:46:39]File name is /storage/ofd_packets/00115388 [13:46:39]Write 298 bytes [13:46:39]NVStorageSaveData done [13:46:39]OFDSenderStorePacket done [13:46:39]KKMCreateOFDPacket done [13:46:39]NVStorageSaveData kkm_last_timestamp [13:46:39]File name is /storage/kkm_last_timestamp [13:46:39]Write 4 bytes [13:46:39]NVStorageSaveData done [13:46:39]ExternCall_PrintAddStr [13:46:39]wPrintStart [13:46:39]Write to MH i2c: 01 00 00 1C 0D 29 [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: 01 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: 01 07 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: 01 07 00 1C 0D 00 00 00 00 00 FF 0F 3E [13:46:39]RasterBufferAndPrint [13:46:39]line Счет N : (1)24616796 [13:46:39]line ИНН: 02508201610067 [13:46:39]line Контрольно-Кассовый Чек [13:46:39]line ПРОДАЖА [13:46:39]line ТРК (МРК, ГНК) : 22 [13:46:39]line Товар: 2710194210 [13:46:39]line ДТ-К-5 [13:46:39]line 75.000 * 0.00 [13:46:39]line = 0.00 [13:46:39]line НДС 12% НСП 1% [13:46:39]line > о реализуемом товаре [13:46:39]line ИТОГО: 0.00 [13:46:39]line НСП 1% : 0.00 [13:46:39]line НДС 12% : 0.00 [13:46:39]line Наличными: 0.00 [13:46:39]line Безнал.: 0.00 [13:46:39]line Место: АЗС № 90 "Партнер Нефть" [13:46:39]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:46:39]line СНО: Общий режим [13:46:39]line Чек 106 22.09.2024 13:46 [13:46:39]line Смена: 471 ФФД: 1.0 [13:46:39]line ЗНМ: 0300000120 [13:46:39]line РНМ: 0000000000091831 [13:46:39]line Версия ККМ: 001 [13:46:39]line Талоны: ТК ГПНА Online [13:46:39]line 30126819 [13:46:39]line ФМ: 0000000000871830 [13:46:39]line ФД: 115388 [13:46:39]line ФПД: 124993083317834 [13:46:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T134639&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115388&fm=124993083317834&tin=02508201610067®Number=0000000000091831&sum=0 [13:46:39]written 0, free lines is 4095 [13:46:39]OFD Sender: Processing packet 115388 [packets to send 481, broken 480] [13:46:39]ProducePacketName [13:46:39]name=ofd_packets/00115388 [13:46:39]OFD Sender: To server: pG, [13:46:39]CommunicateWithHost lk.salyk.kg:30040 [13:46:39]ConnectInit lk.salyk.kg [13:46:39]Connected sock=10 [13:46:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 5C 30 04 01 DE 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 24 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 BF 1F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BC C2 01 00 35 04 06 00 71 AE 38 54 9E 4A D7 FE BE 8A 0D 49 B2 36 [13:46:39]Write to MH i2c: 01 00 00 45 0D 52 [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: 01 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: 01 07 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: 01 07 00 45 0D 00 00 00 00 00 7B 0C E0 [13:46:39]RasterBufferAndPrint [13:46:39]line [13:46:39]line [13:46:39]line [13:46:39]line [13:46:39]line [13:46:39]written 0, free lines is 3201 [13:46:39]MH_Cut [13:46:39]Write to MH i2c: D1 01 00 4C 0D 01 2B [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: D1 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: D1 01 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: D1 01 00 4C 0D 00 2A [13:46:39]Write to MH i2c: 01 00 00 4D 0D 5A [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6E EF 47 00 22 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BC C2 01 00 F4 03 04 00 04 C5 EF 66 B6 04 01 00 00 D3 43 EF A7 44 45 28 14 [13:46:40]CommunicateWithHost err = 0 [13:46:40]CheckOFDResponse [13:46:40]1017 (14) - 77093643461234 [13:46:40]1041 (16) - 0000000000871830 [13:46:40]1040 (4) - 115388 [13:46:40]1012 (4) - 22.09.2024 07:19 [13:46:40]1206 (1) - 0 [13:46:40]OFD Sender: Remove packet 115388 [13:46:40]ProducePacketName [13:46:40]name=ofd_packets/00115388 [13:46:40]NVStorageDeleteData [13:46:40]OFD Sender: No OFD packet to send [13:46:41]*** Cut start [13:46:41]*** Partial cut [13:46:41]*** CUTSNS_PIN = 1 [13:46:41]*** CUTSNS_PIN = 0 [13:46:41]*** Brake cut motor [13:46:41]Read from MH i2c: 01 [13:46:41]MH_I2C_Read... [13:46:41]*** Stop cut motor [13:46:41]*** Cut end [13:46:41]Read from MH i2c: 01 07 00 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: 01 07 00 4D 0D 00 00 00 00 00 FF 0F 6F [13:46:41]process_action close_receipt done [13:46:41]requested_data is exist [13:46:41]produce_requested_data [13:46:41]requested_item fm.sn is exist - process it [13:46:41]wFMCommunicate request_size=4 [13:46:41]MH_SAM_APDU [13:46:41]CAPDU: 80 11 00 00 [13:46:41]Write to MH i2c: E2 08 00 4E 0D 80 11 00 00 00 00 00 00 D5 [13:46:41]Write i2c OK [13:46:41]MH_I2C_Read... [13:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:41]Read from MH i2c: E2 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 17 00 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 17 00 4E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 23 [13:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:46:41]wFMCommunicate OK [13:46:41]requested_item fd.num is exist - process it [13:46:41]SAM_PROTO_GetFieldsCounters [13:46:41]wFMCommunicate request_size=4 [13:46:41]MH_SAM_APDU [13:46:41]CAPDU: 80 13 00 00 [13:46:41]Write to MH i2c: E2 08 00 4F 0D 80 13 00 00 00 00 00 00 D8 [13:46:41]Write i2c OK [13:46:41]MH_I2C_Read... [13:46:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:41]Read from MH i2c: E2 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 62 00 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 62 00 4F 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BC C2 01 00 0E 04 04 00 D7 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 86 [13:46:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BC C2 01 00 0E 04 04 00 D7 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 [13:46:41]wFMCommunicate OK [13:46:41]SAM_PROTO_GetFieldsCounters done [13:46:41]requested_item shift.num is exist - process it [13:46:41]requested_item shift.opened is exist - process it [13:46:41]req_shift_opened [13:46:41]FM_GetShiftState [13:46:41]SAM_PROTO_GetShiftState [13:46:41]wFMCommunicate request_size=4 [13:46:41]MH_SAM_APDU [13:46:41]CAPDU: 80 13 01 00 [13:46:41]Write to MH i2c: E2 08 00 50 0D 80 13 01 00 00 00 00 00 DA [13:46:41]Write i2c OK [13:46:41]MH_I2C_Read... [13:46:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:41]Read from MH i2c: E2 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 0E 00 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 0E 00 50 0D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F3 [13:46:41]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:46:41]wFMCommunicate OK [13:46:41]SAM_PROTO_GetShiftState done [13:46:41]FM_GetShiftState done [13:46:41]req_shift_opened done [13:46:41]requested_item shift.open_date is exist - process it [13:46:41]req_shift_open_date [13:46:41]req_shift_open_date done [13:46:41]produce_requested_data done [13:46:41]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115388,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [13:46:41]process_action_free close_receipt [13:46:41]json_value_free [13:46:41]json_value_free done [13:46:41]process_json_proto returns [13:46:41]Send response to host [13:46:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115388,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [13:46:41]free response buf [13:46:41]execute_script done [13:46:41]execute_script returns [13:46:41]free content buf [13:46:41]Sock 9.Close socket [13:46:41]Sock 9.Thread stoped [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:15]accept exits with 8 [13:47:15]New connection [13:47:15]New thread 3066826084 created [13:47:15]Thread 3066682724 joined [13:47:15]Waiting for new connection... [13:47:15] Sock 8.Parse request [13:47:15]Sock 8.Check first char [13:47:15]Sock 8.First char is OK [13:47:15]request: POST /json_proto HTTP/1.0 [13:47:15]Method: POST [13:47:15]URL: /json_proto [13:47:15]Method is POST - this is cgi request [13:47:15]url: /json_proto [13:47:15]query_string will be loaded in cgi processing [13:47:15]execute_cgi json_proto POST (null) [13:47:15]execute_cgi path=json_proto method=POST [13:47:15]POST find Content-Length [13:47:15]Host: 172.17.41.136:8080 [13:47:15]Content-Length: 754 [13:47:15]Content-Type: application/json [13:47:15] [13:47:15]POST finish read [13:47:15]Found Content-Length = 754 [13:47:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 35", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 125.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30126835", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:15]execute_script... [13:47: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)24616793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 35", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 125.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30126835", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:15]POST & json_proto [13:47:15]process_json_proto [13:47:15]json parsed OK: [13:47:15]protocol is kg_v1.0 [13:47:15]action value=close_receipt [13:47:15]process_action close_receipt [13:47:15]cmd_close_receipt [13:47:15]MH_GetDate [13:47:15]Write to MH i2c: F0 00 00 51 0D 4D [13:47:15]Write i2c OK [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: F0 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: F0 09 00 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: F0 09 00 51 0D 00 E5 1F F0 66 1B D0 5A 64 59 [13:47:15]GetLastDocTimeStamp 1727012799 [13:47:15]current date 1727012837 [13:47:15]FM_GetShiftState [13:47:15]SAM_PROTO_GetShiftState [13:47:15]wFMCommunicate request_size=4 [13:47:15]MH_SAM_APDU [13:47:15]CAPDU: 80 13 01 00 [13:47:15]Write to MH i2c: E2 08 00 52 0D 80 13 01 00 00 00 00 00 DC [13:47:15]Write i2c OK [13:47:15]MH_I2C_Read... [13:47:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:15]Read from MH i2c: E2 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 0E 00 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 0E 00 52 0D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F5 [13:47:15]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:47:15]wFMCommunicate OK [13:47:15]SAM_PROTO_GetShiftState done [13:47:15]FM_GetShiftState done [13:47:15]opened in 1726965840 [13:47:15]opened+sec_in_day 1727052240 [13:47:15]quantity*price = 0 [13:47:15]sum+1 = 1 [13:47:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 107 22.09.2024 13:47 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30126835 ФМ: 0000000000871830 ФД: 115389 ФПД: 92055947269537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T134717&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115389&fm=92055947269537&tin=02508201610067®Number=0000000000091831&sum=0 [13:47:16]StoreToDocumentArchive [13:47:16]shift 471 fd 115389 [13:47:16]save to /storage/0471/doc_00115389 [13:47:16]save last doc name /storage/0471/doc_00115389 to /storage/kkm_last_doc_name [13:47:16]save OK [13:47:16]Clear old archive folders... [13:47:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:47:16]tlvbuf is 01C399E0 [13:47:16]SAM_PROTO_ClearQueue [13:47:16]wFMCommunicate request_size=4 [13:47:16]MH_SAM_APDU [13:47:16]CAPDU: 80 09 00 00 [13:47:16]Write to MH i2c: E2 08 00 5F 0D 80 09 00 00 00 00 00 00 DE [13:47:16]Write i2c OK [13:47:16]MH_I2C_Read... [13:47:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:16]Read from MH i2c: E2 [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: E2 03 00 [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: E2 03 00 5F 0D 00 90 00 E0 [13:47:16]RAPDU: 90 00 [13:47:16]wFMCommunicate OK [13:47:16]SAM_PROTO_ClearQueue done [13:47:16]KKMCreateOFDPacket [13:47:16]OFDProtocolAddRootSTLVToBuf [13:47:16]FM_MakeSignedData [13:47:16]FM_MakeSignedData [13:47:16]SAM_PROTO_SignData [13:47:16]wFMCommunicate request_size=4 [13:47:16]MH_SAM_APDU [13:47:16]CAPDU: 80 0D 01 02 [13:47:16]Write to MH i2c: E2 08 00 60 0D 80 0D 01 02 00 00 00 00 E6 [13:47:17]Write i2c OK [13:47:17]MH_I2C_Read... [13:47:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:17]Read from MH i2c: E2 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: E2 03 00 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: E2 03 00 60 0D 00 90 00 E1 [13:47:17]RAPDU: 90 00 [13:47:17]wFMCommunicate OK [13:47:17]wFMCommunicate request_size=255 [13:47:17]MH_SAM_APDU [13:47:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 E5 1F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BD C2 01 00 35 04 06 00 53 B9 72 09 [13:47:17]Write to MH i2c: E2 02 01 61 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 E5 1F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BD C2 01 00 35 04 06 00 53 B9 72 09 00 00 10 [13:47:17]Write i2c OK [13:47:17]MH_I2C_Read... [13:47:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:17]Read from MH i2c: E2 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: E2 03 00 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: E2 03 00 61 0D 00 90 00 E2 [13:47:17]RAPDU: 90 00 [13:47:17]wFMCommunicate OK [13:47:17]wFMCommunicate request_size=7 [13:47:17]MH_SAM_APDU [13:47:17]CAPDU: 80 0D 02 02 02 55 A1 [13:47:17]Write to MH i2c: E2 0A 00 62 0D 80 0D 02 02 02 00 55 A1 00 00 E3 [13:47:17]Write i2c OK [13:47:17]MH_I2C_Read... [13:47:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:17]Read from MH i2c: E2 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: E2 03 00 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: E2 03 00 62 0D 00 90 00 E3 [13:47:17]RAPDU: 90 00 [13:47:17]wFMCommunicate OK [13:47:17]wFMCommunicate request_size=4 [13:47:17]MH_SAM_APDU [13:47:17]CAPDU: 80 0D 03 02 [13:47:17]Write to MH i2c: E2 08 00 63 0D 80 0D 03 02 00 00 00 00 EB [13:47:17]Write i2c OK [13:47:17]MH_I2C_Read... [13:47:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:17]Read from MH i2c: E2 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: E2 0B 00 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: E2 0B 00 63 0D 00 19 E4 DD 97 42 D2 25 0C 90 00 A2 [13:47:17]RAPDU: 19 E4 DD 97 42 D2 25 0C 90 00 [13:47:17]wFMCommunicate OK [13:47:17]SAM_PROTO_SignData done [13:47:17]FM_MakeSignedData done [13:47:17]CreateOFDProtocolMessage [13:47:17]wFMCommunicate request_size=4 [13:47:17]MH_SAM_APDU [13:47:17]CAPDU: 80 11 00 00 [13:47:17]Write to MH i2c: E2 08 00 64 0D 80 11 00 00 00 00 00 00 EB [13:47:17]Write i2c OK [13:47:17]MH_I2C_Read... [13:47:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:17]Read from MH i2c: E2 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: E2 17 00 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: E2 17 00 64 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 39 [13:47:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:47:17]wFMCommunicate OK [13:47:17]CreateOFDProtocolMessage done [13:47:17]OFDSenderStorePacket 115389 [13:47:17]StoreOFDPacket docnum=115389 [13:47:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 FA 2B 04 01 13 DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 E5 1F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BD C2 01 00 35 04 06 00 53 B9 72 09 55 A1 19 E4 DD 97 42 D2 25 0C [13:47:17]CheckFolder [13:47:17]dirname=/storage/ofd_packets [13:47:17]CheckFolder done [13:47:17]ProducePacketName [13:47:17]name=ofd_packets/00115389 [13:47:17]NVStorageSaveData ofd_packets/00115389 [13:47:17]File name is /storage/ofd_packets/00115389 [13:47:17]Write 298 bytes [13:47:17]NVStorageSaveData done [13:47:17]OFDSenderStorePacket done [13:47:17]KKMCreateOFDPacket done [13:47:17]NVStorageSaveData kkm_last_timestamp [13:47:17]File name is /storage/kkm_last_timestamp [13:47:17]Write 4 bytes [13:47:17]NVStorageSaveData done [13:47:17]ExternCall_PrintAddStr [13:47:17]wPrintStart [13:47:17]Write to MH i2c: 01 00 00 65 0D 72 [13:47:17]Write i2c OK [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: 01 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: 01 07 00 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: 01 07 00 65 0D 00 00 00 00 00 FF 0F 87 [13:47:17]RasterBufferAndPrint [13:47:17]line Счет N : (1)24616793 [13:47:17]line ИНН: 02508201610067 [13:47:17]line Контрольно-Кассовый Чек [13:47:17]line ПРОДАЖА [13:47:17]line ТРК (МРК, ГНК) : 35 [13:47:17]line Товар: 2710194210 [13:47:17]line ДТ-К-5 [13:47:17]line 125.000 * 0.00 [13:47:17]line = 0.00 [13:47:17]line НДС 12% НСП 1% [13:47:17]line > о реализуемом товаре [13:47:17]line ИТОГО: 0.00 [13:47:17]line НСП 1% : 0.00 [13:47:17]line НДС 12% : 0.00 [13:47:17]line Наличными: 0.00 [13:47:17]line Безнал.: 0.00 [13:47:17]line Место: АЗС № 90 "Партнер Нефть" [13:47:17]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:47:17]line СНО: Общий режим [13:47:17]line Чек 107 22.09.2024 13:47 [13:47:17]line Смена: 471 ФФД: 1.0 [13:47:17]line ЗНМ: 0300000120 [13:47:17]line РНМ: 0000000000091831 [13:47:17]line Версия ККМ: 001 [13:47:17]line Талоны: ТК ГПНА Online [13:47:17]line 30126835 [13:47:17]line ФМ: 0000000000871830 [13:47:17]line ФД: 115389 [13:47:17]line ФПД: 92055947269537 [13:47:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T134717&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115389&fm=92055947269537&tin=02508201610067®Number=0000000000091831&sum=0 [13:47:17]written 0, free lines is 4095 [13:47:17]OFD Sender: Processing packet 115389 [packets to send 481, broken 480] [13:47:17]ProducePacketName [13:47:17]name=ofd_packets/00115389 [13:47:17]OFD Sender: To server: pG, [13:47:17]CommunicateWithHost lk.salyk.kg:30040 [13:47:17]ConnectInit lk.salyk.kg [13:47:17]Connected sock=10 [13:47:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 FA 2B 04 01 13 DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 E5 1F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BD C2 01 00 35 04 06 00 53 B9 72 09 55 A1 19 E4 DD 97 42 D2 25 0C [13:47:17]Write to MH i2c: 01 00 00 8E 0D 9B [13:47:17]Write i2c OK [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: 01 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: 01 07 00 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: 01 07 00 8E 0D 00 00 00 00 00 7C 0C 2A [13:47:17]RasterBufferAndPrint [13:47:17]line [13:47:17]line [13:47:17]line [13:47:17]line [13:47:17]line [13:47:17]written 0, free lines is 3200 [13:47:17]MH_Cut [13:47:17]Write to MH i2c: D1 01 00 95 0D 01 74 [13:47:17]Write i2c OK [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: D1 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: D1 01 00 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: D1 01 00 95 0D 00 73 [13:47:17]Write to MH i2c: 01 00 00 96 0D A3 [13:47:17]Write i2c OK [13:47:17]MH_I2C_Read... [13:47:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 94 34 47 00 AC 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BD C2 01 00 F4 03 04 00 2B C5 EF 66 B6 04 01 00 00 52 ED 7A 94 61 0C F2 26 [13:47:18]CommunicateWithHost err = 0 [13:47:18]CheckOFDResponse [13:47:18]1017 (14) - 77093643461234 [13:47:18]1041 (16) - 0000000000871830 [13:47:18]1040 (4) - 115389 [13:47:18]1012 (4) - 22.09.2024 07:20 [13:47:18]1206 (1) - 0 [13:47:18]OFD Sender: Remove packet 115389 [13:47:18]ProducePacketName [13:47:18]name=ofd_packets/00115389 [13:47:18]NVStorageDeleteData [13:47:18]OFD Sender: No OFD packet to send [13:47:19]*** Cut start [13:47:19]*** Partial cut [13:47:19]*** CUTSNS_PIN = 1 [13:47:19]*** CUTSNS_PIN = 0 [13:47:19]*** Brake cut motor [13:47:19]Read from MH i2c: 01 [13:47:19]MH_I2C_Read... [13:47:19]*** Stop cut motor [13:47:19]*** Cut end [13:47:19]Read from MH i2c: 01 07 00 [13:47:19]MH_I2C_Read... [13:47:19]Read from MH i2c: 01 07 00 96 0D 00 00 00 00 00 FF 0F B8 [13:47:19]process_action close_receipt done [13:47:19]requested_data is exist [13:47:19]produce_requested_data [13:47:19]requested_item fm.sn is exist - process it [13:47:19]wFMCommunicate request_size=4 [13:47:19]MH_SAM_APDU [13:47:19]CAPDU: 80 11 00 00 [13:47:19]Write to MH i2c: E2 08 00 97 0D 80 11 00 00 00 00 00 00 1E [13:47:19]Write i2c OK [13:47:19]MH_I2C_Read... [13:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:19]Read from MH i2c: E2 [13:47:19]MH_I2C_Read... [13:47:19]Read from MH i2c: E2 17 00 [13:47:19]MH_I2C_Read... [13:47:19]Read from MH i2c: E2 17 00 97 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6C [13:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:47:19]wFMCommunicate OK [13:47:19]requested_item fd.num is exist - process it [13:47:19]SAM_PROTO_GetFieldsCounters [13:47:19]wFMCommunicate request_size=4 [13:47:19]MH_SAM_APDU [13:47:19]CAPDU: 80 13 00 00 [13:47:19]Write to MH i2c: E2 08 00 98 0D 80 13 00 00 00 00 00 00 21 [13:47:19]Write i2c OK [13:47:19]MH_I2C_Read... [13:47:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:19]Read from MH i2c: E2 [13:47:19]MH_I2C_Read... [13:47:19]Read from MH i2c: E2 62 00 [13:47:19]MH_I2C_Read... [13:47:19]Read from MH i2c: E2 62 00 98 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BD C2 01 00 0E 04 04 00 D7 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 D3 [13:47: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BD C2 01 00 0E 04 04 00 D7 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 [13:47:19]wFMCommunicate OK [13:47:19]SAM_PROTO_GetFieldsCounters done [13:47:19]requested_item shift.num is exist - process it [13:47:19]requested_item shift.opened is exist - process it [13:47:19]req_shift_opened [13:47:19]FM_GetShiftState [13:47:19]SAM_PROTO_GetShiftState [13:47:19]wFMCommunicate request_size=4 [13:47:19]MH_SAM_APDU [13:47:19]CAPDU: 80 13 01 00 [13:47:19]Write to MH i2c: E2 08 00 99 0D 80 13 01 00 00 00 00 00 23 [13:47:19]Write i2c OK [13:47:19]MH_I2C_Read... [13:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:20]Read from MH i2c: E2 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: E2 0E 00 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: E2 0E 00 99 0D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 3C [13:47:20]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:47:20]wFMCommunicate OK [13:47:20]SAM_PROTO_GetShiftState done [13:47:20]FM_GetShiftState done [13:47:20]req_shift_opened done [13:47:20]requested_item shift.open_date is exist - process it [13:47:20]req_shift_open_date [13:47:20]req_shift_open_date done [13:47:20]produce_requested_data done [13:47:20]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115389,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [13:47:20]process_action_free close_receipt [13:47:20]json_value_free [13:47:20]json_value_free done [13:47:20]process_json_proto returns [13:47:20]Send response to host [13:47:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115389,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [13:47:20]free response buf [13:47:20]execute_script done [13:47:20]execute_script returns [13:47:20]free content buf [13:47:20]Sock 8.Close socket [13:47:20]Sock 8.Thread stoped [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:32]accept exits with 9 [13:47:32]New connection [13:47:32]New thread 3066682724 created [13:47:32]Thread 3066826084 joined [13:47:32]Waiting for new connection... [13:47:32] Sock 9.Parse request [13:47:32]Sock 9.Check first char [13:47:32]Sock 9.First char is OK [13:47:32]request: POST /json_proto HTTP/1.0 [13:47:32]Method: POST [13:47:32]URL: /json_proto [13:47:32]Method is POST - this is cgi request [13:47:32]url: /json_proto [13:47:32]query_string will be loaded in cgi processing [13:47:32]execute_cgi json_proto POST (null) [13:47:32]execute_cgi path=json_proto method=POST [13:47:32]POST find Content-Length [13:47:32]Host: 172.17.41.136:8080 [13:47:32]Content-Length: 1221 [13:47:32]Content-Type: application/json [13:47:32] [13:47:32]POST finish read [13:47:32]Found Content-Length = 1221 [13:47:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343837", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481514", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 URBAN 312 1,0 \u043B \u041F\u042D\u0422", "price" : 176.00, "quantity" : 1.000, "sum" : 176.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 318.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:32]execute_script... [13:47:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343837", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481514", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 URBAN 312 1,0 \u043B \u041F\u042D\u0422", "price" : 176.00, "quantity" : 1.000, "sum" : 176.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 318.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:32]POST & json_proto [13:47:32]process_json_proto [13:47:32]json parsed OK: [13:47:32]protocol is kg_v1.0 [13:47:32]action value=close_receipt [13:47:32]process_action close_receipt [13:47:32]cmd_close_receipt [13:47:32]MH_GetDate [13:47:32]Write to MH i2c: F0 00 00 9A 0D 96 [13:47:32]Write i2c OK [13:47:32]MH_I2C_Read... [13:47:32]Read from MH i2c: F0 [13:47:32]MH_I2C_Read... [13:47:32]Read from MH i2c: F0 09 00 [13:47:32]MH_I2C_Read... [13:47:32]Read from MH i2c: F0 09 00 9A 0D 00 F5 1F F0 66 1B D0 5A 64 B2 [13:47:32]GetLastDocTimeStamp 1727012837 [13:47:32]current date 1727012853 [13:47:32]FM_GetShiftState [13:47:32]SAM_PROTO_GetShiftState [13:47:32]wFMCommunicate request_size=4 [13:47:32]MH_SAM_APDU [13:47:32]CAPDU: 80 13 01 00 [13:47:32]Write to MH i2c: E2 08 00 9B 0D 80 13 01 00 00 00 00 00 25 [13:47:32]Write i2c OK [13:47:32]MH_I2C_Read... [13:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:32]Read from MH i2c: E2 [13:47:32]MH_I2C_Read... [13:47:32]Read from MH i2c: E2 0E 00 [13:47:32]MH_I2C_Read... [13:47:32]Read from MH i2c: E2 0E 00 9B 0D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 3E [13:47:32]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:47:32]wFMCommunicate OK [13:47:32]SAM_PROTO_GetShiftState done [13:47:32]FM_GetShiftState done [13:47:32]opened in 1726965840 [13:47:32]opened+sec_in_day 1727052240 [13:47:32]quantity*price = 6500 [13:47:32]sum+1 = 6501 [13:47:32]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000481514 ПИВО СВЕТЛОЕ URBAN 312 1,0 л ПЭТ 1.000 * 176.00 = 176.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870233466272 Мороженое Пломбир Миша 1.000 * 77.00 = 77.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 318.00 НСП 1% : 2.81 НДС 12% : 33.77 Наличными: 318.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 108 22.09.2024 13:47 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115390 ФПД: 43727702629693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T134733&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115390&fm=43727702629693&tin=02508201610067®Number=0000000000091831&sum=31800 0 [13:47:33]StoreToDocumentArchive [13:47:33]shift 471 fd 115390 [13:47:33]save to /storage/0471/doc_00115390 [13:47:33]save last doc name /storage/0471/doc_00115390 to /storage/kkm_last_doc_name [13:47:33]save OK [13:47:33]Clear old archive folders... [13:47:33]ProcessDocumentItem done err = 0, tmpTLVsize=505 [13:47:33]tlvbuf is 01C3E470 [13:47:33]SAM_PROTO_ClearQueue [13:47:33]wFMCommunicate request_size=4 [13:47:33]MH_SAM_APDU [13:47:33]CAPDU: 80 09 00 00 [13:47:33]Write to MH i2c: E2 08 00 A8 0D 80 09 00 00 00 00 00 00 27 [13:47:33]Write i2c OK [13:47:33]MH_I2C_Read... [13:47:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:33]Read from MH i2c: E2 [13:47:33]MH_I2C_Read... [13:47:33]Read from MH i2c: E2 03 00 [13:47:33]MH_I2C_Read... [13:47:33]Read from MH i2c: E2 03 00 A8 0D 00 90 00 29 [13:47:33]RAPDU: 90 00 [13:47:33]wFMCommunicate OK [13:47:33]SAM_PROTO_ClearQueue done [13:47:33]KKMCreateOFDPacket [13:47:33]OFDProtocolAddRootSTLVToBuf [13:47:33]FM_MakeSignedData [13:47:33]FM_MakeSignedData [13:47:33]SAM_PROTO_SignData [13:47:33]wFMCommunicate request_size=4 [13:47:33]MH_SAM_APDU [13:47:33]CAPDU: 80 0D 01 02 [13:47:33]Write to MH i2c: E2 08 00 A9 0D 80 0D 01 02 00 00 00 00 2F [13:47:33]Write i2c OK [13:47:33]MH_I2C_Read... [13:47:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:33]Read from MH i2c: E2 [13:47:33]MH_I2C_Read... [13:47:33]Read from MH i2c: E2 03 00 [13:47:33]MH_I2C_Read... [13:47:33]Read from MH i2c: E2 03 00 A9 0D 00 90 00 2A [13:47:33]RAPDU: 90 00 [13:47:33]wFMCommunicate OK [13:47:33]wFMCommunicate request_size=255 [13:47:33]MH_SAM_APDU [13:47:33]CAPDU: 80 0D 02 02 FA 03 00 F9 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 44 00 00 00 00 13 04 06 00 C0 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 [13:47:33]Write to MH i2c: E2 02 01 AA 0D 80 0D 02 02 FA 00 03 00 F9 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 44 00 00 00 00 13 04 06 00 C0 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 00 00 BB [13:47:33]OFD Sender: No OFD packet to send [13:47:33]Write i2c OK [13:47:33]MH_I2C_Read... [13:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:34]Read from MH i2c: E2 [13:47:34]MH_I2C_Read... [13:47:34]Read from MH i2c: E2 03 00 [13:47:34]MH_I2C_Read... [13:47:34]Read from MH i2c: E2 03 00 AA 0D 00 90 00 2B [13:47:34]RAPDU: 90 00 [13:47:34]wFMCommunicate OK [13:47:34]wFMCommunicate request_size=255 [13:47:34]MH_SAM_APDU [13:47:34]CAPDU: 80 0D 02 02 FA 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 F5 1F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BE C2 01 00 35 [13:47:34]Write to MH i2c: E2 02 01 AB 0D 80 0D 02 02 FA 00 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 F5 1F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BE C2 01 00 35 00 00 19 [13:47:34]Write i2c OK [13:47:34]MH_I2C_Read... [13:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:34]Read from MH i2c: E2 [13:47:34]MH_I2C_Read... [13:47:34]Read from MH i2c: E2 03 00 [13:47:34]MH_I2C_Read... [13:47:34]Read from MH i2c: E2 03 00 AB 0D 00 90 00 2C [13:47:34]RAPDU: 90 00 [13:47:34]wFMCommunicate OK [13:47:34]wFMCommunicate request_size=14 [13:47:34]MH_SAM_APDU [13:47:34]CAPDU: 80 0D 02 02 09 04 06 00 27 C5 26 2E 9D 3D [13:47:34]Write to MH i2c: E2 11 00 AC 0D 80 0D 02 02 09 00 04 06 00 27 C5 26 2E 9D 3D 00 00 69 [13:47:34]Write i2c OK [13:47:34]MH_I2C_Read... [13:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:34]Read from MH i2c: E2 [13:47:34]MH_I2C_Read... [13:47:34]Read from MH i2c: E2 03 00 [13:47:34]MH_I2C_Read... [13:47:34]Read from MH i2c: E2 03 00 AC 0D 00 90 00 2D [13:47:34]RAPDU: 90 00 [13:47:34]wFMCommunicate OK [13:47:34]wFMCommunicate request_size=4 [13:47:34]MH_SAM_APDU [13:47:34]CAPDU: 80 0D 03 02 [13:47:34]Write to MH i2c: E2 08 00 AD 0D 80 0D 03 02 00 00 00 00 35 [13:47:34]Write i2c OK [13:47:34]MH_I2C_Read... [13:47:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:34]Read from MH i2c: E2 [13:47:34]MH_I2C_Read... [13:47:34]Read from MH i2c: E2 0B 00 [13:47:34]MH_I2C_Read... [13:47:34]Read from MH i2c: E2 0B 00 AD 0D 00 10 B7 8A FE A6 DC E8 F3 90 00 E2 [13:47:34]RAPDU: 10 B7 8A FE A6 DC E8 F3 90 00 [13:47:34]wFMCommunicate OK [13:47:34]SAM_PROTO_SignData done [13:47:34]FM_MakeSignedData done [13:47:34]CreateOFDProtocolMessage [13:47:34]wFMCommunicate request_size=4 [13:47:34]MH_SAM_APDU [13:47:34]CAPDU: 80 11 00 00 [13:47:34]Write to MH i2c: E2 08 00 AE 0D 80 11 00 00 00 00 00 00 35 [13:47:34]Write i2c OK [13:47:34]MH_I2C_Read... [13:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:34]Read from MH i2c: E2 [13:47:34]MH_I2C_Read... [13:47:34]Read from MH i2c: E2 17 00 [13:47:34]MH_I2C_Read... [13:47:34]Read from MH i2c: E2 17 00 AE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 83 [13:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:47:34]wFMCommunicate OK [13:47:34]CreateOFDProtocolMessage done [13:47:34]OFDSenderStorePacket 115390 [13:47:34]StoreOFDPacket docnum=115390 [13:47:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 02 00 00 CC 8A 05 02 3C B7 5A 03 01 00 03 00 F9 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 44 00 00 00 00 13 04 06 00 C0 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 F5 1F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BE C2 01 00 35 04 06 00 27 C5 26 2E 9D 3D 10 B7 8A FE A6 DC E8 F3 [13:47:34]CheckFolder [13:47:34]dirname=/storage/ofd_packets [13:47:34]CheckFolder done [13:47:34]ProducePacketName [13:47:34]name=ofd_packets/00115390 [13:47:34]NVStorageSaveData ofd_packets/00115390 [13:47:34]File name is /storage/ofd_packets/00115390 [13:47:34]Write 555 bytes [13:47:34]NVStorageSaveData done [13:47:34]OFDSenderStorePacket done [13:47:34]KKMCreateOFDPacket done [13:47:34]NVStorageSaveData kkm_last_timestamp [13:47:34]File name is /storage/kkm_last_timestamp [13:47:34]Write 4 bytes [13:47:34]NVStorageSaveData done [13:47:34]ExternCall_PrintAddStr [13:47:34]wPrintStart [13:47:34]Write to MH i2c: 01 00 00 AF 0D BC [13:47:34]Write i2c OK [13:47:34]MH_I2C_Read... [13:47:34]Read from MH i2c: 01 [13:47:34]MH_I2C_Read... [13:47:34]Read from MH i2c: 01 07 00 [13:47:34]MH_I2C_Read... [13:47:34]Read from MH i2c: 01 07 00 AF 0D 00 00 00 00 00 FF 0F D1 [13:47:34]RasterBufferAndPrint [13:47:34]line Счет N : (3)343837 [13:47:34]line ИНН: 02508201610067 [13:47:34]line Контрольно-Кассовый Чек [13:47:34]line ПРОДАЖА [13:47:34]line Товар: 47011656 [13:47:34]line Водка Пшеничная 0,1л [13:47:34]line 1.000 * 65.00 [13:47:34]line = 65.00 [13:47:34]line НДС 12% НСП 1% [13:47:34]line > о реализуемом товаре [13:47:34]line Товар: 4700000481514 [13:47:34]line ПИВО СВЕТЛОЕ URBAN 312 1,0 л ПЭТ [13:47:34]line 1.000 * 176.00 [13:47:34]line = 176.00 [13:47:34]line НДС 12% НСП 1% [13:47:34]line > о реализуемом товаре [13:47:34]line Товар: 4870233466272 [13:47:34]line Мороженое Пломбир Миша [13:47:34]line 1.000 * 77.00 [13:47:34]line = 77.00 [13:47:34]line НДС 12% НСП 1% [13:47:34]line > о реализуемом товаре [13:47:34]line ИТОГО: 318.00 [13:47:34]line НСП 1% : 2.81 [13:47:34]line НДС 12% : 33.77 [13:47:34]line Наличными: 318.00 [13:47:34]line Безнал.: 0.00 [13:47:34]line Место: АЗС № 90 "Партнер Нефть" [13:47:34]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:47:34]line СНО: Общий режим [13:47:34]line Чек 108 22.09.2024 13:47 [13:47:34]line Смена: 471 ФФД: 1.0 [13:47:34]line ЗНМ: 0300000120 [13:47:34]line РНМ: 0000000000091831 [13:47:34]line Версия ККМ: 001 [13:47:34]line ФМ: 0000000000871830 [13:47:34]line ФД: 115390 [13:47:34]line ФПД: 43727702629693 [13:47:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T134733&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115390&fm=43727702629693&tin=02508201610067®Number=0000000000091831&sum=31800 [13:47:34]line 0 [13:47:34]written 0, free lines is 4095 [13:47:34]OFD Sender: Processing packet 115390 [packets to send 481, broken 480] [13:47:34]ProducePacketName [13:47:34]name=ofd_packets/00115390 [13:47:34]OFD Sender: To server: pG, [13:47:34]CommunicateWithHost lk.salyk.kg:30040 [13:47:34]ConnectInit lk.salyk.kg [13:47:34]Connected sock=10 [13:47:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 02 00 00 CC 8A 05 02 3C B7 5A 03 01 00 03 00 F9 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 44 00 00 00 00 13 04 06 00 C0 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 F5 1F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BE C2 01 00 35 04 06 00 27 C5 26 2E 9D 3D 10 B7 8A FE A6 DC E8 F3 [13:47:35]Write to MH i2c: 01 00 00 E3 0D F0 [13:47:35]Write i2c OK [13:47:35]MH_I2C_Read... [13:47:35]Read from MH i2c: 01 [13:47:35]MH_I2C_Read... [13:47:35]Read from MH i2c: 01 07 00 [13:47:35]MH_I2C_Read... [13:47:35]Read from MH i2c: 01 07 00 E3 0D 00 00 00 00 00 81 0B 83 [13:47:35]RasterBufferAndPrint [13:47:35]line [13:47:35]line [13:47:35]line [13:47:35]line [13:47:35]line [13:47:35]written 0, free lines is 2948 [13:47:35]MH_Cut [13:47:35]Write to MH i2c: D1 01 00 EA 0D 01 C9 [13:47:35]Write i2c OK [13:47:35]MH_I2C_Read... [13:47:35]Read from MH i2c: D1 [13:47:35]MH_I2C_Read... [13:47:35]Read from MH i2c: D1 01 00 [13:47:35]MH_I2C_Read... [13:47:35]Read from MH i2c: D1 01 00 EA 0D 00 C8 [13:47:35]Write to MH i2c: 01 00 00 EB 0D F8 [13:47:35]Write i2c OK [13:47:35]MH_I2C_Read... [13:47:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A4 62 47 00 E8 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BE C2 01 00 F4 03 04 00 3C C5 EF 66 B6 04 01 00 00 27 B3 D7 0A 2F 43 61 36 [13:47:35]CommunicateWithHost err = 0 [13:47:35]CheckOFDResponse [13:47:35]1017 (14) - 77093643461234 [13:47:35]1041 (16) - 0000000000871830 [13:47:35]1040 (4) - 115390 [13:47:35]1012 (4) - 22.09.2024 07:20 [13:47:35]1206 (1) - 0 [13:47:35]OFD Sender: Remove packet 115390 [13:47:35]ProducePacketName [13:47:35]name=ofd_packets/00115390 [13:47:35]NVStorageDeleteData [13:47:35]OFD Sender: No OFD packet to send [13:47:36]*** Cut start [13:47:36]*** Partial cut [13:47:36]*** CUTSNS_PIN = 1 [13:47:36]*** CUTSNS_PIN = 0 [13:47:36]*** Brake cut motor [13:47:37]Read from MH i2c: 01 [13:47:37]MH_I2C_Read... [13:47:37]*** Stop cut motor [13:47:37]*** Cut end [13:47:37]Read from MH i2c: 01 07 00 [13:47:37]MH_I2C_Read... [13:47:37]Read from MH i2c: 01 07 00 EB 0D 00 00 00 00 00 FF 0F 0D [13:47:37]process_action close_receipt done [13:47:37]requested_data is exist [13:47:37]produce_requested_data [13:47:37]requested_item fm.sn is exist - process it [13:47:37]wFMCommunicate request_size=4 [13:47:37]MH_SAM_APDU [13:47:37]CAPDU: 80 11 00 00 [13:47:37]Write to MH i2c: E2 08 00 EC 0D 80 11 00 00 00 00 00 00 73 [13:47:37]Write i2c OK [13:47:37]MH_I2C_Read... [13:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:37]Read from MH i2c: E2 [13:47:37]MH_I2C_Read... [13:47:37]Read from MH i2c: E2 17 00 [13:47:37]MH_I2C_Read... [13:47:37]Read from MH i2c: E2 17 00 EC 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C1 [13:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:47:37]wFMCommunicate OK [13:47:37]requested_item fd.num is exist - process it [13:47:37]SAM_PROTO_GetFieldsCounters [13:47:37]wFMCommunicate request_size=4 [13:47:37]MH_SAM_APDU [13:47:37]CAPDU: 80 13 00 00 [13:47:37]Write to MH i2c: E2 08 00 ED 0D 80 13 00 00 00 00 00 00 76 [13:47:37]Write i2c OK [13:47:37]MH_I2C_Read... [13:47:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:37]Read from MH i2c: E2 [13:47:37]MH_I2C_Read... [13:47:37]Read from MH i2c: E2 62 00 [13:47:37]MH_I2C_Read... [13:47:37]Read from MH i2c: E2 62 00 ED 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BE C2 01 00 0E 04 04 00 D7 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 2C [13:47:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BE C2 01 00 0E 04 04 00 D7 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 [13:47:37]wFMCommunicate OK [13:47:37]SAM_PROTO_GetFieldsCounters done [13:47:37]requested_item shift.num is exist - process it [13:47:37]requested_item shift.opened is exist - process it [13:47:37]req_shift_opened [13:47:37]FM_GetShiftState [13:47:37]SAM_PROTO_GetShiftState [13:47:37]wFMCommunicate request_size=4 [13:47:37]MH_SAM_APDU [13:47:37]CAPDU: 80 13 01 00 [13:47:37]Write to MH i2c: E2 08 00 EE 0D 80 13 01 00 00 00 00 00 78 [13:47:37]Write i2c OK [13:47:37]MH_I2C_Read... [13:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:37]Read from MH i2c: E2 [13:47:37]MH_I2C_Read... [13:47:37]Read from MH i2c: E2 0E 00 [13:47:37]MH_I2C_Read... [13:47:37]Read from MH i2c: E2 0E 00 EE 0D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 91 [13:47:37]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:47:37]wFMCommunicate OK [13:47:37]SAM_PROTO_GetShiftState done [13:47:37]FM_GetShiftState done [13:47:37]req_shift_opened done [13:47:37]requested_item shift.open_date is exist - process it [13:47:37]req_shift_open_date [13:47:37]req_shift_open_date done [13:47:37]produce_requested_data done [13:47:37]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115390,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [13:47:37]process_action_free close_receipt [13:47:37]json_value_free [13:47:37]json_value_free done [13:47:37]process_json_proto returns [13:47:37]Send response to host [13:47:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115390,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [13:47:37]free response buf [13:47:37]execute_script done [13:47:37]execute_script returns [13:47:37]free content buf [13:47:37]Sock 9.Close socket [13:47:37]Sock 9.Thread stoped [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:10]accept exits with 8 [13:53:10]New connection [13:53:10]New thread 3066826084 created [13:53:10]Thread 3066682724 joined [13:53:10]Waiting for new connection... [13:53:10] Sock 8.Parse request [13:53:10]Sock 8.Check first char [13:53:10]Sock 8.First char is OK [13:53:10]request: POST /json_proto HTTP/1.0 [13:53:10]Method: POST [13:53:10]URL: /json_proto [13:53:10]Method is POST - this is cgi request [13:53:10]url: /json_proto [13:53:10]query_string will be loaded in cgi processing [13:53:10]execute_cgi json_proto POST (null) [13:53:10]execute_cgi path=json_proto method=POST [13:53:10]POST find Content-Length [13:53:10]Host: 172.17.41.136:8080 [13:53:10]Content-Length: 754 [13:53:10]Content-Type: application/json [13:53:10] [13:53:10]POST finish read [13:53:10]Found Content-Length = 754 [13:53:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 35", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 125.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30126835", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:10]execute_script... [13:53: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)24616800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 35", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 125.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30126835", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:10]POST & json_proto [13:53:10]process_json_proto [13:53:10]json parsed OK: [13:53:10]protocol is kg_v1.0 [13:53:10]action value=close_receipt [13:53:10]process_action close_receipt [13:53:10]cmd_close_receipt [13:53:10]MH_GetDate [13:53:10]Write to MH i2c: F0 00 00 EF 0D EB [13:53:10]Write i2c OK [13:53:10]MH_I2C_Read... [13:53:10]Read from MH i2c: F0 [13:53:10]MH_I2C_Read... [13:53:10]Read from MH i2c: F0 09 00 [13:53:10]MH_I2C_Read... [13:53:10]Read from MH i2c: F0 09 00 EF 0D 00 47 21 F0 66 1B D0 5A 64 5B [13:53:10]GetLastDocTimeStamp 1727012853 [13:53:10]current date 1727013191 [13:53:10]FM_GetShiftState [13:53:10]SAM_PROTO_GetShiftState [13:53:10]wFMCommunicate request_size=4 [13:53:10]MH_SAM_APDU [13:53:10]CAPDU: 80 13 01 00 [13:53:10]Write to MH i2c: E2 08 00 F0 0D 80 13 01 00 00 00 00 00 7A [13:53:10]Write i2c OK [13:53:10]MH_I2C_Read... [13:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:10]Read from MH i2c: E2 [13:53:10]MH_I2C_Read... [13:53:10]Read from MH i2c: E2 0E 00 [13:53:10]MH_I2C_Read... [13:53:10]Read from MH i2c: E2 0E 00 F0 0D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 93 [13:53:10]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:53:10]wFMCommunicate OK [13:53:10]SAM_PROTO_GetShiftState done [13:53:10]FM_GetShiftState done [13:53:10]opened in 1726965840 [13:53:10]opened+sec_in_day 1727052240 [13:53:10]quantity*price = 0 [13:53:10]sum+1 = 1 [13:53:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 109 22.09.2024 13:53 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30126835 ФМ: 0000000000871830 ФД: 115391 ФПД: 2316032400746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T135312&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115391&fm=2316032400746&tin=02508201610067®Number=0000000000091831&sum=0 [13:53:11]StoreToDocumentArchive [13:53:11]shift 471 fd 115391 [13:53:11]save to /storage/0471/doc_00115391 [13:53:11]save last doc name /storage/0471/doc_00115391 to /storage/kkm_last_doc_name [13:53:11]save OK [13:53:11]Clear old archive folders... [13:53:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:53:11]tlvbuf is B6F36010 [13:53:11]SAM_PROTO_ClearQueue [13:53:11]wFMCommunicate request_size=4 [13:53:11]MH_SAM_APDU [13:53:11]CAPDU: 80 09 00 00 [13:53:11]Write to MH i2c: E2 08 00 FD 0D 80 09 00 00 00 00 00 00 7C [13:53:11]Write i2c OK [13:53:11]MH_I2C_Read... [13:53:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:11]Read from MH i2c: E2 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 03 00 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 03 00 FD 0D 00 90 00 7E [13:53:11]RAPDU: 90 00 [13:53:11]wFMCommunicate OK [13:53:11]SAM_PROTO_ClearQueue done [13:53:11]KKMCreateOFDPacket [13:53:11]OFDProtocolAddRootSTLVToBuf [13:53:11]FM_MakeSignedData [13:53:11]FM_MakeSignedData [13:53:11]SAM_PROTO_SignData [13:53:11]wFMCommunicate request_size=4 [13:53:11]MH_SAM_APDU [13:53:11]CAPDU: 80 0D 01 02 [13:53:11]Write to MH i2c: E2 08 00 FE 0D 80 0D 01 02 00 00 00 00 84 [13:53:11]Write i2c OK [13:53:11]MH_I2C_Read... [13:53:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:11]Read from MH i2c: E2 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 03 00 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 03 00 FE 0D 00 90 00 7F [13:53:11]RAPDU: 90 00 [13:53:11]wFMCommunicate OK [13:53:11]wFMCommunicate request_size=255 [13:53:11]MH_SAM_APDU [13:53:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 48 21 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BF C2 01 00 35 04 06 00 02 1B 3E 49 [13:53:11]Write to MH i2c: E2 02 01 FF 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 48 21 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BF C2 01 00 35 04 06 00 02 1B 3E 49 00 00 34 [13:53:11]Write i2c OK [13:53:11]MH_I2C_Read... [13:53:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:11]Read from MH i2c: E2 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 03 00 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 03 00 FF 0D 00 90 00 80 [13:53:11]RAPDU: 90 00 [13:53:11]wFMCommunicate OK [13:53:11]wFMCommunicate request_size=7 [13:53:11]MH_SAM_APDU [13:53:11]CAPDU: 80 0D 02 02 02 DD 6A [13:53:11]Write to MH i2c: E2 0A 00 00 0E 80 0D 02 02 02 00 DD 6A 00 00 D3 [13:53:11]Write i2c OK [13:53:11]MH_I2C_Read... [13:53:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:12]Read from MH i2c: E2 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: E2 03 00 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: E2 03 00 00 0E 00 90 00 82 [13:53:12]RAPDU: 90 00 [13:53:12]wFMCommunicate OK [13:53:12]wFMCommunicate request_size=4 [13:53:12]MH_SAM_APDU [13:53:12]CAPDU: 80 0D 03 02 [13:53:12]Write to MH i2c: E2 08 00 01 0E 80 0D 03 02 00 00 00 00 8A [13:53:12]Write i2c OK [13:53:12]MH_I2C_Read... [13:53:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:12]Read from MH i2c: E2 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: E2 0B 00 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: E2 0B 00 01 0E 00 77 66 A5 8F C1 79 6A 0E 90 00 4E [13:53:12]RAPDU: 77 66 A5 8F C1 79 6A 0E 90 00 [13:53:12]wFMCommunicate OK [13:53:12]SAM_PROTO_SignData done [13:53:12]FM_MakeSignedData done [13:53:12]CreateOFDProtocolMessage [13:53:12]wFMCommunicate request_size=4 [13:53:12]MH_SAM_APDU [13:53:12]CAPDU: 80 11 00 00 [13:53:12]Write to MH i2c: E2 08 00 02 0E 80 11 00 00 00 00 00 00 8A [13:53:12]Write i2c OK [13:53:12]MH_I2C_Read... [13:53:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:12]Read from MH i2c: E2 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: E2 17 00 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: E2 17 00 02 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D8 [13:53:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:53:12]wFMCommunicate OK [13:53:12]CreateOFDProtocolMessage done [13:53:12]OFDSenderStorePacket 115391 [13:53:12]StoreOFDPacket docnum=115391 [13:53:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 8D 21 04 01 9F 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 48 21 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BF C2 01 00 35 04 06 00 02 1B 3E 49 DD 6A 77 66 A5 8F C1 79 6A 0E [13:53:12]CheckFolder [13:53:12]dirname=/storage/ofd_packets [13:53:12]CheckFolder done [13:53:12]ProducePacketName [13:53:12]name=ofd_packets/00115391 [13:53:12]NVStorageSaveData ofd_packets/00115391 [13:53:12]File name is /storage/ofd_packets/00115391 [13:53:12]Write 298 bytes [13:53:12]NVStorageSaveData done [13:53:12]OFDSenderStorePacket done [13:53:12]KKMCreateOFDPacket done [13:53:12]NVStorageSaveData kkm_last_timestamp [13:53:12]File name is /storage/kkm_last_timestamp [13:53:12]Write 4 bytes [13:53:12]NVStorageSaveData done [13:53:12]ExternCall_PrintAddStr [13:53:12]wPrintStart [13:53:12]Write to MH i2c: 01 00 00 03 0E 11 [13:53:12]Write i2c OK [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: 01 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: 01 07 00 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: 01 07 00 03 0E 00 00 00 00 00 FF 0F 26 [13:53:12]RasterBufferAndPrint [13:53:12]line Счет N : (1)24616800 [13:53:12]line ИНН: 02508201610067 [13:53:12]line Контрольно-Кассовый Чек [13:53:12]line ПРОДАЖА [13:53:12]line ТРК (МРК, ГНК) : 35 [13:53:12]line Товар: 2710194210 [13:53:12]line ДТ-К-5 [13:53:12]line 125.000 * 0.00 [13:53:12]line = 0.00 [13:53:12]line НДС 12% НСП 1% [13:53:12]line > о реализуемом товаре [13:53:12]line ИТОГО: 0.00 [13:53:12]line НСП 1% : 0.00 [13:53:12]line НДС 12% : 0.00 [13:53:12]line Наличными: 0.00 [13:53:12]line Безнал.: 0.00 [13:53:12]line Место: АЗС № 90 "Партнер Нефть" [13:53:12]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:53:12]line СНО: Общий режим [13:53:12]line Чек 109 22.09.2024 13:53 [13:53:12]line Смена: 471 ФФД: 1.0 [13:53:12]line ЗНМ: 0300000120 [13:53:12]line РНМ: 0000000000091831 [13:53:12]line Версия ККМ: 001 [13:53:12]line Талоны: ТК ГПНА Online [13:53:12]line 30126835 [13:53:12]line ФМ: 0000000000871830 [13:53:12]line ФД: 115391 [13:53:12]line ФПД: 2316032400746 [13:53:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T135312&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115391&fm=2316032400746&tin=02508201610067®Number=0000000000091831&sum=0 [13:53:12]OFD Sender: Processing packet 115391 [packets to send 481, broken 480] [13:53:12]ProducePacketName [13:53:12]name=ofd_packets/00115391 [13:53:12]OFD Sender: To server: pG, [13:53:12]CommunicateWithHost lk.salyk.kg:30040 [13:53:12]ConnectInit lk.salyk.kg [13:53:12]written 0, free lines is 4095 [13:53:12]Connected sock=10 [13:53:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 8D 21 04 01 9F 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 48 21 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BF C2 01 00 35 04 06 00 02 1B 3E 49 DD 6A 77 66 A5 8F C1 79 6A 0E [13:53:12]Write to MH i2c: 01 00 00 2C 0E 3A [13:53:12]Write i2c OK [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: 01 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: 01 07 00 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: 01 07 00 2C 0E 00 00 00 00 00 71 0C BE [13:53:12]RasterBufferAndPrint [13:53:12]line [13:53:12]line [13:53:12]line [13:53:12]line [13:53:12]line [13:53:12]written 0, free lines is 3190 [13:53:12]MH_Cut [13:53:12]Write to MH i2c: D1 01 00 33 0E 01 13 [13:53:12]Write i2c OK [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: D1 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: D1 01 00 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: D1 01 00 33 0E 00 12 [13:53:12]Write to MH i2c: 01 00 00 34 0E 42 [13:53:12]Write i2c OK [13:53:12]MH_I2C_Read... [13:53:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 64 BC 47 00 BB 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 31 38 33 30 10 04 04 00 BF C2 01 00 F4 03 04 00 8D C6 EF 66 B6 04 01 00 00 3F DE FC 39 F8 2C 9E 14 [13:53:13]CommunicateWithHost err = 0 [13:53:13]CheckOFDResponse [13:53:13]1017 (14) - 77093643461234 [13:53:13]1041 (16) - 0000000000871830 [13:53:13]1040 (4) - 115391 [13:53:13]1012 (4) - 22.09.2024 07:26 [13:53:13]1206 (1) - 0 [13:53:13]OFD Sender: Remove packet 115391 [13:53:13]ProducePacketName [13:53:13]name=ofd_packets/00115391 [13:53:13]NVStorageDeleteData [13:53:13]OFD Sender: No OFD packet to send [13:53:14]*** Cut start [13:53:14]*** Partial cut [13:53:14]*** CUTSNS_PIN = 1 [13:53:14]*** CUTSNS_PIN = 0 [13:53:14]*** Brake cut motor [13:53:14]Read from MH i2c: 01 [13:53:14]MH_I2C_Read... [13:53:14]*** Stop cut motor [13:53:14]*** Cut end [13:53:14]Read from MH i2c: 01 07 00 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: 01 07 00 34 0E 00 00 00 00 00 FF 0F 57 [13:53:14]process_action close_receipt done [13:53:14]requested_data is exist [13:53:14]produce_requested_data [13:53:14]requested_item fm.sn is exist - process it [13:53:14]wFMCommunicate request_size=4 [13:53:14]MH_SAM_APDU [13:53:14]CAPDU: 80 11 00 00 [13:53:14]Write to MH i2c: E2 08 00 35 0E 80 11 00 00 00 00 00 00 BD [13:53:14]Write i2c OK [13:53:14]MH_I2C_Read... [13:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:14]Read from MH i2c: E2 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: E2 17 00 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: E2 17 00 35 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0B [13:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:53:14]wFMCommunicate OK [13:53:14]requested_item fd.num is exist - process it [13:53:14]SAM_PROTO_GetFieldsCounters [13:53:14]wFMCommunicate request_size=4 [13:53:14]MH_SAM_APDU [13:53:14]CAPDU: 80 13 00 00 [13:53:14]Write to MH i2c: E2 08 00 36 0E 80 13 00 00 00 00 00 00 C0 [13:53:14]Write i2c OK [13:53:14]MH_I2C_Read... [13:53:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:14]Read from MH i2c: E2 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: E2 62 00 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: E2 62 00 36 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BF C2 01 00 0E 04 04 00 D7 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 7A [13:53: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BF C2 01 00 0E 04 04 00 D7 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 [13:53:14]wFMCommunicate OK [13:53:14]SAM_PROTO_GetFieldsCounters done [13:53:14]requested_item shift.num is exist - process it [13:53:14]requested_item shift.opened is exist - process it [13:53:14]req_shift_opened [13:53:14]FM_GetShiftState [13:53:14]SAM_PROTO_GetShiftState [13:53:14]wFMCommunicate request_size=4 [13:53:14]MH_SAM_APDU [13:53:14]CAPDU: 80 13 01 00 [13:53:14]Write to MH i2c: E2 08 00 37 0E 80 13 01 00 00 00 00 00 C2 [13:53:14]Write i2c OK [13:53:14]MH_I2C_Read... [13:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:14]Read from MH i2c: E2 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: E2 0E 00 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: E2 0E 00 37 0E 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 DB [13:53:14]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:53:14]wFMCommunicate OK [13:53:14]SAM_PROTO_GetShiftState done [13:53:14]FM_GetShiftState done [13:53:14]req_shift_opened done [13:53:14]requested_item shift.open_date is exist - process it [13:53:14]req_shift_open_date [13:53:14]req_shift_open_date done [13:53:14]produce_requested_data done [13:53:14]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115391,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [13:53:14]process_action_free close_receipt [13:53:14]json_value_free [13:53:14]json_value_free done [13:53:14]process_json_proto returns [13:53:14]Send response to host [13:53:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115391,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [13:53:14]free response buf [13:53:15]execute_script done [13:53:15]execute_script returns [13:53:15]free content buf [13:53:15]Sock 8.Close socket [13:53:15]Sock 8.Thread stoped [13:53:18]OFD Sender: No OFD packet to send [13:53:22]accept exits with 9 [13:53:22]New connection [13:53:22]New thread 3066682724 created [13:53:22]Thread 3066826084 joined [13:53:22]Waiting for new connection... [13:53:22] Sock 9.Parse request [13:53:22]Sock 9.Check first char [13:53:22]Sock 9.First char is OK [13:53:22]request: POST /json_proto HTTP/1.0 [13:53:22]Method: POST [13:53:22]URL: /json_proto [13:53:22]Method is POST - this is cgi request [13:53:22]url: /json_proto [13:53:22]query_string will be loaded in cgi processing [13:53:22]execute_cgi json_proto POST (null) [13:53:22]execute_cgi path=json_proto method=POST [13:53:22]POST find Content-Length [13:53:22]Host: 172.17.41.136:8080 [13:53:22]Content-Length: 679 [13:53:22]Content-Type: application/json [13:53:22] [13:53:22]POST finish read [13:53:22]Found Content-Length = 679 [13:53:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:22]execute_script... [13:53: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)24616805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:22]POST & json_proto [13:53:22]process_json_proto [13:53:22]json parsed OK: [13:53:22]protocol is kg_v1.0 [13:53:22]action value=close_receipt [13:53:22]process_action close_receipt [13:53:22]cmd_close_receipt [13:53:22]MH_GetDate [13:53:22]Write to MH i2c: F0 00 00 38 0E 35 [13:53:22]Write i2c OK [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: F0 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: F0 09 00 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: F0 09 00 38 0E 00 53 21 F0 66 1B D0 5A 64 B1 [13:53:22]GetLastDocTimeStamp 1727013192 [13:53:22]current date 1727013203 [13:53:22]FM_GetShiftState [13:53:22]SAM_PROTO_GetShiftState [13:53:22]wFMCommunicate request_size=4 [13:53:22]MH_SAM_APDU [13:53:22]CAPDU: 80 13 01 00 [13:53:22]Write to MH i2c: E2 08 00 39 0E 80 13 01 00 00 00 00 00 C4 [13:53:22]Write i2c OK [13:53:22]MH_I2C_Read... [13:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:22]Read from MH i2c: E2 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: E2 0E 00 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: E2 0E 00 39 0E 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 DD [13:53:22]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:53:22]wFMCommunicate OK [13:53:22]SAM_PROTO_GetShiftState done [13:53:22]FM_GetShiftState done [13:53:22]opened in 1726965840 [13:53:22]opened+sec_in_day 1727052240 [13:53:22]quantity*price = 30051 [13:53:22]sum+1 = 30052 [13:53:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 110 22.09.2024 13:53 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115392 ФПД: 128890248784799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T135323&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115392&fm=128890248784799&tin=02508201610067®Number=0000000000091831&sum=30000 [13:53:23]StoreToDocumentArchive [13:53:23]shift 471 fd 115392 [13:53:23]save to /storage/0471/doc_00115392 [13:53:23]save last doc name /storage/0471/doc_00115392 to /storage/kkm_last_doc_name [13:53:23]save OK [13:53:23]Clear old archive folders... [13:53:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:23]tlvbuf is B6EA2B20 [13:53:23]SAM_PROTO_ClearQueue [13:53:23]wFMCommunicate request_size=4 [13:53:23]MH_SAM_APDU [13:53:23]CAPDU: 80 09 00 00 [13:53:23]Write to MH i2c: E2 08 00 46 0E 80 09 00 00 00 00 00 00 C6 [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:23]Read from MH i2c: E2 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 03 00 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 03 00 46 0E 00 90 00 C8 [13:53:23]RAPDU: 90 00 [13:53:23]wFMCommunicate OK [13:53:23]SAM_PROTO_ClearQueue done [13:53:23]KKMCreateOFDPacket [13:53:23]OFDProtocolAddRootSTLVToBuf [13:53:23]FM_MakeSignedData [13:53:23]FM_MakeSignedData [13:53:23]SAM_PROTO_SignData [13:53:23]wFMCommunicate request_size=4 [13:53:23]MH_SAM_APDU [13:53:23]CAPDU: 80 0D 01 02 [13:53:23]Write to MH i2c: E2 08 00 47 0E 80 0D 01 02 00 00 00 00 CE [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:23]Read from MH i2c: E2 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 03 00 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 03 00 47 0E 00 90 00 C9 [13:53:23]RAPDU: 90 00 [13:53:23]wFMCommunicate OK [13:53:23]wFMCommunicate request_size=255 [13:53:23]MH_SAM_APDU [13:53:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 6E 00 00 00 F4 03 04 00 53 21 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C0 C2 01 00 35 04 06 00 75 [13:53:23]Write to MH i2c: E2 02 01 48 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 6E 00 00 00 F4 03 04 00 53 21 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C0 C2 01 00 35 04 06 00 75 00 00 85 [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:23]Read from MH i2c: E2 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 03 00 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 03 00 48 0E 00 90 00 CA [13:53:23]RAPDU: 90 00 [13:53:23]wFMCommunicate OK [13:53:23]wFMCommunicate request_size=10 [13:53:23]MH_SAM_APDU [13:53:23]CAPDU: 80 0D 02 02 05 39 99 7E 6B 9F [13:53:23]Write to MH i2c: E2 0D 00 49 0E 80 0D 02 02 05 00 39 99 7E 6B 9F 00 00 35 [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:23]Read from MH i2c: E2 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 03 00 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 03 00 49 0E 00 90 00 CB [13:53:23]RAPDU: 90 00 [13:53:23]wFMCommunicate OK [13:53:23]wFMCommunicate request_size=4 [13:53:23]MH_SAM_APDU [13:53:23]CAPDU: 80 0D 03 02 [13:53:23]Write to MH i2c: E2 08 00 4A 0E 80 0D 03 02 00 00 00 00 D3 [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]OFD Sender: No OFD packet to send [13:53:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:23]Read from MH i2c: E2 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 0B 00 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 0B 00 4A 0E 00 A0 EE B0 85 F9 41 75 38 90 00 7E [13:53:23]RAPDU: A0 EE B0 85 F9 41 75 38 90 00 [13:53:23]wFMCommunicate OK [13:53:23]SAM_PROTO_SignData done [13:53:23]FM_MakeSignedData done [13:53:23]CreateOFDProtocolMessage [13:53:23]wFMCommunicate request_size=4 [13:53:23]MH_SAM_APDU [13:53:23]CAPDU: 80 11 00 00 [13:53:23]Write to MH i2c: E2 08 00 4B 0E 80 11 00 00 00 00 00 00 D3 [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:23]Read from MH i2c: E2 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 17 00 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 17 00 4B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 21 [13:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:53:23]wFMCommunicate OK [13:53:23]CreateOFDProtocolMessage done [13:53:23]OFDSenderStorePacket 115392 [13:53:23]StoreOFDPacket docnum=115392 [13:53:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 C0 6A 07 01 47 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 6E 00 00 00 F4 03 04 00 53 21 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C0 C2 01 00 35 04 06 00 75 39 99 7E 6B 9F A0 EE B0 85 F9 41 75 38 [13:53:23]CheckFolder [13:53:23]dirname=/storage/ofd_packets [13:53:23]CheckFolder done [13:53:23]ProducePacketName [13:53:23]name=ofd_packets/00115392 [13:53:23]NVStorageSaveData ofd_packets/00115392 [13:53:23]File name is /storage/ofd_packets/00115392 [13:53:23]Write 301 bytes [13:53:23]NVStorageSaveData done [13:53:23]OFDSenderStorePacket done [13:53:23]KKMCreateOFDPacket done [13:53:23]NVStorageSaveData kkm_last_timestamp [13:53:23]File name is /storage/kkm_last_timestamp [13:53:23]Write 4 bytes [13:53:23]NVStorageSaveData done [13:53:23]ExternCall_PrintAddStr [13:53:23]wPrintStart [13:53:23]Write to MH i2c: 01 00 00 4C 0E 5A [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: 01 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: 01 07 00 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: 01 07 00 4C 0E 00 00 00 00 00 FF 0F 6F [13:53:23]RasterBufferAndPrint [13:53:23]line Счет N : (1)24616805 [13:53:23]line ИНН: 02508201610067 [13:53:23]line Контрольно-Кассовый Чек [13:53:23]line ПРОДАЖА [13:53:23]line ТРК (МРК, ГНК) : 42 [13:53:23]line Товар: 2710124500 [13:53:23]line Аи-95-К-5 [13:53:23]line 4.050 * 74.20 [13:53:23]line = 300.51 [13:53:23]line НДС 12% НСП 1% [13:53:23]line > о реализуемом товаре [13:53:23]line ОКРУГЛЕНИЕ: -0.51 [13:53:23]line ИТОГО: 300.00 [13:53:23]line Внесено: 300.00 [13:53:23]line СДАЧА: 0.00 [13:53:23]line НСП 1% : 2.66 [13:53:23]line НДС 12% : 31.91 [13:53:23]line Наличными: 300.00 [13:53:23]line Безнал.: 0.00 [13:53:23]line Место: АЗС № 90 "Партнер Нефть" [13:53:23]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:53:23]line СНО: Общий режим [13:53:23]line Чек 110 22.09.2024 13:53 [13:53:23]line Смена: 471 ФФД: 1.0 [13:53:23]line ЗНМ: 0300000120 [13:53:23]line РНМ: 0000000000091831 [13:53:23]line Версия ККМ: 001 [13:53:23]line ФМ: 0000000000871830 [13:53:23]line ФД: 115392 [13:53:23]line ФПД: 128890248784799 [13:53:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T135323&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115392&fm=128890248784799&tin=02508201610067®Number=0000000000091831&sum=30000 [13:53:23]written 0, free lines is 4095 [13:53:23]OFD Sender: Processing packet 115392 [packets to send 481, broken 480] [13:53:23]ProducePacketName [13:53:23]name=ofd_packets/00115392 [13:53:23]OFD Sender: To server: pG, [13:53:23]CommunicateWithHost lk.salyk.kg:30040 [13:53:23]ConnectInit lk.salyk.kg [13:53:24]Connected sock=10 [13:53:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 C0 6A 07 01 47 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 6E 00 00 00 F4 03 04 00 53 21 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C0 C2 01 00 35 04 06 00 75 39 99 7E 6B 9F A0 EE B0 85 F9 41 75 38 [13:53:24]Write to MH i2c: 01 00 00 76 0E 84 [13:53:24]Write i2c OK [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: 01 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: 01 07 00 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: 01 07 00 76 0E 00 00 00 00 00 6A 0C 01 [13:53:24]RasterBufferAndPrint [13:53:24]line [13:53:24]line [13:53:24]line [13:53:24]line [13:53:24]line [13:53:24]written 0, free lines is 3182 [13:53:24]MH_Cut [13:53:24]Write to MH i2c: D1 01 00 7D 0E 01 5D [13:53:24]Write i2c OK [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: D1 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: D1 01 00 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: D1 01 00 7D 0E 00 5C [13:53:24]Write to MH i2c: 01 00 00 7E 0E 8C [13:53:24]Write i2c OK [13:53:24]MH_I2C_Read... [13:53:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 40 75 47 00 09 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C0 C2 01 00 F4 03 04 00 99 C6 EF 66 B6 04 01 00 00 3C 91 17 D7 26 BB 36 FB [13:53:24]CommunicateWithHost err = 0 [13:53:24]CheckOFDResponse [13:53:24]1017 (14) - 77093643461234 [13:53:24]1041 (16) - 0000000000871830 [13:53:24]1040 (4) - 115392 [13:53:24]1012 (4) - 22.09.2024 07:26 [13:53:24]1206 (1) - 0 [13:53:24]OFD Sender: Remove packet 115392 [13:53:24]ProducePacketName [13:53:24]name=ofd_packets/00115392 [13:53:24]NVStorageDeleteData [13:53:24]OFD Sender: No OFD packet to send [13:53:25]*** Cut start [13:53:25]*** Partial cut [13:53:25]*** CUTSNS_PIN = 1 [13:53:25]*** CUTSNS_PIN = 0 [13:53:25]*** Brake cut motor [13:53:26]Read from MH i2c: 01 [13:53:26]MH_I2C_Read... [13:53:26]*** Stop cut motor [13:53:26]*** Cut end [13:53:26]Read from MH i2c: 01 07 00 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: 01 07 00 7E 0E 00 00 00 00 00 FF 0F A1 [13:53:26]process_action close_receipt done [13:53:26]requested_data is exist [13:53:26]produce_requested_data [13:53:26]requested_item fm.sn is exist - process it [13:53:26]wFMCommunicate request_size=4 [13:53:26]MH_SAM_APDU [13:53:26]CAPDU: 80 11 00 00 [13:53:26]Write to MH i2c: E2 08 00 7F 0E 80 11 00 00 00 00 00 00 07 [13:53:26]Write i2c OK [13:53:26]MH_I2C_Read... [13:53:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:26]Read from MH i2c: E2 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: E2 17 00 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: E2 17 00 7F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 55 [13:53:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:53:26]wFMCommunicate OK [13:53:26]requested_item fd.num is exist - process it [13:53:26]SAM_PROTO_GetFieldsCounters [13:53:26]wFMCommunicate request_size=4 [13:53:26]MH_SAM_APDU [13:53:26]CAPDU: 80 13 00 00 [13:53:26]Write to MH i2c: E2 08 00 80 0E 80 13 00 00 00 00 00 00 0A [13:53:26]Write i2c OK [13:53:26]MH_I2C_Read... [13:53:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:26]Read from MH i2c: E2 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: E2 62 00 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: E2 62 00 80 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C0 C2 01 00 0E 04 04 00 D7 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 C8 [13:53:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C0 C2 01 00 0E 04 04 00 D7 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 [13:53:26]wFMCommunicate OK [13:53:26]SAM_PROTO_GetFieldsCounters done [13:53:26]requested_item shift.num is exist - process it [13:53:26]requested_item shift.opened is exist - process it [13:53:26]req_shift_opened [13:53:26]FM_GetShiftState [13:53:26]SAM_PROTO_GetShiftState [13:53:26]wFMCommunicate request_size=4 [13:53:26]MH_SAM_APDU [13:53:26]CAPDU: 80 13 01 00 [13:53:26]Write to MH i2c: E2 08 00 81 0E 80 13 01 00 00 00 00 00 0C [13:53:26]Write i2c OK [13:53:26]MH_I2C_Read... [13:53:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:26]Read from MH i2c: E2 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: E2 0E 00 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: E2 0E 00 81 0E 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 25 [13:53:26]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:53:26]wFMCommunicate OK [13:53:26]SAM_PROTO_GetShiftState done [13:53:26]FM_GetShiftState done [13:53:26]req_shift_opened done [13:53:26]requested_item shift.open_date is exist - process it [13:53:26]req_shift_open_date [13:53:26]req_shift_open_date done [13:53:26]produce_requested_data done [13:53:26]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115392,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [13:53:26]process_action_free close_receipt [13:53:26]json_value_free [13:53:26]json_value_free done [13:53:26]process_json_proto returns [13:53:26]Send response to host [13:53:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115392,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [13:53:26]free response buf [13:53:26]execute_script done [13:53:26]execute_script returns [13:53:26]free content buf [13:53:26]Sock 9.Close socket [13:53:26]Sock 9.Thread stoped [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:54:57]accept exits with 8 [13:54:57]New connection [13:54:57]New thread 3066826084 created [13:54:57]Thread 3066682724 joined [13:54:57]Waiting for new connection... [13:54:57] Sock 8.Parse request [13:54:57]Sock 8.Check first char [13:54:57]Sock 8.First char is OK [13:54:57]request: POST /json_proto HTTP/1.0 [13:54:57]Method: POST [13:54:57]URL: /json_proto [13:54:57]Method is POST - this is cgi request [13:54:57]url: /json_proto [13:54:57]query_string will be loaded in cgi processing [13:54:57]execute_cgi json_proto POST (null) [13:54:57]execute_cgi path=json_proto method=POST [13:54:57]POST find Content-Length [13:54:57]Host: 172.17.41.136:8080 [13:54:57]Content-Length: 754 [13:54:57]Content-Type: application/json [13:54:57] [13:54:57]POST finish read [13:54:57]Found Content-Length = 754 [13:54:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30126819", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:57]execute_script... [13:54: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)24616804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30126819", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:57]POST & json_proto [13:54:57]process_json_proto [13:54:57]json parsed OK: [13:54:57]protocol is kg_v1.0 [13:54:57]action value=close_receipt [13:54:57]process_action close_receipt [13:54:57]cmd_close_receipt [13:54:57]MH_GetDate [13:54:57]Write to MH i2c: F0 00 00 82 0E 7F [13:54:57]Write i2c OK [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: F0 [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: F0 09 00 [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: F0 09 00 82 0E 00 B3 21 F0 66 1B D0 5A 64 5B [13:54:57]GetLastDocTimeStamp 1727013203 [13:54:57]current date 1727013299 [13:54:57]FM_GetShiftState [13:54:57]SAM_PROTO_GetShiftState [13:54:57]wFMCommunicate request_size=4 [13:54:57]MH_SAM_APDU [13:54:57]CAPDU: 80 13 01 00 [13:54:57]Write to MH i2c: E2 08 00 83 0E 80 13 01 00 00 00 00 00 0E [13:54:57]Write i2c OK [13:54:57]MH_I2C_Read... [13:54:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:57]Read from MH i2c: E2 [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: E2 0E 00 [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: E2 0E 00 83 0E 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 27 [13:54:57]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:54:57]wFMCommunicate OK [13:54:57]SAM_PROTO_GetShiftState done [13:54:57]FM_GetShiftState done [13:54:57]opened in 1726965840 [13:54:57]opened+sec_in_day 1727052240 [13:54:57]quantity*price = 0 [13:54:57]sum+1 = 1 [13:54:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 111 22.09.2024 13:54 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30126819 ФМ: 0000000000871830 ФД: 115393 ФПД: 243079107099041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T135459&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115393&fm=243079107099041&tin=02508201610067®Number=0000000000091831&sum=0 [13:54:58]StoreToDocumentArchive [13:54:58]shift 471 fd 115393 [13:54:58]save to /storage/0471/doc_00115393 [13:54:58]save last doc name /storage/0471/doc_00115393 to /storage/kkm_last_doc_name [13:54:58]save OK [13:54:58]Clear old archive folders... [13:54:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:54:58]tlvbuf is 01C3F180 [13:54:58]SAM_PROTO_ClearQueue [13:54:58]wFMCommunicate request_size=4 [13:54:58]MH_SAM_APDU [13:54:58]CAPDU: 80 09 00 00 [13:54:58]Write to MH i2c: E2 08 00 90 0E 80 09 00 00 00 00 00 00 10 [13:54:58]Write i2c OK [13:54:58]MH_I2C_Read... [13:54:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:58]Read from MH i2c: E2 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: E2 03 00 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: E2 03 00 90 0E 00 90 00 12 [13:54:58]RAPDU: 90 00 [13:54:58]wFMCommunicate OK [13:54:58]SAM_PROTO_ClearQueue done [13:54:58]KKMCreateOFDPacket [13:54:58]OFDProtocolAddRootSTLVToBuf [13:54:58]FM_MakeSignedData [13:54:58]FM_MakeSignedData [13:54:58]SAM_PROTO_SignData [13:54:58]wFMCommunicate request_size=4 [13:54:58]MH_SAM_APDU [13:54:58]CAPDU: 80 0D 01 02 [13:54:58]Write to MH i2c: E2 08 00 91 0E 80 0D 01 02 00 00 00 00 18 [13:54:58]Write i2c OK [13:54:58]MH_I2C_Read... [13:54:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:59]Read from MH i2c: E2 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: E2 03 00 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: E2 03 00 91 0E 00 90 00 13 [13:54:59]RAPDU: 90 00 [13:54:59]wFMCommunicate OK [13:54:59]wFMCommunicate request_size=255 [13:54:59]MH_SAM_APDU [13:54:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 B3 21 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C1 C2 01 00 35 04 06 00 DD 14 43 D4 [13:54:59]Write to MH i2c: E2 02 01 92 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 B3 21 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C1 C2 01 00 35 04 06 00 DD 14 43 D4 00 00 91 [13:54:59]Write i2c OK [13:54:59]MH_I2C_Read... [13:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:59]Read from MH i2c: E2 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: E2 03 00 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: E2 03 00 92 0E 00 90 00 14 [13:54:59]RAPDU: 90 00 [13:54:59]wFMCommunicate OK [13:54:59]wFMCommunicate request_size=7 [13:54:59]MH_SAM_APDU [13:54:59]CAPDU: 80 0D 02 02 02 B9 A1 [13:54:59]Write to MH i2c: E2 0A 00 93 0E 80 0D 02 02 02 00 B9 A1 00 00 79 [13:54:59]Write i2c OK [13:54:59]MH_I2C_Read... [13:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:59]Read from MH i2c: E2 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: E2 03 00 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: E2 03 00 93 0E 00 90 00 15 [13:54:59]RAPDU: 90 00 [13:54:59]wFMCommunicate OK [13:54:59]wFMCommunicate request_size=4 [13:54:59]MH_SAM_APDU [13:54:59]CAPDU: 80 0D 03 02 [13:54:59]Write to MH i2c: E2 08 00 94 0E 80 0D 03 02 00 00 00 00 1D [13:54:59]Write i2c OK [13:54:59]MH_I2C_Read... [13:54:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:59]Read from MH i2c: E2 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: E2 0B 00 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: E2 0B 00 94 0E 00 46 36 7D 18 FE A6 DC CA 90 00 79 [13:54:59]RAPDU: 46 36 7D 18 FE A6 DC CA 90 00 [13:54:59]wFMCommunicate OK [13:54:59]SAM_PROTO_SignData done [13:54:59]FM_MakeSignedData done [13:54:59]CreateOFDProtocolMessage [13:54:59]wFMCommunicate request_size=4 [13:54:59]MH_SAM_APDU [13:54:59]CAPDU: 80 11 00 00 [13:54:59]Write to MH i2c: E2 08 00 95 0E 80 11 00 00 00 00 00 00 1D [13:54:59]Write i2c OK [13:54:59]MH_I2C_Read... [13:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:59]Read from MH i2c: E2 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: E2 17 00 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: E2 17 00 95 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6B [13:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:54:59]wFMCommunicate OK [13:54:59]CreateOFDProtocolMessage done [13:54:59]OFDSenderStorePacket 115393 [13:54:59]StoreOFDPacket docnum=115393 [13:54:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 9B 23 04 01 F3 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 B3 21 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C1 C2 01 00 35 04 06 00 DD 14 43 D4 B9 A1 46 36 7D 18 FE A6 DC CA [13:54:59]CheckFolder [13:54:59]dirname=/storage/ofd_packets [13:54:59]CheckFolder done [13:54:59]ProducePacketName [13:54:59]name=ofd_packets/00115393 [13:54:59]NVStorageSaveData ofd_packets/00115393 [13:54:59]File name is /storage/ofd_packets/00115393 [13:54:59]Write 298 bytes [13:54:59]NVStorageSaveData done [13:54:59]OFDSenderStorePacket done [13:54:59]KKMCreateOFDPacket done [13:54:59]NVStorageSaveData kkm_last_timestamp [13:54:59]File name is /storage/kkm_last_timestamp [13:54:59]Write 4 bytes [13:54:59]NVStorageSaveData done [13:54:59]ExternCall_PrintAddStr [13:54:59]wPrintStart [13:54:59]Write to MH i2c: 01 00 00 96 0E A4 [13:54:59]Write i2c OK [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: 01 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: 01 07 00 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: 01 07 00 96 0E 00 00 00 00 00 FF 0F B9 [13:54:59]RasterBufferAndPrint [13:54:59]line Счет N : (1)24616804 [13:54:59]line ИНН: 02508201610067 [13:54:59]line Контрольно-Кассовый Чек [13:54:59]line ПРОДАЖА [13:54:59]line ТРК (МРК, ГНК) : 22 [13:54:59]line Товар: 2710194210 [13:54:59]line ДТ-К-5 [13:54:59]line 100.000 * 0.00 [13:54:59]line = 0.00 [13:54:59]line НДС 12% НСП 1% [13:54:59]line > о реализуемом товаре [13:54:59]line ИТОГО: 0.00 [13:54:59]line НСП 1% : 0.00 [13:54:59]line НДС 12% : 0.00 [13:54:59]line Наличными: 0.00 [13:54:59]line Безнал.: 0.00 [13:54:59]line Место: АЗС № 90 "Партнер Нефть" [13:54:59]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:54:59]line СНО: Общий режим [13:54:59]line Чек 111 22.09.2024 13:54 [13:54:59]line Смена: 471 ФФД: 1.0 [13:54:59]line ЗНМ: 0300000120 [13:54:59]line РНМ: 0000000000091831 [13:54:59]line Версия ККМ: 001 [13:54:59]line Талоны: ТК ГПНА Online [13:54:59]line 30126819 [13:54:59]line ФМ: 0000000000871830 [13:54:59]line ФД: 115393 [13:54:59]line ФПД: 243079107099041 [13:54:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T135459&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115393&fm=243079107099041&tin=02508201610067®Number=0000000000091831&sum=0 [13:54:59]written 0, free lines is 4095 [13:54:59]OFD Sender: Processing packet 115393 [packets to send 481, broken 480] [13:54:59]ProducePacketName [13:54:59]name=ofd_packets/00115393 [13:54:59]OFD Sender: To server: pG, [13:54:59]CommunicateWithHost lk.salyk.kg:30040 [13:54:59]ConnectInit lk.salyk.kg [13:54:59]Connected sock=9 [13:54:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 9B 23 04 01 F3 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 B3 21 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C1 C2 01 00 35 04 06 00 DD 14 43 D4 B9 A1 46 36 7D 18 FE A6 DC CA [13:54:59]Write to MH i2c: 01 00 00 BF 0E CD [13:54:59]Write i2c OK [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: 01 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: 01 07 00 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: 01 07 00 BF 0E 00 00 00 00 00 7D 0C 5D [13:54:59]RasterBufferAndPrint [13:54:59]line [13:54:59]line [13:54:59]line [13:54:59]line [13:54:59]line [13:54:59]written 0, free lines is 3203 [13:54:59]MH_Cut [13:54:59]Write to MH i2c: D1 01 00 C6 0E 01 A6 [13:54:59]Write i2c OK [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: D1 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: D1 01 00 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: D1 01 00 C6 0E 00 A5 [13:54:59]Write to MH i2c: 01 00 00 C7 0E D5 [13:54:59]Write i2c OK [13:54:59]MH_I2C_Read... [13:55:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 67 6E 47 00 0F 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 31 38 33 30 10 04 04 00 C1 C2 01 00 F4 03 04 00 F8 C6 EF 66 B6 04 01 00 00 D0 9A 62 CD E1 2E CF 9A [13:55:00]CommunicateWithHost err = 0 [13:55:00]CheckOFDResponse [13:55:00]1017 (14) - 77093643461234 [13:55:00]1041 (16) - 0000000000871830 [13:55:00]1040 (4) - 115393 [13:55:00]1012 (4) - 22.09.2024 07:27 [13:55:00]1206 (1) - 0 [13:55:00]OFD Sender: Remove packet 115393 [13:55:00]ProducePacketName [13:55:00]name=ofd_packets/00115393 [13:55:00]NVStorageDeleteData [13:55:00]OFD Sender: No OFD packet to send [13:55:01]*** Cut start [13:55:01]*** Partial cut [13:55:01]*** CUTSNS_PIN = 1 [13:55:01]*** CUTSNS_PIN = 0 [13:55:01]*** Brake cut motor [13:55:01]Read from MH i2c: 01 [13:55:01]MH_I2C_Read... [13:55:01]*** Stop cut motor [13:55:01]*** Cut end [13:55:01]Read from MH i2c: 01 07 00 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: 01 07 00 C7 0E 00 00 00 00 00 FF 0F EA [13:55:01]process_action close_receipt done [13:55:01]requested_data is exist [13:55:01]produce_requested_data [13:55:01]requested_item fm.sn is exist - process it [13:55:01]wFMCommunicate request_size=4 [13:55:01]MH_SAM_APDU [13:55:01]CAPDU: 80 11 00 00 [13:55:01]Write to MH i2c: E2 08 00 C8 0E 80 11 00 00 00 00 00 00 50 [13:55:01]Write i2c OK [13:55:01]MH_I2C_Read... [13:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:01]Read from MH i2c: E2 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: E2 17 00 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: E2 17 00 C8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9E [13:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:55:01]wFMCommunicate OK [13:55:01]requested_item fd.num is exist - process it [13:55:01]SAM_PROTO_GetFieldsCounters [13:55:01]wFMCommunicate request_size=4 [13:55:01]MH_SAM_APDU [13:55:01]CAPDU: 80 13 00 00 [13:55:01]Write to MH i2c: E2 08 00 C9 0E 80 13 00 00 00 00 00 00 53 [13:55:01]Write i2c OK [13:55:01]MH_I2C_Read... [13:55:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:01]Read from MH i2c: E2 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: E2 62 00 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: E2 62 00 C9 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C1 C2 01 00 0E 04 04 00 D7 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 15 [13:55:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C1 C2 01 00 0E 04 04 00 D7 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 [13:55:01]wFMCommunicate OK [13:55:01]SAM_PROTO_GetFieldsCounters done [13:55:01]requested_item shift.num is exist - process it [13:55:01]requested_item shift.opened is exist - process it [13:55:01]req_shift_opened [13:55:01]FM_GetShiftState [13:55:01]SAM_PROTO_GetShiftState [13:55:01]wFMCommunicate request_size=4 [13:55:01]MH_SAM_APDU [13:55:01]CAPDU: 80 13 01 00 [13:55:01]Write to MH i2c: E2 08 00 CA 0E 80 13 01 00 00 00 00 00 55 [13:55:01]Write i2c OK [13:55:01]MH_I2C_Read... [13:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:02]Read from MH i2c: E2 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 0E 00 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 0E 00 CA 0E 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 6E [13:55:02]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:55:02]wFMCommunicate OK [13:55:02]SAM_PROTO_GetShiftState done [13:55:02]FM_GetShiftState done [13:55:02]req_shift_opened done [13:55:02]requested_item shift.open_date is exist - process it [13:55:02]req_shift_open_date [13:55:02]req_shift_open_date done [13:55:02]produce_requested_data done [13:55:02]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115393,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [13:55:02]process_action_free close_receipt [13:55:02]json_value_free [13:55:02]json_value_free done [13:55:02]process_json_proto returns [13:55:02]Send response to host [13:55:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115393,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [13:55:02]free response buf [13:55:02]execute_script done [13:55:02]execute_script returns [13:55:02]free content buf [13:55:02]Sock 8.Close socket [13:55:02]Sock 8.Thread stoped [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:53]accept exits with 10 [13:55:53]New connection [13:55:53]New thread 3066682724 created [13:55:53]Thread 3066826084 joined [13:55:53]Waiting for new connection... [13:55:53] Sock 10.Parse request [13:55:53]Sock 10.Check first char [13:55:53]Sock 10.First char is OK [13:55:53]request: POST /json_proto HTTP/1.0 [13:55:53]Method: POST [13:55:53]URL: /json_proto [13:55:53]Method is POST - this is cgi request [13:55:53]url: /json_proto [13:55:53]query_string will be loaded in cgi processing [13:55:53]execute_cgi json_proto POST (null) [13:55:53]execute_cgi path=json_proto method=POST [13:55:53]POST find Content-Length [13:55:53]Host: 172.17.41.136:8080 [13:55:53]Content-Length: 852 [13:55:53]Content-Type: application/json [13:55:53] [13:55:53]POST finish read [13:55:53]Found Content-Length = 852 [13:55:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343838", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 91.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:53]execute_script... [13:55:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343838", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 91.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:53]POST & json_proto [13:55:53]process_json_proto [13:55:53]json parsed OK: [13:55:53]protocol is kg_v1.0 [13:55:53]action value=close_receipt [13:55:53]process_action close_receipt [13:55:53]cmd_close_receipt [13:55:53]MH_GetDate [13:55:53]Write to MH i2c: F0 00 00 CB 0E C8 [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: F0 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: F0 09 00 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: F0 09 00 CB 0E 00 EA 21 F0 66 1B D0 5A 64 DB [13:55:53]GetLastDocTimeStamp 1727013299 [13:55:53]current date 1727013354 [13:55:53]FM_GetShiftState [13:55:53]SAM_PROTO_GetShiftState [13:55:53]wFMCommunicate request_size=4 [13:55:53]MH_SAM_APDU [13:55:53]CAPDU: 80 13 01 00 [13:55:53]Write to MH i2c: E2 08 00 CC 0E 80 13 01 00 00 00 00 00 57 [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:53]Read from MH i2c: E2 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 0E 00 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 0E 00 CC 0E 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 70 [13:55:53]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:55:53]wFMCommunicate OK [13:55:53]SAM_PROTO_GetShiftState done [13:55:53]FM_GetShiftState done [13:55:53]opened in 1726965840 [13:55:53]opened+sec_in_day 1727052240 [13:55:53]quantity*price = 4200 [13:55:53]sum+1 = 4201 [13:55:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700026030031 Курут orbit 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 91.00 НСП 1% : 0.80 НДС 12% : 9.66 Наличными: 91.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 112 22.09.2024 13:55 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115394 ФПД: 91713084801190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T135555&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115394&fm=91713084801190&tin=02508201610067®Number=0000000000091831&sum=9100 0 [13:55:54]StoreToDocumentArchive [13:55:54]shift 471 fd 115394 [13:55:54]save to /storage/0471/doc_00115394 [13:55:54]save last doc name /storage/0471/doc_00115394 to /storage/kkm_last_doc_name [13:55:54]save OK [13:55:54]Clear old archive folders... [13:55:54]ProcessDocumentItem done err = 0, tmpTLVsize=363 [13:55:54]tlvbuf is 01C3EF40 [13:55:54]SAM_PROTO_ClearQueue [13:55:54]wFMCommunicate request_size=4 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 09 00 00 [13:55:54]Write to MH i2c: E2 08 00 D9 0E 80 09 00 00 00 00 00 00 59 [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:54]Read from MH i2c: E2 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 D9 0E 00 90 00 5B [13:55:54]RAPDU: 90 00 [13:55:54]wFMCommunicate OK [13:55:54]SAM_PROTO_ClearQueue done [13:55:54]KKMCreateOFDPacket [13:55:54]OFDProtocolAddRootSTLVToBuf [13:55:54]FM_MakeSignedData [13:55:54]FM_MakeSignedData [13:55:54]SAM_PROTO_SignData [13:55:54]wFMCommunicate request_size=4 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 0D 01 02 [13:55:54]Write to MH i2c: E2 08 00 DA 0E 80 0D 01 02 00 00 00 00 61 [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:54]Read from MH i2c: E2 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 DA 0E 00 90 00 5C [13:55:54]RAPDU: 90 00 [13:55:54]wFMCommunicate OK [13:55:54]wFMCommunicate request_size=255 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 0D 02 02 FA 03 00 6B 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 03 [13:55:54]Write to MH i2c: E2 02 01 DB 0E 80 0D 02 02 FA 00 03 00 6B 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 03 00 00 9A [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:54]Read from MH i2c: E2 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 DB 0E 00 90 00 5D [13:55:54]RAPDU: 90 00 [13:55:54]wFMCommunicate OK [13:55:54]wFMCommunicate request_size=122 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 0D 02 02 75 00 00 00 00 07 04 06 00 8C 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 EB 21 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C2 C2 01 00 35 04 06 00 53 69 9D D7 40 A6 [13:55:54]Write to MH i2c: E2 7D 00 DC 0E 80 0D 02 02 75 00 00 00 00 00 07 04 06 00 8C 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 EB 21 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C2 C2 01 00 35 04 06 00 53 69 9D D7 40 A6 00 00 74 [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:55]Read from MH i2c: E2 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 03 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 03 00 DC 0E 00 90 00 5E [13:55:55]RAPDU: 90 00 [13:55:55]wFMCommunicate OK [13:55:55]wFMCommunicate request_size=4 [13:55:55]MH_SAM_APDU [13:55:55]CAPDU: 80 0D 03 02 [13:55:55]Write to MH i2c: E2 08 00 DD 0E 80 0D 03 02 00 00 00 00 66 [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:55]Read from MH i2c: E2 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 0B 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 0B 00 DD 0E 00 33 3D 14 E9 4B CE 28 60 90 00 75 [13:55:55]RAPDU: 33 3D 14 E9 4B CE 28 60 90 00 [13:55:55]wFMCommunicate OK [13:55:55]SAM_PROTO_SignData done [13:55:55]FM_MakeSignedData done [13:55:55]CreateOFDProtocolMessage [13:55:55]wFMCommunicate request_size=4 [13:55:55]MH_SAM_APDU [13:55:55]CAPDU: 80 11 00 00 [13:55:55]Write to MH i2c: E2 08 00 DE 0E 80 11 00 00 00 00 00 00 66 [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:55]Read from MH i2c: E2 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 17 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 17 00 DE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B4 [13:55:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:55:55]wFMCommunicate OK [13:55:55]CreateOFDProtocolMessage done [13:55:55]OFDSenderStorePacket 115394 [13:55:55]StoreOFDPacket docnum=115394 [13:55:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 7F 01 00 00 A5 6E 77 01 45 30 5A 03 01 00 03 00 6B 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 03 00 00 00 00 07 04 06 00 8C 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 EB 21 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C2 C2 01 00 35 04 06 00 53 69 9D D7 40 A6 33 3D 14 E9 4B CE 28 60 [13:55:55]CheckFolder [13:55:55]dirname=/storage/ofd_packets [13:55:55]CheckFolder done [13:55:55]ProducePacketName [13:55:55]name=ofd_packets/00115394 [13:55:55]NVStorageSaveData ofd_packets/00115394 [13:55:55]File name is /storage/ofd_packets/00115394 [13:55:55]Write 413 bytes [13:55:55]NVStorageSaveData done [13:55:55]OFDSenderStorePacket done [13:55:55]KKMCreateOFDPacket done [13:55:55]NVStorageSaveData kkm_last_timestamp [13:55:55]File name is /storage/kkm_last_timestamp [13:55:55]Write 4 bytes [13:55:55]NVStorageSaveData done [13:55:55]ExternCall_PrintAddStr [13:55:55]wPrintStart [13:55:55]Write to MH i2c: 01 00 00 DF 0E ED [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: 01 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: 01 07 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: 01 07 00 DF 0E 00 00 00 00 00 FF 0F 02 [13:55:55]RasterBufferAndPrint [13:55:55]line Счет N : (3)343838 [13:55:55]line ИНН: 02508201610067 [13:55:55]line Контрольно-Кассовый Чек [13:55:55]line ПРОДАЖА [13:55:55]line Товар: 5449000005489 [13:55:55]line Вода Бонаква 1л б/г [13:55:55]line 1.000 * 42.00 [13:55:55]line = 42.00 [13:55:55]line НДС 12% НСП 1% [13:55:55]line > о реализуемом товаре [13:55:55]line Товар: 4700026030031 [13:55:55]line Курут orbit [13:55:55]line 1.000 * 49.00 [13:55:55]line = 49.00 [13:55:55]line НДС 12% НСП 1% [13:55:55]line > о реализуемом товаре [13:55:55]line ИТОГО: 91.00 [13:55:55]line НСП 1% : 0.80 [13:55:55]line НДС 12% : 9.66 [13:55:55]line Наличными: 91.00 [13:55:55]line Безнал.: 0.00 [13:55:55]line Место: АЗС № 90 "Партнер Нефть" [13:55:55]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:55:55]line СНО: Общий режим [13:55:55]line Чек 112 22.09.2024 13:55 [13:55:55]line Смена: 471 ФФД: 1.0 [13:55:55]line ЗНМ: 0300000120 [13:55:55]line РНМ: 0000000000091831 [13:55:55]line Версия ККМ: 001 [13:55:55]line ФМ: 0000000000871830 [13:55:55]line ФД: 115394 [13:55:55]line ФПД: 91713084801190 [13:55:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T135555&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115394&fm=91713084801190&tin=02508201610067®Number=0000000000091831&sum=9100 [13:55:55]line 0 [13:55:55]OFD Sender: Processing packet 115394 [packets to send 481, broken 480] [13:55:55]ProducePacketName [13:55:55]name=ofd_packets/00115394 [13:55:55]OFD Sender: To server: pG, [13:55:55]CommunicateWithHost lk.salyk.kg:30040 [13:55:55]ConnectInit lk.salyk.kg [13:55:55]written 0, free lines is 4095 [13:55:56]Write to MH i2c: 01 00 00 0C 0F 1B [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: 01 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: 01 07 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: 01 07 00 0C 0F 00 00 00 00 00 11 0C 3F [13:55:56]RasterBufferAndPrint [13:55:56]line [13:55:56]line [13:55:56]line [13:55:56]line [13:55:56]line [13:55:56]written 0, free lines is 3093 [13:55:56]MH_Cut [13:55:56]Write to MH i2c: D1 01 00 13 0F 01 F4 [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: D1 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: D1 01 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: D1 01 00 13 0F 00 F3 [13:55:56]Write to MH i2c: 01 00 00 14 0F 23 [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]Connected sock=8 [13:55:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 7F 01 00 00 A5 6E 77 01 45 30 5A 03 01 00 03 00 6B 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 03 00 00 00 00 07 04 06 00 8C 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 EB 21 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C2 C2 01 00 35 04 06 00 53 69 9D D7 40 A6 33 3D 14 E9 4B CE 28 60 [13:55:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B6 D3 47 00 81 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 31 38 33 30 10 04 04 00 C2 C2 01 00 F4 03 04 00 31 C7 EF 66 B6 04 01 00 00 CB 1B A6 39 C5 D8 D5 48 [13:55:56]CommunicateWithHost err = 0 [13:55:56]CheckOFDResponse [13:55:56]1017 (14) - 77093643461234 [13:55:56]1041 (16) - 0000000000871830 [13:55:56]1040 (4) - 115394 [13:55:56]1012 (4) - 22.09.2024 07:28 [13:55:56]1206 (1) - 0 [13:55:56]OFD Sender: Remove packet 115394 [13:55:56]ProducePacketName [13:55:56]name=ofd_packets/00115394 [13:55:56]NVStorageDeleteData [13:55:56]OFD Sender: No OFD packet to send [13:55:57]*** Cut start [13:55:57]*** Partial cut [13:55:57]*** CUTSNS_PIN = 1 [13:55:57]*** CUTSNS_PIN = 0 [13:55:57]*** Brake cut motor [13:55:58]Read from MH i2c: 01 [13:55:58]MH_I2C_Read... [13:55:58]*** Stop cut motor [13:55:58]*** Cut end [13:55:58]Read from MH i2c: 01 07 00 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: 01 07 00 14 0F 00 00 00 00 00 FF 0F 38 [13:55:58]process_action close_receipt done [13:55:58]requested_data is exist [13:55:58]produce_requested_data [13:55:58]requested_item fm.sn is exist - process it [13:55:58]wFMCommunicate request_size=4 [13:55:58]MH_SAM_APDU [13:55:58]CAPDU: 80 11 00 00 [13:55:58]Write to MH i2c: E2 08 00 15 0F 80 11 00 00 00 00 00 00 9E [13:55:58]Write i2c OK [13:55:58]MH_I2C_Read... [13:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:58]Read from MH i2c: E2 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: E2 17 00 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: E2 17 00 15 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EC [13:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:55:58]wFMCommunicate OK [13:55:58]requested_item fd.num is exist - process it [13:55:58]SAM_PROTO_GetFieldsCounters [13:55:58]wFMCommunicate request_size=4 [13:55:58]MH_SAM_APDU [13:55:58]CAPDU: 80 13 00 00 [13:55:58]Write to MH i2c: E2 08 00 16 0F 80 13 00 00 00 00 00 00 A1 [13:55:58]Write i2c OK [13:55:58]MH_I2C_Read... [13:55:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:58]Read from MH i2c: E2 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: E2 62 00 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: E2 62 00 16 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C2 C2 01 00 0E 04 04 00 D7 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 67 [13:55:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C2 C2 01 00 0E 04 04 00 D7 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 [13:55:58]wFMCommunicate OK [13:55:58]SAM_PROTO_GetFieldsCounters done [13:55:58]requested_item shift.num is exist - process it [13:55:58]requested_item shift.opened is exist - process it [13:55:58]req_shift_opened [13:55:58]FM_GetShiftState [13:55:58]SAM_PROTO_GetShiftState [13:55:58]wFMCommunicate request_size=4 [13:55:58]MH_SAM_APDU [13:55:58]CAPDU: 80 13 01 00 [13:55:58]Write to MH i2c: E2 08 00 17 0F 80 13 01 00 00 00 00 00 A3 [13:55:58]Write i2c OK [13:55:58]MH_I2C_Read... [13:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:58]Read from MH i2c: E2 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: E2 0E 00 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: E2 0E 00 17 0F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 BC [13:55:58]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [13:55:58]wFMCommunicate OK [13:55:58]SAM_PROTO_GetShiftState done [13:55:58]FM_GetShiftState done [13:55:58]req_shift_opened done [13:55:58]requested_item shift.open_date is exist - process it [13:55:58]req_shift_open_date [13:55:58]req_shift_open_date done [13:55:58]produce_requested_data done [13:55:58]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115394,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [13:55:58]process_action_free close_receipt [13:55:58]json_value_free [13:55:58]json_value_free done [13:55:58]process_json_proto returns [13:55:58]Send response to host [13:55:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115394,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [13:55:58]free response buf [13:55:58]execute_script done [13:55:58]execute_script returns [13:55:58]free content buf [13:55:58]Sock 10.Close socket [13:55:58]Sock 10.Thread stoped [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:18]accept exits with 9 [14:00:18]New connection [14:00:18]New thread 3066826084 created [14:00:18]Thread 3066682724 joined [14:00:18]Waiting for new connection... [14:00:18] Sock 9.Parse request [14:00:18]Sock 9.Check first char [14:00:18]Sock 9.First char is OK [14:00:18]request: POST /json_proto HTTP/1.0 [14:00:18]Method: POST [14:00:18]URL: /json_proto [14:00:18]Method is POST - this is cgi request [14:00:18]url: /json_proto [14:00:18]query_string will be loaded in cgi processing [14:00:18]execute_cgi json_proto POST (null) [14:00:18]execute_cgi path=json_proto method=POST [14:00:18]POST find Content-Length [14:00:18]Host: 172.17.41.136:8080 [14:00:18]Content-Length: 609 [14:00:18]Content-Type: application/json [14:00:18] [14:00:18]POST finish read [14:00:18]Found Content-Length = 609 [14:00:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343839", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:18]execute_script... [14:00: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 : (3)343839", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:18]POST & json_proto [14:00:18]process_json_proto [14:00:18]json parsed OK: [14:00:18]protocol is kg_v1.0 [14:00:18]action value=close_receipt [14:00:18]process_action close_receipt [14:00:18]cmd_close_receipt [14:00:18]MH_GetDate [14:00:18]Write to MH i2c: F0 00 00 18 0F 16 [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: F0 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: F0 09 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: F0 09 00 18 0F 00 F3 22 F0 66 1B D0 5A 64 33 [14:00:18]GetLastDocTimeStamp 1727013355 [14:00:18]current date 1727013619 [14:00:18]FM_GetShiftState [14:00:18]SAM_PROTO_GetShiftState [14:00:18]wFMCommunicate request_size=4 [14:00:18]MH_SAM_APDU [14:00:18]CAPDU: 80 13 01 00 [14:00:18]Write to MH i2c: E2 08 00 19 0F 80 13 01 00 00 00 00 00 A5 [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:18]Read from MH i2c: E2 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 0E 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 0E 00 19 0F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 BE [14:00:18]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:00:18]wFMCommunicate OK [14:00:18]SAM_PROTO_GetShiftState done [14:00:18]FM_GetShiftState done [14:00:18]opened in 1726965840 [14:00:18]opened+sec_in_day 1727052240 [14:00:18]quantity*price = 13400 [14:00:18]sum+1 = 13401 [14:00:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 113 22.09.2024 14:00 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115395 ФПД: 102233891880434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140019&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115395&fm=102233891880434&tin=02508201610067®Number=0000000000091831&sum=13400 0 [14:00:19]StoreToDocumentArchive [14:00:19]shift 471 fd 115395 [14:00:19]save to /storage/0471/doc_00115395 [14:00:19]save last doc name /storage/0471/doc_00115395 to /storage/kkm_last_doc_name [14:00:19]save OK [14:00:19]Clear old archive folders... [14:00:19]ProcessDocumentItem done err = 0, tmpTLVsize=261 [14:00:19]tlvbuf is 01BFFFD0 [14:00:19]SAM_PROTO_ClearQueue [14:00:19]wFMCommunicate request_size=4 [14:00:19]MH_SAM_APDU [14:00:19]CAPDU: 80 09 00 00 [14:00:19]Write to MH i2c: E2 08 00 26 0F 80 09 00 00 00 00 00 00 A7 [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:19]Read from MH i2c: E2 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 03 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 03 00 26 0F 00 90 00 A9 [14:00:19]RAPDU: 90 00 [14:00:19]wFMCommunicate OK [14:00:19]SAM_PROTO_ClearQueue done [14:00:19]KKMCreateOFDPacket [14:00:19]OFDProtocolAddRootSTLVToBuf [14:00:19]FM_MakeSignedData [14:00:19]FM_MakeSignedData [14:00:19]SAM_PROTO_SignData [14:00:19]wFMCommunicate request_size=4 [14:00:19]MH_SAM_APDU [14:00:19]CAPDU: 80 0D 01 02 [14:00:19]Write to MH i2c: E2 08 00 27 0F 80 0D 01 02 00 00 00 00 AF [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:19]Read from MH i2c: E2 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 03 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 03 00 27 0F 00 90 00 AA [14:00:19]RAPDU: 90 00 [14:00:19]wFMCommunicate OK [14:00:19]wFMCommunicate request_size=255 [14:00:19]MH_SAM_APDU [14:00:19]CAPDU: 80 0D 02 02 FA 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 F3 22 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 [14:00:19]Write to MH i2c: E2 02 01 28 0F 80 0D 02 02 FA 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 F3 22 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 00 7A [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:19]Read from MH i2c: E2 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 03 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 03 00 28 0F 00 90 00 AB [14:00:19]RAPDU: 90 00 [14:00:19]wFMCommunicate OK [14:00:19]wFMCommunicate request_size=20 [14:00:19]MH_SAM_APDU [14:00:19]CAPDU: 80 0D 02 02 0F 00 C3 C2 01 00 35 04 06 00 5C FB 2E CF 3D F2 [14:00:19]Write to MH i2c: E2 17 00 29 0F 80 0D 02 02 0F 00 00 C3 C2 01 00 35 04 06 00 5C FB 2E CF 3D F2 00 00 18 [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:19]Read from MH i2c: E2 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 03 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 03 00 29 0F 00 90 00 AC [14:00:19]RAPDU: 90 00 [14:00:19]wFMCommunicate OK [14:00:19]wFMCommunicate request_size=4 [14:00:19]MH_SAM_APDU [14:00:19]CAPDU: 80 0D 03 02 [14:00:19]Write to MH i2c: E2 08 00 2A 0F 80 0D 03 02 00 00 00 00 B4 [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:19]Read from MH i2c: E2 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 0B 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 0B 00 2A 0F 00 2A 5F 72 36 A1 FB 62 D7 90 00 BB [14:00:19]RAPDU: 2A 5F 72 36 A1 FB 62 D7 90 00 [14:00:19]wFMCommunicate OK [14:00:19]SAM_PROTO_SignData done [14:00:19]FM_MakeSignedData done [14:00:19]CreateOFDProtocolMessage [14:00:19]wFMCommunicate request_size=4 [14:00:19]MH_SAM_APDU [14:00:19]CAPDU: 80 11 00 00 [14:00:19]Write to MH i2c: E2 08 00 2B 0F 80 11 00 00 00 00 00 00 B4 [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:19]Read from MH i2c: E2 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 17 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 17 00 2B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 02 [14:00:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:00:19]wFMCommunicate OK [14:00:19]CreateOFDProtocolMessage done [14:00:19]OFDSenderStorePacket 115395 [14:00:19]StoreOFDPacket docnum=115395 [14:00:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 19 01 00 00 13 AA 11 01 C0 5F 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 F3 22 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C3 C2 01 00 35 04 06 00 5C FB 2E CF 3D F2 2A 5F 72 36 A1 FB 62 D7 [14:00:19]CheckFolder [14:00:19]dirname=/storage/ofd_packets [14:00:19]CheckFolder done [14:00:19]ProducePacketName [14:00:19]name=ofd_packets/00115395 [14:00:19]NVStorageSaveData ofd_packets/00115395 [14:00:19]File name is /storage/ofd_packets/00115395 [14:00:19]Write 311 bytes [14:00:19]NVStorageSaveData done [14:00:19]OFDSenderStorePacket done [14:00:19]KKMCreateOFDPacket done [14:00:19]NVStorageSaveData kkm_last_timestamp [14:00:19]File name is /storage/kkm_last_timestamp [14:00:19]Write 4 bytes [14:00:19]NVStorageSaveData done [14:00:19]ExternCall_PrintAddStr [14:00:19]wPrintStart [14:00:19]Write to MH i2c: 01 00 00 2C 0F 3B [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: 01 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: 01 07 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: 01 07 00 2C 0F 00 00 00 00 00 FF 0F 50 [14:00:19]RasterBufferAndPrint [14:00:19]line Счет N : (3)343839 [14:00:19]line ИНН: 02508201610067 [14:00:19]line Контрольно-Кассовый Чек [14:00:19]line ПРОДАЖА [14:00:19]line Товар: 48741156 [14:00:19]line Сигареты LD Blue [14:00:19]line 1.000 * 134.00 [14:00:19]line = 134.00 [14:00:19]line НДС 12% НСП 1% [14:00:19]line > о реализуемом товаре [14:00:19]line ИТОГО: 134.00 [14:00:19]line НСП 1% : 1.19 [14:00:19]line НДС 12% : 14.23 [14:00:19]line Наличными: 134.00 [14:00:19]line Безнал.: 0.00 [14:00:19]line Место: АЗС № 90 "Партнер Нефть" [14:00:19]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:00:19]line СНО: Общий режим [14:00:19]line Чек 113 22.09.2024 14:00 [14:00:19]line Смена: 471 ФФД: 1.0 [14:00:19]line ЗНМ: 0300000120 [14:00:19]line РНМ: 0000000000091831 [14:00:19]line Версия ККМ: 001 [14:00:19]line ФМ: 0000000000871830 [14:00:19]line ФД: 115395 [14:00:19]line ФПД: 102233891880434 [14:00:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140019&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115395&fm=102233891880434&tin=02508201610067®Number=0000000000091831&sum=13400 [14:00:19]line 0 [14:00:19]written 0, free lines is 4095 [14:00:19]OFD Sender: Processing packet 115395 [packets to send 481, broken 480] [14:00:19]ProducePacketName [14:00:19]name=ofd_packets/00115395 [14:00:19]OFD Sender: To server: pG, [14:00:19]CommunicateWithHost lk.salyk.kg:30040 [14:00:19]ConnectInit lk.salyk.kg [14:00:20]Connected sock=10 [14:00:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 19 01 00 00 13 AA 11 01 C0 5F 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 F3 22 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C3 C2 01 00 35 04 06 00 5C FB 2E CF 3D F2 2A 5F 72 36 A1 FB 62 D7 [14:00:20]Write to MH i2c: 01 00 00 53 0F 62 [14:00:20]Write i2c OK [14:00:20]MH_I2C_Read... [14:00:20]Read from MH i2c: 01 [14:00:20]MH_I2C_Read... [14:00:20]Read from MH i2c: 01 07 00 [14:00:20]MH_I2C_Read... [14:00:20]Read from MH i2c: 01 07 00 53 0F 00 00 00 00 00 9D 0C 12 [14:00:20]RasterBufferAndPrint [14:00:20]line [14:00:20]line [14:00:20]line [14:00:20]line [14:00:20]line [14:00:20]written 0, free lines is 3235 [14:00:20]MH_Cut [14:00:20]Write to MH i2c: D1 01 00 5A 0F 01 3B [14:00:20]Write i2c OK [14:00:20]MH_I2C_Read... [14:00:20]Read from MH i2c: D1 [14:00:20]MH_I2C_Read... [14:00:20]Read from MH i2c: D1 01 00 [14:00:20]MH_I2C_Read... [14:00:20]Read from MH i2c: D1 01 00 5A 0F 00 3A [14:00:20]Write to MH i2c: 01 00 00 5B 0F 6A [14:00:20]Write i2c OK [14:00:20]MH_I2C_Read... [14:00:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 5F 5A 47 00 2A E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C3 C2 01 00 F4 03 04 00 39 C8 EF 66 B6 04 01 00 00 3F 45 DE 29 8E 8E FE 30 [14:00:20]CommunicateWithHost err = 0 [14:00:20]CheckOFDResponse [14:00:20]1017 (14) - 77093643461234 [14:00:20]1041 (16) - 0000000000871830 [14:00:20]1040 (4) - 115395 [14:00:20]1012 (4) - 22.09.2024 07:33 [14:00:20]1206 (1) - 0 [14:00:20]OFD Sender: Remove packet 115395 [14:00:20]ProducePacketName [14:00:20]name=ofd_packets/00115395 [14:00:20]NVStorageDeleteData [14:00:21]OFD Sender: No OFD packet to send [14:00:21]*** Cut start [14:00:21]*** Partial cut [14:00:21]*** CUTSNS_PIN = 1 [14:00:21]*** CUTSNS_PIN = 0 [14:00:21]*** Brake cut motor [14:00:22]Read from MH i2c: 01 [14:00:22]MH_I2C_Read... [14:00:22]*** Stop cut motor [14:00:22]*** Cut end [14:00:22]Read from MH i2c: 01 07 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: 01 07 00 5B 0F 00 00 00 00 00 FF 0F 7F [14:00:22]process_action close_receipt done [14:00:22]requested_data is exist [14:00:22]produce_requested_data [14:00:22]requested_item fm.sn is exist - process it [14:00:22]wFMCommunicate request_size=4 [14:00:22]MH_SAM_APDU [14:00:22]CAPDU: 80 11 00 00 [14:00:22]Write to MH i2c: E2 08 00 5C 0F 80 11 00 00 00 00 00 00 E5 [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:22]Read from MH i2c: E2 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 17 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 17 00 5C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 33 [14:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:00:22]wFMCommunicate OK [14:00:22]requested_item fd.num is exist - process it [14:00:22]SAM_PROTO_GetFieldsCounters [14:00:22]wFMCommunicate request_size=4 [14:00:22]MH_SAM_APDU [14:00:22]CAPDU: 80 13 00 00 [14:00:22]Write to MH i2c: E2 08 00 5D 0F 80 13 00 00 00 00 00 00 E8 [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:22]Read from MH i2c: E2 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 62 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 62 00 5D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C3 C2 01 00 0E 04 04 00 D7 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 B2 [14:00:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C3 C2 01 00 0E 04 04 00 D7 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 [14:00:22]wFMCommunicate OK [14:00:22]SAM_PROTO_GetFieldsCounters done [14:00:22]requested_item shift.num is exist - process it [14:00:22]requested_item shift.opened is exist - process it [14:00:22]req_shift_opened [14:00:22]FM_GetShiftState [14:00:22]SAM_PROTO_GetShiftState [14:00:22]wFMCommunicate request_size=4 [14:00:22]MH_SAM_APDU [14:00:22]CAPDU: 80 13 01 00 [14:00:22]Write to MH i2c: E2 08 00 5E 0F 80 13 01 00 00 00 00 00 EA [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:22]Read from MH i2c: E2 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 0E 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 0E 00 5E 0F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 03 [14:00:22]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:00:22]wFMCommunicate OK [14:00:22]SAM_PROTO_GetShiftState done [14:00:22]FM_GetShiftState done [14:00:22]req_shift_opened done [14:00:22]requested_item shift.open_date is exist - process it [14:00:22]req_shift_open_date [14:00:22]req_shift_open_date done [14:00:22]produce_requested_data done [14:00:22]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115395,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [14:00:22]process_action_free close_receipt [14:00:22]json_value_free [14:00:22]json_value_free done [14:00:22]process_json_proto returns [14:00:22]Send response to host [14:00:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115395,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [14:00:22]free response buf [14:00:22]execute_script done [14:00:22]execute_script returns [14:00:22]free content buf [14:00:22]Sock 9.Close socket [14:00:22]Sock 9.Thread stoped [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:15]int [14:01:15]Write to MH i2c: 01 00 00 5F 0F 6E [14:01:15]*** FLAG_PRN_KEY set [14:01:15]Write i2c OK [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: 01 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: 01 07 00 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: 01 07 00 5F 0F 00 08 00 00 00 FF 0F 8B [14:01:15]state=0 [14:01:15]Key pressed [14:01:15]Feed [14:01:15]Write to MH i2c: D8 00 00 60 0F 46 [14:01:15]Write i2c OK [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: D8 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: D8 01 00 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: D8 01 00 60 0F 00 47 [14:01:15]int [14:01:15]Write to MH i2c: 01 00 00 61 0F 70 [14:01:15]Write i2c OK [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: 01 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: 01 07 00 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: 01 07 00 61 0F 00 48 00 00 00 3C 00 FB [14:01:15]state=2 [14:01:15]Key pressed [14:01:15]int [14:01:15]Write to MH i2c: 01 00 00 62 0F 71 [14:01:15]*** FLAG_PRN_KEY reset [14:01:15]Write i2c OK [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: 01 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: 01 07 00 [14:01:15]MH_I2C_Read... [14:01:15]Read from MH i2c: 01 07 00 62 0F 00 00 00 00 00 F7 0F 7E [14:01:15]state=2 [14:01:15]Stop feed [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:25]accept exits with 8 [14:01:25]New connection [14:01:25]New thread 3066682724 created [14:01:25]Thread 3066826084 joined [14:01:25]Waiting for new connection... [14:01:25] Sock 8.Parse request [14:01:25]Sock 8.Check first char [14:01:25]Sock 8.First char is OK [14:01:25]request: POST /json_proto HTTP/1.0 [14:01:25]Method: POST [14:01:25]URL: /json_proto [14:01:25]Method is POST - this is cgi request [14:01:25]url: /json_proto [14:01:25]query_string will be loaded in cgi processing [14:01:25]execute_cgi json_proto POST (null) [14:01:25]execute_cgi path=json_proto method=POST [14:01:25]POST find Content-Length [14:01:25]Host: 172.17.41.136:8080 [14:01:25]Content-Length: 1071 [14:01:25]Content-Type: application/json [14:01:25] [14:01:25]POST finish read [14:01:25]Found Content-Length = 1071 [14:01:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343840", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" : 251.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:25]execute_script... [14:01:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343840", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" : 251.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:25]POST & json_proto [14:01:25]process_json_proto [14:01:25]json parsed OK: [14:01:25]protocol is kg_v1.0 [14:01:25]action value=close_receipt [14:01:25]process_action close_receipt [14:01:25]cmd_close_receipt [14:01:25]MH_GetDate [14:01:25]Write to MH i2c: F0 00 00 63 0F 61 [14:01:25]Write i2c OK [14:01:25]MH_I2C_Read... [14:01:25]Read from MH i2c: F0 [14:01:25]MH_I2C_Read... [14:01:25]Read from MH i2c: F0 09 00 [14:01:25]MH_I2C_Read... [14:01:25]Read from MH i2c: F0 09 00 63 0F 00 36 23 F0 66 1B D0 5A 64 C2 [14:01:25]GetLastDocTimeStamp 1727013619 [14:01:25]current date 1727013686 [14:01:25]FM_GetShiftState [14:01:25]SAM_PROTO_GetShiftState [14:01:25]wFMCommunicate request_size=4 [14:01:25]MH_SAM_APDU [14:01:25]CAPDU: 80 13 01 00 [14:01:25]Write to MH i2c: E2 08 00 64 0F 80 13 01 00 00 00 00 00 F0 [14:01:25]Write i2c OK [14:01:25]MH_I2C_Read... [14:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:25]Read from MH i2c: E2 [14:01:25]MH_I2C_Read... [14:01:25]Read from MH i2c: E2 0E 00 [14:01:25]MH_I2C_Read... [14:01:25]Read from MH i2c: E2 0E 00 64 0F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 09 [14:01:25]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:01:25]wFMCommunicate OK [14:01:25]SAM_PROTO_GetShiftState done [14:01:25]FM_GetShiftState done [14:01:25]opened in 1726965840 [14:01:25]opened+sec_in_day 1727052240 [14:01:25]quantity*price = 15600 [14:01:25]sum+1 = 15601 [14:01:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000483334 Напиток Nitro Fresh Дикие ягоды 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 251.00 НСП 1% : 2.22 НДС 12% : 26.66 Наличными: 0.00 Безнал.: 251.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 114 22.09.2024 14:01 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115396 ФПД: 156140019865483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140127&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115396&fm=156140019865483&tin=02508201610067®Number=0000000000091831&sum=25100 0 [14:01:26]StoreToDocumentArchive [14:01:26]shift 471 fd 115396 [14:01:26]save to /storage/0471/doc_00115396 [14:01:26]save last doc name /storage/0471/doc_00115396 to /storage/kkm_last_doc_name [14:01:26]save OK [14:01:26]Clear old archive folders... [14:01:26]ProcessDocumentItem done err = 0, tmpTLVsize=394 [14:01:26]tlvbuf is 01BF22B0 [14:01:26]SAM_PROTO_ClearQueue [14:01:26]wFMCommunicate request_size=4 [14:01:26]MH_SAM_APDU [14:01:26]CAPDU: 80 09 00 00 [14:01:26]Write to MH i2c: E2 08 00 71 0F 80 09 00 00 00 00 00 00 F2 [14:01:26]Write i2c OK [14:01:26]MH_I2C_Read... [14:01:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:26]Read from MH i2c: E2 [14:01:26]MH_I2C_Read... [14:01:26]Read from MH i2c: E2 03 00 [14:01:26]MH_I2C_Read... [14:01:26]Read from MH i2c: E2 03 00 71 0F 00 90 00 F4 [14:01:26]RAPDU: 90 00 [14:01:26]wFMCommunicate OK [14:01:26]SAM_PROTO_ClearQueue done [14:01:26]KKMCreateOFDPacket [14:01:26]OFDProtocolAddRootSTLVToBuf [14:01:26]FM_MakeSignedData [14:01:26]FM_MakeSignedData [14:01:26]SAM_PROTO_SignData [14:01:26]wFMCommunicate request_size=4 [14:01:26]MH_SAM_APDU [14:01:26]CAPDU: 80 0D 01 02 [14:01:26]Write to MH i2c: E2 08 00 72 0F 80 0D 01 02 00 00 00 00 FA [14:01:26]Write i2c OK [14:01:26]MH_I2C_Read... [14:01:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:26]Read from MH i2c: E2 [14:01:26]MH_I2C_Read... [14:01:26]Read from MH i2c: E2 03 00 [14:01:26]MH_I2C_Read... [14:01:26]Read from MH i2c: E2 03 00 72 0F 00 90 00 F5 [14:01:26]RAPDU: 90 00 [14:01:26]wFMCommunicate OK [14:01:26]wFMCommunicate request_size=255 [14:01:26]MH_SAM_APDU [14:01:26]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 62 00 00 00 00 EB 03 26 00 EF 03 0F [14:01:26]Write to MH i2c: E2 02 01 73 0F 80 0D 02 02 FA 00 03 00 8A 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 E0 [14:01:26]Write i2c OK [14:01:26]MH_I2C_Read... [14:01:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:26]Read from MH i2c: E2 [14:01:26]MH_I2C_Read... [14:01:26]Read from MH i2c: E2 03 00 [14:01:26]MH_I2C_Read... [14:01:26]Read from MH i2c: E2 03 00 73 0F 00 90 00 F6 [14:01:26]RAPDU: 90 00 [14:01:26]wFMCommunicate OK [14:01:26]wFMCommunicate request_size=153 [14:01:26]MH_SAM_APDU [14:01:26]CAPDU: 80 0D 02 02 94 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 37 23 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C4 C2 01 00 35 04 06 00 8E 02 2E 6B 57 8B [14:01:26]Write to MH i2c: E2 9C 00 74 0F 80 0D 02 02 94 00 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 37 23 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C4 C2 01 00 35 04 06 00 8E 02 2E 6B 57 8B 00 00 91 [14:01:26]Write i2c OK [14:01:26]MH_I2C_Read... [14:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:27]Read from MH i2c: E2 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: E2 03 00 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: E2 03 00 74 0F 00 90 00 F7 [14:01:27]RAPDU: 90 00 [14:01:27]wFMCommunicate OK [14:01:27]wFMCommunicate request_size=4 [14:01:27]MH_SAM_APDU [14:01:27]CAPDU: 80 0D 03 02 [14:01:27]Write to MH i2c: E2 08 00 75 0F 80 0D 03 02 00 00 00 00 FF [14:01:27]Write i2c OK [14:01:27]MH_I2C_Read... [14:01:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:27]Read from MH i2c: E2 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: E2 0B 00 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: E2 0B 00 75 0F 00 03 BB 65 64 77 92 43 3A 90 00 0D [14:01:27]RAPDU: 03 BB 65 64 77 92 43 3A 90 00 [14:01:27]wFMCommunicate OK [14:01:27]SAM_PROTO_SignData done [14:01:27]FM_MakeSignedData done [14:01:27]CreateOFDProtocolMessage [14:01:27]wFMCommunicate request_size=4 [14:01:27]MH_SAM_APDU [14:01:27]CAPDU: 80 11 00 00 [14:01:27]Write to MH i2c: E2 08 00 76 0F 80 11 00 00 00 00 00 00 FF [14:01:27]Write i2c OK [14:01:27]MH_I2C_Read... [14:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:27]Read from MH i2c: E2 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: E2 17 00 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: E2 17 00 76 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4D [14:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:01:27]wFMCommunicate OK [14:01:27]CreateOFDProtocolMessage done [14:01:27]OFDSenderStorePacket 115396 [14:01:27]StoreOFDPacket docnum=115396 [14:01:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9E 01 00 00 7E 04 96 01 1E 3F 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 37 23 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C4 C2 01 00 35 04 06 00 8E 02 2E 6B 57 8B 03 BB 65 64 77 92 43 3A [14:01:27]CheckFolder [14:01:27]dirname=/storage/ofd_packets [14:01:27]CheckFolder done [14:01:27]ProducePacketName [14:01:27]name=ofd_packets/00115396 [14:01:27]NVStorageSaveData ofd_packets/00115396 [14:01:27]File name is /storage/ofd_packets/00115396 [14:01:27]Write 444 bytes [14:01:27]NVStorageSaveData done [14:01:27]OFDSenderStorePacket done [14:01:27]KKMCreateOFDPacket done [14:01:27]NVStorageSaveData kkm_last_timestamp [14:01:27]File name is /storage/kkm_last_timestamp [14:01:27]Write 4 bytes [14:01:27]NVStorageSaveData done [14:01:27]ExternCall_PrintAddStr [14:01:27]wPrintStart [14:01:27]Write to MH i2c: 01 00 00 77 0F 86 [14:01:27]OFD Sender: Processing packet 115396 [packets to send 481, broken 480] [14:01:27]ProducePacketName [14:01:27]name=ofd_packets/00115396 [14:01:27]OFD Sender: To server: pG, [14:01:27]CommunicateWithHost lk.salyk.kg:30040 [14:01:27]ConnectInit lk.salyk.kg [14:01:27]Write i2c OK [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: 01 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: 01 07 00 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: 01 07 00 77 0F 00 00 00 00 00 FF 0F 9B [14:01:27]RasterBufferAndPrint [14:01:27]line Счет N : (3)343840 [14:01:27]line ИНН: 02508201610067 [14:01:27]line Контрольно-Кассовый Чек [14:01:27]line ПРОДАЖА [14:01:27]line Товар: 48741958 [14:01:27]line Сигареты Parliament Aqua Blue [14:01:27]line 1.000 * 156.00 [14:01:27]line = 156.00 [14:01:27]line НДС 12% НСП 1% [14:01:27]line > о реализуемом товаре [14:01:27]line Товар: 4700000483334 [14:01:27]line Напиток Nitro Fresh Дикие ягоды [14:01:27]line 1.000 * 95.00 [14:01:27]line = 95.00 [14:01:27]line НДС 12% НСП 1% [14:01:27]line > о реализуемом товаре [14:01:27]line ИТОГО: 251.00 [14:01:27]line НСП 1% : 2.22 [14:01:27]line НДС 12% : 26.66 [14:01:27]line Наличными: 0.00 [14:01:27]line Безнал.: 251.00 [14:01:27]line Место: АЗС № 90 "Партнер Нефть" [14:01:27]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:01:27]line СНО: Общий режим [14:01:27]line Чек 114 22.09.2024 14:01 [14:01:27]line Смена: 471 ФФД: 1.0 [14:01:27]line ЗНМ: 0300000120 [14:01:27]line РНМ: 0000000000091831 [14:01:27]line Версия ККМ: 001 [14:01:27]line Платежная система: O! деньги [14:01:27]line ФМ: 0000000000871830 [14:01:27]line ФД: 115396 [14:01:27]line ФПД: 156140019865483 [14:01:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140127&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115396&fm=156140019865483&tin=02508201610067®Number=0000000000091831&sum=25100 [14:01:27]line 0 [14:01:27]written 0, free lines is 4095 [14:01:27]Connected sock=11 [14:01:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9E 01 00 00 7E 04 96 01 1E 3F 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 37 23 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C4 C2 01 00 35 04 06 00 8E 02 2E 6B 57 8B 03 BB 65 64 77 92 43 3A [14:01:28]Write to MH i2c: 01 00 00 A8 0F B7 [14:01:28]Write i2c OK [14:01:28]MH_I2C_Read... [14:01:28]Read from MH i2c: 01 [14:01:28]MH_I2C_Read... [14:01:28]Read from MH i2c: 01 07 00 [14:01:28]MH_I2C_Read... [14:01:28]Read from MH i2c: 01 07 00 A8 0F 00 00 00 00 00 C3 0B 8C [14:01:28]RasterBufferAndPrint [14:01:28]line [14:01:28]line [14:01:28]line [14:01:28]line [14:01:28]line [14:01:28]written 0, free lines is 3013 [14:01:28]MH_Cut [14:01:28]Write to MH i2c: D1 01 00 AF 0F 01 90 [14:01:28]Write i2c OK [14:01:28]MH_I2C_Read... [14:01:28]Read from MH i2c: D1 [14:01:28]MH_I2C_Read... [14:01:28]Read from MH i2c: D1 01 00 [14:01:28]MH_I2C_Read... [14:01:28]Read from MH i2c: D1 01 00 AF 0F 00 8F [14:01:28]Write to MH i2c: 01 00 00 B0 0F BF [14:01:28]Write i2c OK [14:01:28]MH_I2C_Read... [14:01:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1D F3 47 00 F3 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 31 38 33 30 10 04 04 00 C4 C2 01 00 F4 03 04 00 7D C8 EF 66 B6 04 01 00 00 B4 F2 86 CF DC D5 A6 11 [14:01:28]CommunicateWithHost err = 0 [14:01:28]CheckOFDResponse [14:01:28]1017 (14) - 77093643461234 [14:01:28]1041 (16) - 0000000000871830 [14:01:28]1040 (4) - 115396 [14:01:28]1012 (4) - 22.09.2024 07:34 [14:01:28]1206 (1) - 0 [14:01:28]OFD Sender: Remove packet 115396 [14:01:28]ProducePacketName [14:01:28]name=ofd_packets/00115396 [14:01:28]NVStorageDeleteData [14:01:28]OFD Sender: No OFD packet to send [14:01:29]*** Cut start [14:01:29]*** Partial cut [14:01:29]*** CUTSNS_PIN = 1 [14:01:29]*** CUTSNS_PIN = 0 [14:01:29]*** Brake cut motor [14:01:30]Read from MH i2c: 01 [14:01:30]MH_I2C_Read... [14:01:30]*** Stop cut motor [14:01:30]*** Cut end [14:01:30]Read from MH i2c: 01 07 00 [14:01:30]MH_I2C_Read... [14:01:30]Read from MH i2c: 01 07 00 B0 0F 00 00 00 00 00 FF 0F D4 [14:01:30]process_action close_receipt done [14:01:30]requested_data is exist [14:01:30]produce_requested_data [14:01:30]requested_item fm.sn is exist - process it [14:01:30]wFMCommunicate request_size=4 [14:01:30]MH_SAM_APDU [14:01:30]CAPDU: 80 11 00 00 [14:01:30]Write to MH i2c: E2 08 00 B1 0F 80 11 00 00 00 00 00 00 3A [14:01:30]Write i2c OK [14:01:30]MH_I2C_Read... [14:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:30]Read from MH i2c: E2 [14:01:30]MH_I2C_Read... [14:01:30]Read from MH i2c: E2 17 00 [14:01:30]MH_I2C_Read... [14:01:30]Read from MH i2c: E2 17 00 B1 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 88 [14:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:01:30]wFMCommunicate OK [14:01:30]requested_item fd.num is exist - process it [14:01:30]SAM_PROTO_GetFieldsCounters [14:01:30]wFMCommunicate request_size=4 [14:01:30]MH_SAM_APDU [14:01:30]CAPDU: 80 13 00 00 [14:01:30]Write to MH i2c: E2 08 00 B2 0F 80 13 00 00 00 00 00 00 3D [14:01:30]Write i2c OK [14:01:30]MH_I2C_Read... [14:01:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:30]Read from MH i2c: E2 [14:01:30]MH_I2C_Read... [14:01:30]Read from MH i2c: E2 62 00 [14:01:30]MH_I2C_Read... [14:01:30]Read from MH i2c: E2 62 00 B2 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C4 C2 01 00 0E 04 04 00 D7 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 0B [14:01:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C4 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:01:30]wFMCommunicate OK [14:01:30]SAM_PROTO_GetFieldsCounters done [14:01:30]requested_item shift.num is exist - process it [14:01:30]requested_item shift.opened is exist - process it [14:01:30]req_shift_opened [14:01:30]FM_GetShiftState [14:01:30]SAM_PROTO_GetShiftState [14:01:30]wFMCommunicate request_size=4 [14:01:30]MH_SAM_APDU [14:01:30]CAPDU: 80 13 01 00 [14:01:30]Write to MH i2c: E2 08 00 B3 0F 80 13 01 00 00 00 00 00 3F [14:01:30]Write i2c OK [14:01:30]MH_I2C_Read... [14:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:30]Read from MH i2c: E2 [14:01:30]MH_I2C_Read... [14:01:30]Read from MH i2c: E2 0E 00 [14:01:30]MH_I2C_Read... [14:01:30]Read from MH i2c: E2 0E 00 B3 0F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 58 [14:01:30]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:01:30]wFMCommunicate OK [14:01:30]SAM_PROTO_GetShiftState done [14:01:30]FM_GetShiftState done [14:01:30]req_shift_opened done [14:01:30]requested_item shift.open_date is exist - process it [14:01:30]req_shift_open_date [14:01:30]req_shift_open_date done [14:01:30]produce_requested_data done [14:01:30]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115396,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [14:01:30]process_action_free close_receipt [14:01:30]json_value_free [14:01:30]json_value_free done [14:01:30]process_json_proto returns [14:01:30]Send response to host [14:01:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115396,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [14:01:30]free response buf [14:01:30]execute_script done [14:01:30]execute_script returns [14:01:30]free content buf [14:01:30]Sock 8.Close socket [14:01:30]Sock 8.Thread stoped [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]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:08]accept exits with 9 [14:09:08]New connection [14:09:08]New thread 3066826084 created [14:09:08]Thread 3066682724 joined [14:09:08]Waiting for new connection... [14:09:08] Sock 9.Parse request [14:09:08]Sock 9.Check first char [14:09:08]Sock 9.First char is OK [14:09:08]request: POST /json_proto HTTP/1.0 [14:09:08]Method: POST [14:09:08]URL: /json_proto [14:09:08]Method is POST - this is cgi request [14:09:08]url: /json_proto [14:09:08]query_string will be loaded in cgi processing [14:09:08]execute_cgi json_proto POST (null) [14:09:08]execute_cgi path=json_proto method=POST [14:09:08]POST find Content-Length [14:09:08]Host: 172.17.41.136:8080 [14:09:08]Content-Length: 683 [14:09:08]Content-Type: application/json [14:09:08] [14:09:08]POST finish read [14:09:08]Found Content-Length = 683 [14:09:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 25.410, "sum" : 950.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 950.00, "total" : 950.00, "payments": [ { "type": 0, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:08]execute_script... [14:09: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)24616814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 25.410, "sum" : 950.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 950.00, "total" : 950.00, "payments": [ { "type": 0, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:08]POST & json_proto [14:09:08]process_json_proto [14:09:08]json parsed OK: [14:09:08]protocol is kg_v1.0 [14:09:08]action value=close_receipt [14:09:08]process_action close_receipt [14:09:08]cmd_close_receipt [14:09:08]MH_GetDate [14:09:08]Write to MH i2c: F0 00 00 B4 0F B2 [14:09:08]Write i2c OK [14:09:08]MH_I2C_Read... [14:09:08]Read from MH i2c: F0 [14:09:08]MH_I2C_Read... [14:09:08]Read from MH i2c: F0 09 00 [14:09:08]MH_I2C_Read... [14:09:08]Read from MH i2c: F0 09 00 B4 0F 00 05 25 F0 66 1B D0 5A 64 E4 [14:09:08]GetLastDocTimeStamp 1727013687 [14:09:08]current date 1727014149 [14:09:08]FM_GetShiftState [14:09:08]SAM_PROTO_GetShiftState [14:09:08]wFMCommunicate request_size=4 [14:09:08]MH_SAM_APDU [14:09:08]CAPDU: 80 13 01 00 [14:09:08]Write to MH i2c: E2 08 00 B5 0F 80 13 01 00 00 00 00 00 41 [14:09:08]Write i2c OK [14:09:08]MH_I2C_Read... [14:09:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:08]Read from MH i2c: E2 [14:09:08]MH_I2C_Read... [14:09:08]Read from MH i2c: E2 0E 00 [14:09:08]MH_I2C_Read... [14:09:08]Read from MH i2c: E2 0E 00 B5 0F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 5A [14:09:08]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:09:08]wFMCommunicate OK [14:09:08]SAM_PROTO_GetShiftState done [14:09:08]FM_GetShiftState done [14:09:08]opened in 1726965840 [14:09:08]opened+sec_in_day 1727052240 [14:09:08]quantity*price = 95033 [14:09:08]sum+1 = 95034 [14:09:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 950.00 Внесено: 950.00 СДАЧА: 0.00 НСП 1% : 8.41 НДС 12% : 100.92 Наличными: 950.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 115 22.09.2024 14:09 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115397 ФПД: 81480451366269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140910&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115397&fm=81480451366269&tin=02508201610067®Number=0000000000091831&sum=95000 [14:09:09]StoreToDocumentArchive [14:09:09]shift 471 fd 115397 [14:09:09]save to /storage/0471/doc_00115397 [14:09:09]save last doc name /storage/0471/doc_00115397 to /storage/kkm_last_doc_name [14:09:09]save OK [14:09:09]Clear old archive folders... [14:09:09]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:09:09]tlvbuf is 01C3E780 [14:09:09]SAM_PROTO_ClearQueue [14:09:09]wFMCommunicate request_size=4 [14:09:09]MH_SAM_APDU [14:09:09]CAPDU: 80 09 00 00 [14:09:09]Write to MH i2c: E2 08 00 C2 0F 80 09 00 00 00 00 00 00 43 [14:09:09]Write i2c OK [14:09:09]MH_I2C_Read... [14:09:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:09]Read from MH i2c: E2 [14:09:09]MH_I2C_Read... [14:09:09]Read from MH i2c: E2 03 00 [14:09:09]MH_I2C_Read... [14:09:09]Read from MH i2c: E2 03 00 C2 0F 00 90 00 45 [14:09:09]RAPDU: 90 00 [14:09:09]wFMCommunicate OK [14:09:09]SAM_PROTO_ClearQueue done [14:09:09]KKMCreateOFDPacket [14:09:09]OFDProtocolAddRootSTLVToBuf [14:09:09]FM_MakeSignedData [14:09:09]FM_MakeSignedData [14:09:09]SAM_PROTO_SignData [14:09:09]wFMCommunicate request_size=4 [14:09:09]MH_SAM_APDU [14:09:09]CAPDU: 80 0D 01 02 [14:09:09]Write to MH i2c: E2 08 00 C3 0F 80 0D 01 02 00 00 00 00 4B [14:09:09]Write i2c OK [14:09:09]MH_I2C_Read... [14:09:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:09]Read from MH i2c: E2 [14:09:09]MH_I2C_Read... [14:09:09]Read from MH i2c: E2 03 00 [14:09:09]MH_I2C_Read... [14:09:09]Read from MH i2c: E2 03 00 C3 0F 00 90 00 46 [14:09:09]RAPDU: 90 00 [14:09:09]wFMCommunicate OK [14:09:09]wFMCommunicate request_size=255 [14:09:09]MH_SAM_APDU [14:09:09]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 42 63 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 39 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 6C 27 00 00 00 00 07 04 06 00 18 73 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 06 25 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C5 C2 01 00 35 04 06 00 4A 1B [14:09:09]Write to MH i2c: E2 02 01 C4 0F 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 42 63 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 39 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 6C 27 00 00 00 00 07 04 06 00 18 73 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 06 25 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C5 C2 01 00 35 04 06 00 4A 1B 00 00 A0 [14:09:09]Write i2c OK [14:09:09]MH_I2C_Read... [14:09:09]OFD Sender: No OFD packet to send [14:09:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:09]Read from MH i2c: E2 [14:09:09]MH_I2C_Read... [14:09:09]Read from MH i2c: E2 03 00 [14:09:09]MH_I2C_Read... [14:09:09]Read from MH i2c: E2 03 00 C4 0F 00 90 00 47 [14:09:09]RAPDU: 90 00 [14:09:09]wFMCommunicate OK [14:09:09]wFMCommunicate request_size=9 [14:09:09]MH_SAM_APDU [14:09:09]CAPDU: 80 0D 02 02 04 25 5C 1D 7D [14:09:09]Write to MH i2c: E2 0C 00 C5 0F 80 0D 02 02 04 00 25 5C 1D 7D 00 00 71 [14:09:09]Write i2c OK [14:09:09]MH_I2C_Read... [14:09:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:09]Read from MH i2c: E2 [14:09:09]MH_I2C_Read... [14:09:09]Read from MH i2c: E2 03 00 [14:09:09]MH_I2C_Read... [14:09:09]Read from MH i2c: E2 03 00 C5 0F 00 90 00 48 [14:09:09]RAPDU: 90 00 [14:09:09]wFMCommunicate OK [14:09:09]wFMCommunicate request_size=4 [14:09:09]MH_SAM_APDU [14:09:09]CAPDU: 80 0D 03 02 [14:09:09]Write to MH i2c: E2 08 00 C6 0F 80 0D 03 02 00 00 00 00 50 [14:09:10]Write i2c OK [14:09:10]MH_I2C_Read... [14:09:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:10]Read from MH i2c: E2 [14:09:10]MH_I2C_Read... [14:09:10]Read from MH i2c: E2 0B 00 [14:09:10]MH_I2C_Read... [14:09:10]Read from MH i2c: E2 0B 00 C6 0F 00 D9 40 73 EB 51 90 53 0D 90 00 09 [14:09:10]RAPDU: D9 40 73 EB 51 90 53 0D 90 00 [14:09:10]wFMCommunicate OK [14:09:10]SAM_PROTO_SignData done [14:09:10]FM_MakeSignedData done [14:09:10]CreateOFDProtocolMessage [14:09:10]wFMCommunicate request_size=4 [14:09:10]MH_SAM_APDU [14:09:10]CAPDU: 80 11 00 00 [14:09:10]Write to MH i2c: E2 08 00 C7 0F 80 11 00 00 00 00 00 00 50 [14:09:10]Write i2c OK [14:09:10]MH_I2C_Read... [14:09:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:10]Read from MH i2c: E2 [14:09:10]MH_I2C_Read... [14:09:10]Read from MH i2c: E2 17 00 [14:09:10]MH_I2C_Read... [14:09:10]Read from MH i2c: E2 17 00 C7 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9E [14:09:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:09:10]wFMCommunicate OK [14:09:10]CreateOFDProtocolMessage done [14:09:10]OFDSenderStorePacket 115397 [14:09:10]StoreOFDPacket docnum=115397 [14:09:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0E 01 00 00 2D 4C 06 01 7D 5A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 42 63 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 39 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 6C 27 00 00 00 00 07 04 06 00 18 73 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 06 25 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C5 C2 01 00 35 04 06 00 4A 1B 25 5C 1D 7D D9 40 73 EB 51 90 53 0D [14:09:10]CheckFolder [14:09:10]dirname=/storage/ofd_packets [14:09:10]CheckFolder done [14:09:10]ProducePacketName [14:09:10]name=ofd_packets/00115397 [14:09:10]NVStorageSaveData ofd_packets/00115397 [14:09:10]File name is /storage/ofd_packets/00115397 [14:09:10]Write 300 bytes [14:09:10]NVStorageSaveData done [14:09:10]OFDSenderStorePacket done [14:09:10]KKMCreateOFDPacket done [14:09:10]NVStorageSaveData kkm_last_timestamp [14:09:10]File name is /storage/kkm_last_timestamp [14:09:10]Write 4 bytes [14:09:10]NVStorageSaveData done [14:09:10]ExternCall_PrintAddStr [14:09:10]wPrintStart [14:09:10]Write to MH i2c: 01 00 00 C8 0F D7 [14:09:10]Write i2c OK [14:09:10]MH_I2C_Read... [14:09:10]Read from MH i2c: 01 [14:09:10]MH_I2C_Read... [14:09:10]Read from MH i2c: 01 07 00 [14:09:10]MH_I2C_Read... [14:09:10]Read from MH i2c: 01 07 00 C8 0F 00 00 00 00 00 FF 0F EC [14:09:10]RasterBufferAndPrint [14:09:10]line Счет N : (1)24616814 [14:09:10]line ИНН: 02508201610067 [14:09:10]line Контрольно-Кассовый Чек [14:09:10]line ПРОДАЖА [14:09:10]line ТРК (МРК, ГНК) : 71 [14:09:10]line Товар: 2711190000 [14:09:10]line ГАЗ-К-5 [14:09:10]line 25.410 * 37.40 [14:09:10]line = 950.33 [14:09:10]line НДС 12% НСП 1% [14:09:10]line > о реализуемом товаре [14:09:10]line ОКРУГЛЕНИЕ: -0.33 [14:09:10]line ИТОГО: 950.00 [14:09:10]line Внесено: 950.00 [14:09:10]line СДАЧА: 0.00 [14:09:10]line НСП 1% : 8.41 [14:09:10]line НДС 12% : 100.92 [14:09:10]line Наличными: 950.00 [14:09:10]line Безнал.: 0.00 [14:09:10]line Место: АЗС № 90 "Партнер Нефть" [14:09:10]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:09:10]line СНО: Общий режим [14:09:10]line Чек 115 22.09.2024 14:09 [14:09:10]line Смена: 471 ФФД: 1.0 [14:09:10]line ЗНМ: 0300000120 [14:09:10]line РНМ: 0000000000091831 [14:09:10]line Версия ККМ: 001 [14:09:10]line ФМ: 0000000000871830 [14:09:10]line ФД: 115397 [14:09:10]line ФПД: 81480451366269 [14:09:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140910&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115397&fm=81480451366269&tin=02508201610067®Number=0000000000091831&sum=95000 [14:09:10]written 0, free lines is 4095 [14:09:10]OFD Sender: Processing packet 115397 [packets to send 481, broken 480] [14:09:10]ProducePacketName [14:09:10]name=ofd_packets/00115397 [14:09:10]OFD Sender: To server: pG, [14:09:10]CommunicateWithHost lk.salyk.kg:30040 [14:09:10]ConnectInit lk.salyk.kg [14:09:10]Connected sock=10 [14:09:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0E 01 00 00 2D 4C 06 01 7D 5A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 42 63 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 39 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 6C 27 00 00 00 00 07 04 06 00 18 73 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 06 25 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C5 C2 01 00 35 04 06 00 4A 1B 25 5C 1D 7D D9 40 73 EB 51 90 53 0D [14:09:10]Write to MH i2c: 01 00 00 F2 0F 01 [14:09:10]Write i2c OK [14:09:10]MH_I2C_Read... [14:09:10]Read from MH i2c: 01 [14:09:10]MH_I2C_Read... [14:09:10]Read from MH i2c: 01 07 00 [14:09:10]MH_I2C_Read... [14:09:10]Read from MH i2c: 01 07 00 F2 0F 00 00 00 00 00 6A 0C 7E [14:09:10]RasterBufferAndPrint [14:09:10]line [14:09:10]line [14:09:10]line [14:09:10]line [14:09:10]line [14:09:10]written 0, free lines is 3182 [14:09:10]MH_Cut [14:09:10]Write to MH i2c: D1 01 00 F9 0F 01 DA [14:09:10]Write i2c OK [14:09:10]MH_I2C_Read... [14:09:10]Read from MH i2c: D1 [14:09:10]MH_I2C_Read... [14:09:10]Read from MH i2c: D1 01 00 [14:09:10]MH_I2C_Read... [14:09:10]Read from MH i2c: D1 01 00 F9 0F 00 D9 [14:09:10]Write to MH i2c: 01 00 00 FA 0F 09 [14:09:10]Write i2c OK [14:09:10]MH_I2C_Read... [14:09:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 68 10 47 00 7A C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C5 C2 01 00 F4 03 04 00 4B CA EF 66 B6 04 01 00 00 6B 65 3F C7 7E 98 AD BA [14:09:10]CommunicateWithHost err = 0 [14:09:10]CheckOFDResponse [14:09:10]1017 (14) - 77093643461234 [14:09:10]1041 (16) - 0000000000871830 [14:09:10]1040 (4) - 115397 [14:09:10]1012 (4) - 22.09.2024 07:42 [14:09:10]1206 (1) - 0 [14:09:10]OFD Sender: Remove packet 115397 [14:09:10]ProducePacketName [14:09:10]name=ofd_packets/00115397 [14:09:10]NVStorageDeleteData [14:09:11]OFD Sender: No OFD packet to send [14:09:11]*** Cut start [14:09:11]*** Partial cut [14:09:11]*** CUTSNS_PIN = 1 [14:09:11]*** CUTSNS_PIN = 0 [14:09:12]*** Brake cut motor [14:09:12]Read from MH i2c: 01 [14:09:12]MH_I2C_Read... [14:09:12]*** Stop cut motor [14:09:12]*** Cut end [14:09:12]Read from MH i2c: 01 07 00 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: 01 07 00 FA 0F 00 00 00 00 00 FF 0F 1E [14:09:12]process_action close_receipt done [14:09:12]requested_data is exist [14:09:12]produce_requested_data [14:09:12]requested_item fm.sn is exist - process it [14:09:12]wFMCommunicate request_size=4 [14:09:12]MH_SAM_APDU [14:09:12]CAPDU: 80 11 00 00 [14:09:12]Write to MH i2c: E2 08 00 FB 0F 80 11 00 00 00 00 00 00 84 [14:09:12]Write i2c OK [14:09:12]MH_I2C_Read... [14:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:12]Read from MH i2c: E2 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: E2 17 00 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: E2 17 00 FB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [14:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:09:12]wFMCommunicate OK [14:09:12]requested_item fd.num is exist - process it [14:09:12]SAM_PROTO_GetFieldsCounters [14:09:12]wFMCommunicate request_size=4 [14:09:12]MH_SAM_APDU [14:09:12]CAPDU: 80 13 00 00 [14:09:12]Write to MH i2c: E2 08 00 FC 0F 80 13 00 00 00 00 00 00 87 [14:09:12]Write i2c OK [14:09:12]MH_I2C_Read... [14:09:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:12]Read from MH i2c: E2 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: E2 62 00 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: E2 62 00 FC 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C5 C2 01 00 0E 04 04 00 D7 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 59 [14:09:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C5 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:12]wFMCommunicate OK [14:09:12]SAM_PROTO_GetFieldsCounters done [14:09:12]requested_item shift.num is exist - process it [14:09:12]requested_item shift.opened is exist - process it [14:09:12]req_shift_opened [14:09:12]FM_GetShiftState [14:09:12]SAM_PROTO_GetShiftState [14:09:12]wFMCommunicate request_size=4 [14:09:12]MH_SAM_APDU [14:09:12]CAPDU: 80 13 01 00 [14:09:12]Write to MH i2c: E2 08 00 FD 0F 80 13 01 00 00 00 00 00 89 [14:09:12]Write i2c OK [14:09:12]MH_I2C_Read... [14:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:12]Read from MH i2c: E2 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: E2 0E 00 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: E2 0E 00 FD 0F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A2 [14:09:12]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:09:12]wFMCommunicate OK [14:09:12]SAM_PROTO_GetShiftState done [14:09:12]FM_GetShiftState done [14:09:12]req_shift_opened done [14:09:12]requested_item shift.open_date is exist - process it [14:09:12]req_shift_open_date [14:09:12]req_shift_open_date done [14:09:12]produce_requested_data done [14:09:12]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115397,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [14:09:12]process_action_free close_receipt [14:09:12]json_value_free [14:09:12]json_value_free done [14:09:12]process_json_proto returns [14:09:12]Send response to host [14:09:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115397,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [14:09:12]free response buf [14:09:12]execute_script done [14:09:12]execute_script returns [14:09:12]free content buf [14:09:12]Sock 9.Close socket [14:09:12]Sock 9.Thread stoped [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [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:25]accept exits with 8 [14:16:25]New connection [14:16:25]New thread 3066682724 created [14:16:25]Thread 3066826084 joined [14:16:25]Waiting for new connection... [14:16:25] Sock 8.Parse request [14:16:25]Sock 8.Check first char [14:16:25]Sock 8.First char is OK [14:16:25]request: POST /json_proto HTTP/1.0 [14:16:25]Method: POST [14:16:25]URL: /json_proto [14:16:25]Method is POST - this is cgi request [14:16:25]url: /json_proto [14:16:25]query_string will be loaded in cgi processing [14:16:25]execute_cgi json_proto POST (null) [14:16:25]execute_cgi path=json_proto method=POST [14:16:25]POST find Content-Length [14:16:25]Host: 172.17.41.136:8080 [14:16:25]Content-Length: 1102 [14:16:25]Content-Type: application/json [14:16:25] [14:16:25]POST finish read [14:16:25]Found Content-Length = 1102 [14:16:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343841", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.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" : 237.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:25]execute_script... [14:16:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343841", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.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" : 237.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:25]POST & json_proto [14:16:25]process_json_proto [14:16:25]json parsed OK: [14:16:25]protocol is kg_v1.0 [14:16:25]action value=close_receipt [14:16:25]process_action close_receipt [14:16:25]cmd_close_receipt [14:16:25]MH_GetDate [14:16:25]Write to MH i2c: F0 00 00 FE 0F FC [14:16:25]Write i2c OK [14:16:25]MH_I2C_Read... [14:16:25]Read from MH i2c: F0 [14:16:25]MH_I2C_Read... [14:16:25]Read from MH i2c: F0 09 00 [14:16:25]MH_I2C_Read... [14:16:25]Read from MH i2c: F0 09 00 FE 0F 00 BB 26 F0 66 1B D0 5A 64 E5 [14:16:25]GetLastDocTimeStamp 1727014150 [14:16:25]current date 1727014587 [14:16:25]FM_GetShiftState [14:16:25]SAM_PROTO_GetShiftState [14:16:25]wFMCommunicate request_size=4 [14:16:25]MH_SAM_APDU [14:16:25]CAPDU: 80 13 01 00 [14:16:25]Write to MH i2c: E2 08 00 FF 0F 80 13 01 00 00 00 00 00 8B [14:16:25]Write i2c OK [14:16:25]MH_I2C_Read... [14:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:25]Read from MH i2c: E2 [14:16:25]MH_I2C_Read... [14:16:25]Read from MH i2c: E2 0E 00 [14:16:25]MH_I2C_Read... [14:16:25]Read from MH i2c: E2 0E 00 FF 0F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A4 [14:16:25]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:16:25]wFMCommunicate OK [14:16:25]SAM_PROTO_GetShiftState done [14:16:25]FM_GetShiftState done [14:16:25]opened in 1726965840 [14:16:25]opened+sec_in_day 1727052240 [14:16:25]quantity*price = 9000 [14:16:25]sum+1 = 9001 [14:16:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48744683 Сигареты Winston XStyle Caster+ 1.000 * 147.00 = 147.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 237.00 НСП 1% : 2.10 НДС 12% : 25.17 Наличными: 0.00 Безнал.: 237.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 116 22.09.2024 14:16 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115398 ФПД: 35994950213969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T141627&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115398&fm=35994950213969&tin=02508201610067®Number=0000000000091831&sum=23700 0 [14:16:26]StoreToDocumentArchive [14:16:26]shift 471 fd 115398 [14:16:26]save to /storage/0471/doc_00115398 [14:16:26]save last doc name /storage/0471/doc_00115398 to /storage/kkm_last_doc_name [14:16:26]save OK [14:16:26]Clear old archive folders... [14:16:26]ProcessDocumentItem done err = 0, tmpTLVsize=405 [14:16:26]tlvbuf is 01C1D310 [14:16:26]SAM_PROTO_ClearQueue [14:16:26]wFMCommunicate request_size=4 [14:16:26]MH_SAM_APDU [14:16:26]CAPDU: 80 09 00 00 [14:16:26]Write to MH i2c: E2 08 00 0C 10 80 09 00 00 00 00 00 00 8E [14:16:26]Write i2c OK [14:16:26]MH_I2C_Read... [14:16:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:26]Read from MH i2c: E2 [14:16:26]MH_I2C_Read... [14:16:26]Read from MH i2c: E2 03 00 [14:16:26]MH_I2C_Read... [14:16:26]Read from MH i2c: E2 03 00 0C 10 00 90 00 90 [14:16:26]RAPDU: 90 00 [14:16:26]wFMCommunicate OK [14:16:26]SAM_PROTO_ClearQueue done [14:16:26]KKMCreateOFDPacket [14:16:26]OFDProtocolAddRootSTLVToBuf [14:16:26]FM_MakeSignedData [14:16:26]FM_MakeSignedData [14:16:26]SAM_PROTO_SignData [14:16:26]wFMCommunicate request_size=4 [14:16:26]MH_SAM_APDU [14:16:26]CAPDU: 80 0D 01 02 [14:16:26]Write to MH i2c: E2 08 00 0D 10 80 0D 01 02 00 00 00 00 96 [14:16:26]Write i2c OK [14:16:26]MH_I2C_Read... [14:16:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:26]Read from MH i2c: E2 [14:16:26]MH_I2C_Read... [14:16:26]Read from MH i2c: E2 03 00 [14:16:26]MH_I2C_Read... [14:16:26]Read from MH i2c: E2 03 00 0D 10 00 90 00 91 [14:16:26]RAPDU: 90 00 [14:16:26]wFMCommunicate OK [14:16:26]wFMCommunicate request_size=255 [14:16:26]MH_SAM_APDU [14:16:26]CAPDU: 80 0D 02 02 FA 03 00 95 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 5C [14:16:26]Write to MH i2c: E2 02 01 0E 10 80 0D 02 02 FA 00 03 00 95 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 5C 00 00 67 [14:16:26]Write i2c OK [14:16:26]MH_I2C_Read... [14:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:27]Read from MH i2c: E2 [14:16:27]MH_I2C_Read... [14:16:27]Read from MH i2c: E2 03 00 [14:16:27]MH_I2C_Read... [14:16:27]Read from MH i2c: E2 03 00 0E 10 00 90 00 92 [14:16:27]RAPDU: 90 00 [14:16:27]wFMCommunicate OK [14:16:27]wFMCommunicate request_size=164 [14:16:27]MH_SAM_APDU [14:16:27]CAPDU: 80 0D 02 02 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 5C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 BB 26 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C6 C2 01 00 35 04 06 00 20 BC BA 38 A1 51 [14:16:27]Write to MH i2c: E2 A7 00 0F 10 80 0D 02 02 9F 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 5C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 BB 26 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C6 C2 01 00 35 04 06 00 20 BC BA 38 A1 51 00 00 78 [14:16:27]Write i2c OK [14:16:27]MH_I2C_Read... [14:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:27]Read from MH i2c: E2 [14:16:27]MH_I2C_Read... [14:16:27]Read from MH i2c: E2 03 00 [14:16:27]MH_I2C_Read... [14:16:27]Read from MH i2c: E2 03 00 0F 10 00 90 00 93 [14:16:27]RAPDU: 90 00 [14:16:27]wFMCommunicate OK [14:16:27]wFMCommunicate request_size=4 [14:16:27]MH_SAM_APDU [14:16:27]CAPDU: 80 0D 03 02 [14:16:27]Write to MH i2c: E2 08 00 10 10 80 0D 03 02 00 00 00 00 9B [14:16:27]Write i2c OK [14:16:27]MH_I2C_Read... [14:16:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:27]Read from MH i2c: E2 [14:16:27]MH_I2C_Read... [14:16:27]Read from MH i2c: E2 0B 00 [14:16:27]MH_I2C_Read... [14:16:27]Read from MH i2c: E2 0B 00 10 10 00 4C 6F 78 D0 B1 0B 10 02 90 00 6D [14:16:27]RAPDU: 4C 6F 78 D0 B1 0B 10 02 90 00 [14:16:27]wFMCommunicate OK [14:16:27]SAM_PROTO_SignData done [14:16:27]FM_MakeSignedData done [14:16:27]CreateOFDProtocolMessage [14:16:27]wFMCommunicate request_size=4 [14:16:27]MH_SAM_APDU [14:16:27]CAPDU: 80 11 00 00 [14:16:27]Write to MH i2c: E2 08 00 11 10 80 11 00 00 00 00 00 00 9B [14:16:27]Write i2c OK [14:16:27]MH_I2C_Read... [14:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:27]Read from MH i2c: E2 [14:16:27]MH_I2C_Read... [14:16:27]Read from MH i2c: E2 17 00 [14:16:27]MH_I2C_Read... [14:16:27]Read from MH i2c: E2 17 00 11 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E9 [14:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:16:27]wFMCommunicate OK [14:16:27]CreateOFDProtocolMessage done [14:16:27]OFDSenderStorePacket 115398 [14:16:27]StoreOFDPacket docnum=115398 [14:16:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A9 01 00 00 BF 5D A1 01 B6 97 5A 03 01 00 03 00 95 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 5C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 BB 26 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C6 C2 01 00 35 04 06 00 20 BC BA 38 A1 51 4C 6F 78 D0 B1 0B 10 02 [14:16:27]CheckFolder [14:16:27]dirname=/storage/ofd_packets [14:16:27]CheckFolder done [14:16:27]ProducePacketName [14:16:27]name=ofd_packets/00115398 [14:16:27]NVStorageSaveData ofd_packets/00115398 [14:16:27]File name is /storage/ofd_packets/00115398 [14:16:27]Write 455 bytes [14:16:27]NVStorageSaveData done [14:16:27]OFDSenderStorePacket done [14:16:27]KKMCreateOFDPacket done [14:16:27]NVStorageSaveData kkm_last_timestamp [14:16:27]File name is /storage/kkm_last_timestamp [14:16:27]Write 4 bytes [14:16:27]NVStorageSaveData done [14:16:27]OFD Sender: No OFD packet to send [14:16:27]ExternCall_PrintAddStr [14:16:27]wPrintStart [14:16:27]Write to MH i2c: 01 00 00 12 10 22 [14:16:27]Write i2c OK [14:16:27]MH_I2C_Read... [14:16:27]Read from MH i2c: 01 [14:16:27]MH_I2C_Read... [14:16:27]Read from MH i2c: 01 07 00 [14:16:27]MH_I2C_Read... [14:16:27]OFD Sender: Processing packet 115398 [packets to send 481, broken 480] [14:16:27]ProducePacketName [14:16:27]name=ofd_packets/00115398 [14:16:27]OFD Sender: To server: pG, [14:16:27]CommunicateWithHost lk.salyk.kg:30040 [14:16:27]ConnectInit lk.salyk.kg [14:16:27]Read from MH i2c: 01 07 00 12 10 00 00 00 00 00 FF 0F 37 [14:16:27]RasterBufferAndPrint [14:16:27]line Счет N : (3)343841 [14:16:27]line ИНН: 02508201610067 [14:16:27]line Контрольно-Кассовый Чек [14:16:27]line ПРОДАЖА [14:16:27]line Товар: 4870002325113 [14:16:27]line Напиток PEPSI газированный ст 0,25л [14:16:27]line 1.000 * 90.00 [14:16:27]line = 90.00 [14:16:27]line НДС 12% НСП 1% [14:16:27]line > о реализуемом товаре [14:16:27]line Товар: 48744683 [14:16:27]line Сигареты Winston XStyle Caster+ [14:16:27]line 1.000 * 147.00 [14:16:27]line = 147.00 [14:16:27]line НДС 12% НСП 1% [14:16:27]line > о реализуемом товаре [14:16:27]line ИТОГО: 237.00 [14:16:27]line НСП 1% : 2.10 [14:16:27]line НДС 12% : 25.17 [14:16:27]line Наличными: 0.00 [14:16:27]line Безнал.: 237.00 [14:16:27]line Место: АЗС № 90 "Партнер Нефть" [14:16:27]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:16:27]line СНО: Общий режим [14:16:27]line Чек 116 22.09.2024 14:16 [14:16:27]line Смена: 471 ФФД: 1.0 [14:16:27]line ЗНМ: 0300000120 [14:16:27]line РНМ: 0000000000091831 [14:16:27]line Версия ККМ: 001 [14:16:27]line Платежная система: O! деньги [14:16:27]line ФМ: 0000000000871830 [14:16:27]line ФД: 115398 [14:16:27]line ФПД: 35994950213969 [14:16:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T141627&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115398&fm=35994950213969&tin=02508201610067®Number=0000000000091831&sum=23700 [14:16:27]line 0 [14:16:27]written 0, free lines is 4095 [14:16:27]Connected sock=10 [14:16:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A9 01 00 00 BF 5D A1 01 B6 97 5A 03 01 00 03 00 95 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 5C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 BB 26 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C6 C2 01 00 35 04 06 00 20 BC BA 38 A1 51 4C 6F 78 D0 B1 0B 10 02 [14:16:28]Write to MH i2c: 01 00 00 43 10 53 [14:16:28]Write i2c OK [14:16:28]MH_I2C_Read... [14:16:28]Read from MH i2c: 01 [14:16:28]MH_I2C_Read... [14:16:28]Read from MH i2c: 01 07 00 [14:16:28]MH_I2C_Read... [14:16:28]Read from MH i2c: 01 07 00 43 10 00 00 00 00 00 B8 0B 1D [14:16:28]RasterBufferAndPrint [14:16:28]line [14:16:28]line [14:16:28]line [14:16:28]line [14:16:28]line [14:16:28]written 0, free lines is 3003 [14:16:28]MH_Cut [14:16:28]Write to MH i2c: D1 01 00 4A 10 01 2C [14:16:28]Write i2c OK [14:16:28]MH_I2C_Read... [14:16:28]Read from MH i2c: D1 [14:16:28]MH_I2C_Read... [14:16:28]Read from MH i2c: D1 01 00 [14:16:28]MH_I2C_Read... [14:16:28]Read from MH i2c: D1 01 00 4A 10 00 2B [14:16:28]Write to MH i2c: 01 00 00 4B 10 5B [14:16:28]Write i2c OK [14:16:28]MH_I2C_Read... [14:16:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 30 22 47 00 6F 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C6 C2 01 00 F4 03 04 00 01 CC EF 66 B6 04 01 00 00 86 FF BD 89 08 B3 D9 C8 [14:16:28]CommunicateWithHost err = 0 [14:16:28]CheckOFDResponse [14:16:28]1017 (14) - 77093643461234 [14:16:28]1041 (16) - 0000000000871830 [14:16:28]1040 (4) - 115398 [14:16:28]1012 (4) - 22.09.2024 07:49 [14:16:28]1206 (1) - 0 [14:16:28]OFD Sender: Remove packet 115398 [14:16:28]ProducePacketName [14:16:28]name=ofd_packets/00115398 [14:16:28]NVStorageDeleteData [14:16:28]OFD Sender: No OFD packet to send [14:16:29]*** Cut start [14:16:29]*** Partial cut [14:16:29]*** CUTSNS_PIN = 1 [14:16:29]*** CUTSNS_PIN = 0 [14:16:29]*** Brake cut motor [14:16:30]Read from MH i2c: 01 [14:16:30]MH_I2C_Read... [14:16:30]*** Stop cut motor [14:16:30]*** Cut end [14:16:30]Read from MH i2c: 01 07 00 [14:16:30]MH_I2C_Read... [14:16:30]Read from MH i2c: 01 07 00 4B 10 00 00 00 00 00 FF 0F 70 [14:16:30]process_action close_receipt done [14:16:30]requested_data is exist [14:16:30]produce_requested_data [14:16:30]requested_item fm.sn is exist - process it [14:16:30]wFMCommunicate request_size=4 [14:16:30]MH_SAM_APDU [14:16:30]CAPDU: 80 11 00 00 [14:16:30]Write to MH i2c: E2 08 00 4C 10 80 11 00 00 00 00 00 00 D6 [14:16:30]Write i2c OK [14:16:30]MH_I2C_Read... [14:16:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:30]Read from MH i2c: E2 [14:16:30]MH_I2C_Read... [14:16:30]Read from MH i2c: E2 17 00 [14:16:30]MH_I2C_Read... [14:16:30]Read from MH i2c: E2 17 00 4C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 24 [14:16:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:16:30]wFMCommunicate OK [14:16:30]requested_item fd.num is exist - process it [14:16:30]SAM_PROTO_GetFieldsCounters [14:16:30]wFMCommunicate request_size=4 [14:16:30]MH_SAM_APDU [14:16:30]CAPDU: 80 13 00 00 [14:16:30]Write to MH i2c: E2 08 00 4D 10 80 13 00 00 00 00 00 00 D9 [14:16:30]Write i2c OK [14:16:30]MH_I2C_Read... [14:16:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:30]Read from MH i2c: E2 [14:16:30]MH_I2C_Read... [14:16:30]Read from MH i2c: E2 62 00 [14:16:30]MH_I2C_Read... [14:16:30]Read from MH i2c: E2 62 00 4D 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C6 C2 01 00 0E 04 04 00 D7 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 AF [14:16:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C6 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:30]wFMCommunicate OK [14:16:30]SAM_PROTO_GetFieldsCounters done [14:16:30]requested_item shift.num is exist - process it [14:16:30]requested_item shift.opened is exist - process it [14:16:30]req_shift_opened [14:16:30]FM_GetShiftState [14:16:30]SAM_PROTO_GetShiftState [14:16:30]wFMCommunicate request_size=4 [14:16:30]MH_SAM_APDU [14:16:30]CAPDU: 80 13 01 00 [14:16:30]Write to MH i2c: E2 08 00 4E 10 80 13 01 00 00 00 00 00 DB [14:16:30]Write i2c OK [14:16:30]MH_I2C_Read... [14:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:30]Read from MH i2c: E2 [14:16:30]MH_I2C_Read... [14:16:30]Read from MH i2c: E2 0E 00 [14:16:30]MH_I2C_Read... [14:16:30]Read from MH i2c: E2 0E 00 4E 10 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F4 [14:16:30]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:16:30]wFMCommunicate OK [14:16:30]SAM_PROTO_GetShiftState done [14:16:30]FM_GetShiftState done [14:16:30]req_shift_opened done [14:16:30]requested_item shift.open_date is exist - process it [14:16:30]req_shift_open_date [14:16:30]req_shift_open_date done [14:16:30]produce_requested_data done [14:16:30]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115398,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [14:16:30]process_action_free close_receipt [14:16:30]json_value_free [14:16:30]json_value_free done [14:16:30]process_json_proto returns [14:16:30]Send response to host [14:16:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115398,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [14:16:30]free response buf [14:16:30]execute_script done [14:16:30]execute_script returns [14:16:30]free content buf [14:16:30]Sock 8.Close socket [14:16:30]Sock 8.Thread stoped [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25: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:47]accept exits with 9 [14:29:47]New connection [14:29:47]New thread 3066826084 created [14:29:47]Thread 3066682724 joined [14:29:47]Waiting for new connection... [14:29:47] Sock 9.Parse request [14:29:47]Sock 9.Check first char [14:29:47]Sock 9.First char is OK [14:29:47]request: POST /json_proto HTTP/1.0 [14:29:47]Method: POST [14:29:47]URL: /json_proto [14:29:47]Method is POST - this is cgi request [14:29:47]url: /json_proto [14:29:47]query_string will be loaded in cgi processing [14:29:47]execute_cgi json_proto POST (null) [14:29:47]execute_cgi path=json_proto method=POST [14:29:47]POST find Content-Length [14:29:47]Host: 172.17.41.136:8080 [14:29:47]Content-Length: 669 [14:29:47]Content-Type: application/json [14:29:47] [14:29:47]POST finish read [14:29:47]Found Content-Length = 669 [14:29:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343842", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:47]execute_script... [14:29:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343842", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:47]POST & json_proto [14:29:47]process_json_proto [14:29:47]json parsed OK: [14:29:47]protocol is kg_v1.0 [14:29:47]action value=close_receipt [14:29:47]process_action close_receipt [14:29:47]cmd_close_receipt [14:29:47]MH_GetDate [14:29:47]Write to MH i2c: F0 00 00 4F 10 4E [14:29:47]Write i2c OK [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: F0 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: F0 09 00 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: F0 09 00 4F 10 00 DC 29 F0 66 1B D0 5A 64 5B [14:29:47]GetLastDocTimeStamp 1727014587 [14:29:47]current date 1727015388 [14:29:47]FM_GetShiftState [14:29:47]SAM_PROTO_GetShiftState [14:29:47]wFMCommunicate request_size=4 [14:29:47]MH_SAM_APDU [14:29:47]CAPDU: 80 13 01 00 [14:29:47]Write to MH i2c: E2 08 00 50 10 80 13 01 00 00 00 00 00 DD [14:29:47]Write i2c OK [14:29:47]MH_I2C_Read... [14:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:47]Read from MH i2c: E2 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: E2 0E 00 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: E2 0E 00 50 10 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F6 [14:29:47]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:29:47]wFMCommunicate OK [14:29:47]SAM_PROTO_GetShiftState done [14:29:47]FM_GetShiftState done [14:29:47]opened in 1726965840 [14:29:47]opened+sec_in_day 1727052240 [14:29:47]quantity*price = 6500 [14:29:47]sum+1 = 6501 [14:29:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 117 22.09.2024 14:29 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115399 ФПД: 56552855859410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T142948&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115399&fm=56552855859410&tin=02508201610067®Number=0000000000091831&sum=6500 0 [14:29:48]StoreToDocumentArchive [14:29:48]shift 471 fd 115399 [14:29:48]save to /storage/0471/doc_00115399 [14:29:48]save last doc name /storage/0471/doc_00115399 to /storage/kkm_last_doc_name [14:29:48]save OK [14:29:48]Clear old archive folders... [14:29:48]ProcessDocumentItem done err = 0, tmpTLVsize=284 [14:29:48]tlvbuf is 01C595A0 [14:29:48]SAM_PROTO_ClearQueue [14:29:48]wFMCommunicate request_size=4 [14:29:48]MH_SAM_APDU [14:29:48]CAPDU: 80 09 00 00 [14:29:48]Write to MH i2c: E2 08 00 5D 10 80 09 00 00 00 00 00 00 DF [14:29:48]Write i2c OK [14:29:48]MH_I2C_Read... [14:29:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:48]Read from MH i2c: E2 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 03 00 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 03 00 5D 10 00 90 00 E1 [14:29:48]RAPDU: 90 00 [14:29:48]wFMCommunicate OK [14:29:48]SAM_PROTO_ClearQueue done [14:29:48]KKMCreateOFDPacket [14:29:48]OFDProtocolAddRootSTLVToBuf [14:29:48]FM_MakeSignedData [14:29:48]FM_MakeSignedData [14:29:48]SAM_PROTO_SignData [14:29:48]wFMCommunicate request_size=4 [14:29:48]MH_SAM_APDU [14:29:48]CAPDU: 80 0D 01 02 [14:29:48]Write to MH i2c: E2 08 00 5E 10 80 0D 01 02 00 00 00 00 E7 [14:29:48]Write i2c OK [14:29:48]MH_I2C_Read... [14:29:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:48]Read from MH i2c: E2 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 03 00 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 03 00 5E 10 00 90 00 E2 [14:29:48]RAPDU: 90 00 [14:29:48]wFMCommunicate OK [14:29:48]wFMCommunicate request_size=255 [14:29:48]MH_SAM_APDU [14:29:48]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 DC 29 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [14:29:48]Write to MH i2c: E2 02 01 5F 10 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 DC 29 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 18 [14:29:48]Write i2c OK [14:29:48]MH_I2C_Read... [14:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:48]Read from MH i2c: E2 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 03 00 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 03 00 5F 10 00 90 00 E3 [14:29:48]RAPDU: 90 00 [14:29:48]wFMCommunicate OK [14:29:48]wFMCommunicate request_size=43 [14:29:48]MH_SAM_APDU [14:29:48]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C7 C2 01 00 35 04 06 00 33 6F 3C E2 70 D2 [14:29:48]Write to MH i2c: E2 2E 00 60 10 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C7 C2 01 00 35 04 06 00 33 6F 3C E2 70 D2 00 00 59 [14:29:48]Write i2c OK [14:29:48]MH_I2C_Read... [14:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:48]Read from MH i2c: E2 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 03 00 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 03 00 60 10 00 90 00 E4 [14:29:48]RAPDU: 90 00 [14:29:48]wFMCommunicate OK [14:29:48]wFMCommunicate request_size=4 [14:29:48]MH_SAM_APDU [14:29:48]CAPDU: 80 0D 03 02 [14:29:48]Write to MH i2c: E2 08 00 61 10 80 0D 03 02 00 00 00 00 EC [14:29:48]Write i2c OK [14:29:48]MH_I2C_Read... [14:29:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:48]Read from MH i2c: E2 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 0B 00 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 0B 00 61 10 00 06 93 1B 0D 8A 60 6B 0C 90 00 0F [14:29:48]RAPDU: 06 93 1B 0D 8A 60 6B 0C 90 00 [14:29:48]wFMCommunicate OK [14:29:48]SAM_PROTO_SignData done [14:29:48]FM_MakeSignedData done [14:29:48]CreateOFDProtocolMessage [14:29:48]wFMCommunicate request_size=4 [14:29:48]MH_SAM_APDU [14:29:48]CAPDU: 80 11 00 00 [14:29:48]Write to MH i2c: E2 08 00 62 10 80 11 00 00 00 00 00 00 EC [14:29:48]Write i2c OK [14:29:48]MH_I2C_Read... [14:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:48]Read from MH i2c: E2 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 17 00 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 17 00 62 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3A [14:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:29:48]wFMCommunicate OK [14:29:48]CreateOFDProtocolMessage done [14:29:48]OFDSenderStorePacket 115399 [14:29:48]StoreOFDPacket docnum=115399 [14:29:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 48 D1 28 01 61 D6 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 DC 29 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C7 C2 01 00 35 04 06 00 33 6F 3C E2 70 D2 06 93 1B 0D 8A 60 6B 0C [14:29:48]CheckFolder [14:29:48]dirname=/storage/ofd_packets [14:29:48]CheckFolder done [14:29:48]ProducePacketName [14:29:48]name=ofd_packets/00115399 [14:29:48]NVStorageSaveData ofd_packets/00115399 [14:29:48]File name is /storage/ofd_packets/00115399 [14:29:48]Write 334 bytes [14:29:48]NVStorageSaveData done [14:29:48]OFDSenderStorePacket done [14:29:48]KKMCreateOFDPacket done [14:29:48]NVStorageSaveData kkm_last_timestamp [14:29:48]File name is /storage/kkm_last_timestamp [14:29:48]Write 4 bytes [14:29:48]NVStorageSaveData done [14:29:48]ExternCall_PrintAddStr [14:29:48]wPrintStart [14:29:48]Write to MH i2c: 01 00 00 63 10 73 [14:29:48]Write i2c OK [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: 01 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: 01 07 00 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: 01 07 00 63 10 00 00 00 00 00 FF 0F 88 [14:29:48]RasterBufferAndPrint [14:29:48]line Счет N : (3)343842 [14:29:48]line ИНН: 02508201610067 [14:29:48]line Контрольно-Кассовый Чек [14:29:48]line ПРОДАЖА [14:29:48]line Товар: 4700040114137 [14:29:48]line Султан чай 1л. зел лимон [14:29:48]line 1.000 * 65.00 [14:29:48]line = 65.00 [14:29:48]line НДС 12% НСП 1% [14:29:48]line > о реализуемом товаре [14:29:48]line ИТОГО: 65.00 [14:29:48]line НСП 1% : 0.57 [14:29:48]line НДС 12% : 6.90 [14:29:48]line Наличными: 65.00 [14:29:48]line Безнал.: 0.00 [14:29:48]line Место: АЗС № 90 "Партнер Нефть" [14:29:48]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:29:48]line СНО: Общий режим [14:29:48]line Чек 117 22.09.2024 14:29 [14:29:48]line Смена: 471 ФФД: 1.0 [14:29:48]line ЗНМ: 0300000120 [14:29:48]line РНМ: 0000000000091831 [14:29:48]line Версия ККМ: 001 [14:29:48]line ФМ: 0000000000871830 [14:29:48]line ФД: 115399 [14:29:48]line ФПД: 56552855859410 [14:29:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T142948&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115399&fm=56552855859410&tin=02508201610067®Number=0000000000091831&sum=6500 [14:29:49]OFD Sender: Processing packet 115399 [packets to send 481, broken 480] [14:29:49]ProducePacketName [14:29:49]name=ofd_packets/00115399 [14:29:49]OFD Sender: To server: pG, [14:29:49]CommunicateWithHost lk.salyk.kg:30040 [14:29:49]ConnectInit lk.salyk.kg [14:29:49]line 0 [14:29:49]written 0, free lines is 4095 [14:29:49]Connected sock=10 [14:29:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 48 D1 28 01 61 D6 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 DC 29 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C7 C2 01 00 35 04 06 00 33 6F 3C E2 70 D2 06 93 1B 0D 8A 60 6B 0C [14:29:49]Write to MH i2c: 01 00 00 8A 10 9A [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: 01 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: 01 07 00 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: 01 07 00 8A 10 00 00 00 00 00 85 0C 32 [14:29:49]RasterBufferAndPrint [14:29:49]line [14:29:49]line [14:29:49]line [14:29:49]line [14:29:49]line [14:29:49]written 0, free lines is 3210 [14:29:49]MH_Cut [14:29:49]Write to MH i2c: D1 01 00 91 10 01 73 [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: D1 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: D1 01 00 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: D1 01 00 91 10 00 72 [14:29:49]Write to MH i2c: 01 00 00 92 10 A2 [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 8D CF 47 00 5A 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C7 C2 01 00 F4 03 04 00 22 CF EF 66 B6 04 01 00 00 EB DC D5 5A D4 0F 8F D5 [14:29:49]CommunicateWithHost err = 0 [14:29:49]CheckOFDResponse [14:29:49]1017 (14) - 77093643461234 [14:29:49]1041 (16) - 0000000000871830 [14:29:49]1040 (4) - 115399 [14:29:49]1012 (4) - 22.09.2024 08:02 [14:29:49]1206 (1) - 0 [14:29:49]OFD Sender: Remove packet 115399 [14:29:49]ProducePacketName [14:29:49]name=ofd_packets/00115399 [14:29:49]NVStorageDeleteData [14:29:50]OFD Sender: No OFD packet to send [14:29:50]*** Cut start [14:29:50]*** Partial cut [14:29:50]*** CUTSNS_PIN = 1 [14:29:51]*** CUTSNS_PIN = 0 [14:29:51]*** Brake cut motor [14:29:51]Read from MH i2c: 01 [14:29:51]MH_I2C_Read... [14:29:51]*** Stop cut motor [14:29:51]*** Cut end [14:29:51]Read from MH i2c: 01 07 00 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: 01 07 00 92 10 00 00 00 00 00 FF 0F B7 [14:29:51]process_action close_receipt done [14:29:51]requested_data is exist [14:29:51]produce_requested_data [14:29:51]requested_item fm.sn is exist - process it [14:29:51]wFMCommunicate request_size=4 [14:29:51]MH_SAM_APDU [14:29:51]CAPDU: 80 11 00 00 [14:29:51]Write to MH i2c: E2 08 00 93 10 80 11 00 00 00 00 00 00 1D [14:29:51]Write i2c OK [14:29:51]MH_I2C_Read... [14:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:51]Read from MH i2c: E2 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: E2 17 00 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: E2 17 00 93 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6B [14:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:29:51]wFMCommunicate OK [14:29:51]requested_item fd.num is exist - process it [14:29:51]SAM_PROTO_GetFieldsCounters [14:29:51]wFMCommunicate request_size=4 [14:29:51]MH_SAM_APDU [14:29:51]CAPDU: 80 13 00 00 [14:29:51]Write to MH i2c: E2 08 00 94 10 80 13 00 00 00 00 00 00 20 [14:29:51]Write i2c OK [14:29:51]MH_I2C_Read... [14:29:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:51]Read from MH i2c: E2 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: E2 62 00 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: E2 62 00 94 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C7 C2 01 00 0E 04 04 00 D7 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 FA [14:29:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C7 C2 01 00 0E 04 04 00 D7 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 [14:29:51]wFMCommunicate OK [14:29:51]SAM_PROTO_GetFieldsCounters done [14:29:51]requested_item shift.num is exist - process it [14:29:51]requested_item shift.opened is exist - process it [14:29:51]req_shift_opened [14:29:51]FM_GetShiftState [14:29:51]SAM_PROTO_GetShiftState [14:29:51]wFMCommunicate request_size=4 [14:29:51]MH_SAM_APDU [14:29:51]CAPDU: 80 13 01 00 [14:29:51]Write to MH i2c: E2 08 00 95 10 80 13 01 00 00 00 00 00 22 [14:29:51]Write i2c OK [14:29:51]MH_I2C_Read... [14:29:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:51]Read from MH i2c: E2 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: E2 0E 00 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: E2 0E 00 95 10 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 3B [14:29:51]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:29:51]wFMCommunicate OK [14:29:51]SAM_PROTO_GetShiftState done [14:29:51]FM_GetShiftState done [14:29:51]req_shift_opened done [14:29:51]requested_item shift.open_date is exist - process it [14:29:51]req_shift_open_date [14:29:51]req_shift_open_date done [14:29:51]produce_requested_data done [14:29:51]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115399,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [14:29:51]process_action_free close_receipt [14:29:51]json_value_free [14:29:51]json_value_free done [14:29:51]process_json_proto returns [14:29:51]Send response to host [14:29:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115399,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [14:29:51]free response buf [14:29:51]execute_script done [14:29:51]execute_script returns [14:29:51]free content buf [14:29:51]Sock 9.Close socket [14:29:51]Sock 9.Thread stoped [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:32]accept exits with 8 [14:31:32]New connection [14:31:32]New thread 3066682724 created [14:31:32]Thread 3066826084 joined [14:31:32]Waiting for new connection... [14:31:32] Sock 8.Parse request [14:31:32]Sock 8.Check first char [14:31:32]Sock 8.First char is OK [14:31:32]request: POST /json_proto HTTP/1.0 [14:31:32]Method: POST [14:31:32]URL: /json_proto [14:31:32]Method is POST - this is cgi request [14:31:32]url: /json_proto [14:31:32]query_string will be loaded in cgi processing [14:31:32]execute_cgi json_proto POST (null) [14:31:32]execute_cgi path=json_proto method=POST [14:31:32]POST find Content-Length [14:31:32]Host: 172.17.41.136:8080 [14:31:32]Content-Length: 891 [14:31:32]Content-Type: application/json [14:31:32] [14:31:32]POST finish read [14:31:32]Found Content-Length = 891 [14:31:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343843", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:32]execute_script... [14:31:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343843", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:32]POST & json_proto [14:31:32]process_json_proto [14:31:32]json parsed OK: [14:31:32]protocol is kg_v1.0 [14:31:32]action value=close_receipt [14:31:32]process_action close_receipt [14:31:32]cmd_close_receipt [14:31:32]MH_GetDate [14:31:32]Write to MH i2c: F0 00 00 96 10 95 [14:31:32]Write i2c OK [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: F0 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: F0 09 00 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: F0 09 00 96 10 00 45 2A F0 66 1B D0 5A 64 0C [14:31:32]GetLastDocTimeStamp 1727015388 [14:31:32]current date 1727015493 [14:31:32]FM_GetShiftState [14:31:32]SAM_PROTO_GetShiftState [14:31:32]wFMCommunicate request_size=4 [14:31:32]MH_SAM_APDU [14:31:32]CAPDU: 80 13 01 00 [14:31:32]Write to MH i2c: E2 08 00 97 10 80 13 01 00 00 00 00 00 24 [14:31:32]Write i2c OK [14:31:32]MH_I2C_Read... [14:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:32]Read from MH i2c: E2 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: E2 0E 00 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: E2 0E 00 97 10 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 3D [14:31:32]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:31:32]wFMCommunicate OK [14:31:32]SAM_PROTO_GetShiftState done [14:31:32]FM_GetShiftState done [14:31:32]opened in 1726965840 [14:31:32]opened+sec_in_day 1727052240 [14:31:32]quantity*price = 13000 [14:31:32]sum+1 = 13001 [14:31:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.60 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 118 22.09.2024 14:31 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115400 ФПД: 183051930268964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T143133&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115400&fm=183051930268964&tin=02508201610067®Number=0000000000091831&sum=26000 0 [14:31:33]StoreToDocumentArchive [14:31:33]shift 471 fd 115400 [14:31:33]save to /storage/0471/doc_00115400 [14:31:33]save last doc name /storage/0471/doc_00115400 to /storage/kkm_last_doc_name [14:31:33]save OK [14:31:33]Clear old archive folders... [14:31:33]ProcessDocumentItem done err = 0, tmpTLVsize=378 [14:31:33]tlvbuf is 01C2D910 [14:31:33]SAM_PROTO_ClearQueue [14:31:33]wFMCommunicate request_size=4 [14:31:33]MH_SAM_APDU [14:31:33]CAPDU: 80 09 00 00 [14:31:33]Write to MH i2c: E2 08 00 A4 10 80 09 00 00 00 00 00 00 26 [14:31:33]Write i2c OK [14:31:33]MH_I2C_Read... [14:31:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:33]Read from MH i2c: E2 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 03 00 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 03 00 A4 10 00 90 00 28 [14:31:33]RAPDU: 90 00 [14:31:33]wFMCommunicate OK [14:31:33]SAM_PROTO_ClearQueue done [14:31:33]KKMCreateOFDPacket [14:31:33]OFDProtocolAddRootSTLVToBuf [14:31:33]FM_MakeSignedData [14:31:33]FM_MakeSignedData [14:31:33]SAM_PROTO_SignData [14:31:33]wFMCommunicate request_size=4 [14:31:33]MH_SAM_APDU [14:31:33]CAPDU: 80 0D 01 02 [14:31:33]Write to MH i2c: E2 08 00 A5 10 80 0D 01 02 00 00 00 00 2E [14:31:33]Write i2c OK [14:31:33]MH_I2C_Read... [14:31:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:33]Read from MH i2c: E2 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 03 00 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 03 00 A5 10 00 90 00 29 [14:31:33]RAPDU: 90 00 [14:31:33]wFMCommunicate OK [14:31:33]wFMCommunicate request_size=255 [14:31:33]MH_SAM_APDU [14:31:33]CAPDU: 80 0D 02 02 FA 03 00 7A 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 [14:31:33]Write to MH i2c: E2 02 01 A6 10 80 0D 02 02 FA 00 03 00 7A 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 00 00 98 [14:31:33]Write i2c OK [14:31:33]MH_I2C_Read... [14:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:33]Read from MH i2c: E2 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 03 00 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 03 00 A6 10 00 90 00 2A [14:31:33]RAPDU: 90 00 [14:31:33]wFMCommunicate OK [14:31:33]wFMCommunicate request_size=137 [14:31:33]MH_SAM_APDU [14:31:33]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 45 2A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C8 C2 01 00 35 04 06 00 A6 7C 19 47 75 24 [14:31:33]Write to MH i2c: E2 8C 00 A7 10 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 45 2A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C8 C2 01 00 35 04 06 00 A6 7C 19 47 75 24 00 00 DE [14:31:33]Write i2c OK [14:31:33]MH_I2C_Read... [14:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:33]Read from MH i2c: E2 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 03 00 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 03 00 A7 10 00 90 00 2B [14:31:33]RAPDU: 90 00 [14:31:33]wFMCommunicate OK [14:31:33]wFMCommunicate request_size=4 [14:31:33]MH_SAM_APDU [14:31:33]CAPDU: 80 0D 03 02 [14:31:33]Write to MH i2c: E2 08 00 A8 10 80 0D 03 02 00 00 00 00 33 [14:31:33]Write i2c OK [14:31:33]MH_I2C_Read... [14:31:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:33]Read from MH i2c: E2 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 0B 00 [14:31:33]MH_I2C_Read... [14:31:34]Read from MH i2c: E2 0B 00 A8 10 00 C9 E9 F2 0D B6 C2 A6 A8 90 00 AB [14:31:34]RAPDU: C9 E9 F2 0D B6 C2 A6 A8 90 00 [14:31:34]wFMCommunicate OK [14:31:34]SAM_PROTO_SignData done [14:31:34]FM_MakeSignedData done [14:31:34]CreateOFDProtocolMessage [14:31:34]wFMCommunicate request_size=4 [14:31:34]MH_SAM_APDU [14:31:34]CAPDU: 80 11 00 00 [14:31:34]Write to MH i2c: E2 08 00 A9 10 80 11 00 00 00 00 00 00 33 [14:31:34]Write i2c OK [14:31:34]MH_I2C_Read... [14:31:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:34]Read from MH i2c: E2 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: E2 17 00 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: E2 17 00 A9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 81 [14:31:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:31:34]wFMCommunicate OK [14:31:34]CreateOFDProtocolMessage done [14:31:34]OFDSenderStorePacket 115400 [14:31:34]StoreOFDPacket docnum=115400 [14:31:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8E 01 00 00 F4 F2 86 01 F9 8A 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 45 2A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C8 C2 01 00 35 04 06 00 A6 7C 19 47 75 24 C9 E9 F2 0D B6 C2 A6 A8 [14:31:34]CheckFolder [14:31:34]dirname=/storage/ofd_packets [14:31:34]CheckFolder done [14:31:34]ProducePacketName [14:31:34]name=ofd_packets/00115400 [14:31:34]NVStorageSaveData ofd_packets/00115400 [14:31:34]File name is /storage/ofd_packets/00115400 [14:31:34]Write 428 bytes [14:31:34]NVStorageSaveData done [14:31:34]OFDSenderStorePacket done [14:31:34]KKMCreateOFDPacket done [14:31:34]NVStorageSaveData kkm_last_timestamp [14:31:34]File name is /storage/kkm_last_timestamp [14:31:34]Write 4 bytes [14:31:34]NVStorageSaveData done [14:31:34]ExternCall_PrintAddStr [14:31:34]wPrintStart [14:31:34]Write to MH i2c: 01 00 00 AA 10 BA [14:31:34]Write i2c OK [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: 01 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: 01 07 00 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: 01 07 00 AA 10 00 00 00 00 00 FF 0F CF [14:31:34]RasterBufferAndPrint [14:31:34]line Счет N : (3)343843 [14:31:34]line ИНН: 02508201610067 [14:31:34]line Контрольно-Кассовый Чек [14:31:34]line ПРОДАЖА [14:31:34]line Товар: 47011656 [14:31:34]line Водка Пшеничная 0,1л [14:31:34]line 2.000 * 65.00 [14:31:34]line = 130.00 [14:31:34]line НДС 12% НСП 1% [14:31:34]line > о реализуемом товаре [14:31:34]line Товар: 2000036230011 [14:31:34]line Кофе Латте XL(GABB TRADE) [14:31:34]line 1.000 * 130.00 [14:31:34]line = 130.00 [14:31:34]line НДС 12% НСП 1% [14:31:34]line > о реализуемом товаре [14:31:34]line ИТОГО: 260.00 [14:31:34]line НСП 1% : 2.30 [14:31:34]line НДС 12% : 27.60 [14:31:34]line Наличными: 260.00 [14:31:34]line Безнал.: 0.00 [14:31:34]line Место: АЗС № 90 "Партнер Нефть" [14:31:34]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:31:34]line СНО: Общий режим [14:31:34]line Чек 118 22.09.2024 14:31 [14:31:34]line Смена: 471 ФФД: 1.0 [14:31:34]line ЗНМ: 0300000120 [14:31:34]line РНМ: 0000000000091831 [14:31:34]line Версия ККМ: 001 [14:31:34]line ФМ: 0000000000871830 [14:31:34]line ФД: 115400 [14:31:34]line ФПД: 183051930268964 [14:31:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T143133&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115400&fm=183051930268964&tin=02508201610067®Number=0000000000091831&sum=26000 [14:31:34]line 0 [14:31:34]OFD Sender: Processing packet 115400 [packets to send 481, broken 480] [14:31:34]ProducePacketName [14:31:34]name=ofd_packets/00115400 [14:31:34]OFD Sender: To server: pG, [14:31:34]CommunicateWithHost lk.salyk.kg:30040 [14:31:34]ConnectInit lk.salyk.kg [14:31:34]written 0, free lines is 4095 [14:31:34]Connected sock=9 [14:31:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8E 01 00 00 F4 F2 86 01 F9 8A 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 45 2A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C8 C2 01 00 35 04 06 00 A6 7C 19 47 75 24 C9 E9 F2 0D B6 C2 A6 A8 [14:31:34]Write to MH i2c: 01 00 00 D7 10 E7 [14:31:34]Write i2c OK [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: 01 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: 01 07 00 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: 01 07 00 D7 10 00 00 00 00 00 23 0C 1D [14:31:34]RasterBufferAndPrint [14:31:34]line [14:31:34]line [14:31:34]line [14:31:34]line [14:31:34]line [14:31:34]written 0, free lines is 3109 [14:31:34]MH_Cut [14:31:34]Write to MH i2c: D1 01 00 DE 10 01 C0 [14:31:34]Write i2c OK [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: D1 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: D1 01 00 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: D1 01 00 DE 10 00 BF [14:31:34]Write to MH i2c: 01 00 00 DF 10 EF [14:31:34]Write i2c OK [14:31:34]MH_I2C_Read... [14:31:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 EC 25 47 00 AC 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 31 38 33 30 10 04 04 00 C8 C2 01 00 F4 03 04 00 8B CF EF 66 B6 04 01 00 00 D6 07 CB 32 E0 7F 30 BE [14:31:34]CommunicateWithHost err = 0 [14:31:34]CheckOFDResponse [14:31:34]1017 (14) - 77093643461234 [14:31:34]1041 (16) - 0000000000871830 [14:31:34]1040 (4) - 115400 [14:31:34]1012 (4) - 22.09.2024 08:04 [14:31:34]1206 (1) - 0 [14:31:34]OFD Sender: Remove packet 115400 [14:31:34]ProducePacketName [14:31:34]name=ofd_packets/00115400 [14:31:34]NVStorageDeleteData [14:31:35]OFD Sender: No OFD packet to send [14:31:36]*** Cut start [14:31:36]*** Partial cut [14:31:36]*** CUTSNS_PIN = 1 [14:31:36]*** CUTSNS_PIN = 0 [14:31:36]*** Brake cut motor [14:31:36]Read from MH i2c: 01 [14:31:36]MH_I2C_Read... [14:31:36]*** Stop cut motor [14:31:36]*** Cut end [14:31:36]Read from MH i2c: 01 07 00 [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: 01 07 00 DF 10 00 00 00 00 00 FF 0F 04 [14:31:36]process_action close_receipt done [14:31:36]requested_data is exist [14:31:36]produce_requested_data [14:31:36]requested_item fm.sn is exist - process it [14:31:36]wFMCommunicate request_size=4 [14:31:36]MH_SAM_APDU [14:31:36]CAPDU: 80 11 00 00 [14:31:36]Write to MH i2c: E2 08 00 E0 10 80 11 00 00 00 00 00 00 6A [14:31:36]Write i2c OK [14:31:36]MH_I2C_Read... [14:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:36]Read from MH i2c: E2 [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: E2 17 00 [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: E2 17 00 E0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B8 [14:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:31:36]wFMCommunicate OK [14:31:36]requested_item fd.num is exist - process it [14:31:36]SAM_PROTO_GetFieldsCounters [14:31:36]wFMCommunicate request_size=4 [14:31:36]MH_SAM_APDU [14:31:36]CAPDU: 80 13 00 00 [14:31:36]Write to MH i2c: E2 08 00 E1 10 80 13 00 00 00 00 00 00 6D [14:31:36]Write i2c OK [14:31:36]MH_I2C_Read... [14:31:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:37]Read from MH i2c: E2 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 62 00 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 62 00 E1 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C8 C2 01 00 0E 04 04 00 D7 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 4B [14:31:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C8 C2 01 00 0E 04 04 00 D7 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 [14:31:37]wFMCommunicate OK [14:31:37]SAM_PROTO_GetFieldsCounters done [14:31:37]requested_item shift.num is exist - process it [14:31:37]requested_item shift.opened is exist - process it [14:31:37]req_shift_opened [14:31:37]FM_GetShiftState [14:31:37]SAM_PROTO_GetShiftState [14:31:37]wFMCommunicate request_size=4 [14:31:37]MH_SAM_APDU [14:31:37]CAPDU: 80 13 01 00 [14:31:37]Write to MH i2c: E2 08 00 E2 10 80 13 01 00 00 00 00 00 6F [14:31:37]Write i2c OK [14:31:37]MH_I2C_Read... [14:31:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:37]Read from MH i2c: E2 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 0E 00 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 0E 00 E2 10 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 88 [14:31:37]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:31:37]wFMCommunicate OK [14:31:37]SAM_PROTO_GetShiftState done [14:31:37]FM_GetShiftState done [14:31:37]req_shift_opened done [14:31:37]requested_item shift.open_date is exist - process it [14:31:37]req_shift_open_date [14:31:37]req_shift_open_date done [14:31:37]produce_requested_data done [14:31:37]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115400,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [14:31:37]process_action_free close_receipt [14:31:37]json_value_free [14:31:37]json_value_free done [14:31:37]process_json_proto returns [14:31:37]Send response to host [14:31:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115400,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [14:31:37]free response buf [14:31:37]execute_script done [14:31:37]execute_script returns [14:31:37]free content buf [14:31:37]Sock 8.Close socket [14:31:37]Sock 8.Thread stoped [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:02]accept exits with 10 [14:32:02]New connection [14:32:02]New thread 3066826084 created [14:32:02]Thread 3066682724 joined [14:32:02]Waiting for new connection... [14:32:02] Sock 10.Parse request [14:32:02]Sock 10.Check first char [14:32:02]Sock 10.First char is OK [14:32:02]request: POST /json_proto HTTP/1.0 [14:32:02]Method: POST [14:32:02]URL: /json_proto [14:32:02]Method is POST - this is cgi request [14:32:02]url: /json_proto [14:32:02]query_string will be loaded in cgi processing [14:32:02]execute_cgi json_proto POST (null) [14:32:02]execute_cgi path=json_proto method=POST [14:32:02]POST find Content-Length [14:32:02]Host: 172.17.41.136:8080 [14:32:02]Content-Length: 675 [14:32:02]Content-Type: application/json [14:32:02] [14:32:02]POST finish read [14:32:02]Found Content-Length = 675 [14:32:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343844", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:02]execute_script... [14:32:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343844", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:02]POST & json_proto [14:32:02]process_json_proto [14:32:02]json parsed OK: [14:32:02]protocol is kg_v1.0 [14:32:02]action value=close_receipt [14:32:02]process_action close_receipt [14:32:02]cmd_close_receipt [14:32:02]MH_GetDate [14:32:02]Write to MH i2c: F0 00 00 E3 10 E2 [14:32:02]Write i2c OK [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: F0 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: F0 09 00 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: F0 09 00 E3 10 00 63 2A F0 66 1B D0 5A 64 77 [14:32:02]GetLastDocTimeStamp 1727015493 [14:32:02]current date 1727015523 [14:32:02]FM_GetShiftState [14:32:02]SAM_PROTO_GetShiftState [14:32:02]wFMCommunicate request_size=4 [14:32:02]MH_SAM_APDU [14:32:02]CAPDU: 80 13 01 00 [14:32:02]Write to MH i2c: E2 08 00 E4 10 80 13 01 00 00 00 00 00 71 [14:32:02]Write i2c OK [14:32:02]MH_I2C_Read... [14:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:02]Read from MH i2c: E2 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 0E 00 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 0E 00 E4 10 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 8A [14:32:02]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:32:02]wFMCommunicate OK [14:32:02]SAM_PROTO_GetShiftState done [14:32:02]FM_GetShiftState done [14:32:02]opened in 1726965840 [14:32:02]opened+sec_in_day 1727052240 [14:32:02]quantity*price = 6500 [14:32:02]sum+1 = 6501 [14:32:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 119 22.09.2024 14:32 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115401 ФПД: 263319671931714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T143204&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115401&fm=263319671931714&tin=02508201610067®Number=0000000000091831&sum=6500 0 [14:32:03]StoreToDocumentArchive [14:32:03]shift 471 fd 115401 [14:32:03]save to /storage/0471/doc_00115401 [14:32:03]save last doc name /storage/0471/doc_00115401 to /storage/kkm_last_doc_name [14:32:03]save OK [14:32:03]Clear old archive folders... [14:32:03]ProcessDocumentItem done err = 0, tmpTLVsize=286 [14:32:03]tlvbuf is 01C59640 [14:32:03]SAM_PROTO_ClearQueue [14:32:03]wFMCommunicate request_size=4 [14:32:03]MH_SAM_APDU [14:32:03]CAPDU: 80 09 00 00 [14:32:03]Write to MH i2c: E2 08 00 F1 10 80 09 00 00 00 00 00 00 73 [14:32:03]Write i2c OK [14:32:03]MH_I2C_Read... [14:32:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:03]Read from MH i2c: E2 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 03 00 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 03 00 F1 10 00 90 00 75 [14:32:03]RAPDU: 90 00 [14:32:03]wFMCommunicate OK [14:32:03]SAM_PROTO_ClearQueue done [14:32:03]KKMCreateOFDPacket [14:32:03]OFDProtocolAddRootSTLVToBuf [14:32:03]FM_MakeSignedData [14:32:03]FM_MakeSignedData [14:32:03]SAM_PROTO_SignData [14:32:03]wFMCommunicate request_size=4 [14:32:03]MH_SAM_APDU [14:32:03]CAPDU: 80 0D 01 02 [14:32:03]Write to MH i2c: E2 08 00 F2 10 80 0D 01 02 00 00 00 00 7B [14:32:03]Write i2c OK [14:32:03]MH_I2C_Read... [14:32:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:03]Read from MH i2c: E2 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 03 00 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 03 00 F2 10 00 90 00 76 [14:32:03]RAPDU: 90 00 [14:32:03]wFMCommunicate OK [14:32:03]wFMCommunicate request_size=255 [14:32:03]MH_SAM_APDU [14:32:03]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 64 2A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 [14:32:03]Write to MH i2c: E2 02 01 F3 10 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 64 2A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 00 00 77 [14:32:03]Write i2c OK [14:32:03]MH_I2C_Read... [14:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:03]Read from MH i2c: E2 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 03 00 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 03 00 F3 10 00 90 00 77 [14:32:03]RAPDU: 90 00 [14:32:03]wFMCommunicate OK [14:32:03]wFMCommunicate request_size=45 [14:32:03]MH_SAM_APDU [14:32:03]CAPDU: 80 0D 02 02 28 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C9 C2 01 00 35 04 06 00 EF 7C E3 82 03 42 [14:32:03]Write to MH i2c: E2 30 00 F4 10 80 0D 02 02 28 00 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C9 C2 01 00 35 04 06 00 EF 7C E3 82 03 42 00 00 6A [14:32:03]Write i2c OK [14:32:03]MH_I2C_Read... [14:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:03]Read from MH i2c: E2 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 03 00 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 03 00 F4 10 00 90 00 78 [14:32:03]RAPDU: 90 00 [14:32:03]wFMCommunicate OK [14:32:03]wFMCommunicate request_size=4 [14:32:03]MH_SAM_APDU [14:32:03]CAPDU: 80 0D 03 02 [14:32:03]Write to MH i2c: E2 08 00 F5 10 80 0D 03 02 00 00 00 00 80 [14:32:03]Write i2c OK [14:32:03]MH_I2C_Read... [14:32:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:03]Read from MH i2c: E2 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 0B 00 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 0B 00 F5 10 00 90 9C 06 43 6A D5 90 77 90 00 3C [14:32:03]RAPDU: 90 9C 06 43 6A D5 90 77 90 00 [14:32:03]wFMCommunicate OK [14:32:03]SAM_PROTO_SignData done [14:32:03]FM_MakeSignedData done [14:32:03]CreateOFDProtocolMessage [14:32:03]wFMCommunicate request_size=4 [14:32:03]MH_SAM_APDU [14:32:03]CAPDU: 80 11 00 00 [14:32:03]Write to MH i2c: E2 08 00 F6 10 80 11 00 00 00 00 00 00 80 [14:32:03]Write i2c OK [14:32:03]MH_I2C_Read... [14:32:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:04]Read from MH i2c: E2 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 17 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 17 00 F6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CE [14:32:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:32:04]wFMCommunicate OK [14:32:04]CreateOFDProtocolMessage done [14:32:04]OFDSenderStorePacket 115401 [14:32:04]StoreOFDPacket docnum=115401 [14:32:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 32 01 00 00 EE 40 2A 01 B6 AE 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 64 2A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C9 C2 01 00 35 04 06 00 EF 7C E3 82 03 42 90 9C 06 43 6A D5 90 77 [14:32:04]CheckFolder [14:32:04]dirname=/storage/ofd_packets [14:32:04]CheckFolder done [14:32:04]ProducePacketName [14:32:04]name=ofd_packets/00115401 [14:32:04]NVStorageSaveData ofd_packets/00115401 [14:32:04]File name is /storage/ofd_packets/00115401 [14:32:04]Write 336 bytes [14:32:04]NVStorageSaveData done [14:32:04]OFDSenderStorePacket done [14:32:04]KKMCreateOFDPacket done [14:32:04]NVStorageSaveData kkm_last_timestamp [14:32:04]File name is /storage/kkm_last_timestamp [14:32:04]Write 4 bytes [14:32:04]NVStorageSaveData done [14:32:04]OFD Sender: Processing packet 115401 [packets to send 481, broken 480] [14:32:04]ProducePacketName [14:32:04]name=ofd_packets/00115401 [14:32:04]OFD Sender: To server: pG, [14:32:04]CommunicateWithHost lk.salyk.kg:30040 [14:32:04]ConnectInit lk.salyk.kg [14:32:04]ExternCall_PrintAddStr [14:32:04]wPrintStart [14:32:04]Write to MH i2c: 01 00 00 F7 10 07 [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: 01 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: 01 07 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: 01 07 00 F7 10 00 00 00 00 00 FF 0F 1C [14:32:04]RasterBufferAndPrint [14:32:04]line Счет N : (3)343844 [14:32:04]line ИНН: 02508201610067 [14:32:04]line Контрольно-Кассовый Чек [14:32:04]line ПРОДАЖА [14:32:04]line Товар: 4700040114120 [14:32:04]line Султан чай 1л. чер персик [14:32:04]line 1.000 * 65.00 [14:32:04]line = 65.00 [14:32:04]line НДС 12% НСП 1% [14:32:04]line > о реализуемом товаре [14:32:04]line ИТОГО: 65.00 [14:32:04]line НСП 1% : 0.57 [14:32:04]line НДС 12% : 6.90 [14:32:04]line Наличными: 65.00 [14:32:04]line Безнал.: 0.00 [14:32:04]line Место: АЗС № 90 "Партнер Нефть" [14:32:04]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:32:04]line СНО: Общий режим [14:32:04]line Чек 119 22.09.2024 14:32 [14:32:04]line Смена: 471 ФФД: 1.0 [14:32:04]line ЗНМ: 0300000120 [14:32:04]line РНМ: 0000000000091831 [14:32:04]line Версия ККМ: 001 [14:32:04]line ФМ: 0000000000871830 [14:32:04]line ФД: 115401 [14:32:04]line ФПД: 263319671931714 [14:32:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T143204&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115401&fm=263319671931714&tin=02508201610067®Number=0000000000091831&sum=6500 [14:32:04]line 0 [14:32:04]written 0, free lines is 4095 [14:32:04]Connected sock=9 [14:32:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 32 01 00 00 EE 40 2A 01 B6 AE 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 64 2A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C9 C2 01 00 35 04 06 00 EF 7C E3 82 03 42 90 9C 06 43 6A D5 90 77 [14:32:04]Write to MH i2c: 01 00 00 1E 11 2F [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: 01 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: 01 07 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: 01 07 00 1E 11 00 00 00 00 00 8C 0C CE [14:32:04]RasterBufferAndPrint [14:32:04]line [14:32:04]line [14:32:04]line [14:32:04]line [14:32:04]line [14:32:04]written 0, free lines is 3216 [14:32:04]MH_Cut [14:32:04]Write to MH i2c: D1 01 00 25 11 01 08 [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: D1 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: D1 01 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: D1 01 00 25 11 00 07 [14:32:04]Write to MH i2c: 01 00 00 26 11 37 [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 BB 90 47 00 72 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C9 C2 01 00 F4 03 04 00 A9 CF EF 66 B6 04 01 00 00 11 0F 19 FF 31 B7 FD CE [14:32:04]CommunicateWithHost err = 0 [14:32:04]CheckOFDResponse [14:32:04]1017 (14) - 77093643461234 [14:32:04]1041 (16) - 0000000000871830 [14:32:04]1040 (4) - 115401 [14:32:04]1012 (4) - 22.09.2024 08:04 [14:32:04]1206 (1) - 0 [14:32:04]OFD Sender: Remove packet 115401 [14:32:04]ProducePacketName [14:32:04]name=ofd_packets/00115401 [14:32:04]NVStorageDeleteData [14:32:05]OFD Sender: No OFD packet to send [14:32:05]*** Cut start [14:32:05]*** Partial cut [14:32:05]*** CUTSNS_PIN = 1 [14:32:05]*** CUTSNS_PIN = 0 [14:32:05]*** Brake cut motor [14:32:06]Read from MH i2c: 01 [14:32:06]MH_I2C_Read... [14:32:06]*** Stop cut motor [14:32:06]*** Cut end [14:32:06]Read from MH i2c: 01 07 00 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: 01 07 00 26 11 00 00 00 00 00 FF 0F 4C [14:32:06]process_action close_receipt done [14:32:06]requested_data is exist [14:32:06]produce_requested_data [14:32:06]requested_item fm.sn is exist - process it [14:32:06]wFMCommunicate request_size=4 [14:32:06]MH_SAM_APDU [14:32:06]CAPDU: 80 11 00 00 [14:32:06]Write to MH i2c: E2 08 00 27 11 80 11 00 00 00 00 00 00 B2 [14:32:06]Write i2c OK [14:32:06]MH_I2C_Read... [14:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:06]Read from MH i2c: E2 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: E2 17 00 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: E2 17 00 27 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 00 [14:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:32:06]wFMCommunicate OK [14:32:06]requested_item fd.num is exist - process it [14:32:06]SAM_PROTO_GetFieldsCounters [14:32:06]wFMCommunicate request_size=4 [14:32:06]MH_SAM_APDU [14:32:06]CAPDU: 80 13 00 00 [14:32:06]Write to MH i2c: E2 08 00 28 11 80 13 00 00 00 00 00 00 B5 [14:32:06]Write i2c OK [14:32:06]MH_I2C_Read... [14:32:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:06]Read from MH i2c: E2 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: E2 62 00 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: E2 62 00 28 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C9 C2 01 00 0E 04 04 00 D7 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 97 [14:32:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C9 C2 01 00 0E 04 04 00 D7 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 [14:32:06]wFMCommunicate OK [14:32:06]SAM_PROTO_GetFieldsCounters done [14:32:06]requested_item shift.num is exist - process it [14:32:06]requested_item shift.opened is exist - process it [14:32:06]req_shift_opened [14:32:06]FM_GetShiftState [14:32:06]SAM_PROTO_GetShiftState [14:32:06]wFMCommunicate request_size=4 [14:32:06]MH_SAM_APDU [14:32:06]CAPDU: 80 13 01 00 [14:32:06]Write to MH i2c: E2 08 00 29 11 80 13 01 00 00 00 00 00 B7 [14:32:06]Write i2c OK [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: E2 [14:32:06]MH_I2C_Read... [14:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:06]Read from MH i2c: E2 0E 00 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: E2 0E 00 29 11 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D0 [14:32:06]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:32:06]wFMCommunicate OK [14:32:06]SAM_PROTO_GetShiftState done [14:32:06]FM_GetShiftState done [14:32:06]req_shift_opened done [14:32:06]requested_item shift.open_date is exist - process it [14:32:06]req_shift_open_date [14:32:06]req_shift_open_date done [14:32:06]produce_requested_data done [14:32:06]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115401,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [14:32:06]process_action_free close_receipt [14:32:06]json_value_free [14:32:06]json_value_free done [14:32:06]process_json_proto returns [14:32:06]Send response to host [14:32:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115401,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [14:32:06]free response buf [14:32:06]execute_script done [14:32:06]execute_script returns [14:32:06]free content buf [14:32:06]Sock 10.Close socket [14:32:06]Sock 10.Thread stoped [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:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:55]OFD Sender: No OFD packet to send [14:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:09]accept exits with 8 [14:35:09]New connection [14:35:09]New thread 3066682724 created [14:35:09]Thread 3066826084 joined [14:35:09]Waiting for new connection... [14:35:09] Sock 8.Parse request [14:35:09]Sock 8.Check first char [14:35:09]Sock 8.First char is OK [14:35:09]request: POST /json_proto HTTP/1.0 [14:35:09]Method: POST [14:35:09]URL: /json_proto [14:35:09]Method is POST - this is cgi request [14:35:09]url: /json_proto [14:35:09]query_string will be loaded in cgi processing [14:35:09]execute_cgi json_proto POST (null) [14:35:09]execute_cgi path=json_proto method=POST [14:35:09]POST find Content-Length [14:35:09]Host: 172.17.41.136:8080 [14:35:09]Content-Length: 637 [14:35:09]Content-Type: application/json [14:35:09] [14:35:09]POST finish read [14:35:09]Found Content-Length = 637 [14:35:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343845", "tax_sys" : 0, "items" : [ { "code": "4700003610546", "name": "\u0412\u043E\u0434\u0430 \u0421orona Ice \u043D\u0435\u0433\u0430\u0437 6\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:09]execute_script... [14:35:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343845", "tax_sys" : 0, "items" : [ { "code": "4700003610546", "name": "\u0412\u043E\u0434\u0430 \u0421orona Ice \u043D\u0435\u0433\u0430\u0437 6\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:09]POST & json_proto [14:35:09]process_json_proto [14:35:09]json parsed OK: [14:35:09]protocol is kg_v1.0 [14:35:09]action value=close_receipt [14:35:09]process_action close_receipt [14:35:09]cmd_close_receipt [14:35:09]MH_GetDate [14:35:09]Write to MH i2c: F0 00 00 2A 11 2A [14:35:09]Write i2c OK [14:35:09]MH_I2C_Read... [14:35:09]Read from MH i2c: F0 [14:35:09]MH_I2C_Read... [14:35:09]Read from MH i2c: F0 09 00 [14:35:09]MH_I2C_Read... [14:35:09]Read from MH i2c: F0 09 00 2A 11 00 1E 2B F0 66 1B D0 5A 64 7B [14:35:09]GetLastDocTimeStamp 1727015524 [14:35:09]current date 1727015710 [14:35:09]FM_GetShiftState [14:35:09]SAM_PROTO_GetShiftState [14:35:09]wFMCommunicate request_size=4 [14:35:09]MH_SAM_APDU [14:35:09]CAPDU: 80 13 01 00 [14:35:09]Write to MH i2c: E2 08 00 2B 11 80 13 01 00 00 00 00 00 B9 [14:35:09]Write i2c OK [14:35:09]MH_I2C_Read... [14:35:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:09]Read from MH i2c: E2 [14:35:09]MH_I2C_Read... [14:35:09]Read from MH i2c: E2 0E 00 [14:35:09]MH_I2C_Read... [14:35:09]Read from MH i2c: E2 0E 00 2B 11 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D2 [14:35:09]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:35:09]wFMCommunicate OK [14:35:09]SAM_PROTO_GetShiftState done [14:35:09]FM_GetShiftState done [14:35:09]opened in 1726965840 [14:35:09]opened+sec_in_day 1727052240 [14:35:09]quantity*price = 10000 [14:35:09]sum+1 = 10001 [14:35:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 120 22.09.2024 14:35 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115402 ФПД: 260553963562606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T143510&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115402&fm=260553963562606&tin=02508201610067®Number=0000000000091831&sum=10000 0 [14:35:10]StoreToDocumentArchive [14:35:10]shift 471 fd 115402 [14:35:10]save to /storage/0471/doc_00115402 [14:35:10]save last doc name /storage/0471/doc_00115402 to /storage/kkm_last_doc_name [14:35:10]save OK [14:35:10]Clear old archive folders... [14:35:10]ProcessDocumentItem done err = 0, tmpTLVsize=277 [14:35:10]tlvbuf is 01C30420 [14:35:10]SAM_PROTO_ClearQueue [14:35:10]wFMCommunicate request_size=4 [14:35:10]MH_SAM_APDU [14:35:10]CAPDU: 80 09 00 00 [14:35:10]Write to MH i2c: E2 08 00 38 11 80 09 00 00 00 00 00 00 BB [14:35:10]Write i2c OK [14:35:10]MH_I2C_Read... [14:35:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:10]Read from MH i2c: E2 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: E2 03 00 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: E2 03 00 38 11 00 90 00 BD [14:35:10]RAPDU: 90 00 [14:35:10]wFMCommunicate OK [14:35:10]SAM_PROTO_ClearQueue done [14:35:10]KKMCreateOFDPacket [14:35:10]OFDProtocolAddRootSTLVToBuf [14:35:10]FM_MakeSignedData [14:35:10]FM_MakeSignedData [14:35:10]SAM_PROTO_SignData [14:35:10]wFMCommunicate request_size=4 [14:35:10]MH_SAM_APDU [14:35:10]CAPDU: 80 0D 01 02 [14:35:10]Write to MH i2c: E2 08 00 39 11 80 0D 01 02 00 00 00 00 C3 [14:35:10]Write i2c OK [14:35:10]MH_I2C_Read... [14:35:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:10]Read from MH i2c: E2 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: E2 03 00 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: E2 03 00 39 11 00 90 00 BE [14:35:10]RAPDU: 90 00 [14:35:10]wFMCommunicate OK [14:35:10]wFMCommunicate request_size=255 [14:35:10]MH_SAM_APDU [14:35:10]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 1E 2B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 [14:35:10]Write to MH i2c: E2 02 01 3A 11 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 1E 2B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 00 00 02 [14:35:10]Write i2c OK [14:35:10]MH_I2C_Read... [14:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:10]Read from MH i2c: E2 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: E2 03 00 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: E2 03 00 3A 11 00 90 00 BF [14:35:10]RAPDU: 90 00 [14:35:10]wFMCommunicate OK [14:35:10]wFMCommunicate request_size=36 [14:35:10]MH_SAM_APDU [14:35:10]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CA C2 01 00 35 04 06 00 EC F8 F2 71 66 6E [14:35:10]Write to MH i2c: E2 27 00 3B 11 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CA C2 01 00 35 04 06 00 EC F8 F2 71 66 6E 00 00 8E [14:35:10]Write i2c OK [14:35:10]MH_I2C_Read... [14:35:10]OFD Sender: No OFD packet to send [14:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:10]Read from MH i2c: E2 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: E2 03 00 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: E2 03 00 3B 11 00 90 00 C0 [14:35:10]RAPDU: 90 00 [14:35:10]wFMCommunicate OK [14:35:10]wFMCommunicate request_size=4 [14:35:10]MH_SAM_APDU [14:35:10]CAPDU: 80 0D 03 02 [14:35:10]Write to MH i2c: E2 08 00 3C 11 80 0D 03 02 00 00 00 00 C8 [14:35:10]Write i2c OK [14:35:10]MH_I2C_Read... [14:35:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:10]Read from MH i2c: E2 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: E2 0B 00 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: E2 0B 00 3C 11 00 79 D1 6F EE 2E 9E 86 65 90 00 27 [14:35:10]RAPDU: 79 D1 6F EE 2E 9E 86 65 90 00 [14:35:10]wFMCommunicate OK [14:35:10]SAM_PROTO_SignData done [14:35:10]FM_MakeSignedData done [14:35:10]CreateOFDProtocolMessage [14:35:10]wFMCommunicate request_size=4 [14:35:10]MH_SAM_APDU [14:35:10]CAPDU: 80 11 00 00 [14:35:10]Write to MH i2c: E2 08 00 3D 11 80 11 00 00 00 00 00 00 C8 [14:35:10]Write i2c OK [14:35:10]MH_I2C_Read... [14:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:10]Read from MH i2c: E2 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: E2 17 00 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: E2 17 00 3D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 16 [14:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:35:10]wFMCommunicate OK [14:35:10]CreateOFDProtocolMessage done [14:35:10]OFDSenderStorePacket 115402 [14:35:10]StoreOFDPacket docnum=115402 [14:35:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 29 01 00 00 EC 4E 21 01 EB A9 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 1E 2B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CA C2 01 00 35 04 06 00 EC F8 F2 71 66 6E 79 D1 6F EE 2E 9E 86 65 [14:35:10]CheckFolder [14:35:10]dirname=/storage/ofd_packets [14:35:10]CheckFolder done [14:35:10]ProducePacketName [14:35:10]name=ofd_packets/00115402 [14:35:10]NVStorageSaveData ofd_packets/00115402 [14:35:10]File name is /storage/ofd_packets/00115402 [14:35:10]Write 327 bytes [14:35:10]NVStorageSaveData done [14:35:10]OFDSenderStorePacket done [14:35:10]KKMCreateOFDPacket done [14:35:10]NVStorageSaveData kkm_last_timestamp [14:35:10]File name is /storage/kkm_last_timestamp [14:35:10]Write 4 bytes [14:35:10]NVStorageSaveData done [14:35:10]ExternCall_PrintAddStr [14:35:10]wPrintStart [14:35:10]Write to MH i2c: 01 00 00 3E 11 4F [14:35:10]Write i2c OK [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: 01 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: 01 07 00 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: 01 07 00 3E 11 00 00 00 00 00 FF 0F 64 [14:35:10]RasterBufferAndPrint [14:35:10]line Счет N : (3)343845 [14:35:10]line ИНН: 02508201610067 [14:35:10]line Контрольно-Кассовый Чек [14:35:10]line ПРОДАЖА [14:35:10]line Товар: 4700003610546 [14:35:10]line Вода Сorona Ice негаз 6л [14:35:10]line 1.000 * 100.00 [14:35:10]line = 100.00 [14:35:10]line НДС 12% НСП 1% [14:35:10]line > о реализуемом товаре [14:35:10]line ИТОГО: 100.00 [14:35:10]line НСП 1% : 0.88 [14:35:10]line НДС 12% : 10.62 [14:35:10]line Наличными: 100.00 [14:35:10]line Безнал.: 0.00 [14:35:10]line Место: АЗС № 90 "Партнер Нефть" [14:35:10]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:35:10]line СНО: Общий режим [14:35:10]line Чек 120 22.09.2024 14:35 [14:35:10]line Смена: 471 ФФД: 1.0 [14:35:10]line ЗНМ: 0300000120 [14:35:10]line РНМ: 0000000000091831 [14:35:10]line Версия ККМ: 001 [14:35:10]line ФМ: 0000000000871830 [14:35:10]line ФД: 115402 [14:35:10]line ФПД: 260553963562606 [14:35:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T143510&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115402&fm=260553963562606&tin=02508201610067®Number=0000000000091831&sum=10000 [14:35:11]line 0 [14:35:11]OFD Sender: Processing packet 115402 [packets to send 481, broken 480] [14:35:11]ProducePacketName [14:35:11]name=ofd_packets/00115402 [14:35:11]OFD Sender: To server: pG, [14:35:11]CommunicateWithHost lk.salyk.kg:30040 [14:35:11]ConnectInit lk.salyk.kg [14:35:11]written 0, free lines is 4095 [14:35:11]Connected sock=10 [14:35:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 29 01 00 00 EC 4E 21 01 EB A9 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 1E 2B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CA C2 01 00 35 04 06 00 EC F8 F2 71 66 6E 79 D1 6F EE 2E 9E 86 65 [14:35:11]Write to MH i2c: 01 00 00 65 11 76 [14:35:11]Write i2c OK [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: 01 [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: 01 07 00 [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: 01 07 00 65 11 00 00 00 00 00 87 0C 10 [14:35:11]RasterBufferAndPrint [14:35:11]line [14:35:11]line [14:35:11]line [14:35:11]line [14:35:11]line [14:35:11]written 0, free lines is 3211 [14:35:11]MH_Cut [14:35:11]Write to MH i2c: D1 01 00 6C 11 01 4F [14:35:11]Write i2c OK [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: D1 [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: D1 01 00 [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: D1 01 00 6C 11 00 4E [14:35:11]Write to MH i2c: 01 00 00 6D 11 7E [14:35:11]Write i2c OK [14:35:11]MH_I2C_Read... [14:35:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 68 1F 47 00 95 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CA C2 01 00 F4 03 04 00 64 D0 EF 66 B6 04 01 00 00 27 39 FD D5 DC 70 6B 05 [14:35:11]CommunicateWithHost err = 0 [14:35:11]CheckOFDResponse [14:35:11]1017 (14) - 77093643461234 [14:35:11]1041 (16) - 0000000000871830 [14:35:11]1040 (4) - 115402 [14:35:11]1012 (4) - 22.09.2024 08:08 [14:35:11]1206 (1) - 0 [14:35:11]OFD Sender: Remove packet 115402 [14:35:11]ProducePacketName [14:35:11]name=ofd_packets/00115402 [14:35:11]NVStorageDeleteData [14:35:12]OFD Sender: No OFD packet to send [14:35:12]*** Cut start [14:35:12]*** Partial cut [14:35:12]*** CUTSNS_PIN = 1 [14:35:12]*** CUTSNS_PIN = 0 [14:35:13]*** Brake cut motor [14:35:13]Read from MH i2c: 01 [14:35:13]MH_I2C_Read... [14:35:13]*** Stop cut motor [14:35:13]*** Cut end [14:35:13]Read from MH i2c: 01 07 00 [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: 01 07 00 6D 11 00 00 00 00 00 FF 0F 93 [14:35:13]process_action close_receipt done [14:35:13]requested_data is exist [14:35:13]produce_requested_data [14:35:13]requested_item fm.sn is exist - process it [14:35:13]wFMCommunicate request_size=4 [14:35:13]MH_SAM_APDU [14:35:13]CAPDU: 80 11 00 00 [14:35:13]Write to MH i2c: E2 08 00 6E 11 80 11 00 00 00 00 00 00 F9 [14:35:13]Write i2c OK [14:35:13]MH_I2C_Read... [14:35:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:13]Read from MH i2c: E2 [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: E2 17 00 [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: E2 17 00 6E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 47 [14:35:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:35:13]wFMCommunicate OK [14:35:13]requested_item fd.num is exist - process it [14:35:13]SAM_PROTO_GetFieldsCounters [14:35:13]wFMCommunicate request_size=4 [14:35:13]MH_SAM_APDU [14:35:13]CAPDU: 80 13 00 00 [14:35:13]Write to MH i2c: E2 08 00 6F 11 80 13 00 00 00 00 00 00 FC [14:35:13]Write i2c OK [14:35:13]MH_I2C_Read... [14:35:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:13]Read from MH i2c: E2 [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: E2 62 00 [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: E2 62 00 6F 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CA C2 01 00 0E 04 04 00 D7 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 E2 [14:35: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CA C2 01 00 0E 04 04 00 D7 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 [14:35:13]wFMCommunicate OK [14:35:13]SAM_PROTO_GetFieldsCounters done [14:35:13]requested_item shift.num is exist - process it [14:35:13]requested_item shift.opened is exist - process it [14:35:13]req_shift_opened [14:35:13]FM_GetShiftState [14:35:13]SAM_PROTO_GetShiftState [14:35:13]wFMCommunicate request_size=4 [14:35:13]MH_SAM_APDU [14:35:13]CAPDU: 80 13 01 00 [14:35:13]Write to MH i2c: E2 08 00 70 11 80 13 01 00 00 00 00 00 FE [14:35:13]Write i2c OK [14:35:13]MH_I2C_Read... [14:35:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:13]Read from MH i2c: E2 [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: E2 0E 00 [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: E2 0E 00 70 11 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 17 [14:35:13]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:35:13]wFMCommunicate OK [14:35:13]SAM_PROTO_GetShiftState done [14:35:13]FM_GetShiftState done [14:35:13]req_shift_opened done [14:35:13]requested_item shift.open_date is exist - process it [14:35:13]req_shift_open_date [14:35:13]req_shift_open_date done [14:35:13]produce_requested_data done [14:35:13]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115402,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [14:35:13]process_action_free close_receipt [14:35:13]json_value_free [14:35:13]json_value_free done [14:35:13]process_json_proto returns [14:35:13]Send response to host [14:35:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115402,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [14:35:13]free response buf [14:35:13]execute_script done [14:35:13]execute_script returns [14:35:13]free content buf [14:35:13]Sock 8.Close socket [14:35:13]Sock 8.Thread stoped [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:36]accept exits with 9 [14:37:36]New connection [14:37:36]New thread 3066826084 created [14:37:36]Thread 3066682724 joined [14:37:36]Waiting for new connection... [14:37:36] Sock 9.Parse request [14:37:36]Sock 9.Check first char [14:37:36]Sock 9.First char is OK [14:37:36]request: POST /json_proto HTTP/1.0 [14:37:36]Method: POST [14:37:36]URL: /json_proto [14:37:36]Method is POST - this is cgi request [14:37:36]url: /json_proto [14:37:36]query_string will be loaded in cgi processing [14:37:36]execute_cgi json_proto POST (null) [14:37:36]execute_cgi path=json_proto method=POST [14:37:36]POST find Content-Length [14:37:36]Host: 172.17.41.136:8080 [14:37:36]Content-Length: 679 [14:37:36]Content-Type: application/json [14:37:36] [14:37:36]POST finish read [14:37:36]Found Content-Length = 679 [14:37:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343846", "tax_sys" : 0, "items" : [ { "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:36]execute_script... [14: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 : (3)343846", "tax_sys" : 0, "items" : [ { "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:36]POST & json_proto [14:37:36]process_json_proto [14:37:36]json parsed OK: [14:37:36]protocol is kg_v1.0 [14:37:36]action value=close_receipt [14:37:36]process_action close_receipt [14:37:36]cmd_close_receipt [14:37:36]MH_GetDate [14:37:36]Write to MH i2c: F0 00 00 71 11 71 [14:37:36]Write i2c OK [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: F0 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: F0 09 00 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: F0 09 00 71 11 00 B1 2B F0 66 1B D0 5A 64 55 [14:37:36]GetLastDocTimeStamp 1727015710 [14:37:36]current date 1727015857 [14:37:36]FM_GetShiftState [14:37:36]SAM_PROTO_GetShiftState [14:37:36]wFMCommunicate request_size=4 [14:37:36]MH_SAM_APDU [14:37:36]CAPDU: 80 13 01 00 [14:37:36]Write to MH i2c: E2 08 00 72 11 80 13 01 00 00 00 00 00 00 [14:37:36]Write i2c OK [14:37:36]MH_I2C_Read... [14:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:36]Read from MH i2c: E2 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: E2 0E 00 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: E2 0E 00 72 11 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 19 [14:37:36]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:37:36]wFMCommunicate OK [14:37:36]SAM_PROTO_GetShiftState done [14:37:36]FM_GetShiftState done [14:37:36]opened in 1726965840 [14:37:36]opened+sec_in_day 1727052240 [14:37:36]quantity*price = 15400 [14:37:36]sum+1 = 15401 [14:37:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 121 22.09.2024 14:37 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115403 ФПД: 248588832566291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T143737&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115403&fm=248588832566291&tin=02508201610067®Number=0000000000091831&sum=15400 0 [14:37:37]StoreToDocumentArchive [14:37:37]shift 471 fd 115403 [14:37:37]save to /storage/0471/doc_00115403 [14:37:37]save last doc name /storage/0471/doc_00115403 to /storage/kkm_last_doc_name [14:37:37]save OK [14:37:37]Clear old archive folders... [14:37:37]ProcessDocumentItem done err = 0, tmpTLVsize=284 [14:37:37]tlvbuf is 01C30040 [14:37:37]SAM_PROTO_ClearQueue [14:37:37]wFMCommunicate request_size=4 [14:37:37]MH_SAM_APDU [14:37:37]CAPDU: 80 09 00 00 [14:37:37]Write to MH i2c: E2 08 00 7F 11 80 09 00 00 00 00 00 00 02 [14:37:37]Write i2c OK [14:37:37]MH_I2C_Read... [14:37:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:37]Read from MH i2c: E2 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 03 00 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 03 00 7F 11 00 90 00 04 [14:37:37]RAPDU: 90 00 [14:37:37]wFMCommunicate OK [14:37:37]SAM_PROTO_ClearQueue done [14:37:37]KKMCreateOFDPacket [14:37:37]OFDProtocolAddRootSTLVToBuf [14:37:37]FM_MakeSignedData [14:37:37]FM_MakeSignedData [14:37:37]SAM_PROTO_SignData [14:37:37]wFMCommunicate request_size=4 [14:37:37]MH_SAM_APDU [14:37:37]CAPDU: 80 0D 01 02 [14:37:37]Write to MH i2c: E2 08 00 80 11 80 0D 01 02 00 00 00 00 0A [14:37:37]Write i2c OK [14:37:37]MH_I2C_Read... [14:37:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:37]Read from MH i2c: E2 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 03 00 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 03 00 80 11 00 90 00 05 [14:37:37]RAPDU: 90 00 [14:37:37]wFMCommunicate OK [14:37:37]wFMCommunicate request_size=255 [14:37:37]MH_SAM_APDU [14:37:37]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 B1 2B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [14:37:37]Write to MH i2c: E2 02 01 81 11 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 B1 2B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 B9 [14:37:37]Write i2c OK [14:37:37]MH_I2C_Read... [14:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:37]Read from MH i2c: E2 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 03 00 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 03 00 81 11 00 90 00 06 [14:37:37]RAPDU: 90 00 [14:37:37]wFMCommunicate OK [14:37:37]wFMCommunicate request_size=43 [14:37:37]MH_SAM_APDU [14:37:37]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CB C2 01 00 35 04 06 00 E2 17 19 0F 6C 13 [14:37:37]Write to MH i2c: E2 2E 00 82 11 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CB C2 01 00 35 04 06 00 E2 17 19 0F 6C 13 00 00 1E [14:37:37]Write i2c OK [14:37:37]MH_I2C_Read... [14:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:37]Read from MH i2c: E2 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 03 00 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 03 00 82 11 00 90 00 07 [14:37:37]RAPDU: 90 00 [14:37:37]wFMCommunicate OK [14:37:37]wFMCommunicate request_size=4 [14:37:37]MH_SAM_APDU [14:37:37]CAPDU: 80 0D 03 02 [14:37:37]Write to MH i2c: E2 08 00 83 11 80 0D 03 02 00 00 00 00 0F [14:37:37]Write i2c OK [14:37:37]MH_I2C_Read... [14:37:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:37]Read from MH i2c: E2 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 0B 00 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 0B 00 83 11 00 8B E9 48 4D 0C A2 1E 5C 90 00 41 [14:37:37]RAPDU: 8B E9 48 4D 0C A2 1E 5C 90 00 [14:37:37]wFMCommunicate OK [14:37:37]SAM_PROTO_SignData done [14:37:37]FM_MakeSignedData done [14:37:37]CreateOFDProtocolMessage [14:37:37]wFMCommunicate request_size=4 [14:37:37]MH_SAM_APDU [14:37:37]CAPDU: 80 11 00 00 [14:37:37]Write to MH i2c: E2 08 00 84 11 80 11 00 00 00 00 00 00 0F [14:37:37]OFD Sender: No OFD packet to send [14:37:37]Write i2c OK [14:37:37]MH_I2C_Read... [14:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:37]Read from MH i2c: E2 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 17 00 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 17 00 84 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5D [14:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:37:37]wFMCommunicate OK [14:37:37]CreateOFDProtocolMessage done [14:37:37]OFDSenderStorePacket 115403 [14:37:37]StoreOFDPacket docnum=115403 [14:37:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 78 56 28 01 4F 32 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 B1 2B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CB C2 01 00 35 04 06 00 E2 17 19 0F 6C 13 8B E9 48 4D 0C A2 1E 5C [14:37:37]CheckFolder [14:37:37]dirname=/storage/ofd_packets [14:37:37]CheckFolder done [14:37:37]ProducePacketName [14:37:37]name=ofd_packets/00115403 [14:37:37]NVStorageSaveData ofd_packets/00115403 [14:37:37]File name is /storage/ofd_packets/00115403 [14:37:37]Write 334 bytes [14:37:37]NVStorageSaveData done [14:37:37]OFDSenderStorePacket done [14:37:37]KKMCreateOFDPacket done [14:37:37]NVStorageSaveData kkm_last_timestamp [14:37:37]File name is /storage/kkm_last_timestamp [14:37:37]Write 4 bytes [14:37:37]NVStorageSaveData done [14:37:37]ExternCall_PrintAddStr [14:37:37]wPrintStart [14:37:37]Write to MH i2c: 01 00 00 85 11 96 [14:37:37]Write i2c OK [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: 01 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: 01 07 00 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: 01 07 00 85 11 00 00 00 00 00 FF 0F AB [14:37:37]RasterBufferAndPrint [14:37:37]line Счет N : (3)343846 [14:37:37]line ИНН: 02508201610067 [14:37:37]line Контрольно-Кассовый Чек [14:37:37]line ПРОДАЖА [14:37:37]line Товар: 4870233466272 [14:37:37]line Мороженое Пломбир Миша [14:37:37]line 2.000 * 77.00 [14:37:37]line = 154.00 [14:37:37]line НДС 12% НСП 1% [14:37:37]line > о реализуемом товаре [14:37:37]line ИТОГО: 154.00 [14:37:37]line НСП 1% : 1.36 [14:37:37]line НДС 12% : 16.35 [14:37:37]line Наличными: 154.00 [14:37:37]line Безнал.: 0.00 [14:37:37]line Место: АЗС № 90 "Партнер Нефть" [14:37:37]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:37:37]line СНО: Общий режим [14:37:37]line Чек 121 22.09.2024 14:37 [14:37:37]line Смена: 471 ФФД: 1.0 [14:37:37]line ЗНМ: 0300000120 [14:37:37]line РНМ: 0000000000091831 [14:37:37]line Версия ККМ: 001 [14:37:37]line ФМ: 0000000000871830 [14:37:37]line ФД: 115403 [14:37:37]line ФПД: 248588832566291 [14:37:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T143737&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115403&fm=248588832566291&tin=02508201610067®Number=0000000000091831&sum=15400 [14:37:37]line 0 [14:37:37]written 0, free lines is 4095 [14:37:37]OFD Sender: Processing packet 115403 [packets to send 481, broken 480] [14:37:37]ProducePacketName [14:37:37]name=ofd_packets/00115403 [14:37:37]OFD Sender: To server: pG, [14:37:37]CommunicateWithHost lk.salyk.kg:30040 [14:37:37]ConnectInit lk.salyk.kg [14:37:38]Connected sock=10 [14: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 31 38 33 30 30 01 00 00 78 56 28 01 4F 32 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 B1 2B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CB C2 01 00 35 04 06 00 E2 17 19 0F 6C 13 8B E9 48 4D 0C A2 1E 5C [14:37:38]Write to MH i2c: 01 00 00 AC 11 BD [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: 01 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: 01 07 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: 01 07 00 AC 11 00 00 00 00 00 7A 0C 4A [14:37:38]RasterBufferAndPrint [14:37:38]line [14:37:38]line [14:37:38]line [14:37:38]line [14:37:38]line [14:37:38]written 0, free lines is 3198 [14:37:38]MH_Cut [14:37:38]Write to MH i2c: D1 01 00 B3 11 01 96 [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: D1 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: D1 01 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: D1 01 00 B3 11 00 95 [14:37:38]Write to MH i2c: 01 00 00 B4 11 C5 [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6C D1 47 00 73 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CB C2 01 00 F4 03 04 00 F7 D0 EF 66 B6 04 01 00 00 27 66 36 F5 37 C2 97 8E [14:37:38]CommunicateWithHost err = 0 [14:37:38]CheckOFDResponse [14:37:38]1017 (14) - 77093643461234 [14:37:38]1041 (16) - 0000000000871830 [14:37:38]1040 (4) - 115403 [14:37:38]1012 (4) - 22.09.2024 08:10 [14:37:38]1206 (1) - 0 [14:37:38]OFD Sender: Remove packet 115403 [14:37:38]ProducePacketName [14:37:38]name=ofd_packets/00115403 [14:37:38]NVStorageDeleteData [14:37:39]OFD Sender: No OFD packet to send [14:37:39]*** Cut start [14:37:39]*** Partial cut [14:37:39]*** CUTSNS_PIN = 1 [14:37:39]*** CUTSNS_PIN = 0 [14:37:39]*** Brake cut motor [14:37:40]Read from MH i2c: 01 [14:37:40]MH_I2C_Read... [14:37:40]*** Stop cut motor [14:37:40]*** Cut end [14:37:40]Read from MH i2c: 01 07 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: 01 07 00 B4 11 00 00 00 00 00 FF 0F DA [14:37:40]process_action close_receipt done [14:37:40]requested_data is exist [14:37:40]produce_requested_data [14:37:40]requested_item fm.sn is exist - process it [14:37:40]wFMCommunicate request_size=4 [14:37:40]MH_SAM_APDU [14:37:40]CAPDU: 80 11 00 00 [14:37:40]Write to MH i2c: E2 08 00 B5 11 80 11 00 00 00 00 00 00 40 [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:40]Read from MH i2c: E2 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 17 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 17 00 B5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8E [14:37:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:37:40]wFMCommunicate OK [14:37:40]requested_item fd.num is exist - process it [14:37:40]SAM_PROTO_GetFieldsCounters [14:37:40]wFMCommunicate request_size=4 [14:37:40]MH_SAM_APDU [14:37:40]CAPDU: 80 13 00 00 [14:37:40]Write to MH i2c: E2 08 00 B6 11 80 13 00 00 00 00 00 00 43 [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:40]Read from MH i2c: E2 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 62 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 62 00 B6 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CB C2 01 00 0E 04 04 00 D7 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 2D [14: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CB C2 01 00 0E 04 04 00 D7 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 [14:37:40]wFMCommunicate OK [14:37:40]SAM_PROTO_GetFieldsCounters done [14:37:40]requested_item shift.num is exist - process it [14:37:40]requested_item shift.opened is exist - process it [14:37:40]req_shift_opened [14:37:40]FM_GetShiftState [14:37:40]SAM_PROTO_GetShiftState [14:37:40]wFMCommunicate request_size=4 [14:37:40]MH_SAM_APDU [14:37:40]CAPDU: 80 13 01 00 [14:37:40]Write to MH i2c: E2 08 00 B7 11 80 13 01 00 00 00 00 00 45 [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:40]Read from MH i2c: E2 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 0E 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 0E 00 B7 11 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 5E [14:37:40]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:37:40]wFMCommunicate OK [14:37:40]SAM_PROTO_GetShiftState done [14:37:40]FM_GetShiftState done [14:37:40]req_shift_opened done [14:37:40]requested_item shift.open_date is exist - process it [14:37:40]req_shift_open_date [14:37:40]req_shift_open_date done [14:37:40]produce_requested_data done [14:37:40]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115403,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [14:37:40]process_action_free close_receipt [14:37:40]json_value_free [14:37:40]json_value_free done [14:37:40]process_json_proto returns [14:37:40]Send response to host [14:37:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115403,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [14:37:40]free response buf [14:37:40]execute_script done [14:37:40]execute_script returns [14:37:40]free content buf [14:37:40]Sock 9.Close socket [14:37:40]Sock 9.Thread stoped [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:02]accept exits with 8 [14:41:02]New connection [14:41:02]New thread 3066682724 created [14:41:02]Thread 3066826084 joined [14:41:02]Waiting for new connection... [14:41:02] Sock 8.Parse request [14:41:02]Sock 8.Check first char [14:41:02]Sock 8.First char is OK [14:41:02]request: POST /json_proto HTTP/1.0 [14:41:02]Method: POST [14:41:02]URL: /json_proto [14:41:02]Method is POST - this is cgi request [14:41:02]url: /json_proto [14:41:02]query_string will be loaded in cgi processing [14:41:02]execute_cgi json_proto POST (null) [14:41:02]execute_cgi path=json_proto method=POST [14:41:02]POST find Content-Length [14:41:02]Host: 172.17.41.136:8080 [14:41:02]Content-Length: 641 [14:41:02]Content-Type: application/json [14:41:02] [14:41:02]POST finish read [14:41:02]Found Content-Length = 641 [14:41:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343847", "tax_sys" : 0, "items" : [ { "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:02]execute_script... [14:41:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343847", "tax_sys" : 0, "items" : [ { "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:02]POST & json_proto [14:41:02]process_json_proto [14:41:02]json parsed OK: [14:41:02]protocol is kg_v1.0 [14:41:02]action value=close_receipt [14:41:02]process_action close_receipt [14:41:02]cmd_close_receipt [14:41:02]MH_GetDate [14:41:02]Write to MH i2c: F0 00 00 B8 11 B8 [14:41:02]Write i2c OK [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: F0 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: F0 09 00 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: F0 09 00 B8 11 00 7F 2C F0 66 1B D0 5A 64 6B [14:41:02]GetLastDocTimeStamp 1727015857 [14:41:02]current date 1727016063 [14:41:02]FM_GetShiftState [14:41:02]SAM_PROTO_GetShiftState [14:41:02]wFMCommunicate request_size=4 [14:41:02]MH_SAM_APDU [14:41:02]CAPDU: 80 13 01 00 [14:41:02]Write to MH i2c: E2 08 00 B9 11 80 13 01 00 00 00 00 00 47 [14:41:02]Write i2c OK [14:41:02]MH_I2C_Read... [14:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:02]Read from MH i2c: E2 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 0E 00 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 0E 00 B9 11 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 60 [14:41:02]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:41:02]wFMCommunicate OK [14:41:02]SAM_PROTO_GetShiftState done [14:41:02]FM_GetShiftState done [14:41:02]opened in 1726965840 [14:41:02]opened+sec_in_day 1727052240 [14:41:02]quantity*price = 3000 [14:41:02]sum+1 = 3001 [14:41:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 30.00 НСП 1% : 0.26 НДС 12% : 3.19 Наличными: 30.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 122 22.09.2024 14:41 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115404 ФПД: 20672152666330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144103&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115404&fm=20672152666330&tin=02508201610067®Number=0000000000091831&sum=3000 0 [14:41:03]StoreToDocumentArchive [14:41:03]shift 471 fd 115404 [14:41:03]save to /storage/0471/doc_00115404 [14:41:03]save last doc name /storage/0471/doc_00115404 to /storage/kkm_last_doc_name [14:41:03]save OK [14:41:03]Clear old archive folders... [14:41:03]ProcessDocumentItem done err = 0, tmpTLVsize=276 [14:41:03]tlvbuf is 01C5A1D0 [14:41:03]SAM_PROTO_ClearQueue [14:41:03]wFMCommunicate request_size=4 [14:41:03]MH_SAM_APDU [14:41:03]CAPDU: 80 09 00 00 [14:41:03]Write to MH i2c: E2 08 00 C6 11 80 09 00 00 00 00 00 00 49 [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:03]Read from MH i2c: E2 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 03 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 03 00 C6 11 00 90 00 4B [14:41:03]RAPDU: 90 00 [14:41:03]wFMCommunicate OK [14:41:03]SAM_PROTO_ClearQueue done [14:41:03]KKMCreateOFDPacket [14:41:03]OFDProtocolAddRootSTLVToBuf [14:41:03]FM_MakeSignedData [14:41:03]FM_MakeSignedData [14:41:03]SAM_PROTO_SignData [14:41:03]wFMCommunicate request_size=4 [14:41:03]MH_SAM_APDU [14:41:03]CAPDU: 80 0D 01 02 [14:41:03]Write to MH i2c: E2 08 00 C7 11 80 0D 01 02 00 00 00 00 51 [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:03]Read from MH i2c: E2 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 03 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 03 00 C7 11 00 90 00 4C [14:41:03]RAPDU: 90 00 [14:41:03]wFMCommunicate OK [14:41:03]wFMCommunicate request_size=255 [14:41:03]MH_SAM_APDU [14:41:03]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 7F 2C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 [14:41:03]Write to MH i2c: E2 02 01 C8 11 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 7F 2C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 00 00 54 [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:03]Read from MH i2c: E2 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 03 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 03 00 C8 11 00 90 00 4D [14:41:03]RAPDU: 90 00 [14:41:03]wFMCommunicate OK [14:41:03]wFMCommunicate request_size=35 [14:41:03]MH_SAM_APDU [14:41:03]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CC C2 01 00 35 04 06 00 12 CD 1C 51 00 DA [14:41:03]Write to MH i2c: E2 26 00 C9 11 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CC C2 01 00 35 04 06 00 12 CD 1C 51 00 DA 00 00 F7 [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:03]Read from MH i2c: E2 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 03 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 03 00 C9 11 00 90 00 4E [14:41:03]RAPDU: 90 00 [14:41:03]wFMCommunicate OK [14:41:03]wFMCommunicate request_size=4 [14:41:03]MH_SAM_APDU [14:41:03]CAPDU: 80 0D 03 02 [14:41:03]Write to MH i2c: E2 08 00 CA 11 80 0D 03 02 00 00 00 00 56 [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:03]Read from MH i2c: E2 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 0B 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 0B 00 CA 11 00 8A 2F 02 8F 2F 9B 92 16 90 00 13 [14:41:03]RAPDU: 8A 2F 02 8F 2F 9B 92 16 90 00 [14:41:03]wFMCommunicate OK [14:41:03]SAM_PROTO_SignData done [14:41:03]FM_MakeSignedData done [14:41:03]CreateOFDProtocolMessage [14:41:03]wFMCommunicate request_size=4 [14:41:03]MH_SAM_APDU [14:41:03]CAPDU: 80 11 00 00 [14:41:03]Write to MH i2c: E2 08 00 CB 11 80 11 00 00 00 00 00 00 56 [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:03]Read from MH i2c: E2 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 17 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 17 00 CB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A4 [14:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:41:03]wFMCommunicate OK [14:41:03]CreateOFDProtocolMessage done [14:41:03]OFDSenderStorePacket 115404 [14:41:03]StoreOFDPacket docnum=115404 [14:41:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 FF CC 20 01 C7 43 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 7F 2C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CC C2 01 00 35 04 06 00 12 CD 1C 51 00 DA 8A 2F 02 8F 2F 9B 92 16 [14:41:03]CheckFolder [14:41:03]dirname=/storage/ofd_packets [14:41:03]CheckFolder done [14:41:03]ProducePacketName [14:41:03]name=ofd_packets/00115404 [14:41:03]NVStorageSaveData ofd_packets/00115404 [14:41:03]File name is /storage/ofd_packets/00115404 [14:41:03]Write 326 bytes [14:41:03]NVStorageSaveData done [14:41:03]OFDSenderStorePacket done [14:41:03]KKMCreateOFDPacket done [14:41:03]NVStorageSaveData kkm_last_timestamp [14:41:03]File name is /storage/kkm_last_timestamp [14:41:03]Write 4 bytes [14:41:03]NVStorageSaveData done [14:41:03]ExternCall_PrintAddStr [14:41:03]wPrintStart [14:41:03]Write to MH i2c: 01 00 00 CC 11 DD [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: 01 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: 01 07 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: 01 07 00 CC 11 00 00 00 00 00 FF 0F F2 [14:41:03]RasterBufferAndPrint [14:41:03]line Счет N : (3)343847 [14:41:03]line ИНН: 02508201610067 [14:41:03]line Контрольно-Кассовый Чек [14:41:03]line ПРОДАЖА [14:41:03]line Товар: 2000032800010 [14:41:03]line Сочник DC творог 75 г [14:41:03]line 1.000 * 30.00 [14:41:03]line = 30.00 [14:41:03]line НДС 12% НСП 1% [14:41:03]line > о реализуемом товаре [14:41:03]line ИТОГО: 30.00 [14:41:03]line НСП 1% : 0.26 [14:41:03]line НДС 12% : 3.19 [14:41:03]line Наличными: 30.00 [14:41:03]line Безнал.: 0.00 [14:41:03]line Место: АЗС № 90 "Партнер Нефть" [14:41:03]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:41:03]line СНО: Общий режим [14:41:03]line Чек 122 22.09.2024 14:41 [14:41:03]line Смена: 471 ФФД: 1.0 [14:41:03]line ЗНМ: 0300000120 [14:41:03]line РНМ: 0000000000091831 [14:41:03]line Версия ККМ: 001 [14:41:03]line ФМ: 0000000000871830 [14:41:03]line ФД: 115404 [14:41:03]line ФПД: 20672152666330 [14:41:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144103&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115404&fm=20672152666330&tin=02508201610067®Number=0000000000091831&sum=3000 [14:41:03]line 0 [14:41:03]written 0, free lines is 4095 [14:41:03]OFD Sender: Processing packet 115404 [packets to send 481, broken 480] [14:41:04]ProducePacketName [14:41:04]name=ofd_packets/00115404 [14:41:04]OFD Sender: To server: pG, [14:41:04]CommunicateWithHost lk.salyk.kg:30040 [14:41:04]ConnectInit lk.salyk.kg [14:41:04]Write to MH i2c: 01 00 00 F3 11 04 [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: 01 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: 01 07 00 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: 01 07 00 F3 11 00 00 00 00 00 89 0C A0 [14:41:04]RasterBufferAndPrint [14:41:04]line [14:41:04]line [14:41:04]line [14:41:04]line [14:41:04]line [14:41:04]Connected sock=10 [14:41:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 FF CC 20 01 C7 43 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 7F 2C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CC C2 01 00 35 04 06 00 12 CD 1C 51 00 DA 8A 2F 02 8F 2F 9B 92 16 [14:41:04]written 0, free lines is 3224 [14:41:04]MH_Cut [14:41:04]Write to MH i2c: D1 01 00 FA 11 01 DD [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: D1 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: D1 01 00 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: D1 01 00 FA 11 00 DC [14:41:04]Write to MH i2c: 01 00 00 FB 11 0C [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 2E EE 47 00 46 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 31 38 33 30 10 04 04 00 CC C2 01 00 F4 03 04 00 C5 D1 EF 66 B6 04 01 00 00 A5 72 82 E7 FB 75 07 CD [14:41:04]CommunicateWithHost err = 0 [14:41:04]CheckOFDResponse [14:41:04]1017 (14) - 77093643461234 [14:41:04]1041 (16) - 0000000000871830 [14:41:04]1040 (4) - 115404 [14:41:04]1012 (4) - 22.09.2024 08:13 [14:41:04]1206 (1) - 0 [14:41:04]OFD Sender: Remove packet 115404 [14:41:04]ProducePacketName [14:41:04]name=ofd_packets/00115404 [14:41:04]NVStorageDeleteData [14:41:05]OFD Sender: No OFD packet to send [14:41:05]*** Cut start [14:41:05]*** Partial cut [14:41:05]*** CUTSNS_PIN = 1 [14:41:05]*** CUTSNS_PIN = 0 [14:41:05]*** Brake cut motor [14:41:06]Read from MH i2c: 01 [14:41:06]MH_I2C_Read... [14:41:06]*** Stop cut motor [14:41:06]*** Cut end [14:41:06]Read from MH i2c: 01 07 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 07 00 FB 11 00 00 00 00 00 FF 0F 21 [14:41:06]process_action close_receipt done [14:41:06]requested_data is exist [14:41:06]produce_requested_data [14:41:06]requested_item fm.sn is exist - process it [14:41:06]wFMCommunicate request_size=4 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 11 00 00 [14:41:06]Write to MH i2c: E2 08 00 FC 11 80 11 00 00 00 00 00 00 87 [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 17 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 17 00 FC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D5 [14:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:41:06]wFMCommunicate OK [14:41:06]requested_item fd.num is exist - process it [14:41:06]SAM_PROTO_GetFieldsCounters [14:41:06]wFMCommunicate request_size=4 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 13 00 00 [14:41:06]Write to MH i2c: E2 08 00 FD 11 80 13 00 00 00 00 00 00 8A [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 62 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 62 00 FD 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CC C2 01 00 0E 04 04 00 D7 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 78 [14:41:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CC C2 01 00 0E 04 04 00 D7 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 [14:41:06]wFMCommunicate OK [14:41:06]SAM_PROTO_GetFieldsCounters done [14:41:06]requested_item shift.num is exist - process it [14:41:06]requested_item shift.opened is exist - process it [14:41:06]req_shift_opened [14:41:06]FM_GetShiftState [14:41:06]SAM_PROTO_GetShiftState [14:41:06]wFMCommunicate request_size=4 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 13 01 00 [14:41:06]Write to MH i2c: E2 08 00 FE 11 80 13 01 00 00 00 00 00 8C [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 0E 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 0E 00 FE 11 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A5 [14:41:06]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:41:06]wFMCommunicate OK [14:41:06]SAM_PROTO_GetShiftState done [14:41:06]FM_GetShiftState done [14:41:06]req_shift_opened done [14:41:06]requested_item shift.open_date is exist - process it [14:41:06]req_shift_open_date [14:41:06]req_shift_open_date done [14:41:06]produce_requested_data done [14:41:06]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115404,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [14:41:06]process_action_free close_receipt [14:41:06]json_value_free [14:41:06]json_value_free done [14:41:06]process_json_proto returns [14:41:06]Send response to host [14:41:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115404,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [14:41:06]free response buf [14:41:06]execute_script done [14:41:06]execute_script returns [14:41:06]free content buf [14:41:06]Sock 8.Close socket [14:41:06]Sock 8.Thread stoped [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43: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:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:08]accept exits with 9 [14:49:08]New connection [14:49:08]New thread 3066826084 created [14:49:08]Thread 3066682724 joined [14:49:08]Waiting for new connection... [14:49:08] Sock 9.Parse request [14:49:08]Sock 9.Check first char [14:49:08]Sock 9.First char is OK [14:49:08]request: POST /json_proto HTTP/1.0 [14:49:08]Method: POST [14:49:08]URL: /json_proto [14:49:08]Method is POST - this is cgi request [14:49:08]url: /json_proto [14:49:08]query_string will be loaded in cgi processing [14:49:08]execute_cgi json_proto POST (null) [14:49:08]execute_cgi path=json_proto method=POST [14:49:08]POST find Content-Length [14:49:08]Host: 172.17.41.136:8080 [14:49:08]Content-Length: 620 [14:49:08]Content-Type: application/json [14:49:08] [14:49:08]POST finish read [14:49:08]Found Content-Length = 620 [14:49:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343848", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:08]execute_script... [14:49:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343848", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:08]POST & json_proto [14:49:08]process_json_proto [14:49:08]json parsed OK: [14:49:08]protocol is kg_v1.0 [14:49:08]action value=close_receipt [14:49:08]process_action close_receipt [14:49:08]cmd_close_receipt [14:49:08]MH_GetDate [14:49:08]Write to MH i2c: F0 00 00 FF 11 FF [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: F0 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: F0 09 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: F0 09 00 FF 11 00 65 2E F0 66 1B D0 5A 64 9A [14:49:08]GetLastDocTimeStamp 1727016063 [14:49:08]current date 1727016549 [14:49:08]FM_GetShiftState [14:49:08]SAM_PROTO_GetShiftState [14:49:08]wFMCommunicate request_size=4 [14:49:08]MH_SAM_APDU [14:49:08]CAPDU: 80 13 01 00 [14:49:08]Write to MH i2c: E2 08 00 00 12 80 13 01 00 00 00 00 00 8F [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:08]Read from MH i2c: E2 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 0E 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 0E 00 00 12 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A8 [14:49:08]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:49:08]wFMCommunicate OK [14:49:08]SAM_PROTO_GetShiftState done [14:49:08]FM_GetShiftState done [14:49:08]opened in 1726965840 [14:49:08]opened+sec_in_day 1727052240 [14:49:08]quantity*price = 13900 [14:49:08]sum+1 = 13901 [14:49:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 123 22.09.2024 14:49 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115405 ФПД: 26836340300482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144909&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115405&fm=26836340300482&tin=02508201610067®Number=0000000000091831&sum=13900 0 [14:49:09]StoreToDocumentArchive [14:49:09]shift 471 fd 115405 [14:49:09]save to /storage/0471/doc_00115405 [14:49:09]save last doc name /storage/0471/doc_00115405 to /storage/kkm_last_doc_name [14:49:09]save OK [14:49:09]Clear old archive folders... [14:49:09]ProcessDocumentItem done err = 0, tmpTLVsize=272 [14:49:09]tlvbuf is 01C2D7A0 [14:49:09]SAM_PROTO_ClearQueue [14:49:09]wFMCommunicate request_size=4 [14:49:09]MH_SAM_APDU [14:49:09]CAPDU: 80 09 00 00 [14:49:09]Write to MH i2c: E2 08 00 0D 12 80 09 00 00 00 00 00 00 91 [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:09]Read from MH i2c: E2 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 03 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 03 00 0D 12 00 90 00 93 [14:49:09]RAPDU: 90 00 [14:49:09]wFMCommunicate OK [14:49:09]SAM_PROTO_ClearQueue done [14:49:09]KKMCreateOFDPacket [14:49:09]OFDProtocolAddRootSTLVToBuf [14:49:09]FM_MakeSignedData [14:49:09]FM_MakeSignedData [14:49:09]SAM_PROTO_SignData [14:49:09]wFMCommunicate request_size=4 [14:49:09]MH_SAM_APDU [14:49:09]CAPDU: 80 0D 01 02 [14:49:09]Write to MH i2c: E2 08 00 0E 12 80 0D 01 02 00 00 00 00 99 [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:09]Read from MH i2c: E2 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 03 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 03 00 0E 12 00 90 00 94 [14:49:09]RAPDU: 90 00 [14:49:09]wFMCommunicate OK [14:49:09]wFMCommunicate request_size=255 [14:49:09]MH_SAM_APDU [14:49:09]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 65 2E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [14:49:09]Write to MH i2c: E2 02 01 0F 12 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 65 2E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 03 [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:09]Read from MH i2c: E2 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 03 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 03 00 0F 12 00 90 00 95 [14:49:09]RAPDU: 90 00 [14:49:09]wFMCommunicate OK [14:49:09]wFMCommunicate request_size=31 [14:49:09]MH_SAM_APDU [14:49:09]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 33 30 10 04 04 00 CD C2 01 00 35 04 06 00 18 68 52 87 DA C2 [14:49:09]Write to MH i2c: E2 22 00 10 12 80 0D 02 02 1A 00 30 30 38 37 31 38 33 30 10 04 04 00 CD C2 01 00 35 04 06 00 18 68 52 87 DA C2 00 00 47 [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:09]Read from MH i2c: E2 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 03 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 03 00 10 12 00 90 00 96 [14:49:09]RAPDU: 90 00 [14:49:09]wFMCommunicate OK [14:49:09]wFMCommunicate request_size=4 [14:49:09]MH_SAM_APDU [14:49:09]CAPDU: 80 0D 03 02 [14:49:09]Write to MH i2c: E2 08 00 11 12 80 0D 03 02 00 00 00 00 9E [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:09]Read from MH i2c: E2 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 0B 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 0B 00 11 12 00 02 81 21 B8 40 E9 2F E3 90 00 36 [14:49:09]RAPDU: 02 81 21 B8 40 E9 2F E3 90 00 [14:49:09]wFMCommunicate OK [14:49:09]SAM_PROTO_SignData done [14:49:09]FM_MakeSignedData done [14:49:09]CreateOFDProtocolMessage [14:49:09]wFMCommunicate request_size=4 [14:49:09]MH_SAM_APDU [14:49:09]CAPDU: 80 11 00 00 [14:49:09]Write to MH i2c: E2 08 00 12 12 80 11 00 00 00 00 00 00 9E [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:09]Read from MH i2c: E2 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 17 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 17 00 12 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EC [14:49:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:49:09]wFMCommunicate OK [14:49:09]CreateOFDProtocolMessage done [14:49:09]OFDSenderStorePacket 115405 [14:49:09]StoreOFDPacket docnum=115405 [14:49:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 58 9E 1C 01 A1 E7 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 65 2E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CD C2 01 00 35 04 06 00 18 68 52 87 DA C2 02 81 21 B8 40 E9 2F E3 [14:49:09]CheckFolder [14:49:09]dirname=/storage/ofd_packets [14:49:09]CheckFolder done [14:49:09]ProducePacketName [14:49:09]name=ofd_packets/00115405 [14:49:09]NVStorageSaveData ofd_packets/00115405 [14:49:09]File name is /storage/ofd_packets/00115405 [14:49:09]Write 322 bytes [14:49:09]NVStorageSaveData done [14:49:09]OFDSenderStorePacket done [14:49:09]KKMCreateOFDPacket done [14:49:09]NVStorageSaveData kkm_last_timestamp [14:49:09]File name is /storage/kkm_last_timestamp [14:49:09]Write 4 bytes [14:49:09]NVStorageSaveData done [14:49:09]ExternCall_PrintAddStr [14:49:09]wPrintStart [14:49:09]Write to MH i2c: 01 00 00 13 12 25 [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: 01 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: 01 07 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: 01 07 00 13 12 00 00 00 00 00 FF 0F 3A [14:49:09]RasterBufferAndPrint [14:49:09]line Счет N : (3)343848 [14:49:09]line ИНН: 02508201610067 [14:49:09]line Контрольно-Кассовый Чек [14:49:09]line ПРОДАЖА [14:49:09]line Товар: 48745000 [14:49:09]line Сигареты Winston Purple Mix [14:49:09]line 1.000 * 139.00 [14:49:09]line = 139.00 [14:49:09]line НДС 12% НСП 1% [14:49:09]line > о реализуемом товаре [14:49:09]line ИТОГО: 139.00 [14:49:09]line НСП 1% : 1.23 [14:49:09]line НДС 12% : 14.76 [14:49:09]line Наличными: 139.00 [14:49:09]line Безнал.: 0.00 [14:49:09]line Место: АЗС № 90 "Партнер Нефть" [14:49:09]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:49:09]line СНО: Общий режим [14:49:09]line Чек 123 22.09.2024 14:49 [14:49:09]line Смена: 471 ФФД: 1.0 [14:49:09]line ЗНМ: 0300000120 [14:49:09]line РНМ: 0000000000091831 [14:49:09]line Версия ККМ: 001 [14:49:09]line ФМ: 0000000000871830 [14:49:09]line ФД: 115405 [14:49:09]line ФПД: 26836340300482 [14:49:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144909&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115405&fm=26836340300482&tin=02508201610067®Number=0000000000091831&sum=13900 [14:49:09]line 0 [14:49:09]written 0, free lines is 4095 [14:49:09]OFD Sender: Processing packet 115405 [packets to send 481, broken 480] [14:49:09]ProducePacketName [14:49:09]name=ofd_packets/00115405 [14:49:09]OFD Sender: To server: pG, [14:49:09]CommunicateWithHost lk.salyk.kg:30040 [14:49:09]ConnectInit lk.salyk.kg [14:49:09]Connected sock=8 [14:49:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 58 9E 1C 01 A1 E7 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 65 2E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CD C2 01 00 35 04 06 00 18 68 52 87 DA C2 02 81 21 B8 40 E9 2F E3 [14:49:10]Write to MH i2c: 01 00 00 3A 12 4C [14:49:10]Write i2c OK [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: 01 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: 01 07 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: 01 07 00 3A 12 00 00 00 00 00 87 0C E6 [14:49:10]RasterBufferAndPrint [14:49:10]line [14:49:10]line [14:49:10]line [14:49:10]line [14:49:10]line [14:49:10]written 0, free lines is 3212 [14:49:10]MH_Cut [14:49:10]Write to MH i2c: D1 01 00 41 12 01 25 [14:49:10]Write i2c OK [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: D1 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: D1 01 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: D1 01 00 41 12 00 24 [14:49:10]Write to MH i2c: 01 00 00 42 12 54 [14:49:10]Write i2c OK [14:49:10]MH_I2C_Read... [14:49:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 9F B8 47 00 6B 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CD C2 01 00 F4 03 04 00 AB D3 EF 66 B6 04 01 00 00 04 0B 33 4A 82 16 B8 40 [14:49:10]CommunicateWithHost err = 0 [14:49:10]CheckOFDResponse [14:49:10]1017 (14) - 77093643461234 [14:49:10]1041 (16) - 0000000000871830 [14:49:10]1040 (4) - 115405 [14:49:10]1012 (4) - 22.09.2024 08:22 [14:49:10]1206 (1) - 0 [14:49:10]OFD Sender: Remove packet 115405 [14:49:10]ProducePacketName [14:49:10]name=ofd_packets/00115405 [14:49:10]NVStorageDeleteData [14:49:10]OFD Sender: No OFD packet to send [14:49:11]*** Cut start [14:49:11]*** Partial cut [14:49:11]*** CUTSNS_PIN = 1 [14:49:11]*** CUTSNS_PIN = 0 [14:49:11]*** Brake cut motor [14:49:11]Read from MH i2c: 01 [14:49:11]MH_I2C_Read... [14:49:11]*** Stop cut motor [14:49:11]*** Cut end [14:49:11]Read from MH i2c: 01 07 00 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: 01 07 00 42 12 00 00 00 00 00 FF 0F 69 [14:49:11]process_action close_receipt done [14:49:11]requested_data is exist [14:49:11]produce_requested_data [14:49:11]requested_item fm.sn is exist - process it [14:49:11]wFMCommunicate request_size=4 [14:49:11]MH_SAM_APDU [14:49:11]CAPDU: 80 11 00 00 [14:49:11]Write to MH i2c: E2 08 00 43 12 80 11 00 00 00 00 00 00 CF [14:49:11]Write i2c OK [14:49:11]MH_I2C_Read... [14:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:11]Read from MH i2c: E2 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: E2 17 00 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: E2 17 00 43 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1D [14:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:49:11]wFMCommunicate OK [14:49:11]requested_item fd.num is exist - process it [14:49:11]SAM_PROTO_GetFieldsCounters [14:49:11]wFMCommunicate request_size=4 [14:49:11]MH_SAM_APDU [14:49:11]CAPDU: 80 13 00 00 [14:49:11]Write to MH i2c: E2 08 00 44 12 80 13 00 00 00 00 00 00 D2 [14:49:11]Write i2c OK [14:49:11]MH_I2C_Read... [14:49:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:12]Read from MH i2c: E2 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: E2 62 00 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: E2 62 00 44 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CD C2 01 00 0E 04 04 00 D7 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 C4 [14:49:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CD C2 01 00 0E 04 04 00 D7 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 [14:49:12]wFMCommunicate OK [14:49:12]SAM_PROTO_GetFieldsCounters done [14:49:12]requested_item shift.num is exist - process it [14:49:12]requested_item shift.opened is exist - process it [14:49:12]req_shift_opened [14:49:12]FM_GetShiftState [14:49:12]SAM_PROTO_GetShiftState [14:49:12]wFMCommunicate request_size=4 [14:49:12]MH_SAM_APDU [14:49:12]CAPDU: 80 13 01 00 [14:49:12]Write to MH i2c: E2 08 00 45 12 80 13 01 00 00 00 00 00 D4 [14:49:12]Write i2c OK [14:49:12]MH_I2C_Read... [14:49:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:12]Read from MH i2c: E2 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: E2 0E 00 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: E2 0E 00 45 12 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 ED [14:49:12]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:49:12]wFMCommunicate OK [14:49:12]SAM_PROTO_GetShiftState done [14:49:12]FM_GetShiftState done [14:49:12]req_shift_opened done [14:49:12]requested_item shift.open_date is exist - process it [14:49:12]req_shift_open_date [14:49:12]req_shift_open_date done [14:49:12]produce_requested_data done [14:49:12]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115405,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [14:49:12]process_action_free close_receipt [14:49:12]json_value_free [14:49:12]json_value_free done [14:49:12]process_json_proto returns [14:49:12]Send response to host [14:49:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115405,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [14:49:12]free response buf [14:49:12]execute_script done [14:49:12]execute_script returns [14:49:12]free content buf [14:49:12]Sock 9.Close socket [14:49:12]Sock 9.Thread stoped [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:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:29]accept exits with 10 [14:51:29]New connection [14:51:29]New thread 3066682724 created [14:51:29]Thread 3066826084 joined [14:51:29]Waiting for new connection... [14:51:29] Sock 10.Parse request [14:51:29]Sock 10.Check first char [14:51:29]Sock 10.First char is OK [14:51:29]request: POST /json_proto HTTP/1.0 [14:51:29]Method: POST [14:51:29]URL: /json_proto [14:51:29]Method is POST - this is cgi request [14:51:29]url: /json_proto [14:51:29]query_string will be loaded in cgi processing [14:51:29]execute_cgi json_proto POST (null) [14:51:29]execute_cgi path=json_proto method=POST [14:51:29]POST find Content-Length [14:51:29]Host: 172.17.41.136:8080 [14:51:29]Content-Length: 1251 [14:51:29]Content-Type: application/json [14:51:29] [14:51:29]POST finish read [14:51:29]Found Content-Length = 1251 [14:51:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343849", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 289.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:29]execute_script... [14:51:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343849", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 289.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:29]POST & json_proto [14:51:29]process_json_proto [14:51:29]json parsed OK: [14:51:29]protocol is kg_v1.0 [14:51:29]action value=close_receipt [14:51:29]process_action close_receipt [14:51:29]cmd_close_receipt [14:51:29]MH_GetDate [14:51:29]Write to MH i2c: F0 00 00 46 12 47 [14:51:29]Write i2c OK [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: F0 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: F0 09 00 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: F0 09 00 46 12 00 F3 2E F0 66 1B D0 5A 64 70 [14:51:29]GetLastDocTimeStamp 1727016549 [14:51:29]current date 1727016691 [14:51:29]FM_GetShiftState [14:51:29]SAM_PROTO_GetShiftState [14:51:29]wFMCommunicate request_size=4 [14:51:29]MH_SAM_APDU [14:51:29]CAPDU: 80 13 01 00 [14:51:29]Write to MH i2c: E2 08 00 47 12 80 13 01 00 00 00 00 00 D6 [14:51:29]Write i2c OK [14:51:29]MH_I2C_Read... [14:51:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:29]Read from MH i2c: E2 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: E2 0E 00 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: E2 0E 00 47 12 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 EF [14:51:29]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:51:29]wFMCommunicate OK [14:51:29]SAM_PROTO_GetShiftState done [14:51:29]FM_GetShiftState done [14:51:29]opened in 1726965840 [14:51:29]opened+sec_in_day 1727052240 [14:51:29]quantity*price = 5000 [14:51:29]sum+1 = 5001 [14:51:29]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870233466272 Мороженое Пломбир Миша 2.000 * 77.00 = 154.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 289.00 НСП 1% : 2.55 НДС 12% : 30.69 Наличными: 289.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 124 22.09.2024 14:51 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115406 ФПД: 231614119265209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145131&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115406&fm=231614119265209&tin=02508201610067®Number=0000000000091831&sum=28900 0 [14:51:30]StoreToDocumentArchive [14:51:30]shift 471 fd 115406 [14:51:30]save to /storage/0471/doc_00115406 [14:51:30]save last doc name /storage/0471/doc_00115406 to /storage/kkm_last_doc_name [14:51:30]save OK [14:51:30]Clear old archive folders... [14:51:30]ProcessDocumentItem done err = 0, tmpTLVsize=512 [14:51:30]tlvbuf is 01BFF1D0 [14:51:30]SAM_PROTO_ClearQueue [14:51:30]wFMCommunicate request_size=4 [14:51:30]MH_SAM_APDU [14:51:30]CAPDU: 80 09 00 00 [14:51:30]Write to MH i2c: E2 08 00 54 12 80 09 00 00 00 00 00 00 D8 [14:51:30]Write i2c OK [14:51:30]MH_I2C_Read... [14:51:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:30]Read from MH i2c: E2 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: E2 03 00 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: E2 03 00 54 12 00 90 00 DA [14:51:30]RAPDU: 90 00 [14:51:30]wFMCommunicate OK [14:51:30]SAM_PROTO_ClearQueue done [14:51:30]KKMCreateOFDPacket [14:51:30]OFDProtocolAddRootSTLVToBuf [14:51:30]FM_MakeSignedData [14:51:30]FM_MakeSignedData [14:51:30]SAM_PROTO_SignData [14:51:30]wFMCommunicate request_size=4 [14:51:30]MH_SAM_APDU [14:51:30]CAPDU: 80 0D 01 02 [14:51:30]Write to MH i2c: E2 08 00 55 12 80 0D 01 02 00 00 00 00 E0 [14:51:30]Write i2c OK [14:51:30]MH_I2C_Read... [14:51:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:30]Read from MH i2c: E2 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: E2 03 00 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: E2 03 00 55 12 00 90 00 DB [14:51:30]RAPDU: 90 00 [14:51:30]wFMCommunicate OK [14:51:30]wFMCommunicate request_size=255 [14:51:30]MH_SAM_APDU [14:51:30]CAPDU: 80 0D 02 02 FA 03 00 00 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 [14:51:31]Write to MH i2c: E2 02 01 56 12 80 0D 02 02 FA 00 03 00 00 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 00 00 32 [14:51:31]OFD Sender: No OFD packet to send [14:51:31]Write i2c OK [14:51:31]MH_I2C_Read... [14:51:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:31]Read from MH i2c: E2 [14:51:31]MH_I2C_Read... [14:51:31]Read from MH i2c: E2 03 00 [14:51:31]MH_I2C_Read... [14:51:31]Read from MH i2c: E2 03 00 56 12 00 90 00 DC [14:51:31]RAPDU: 90 00 [14:51:31]wFMCommunicate OK [14:51:31]wFMCommunicate request_size=255 [14:51:31]MH_SAM_APDU [14:51:31]CAPDU: 80 0D 02 02 FA 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 0B 00 00 00 00 07 04 06 00 E4 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 F3 2E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 [14:51:31]Write to MH i2c: E2 02 01 57 12 80 0D 02 02 FA 00 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 0B 00 00 00 00 07 04 06 00 E4 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 F3 2E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 00 00 A9 [14:51:31]Write i2c OK [14:51:31]MH_I2C_Read... [14:51:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:31]Read from MH i2c: E2 [14:51:31]MH_I2C_Read... [14:51:31]Read from MH i2c: E2 03 00 [14:51:31]MH_I2C_Read... [14:51:31]Read from MH i2c: E2 03 00 57 12 00 90 00 DD [14:51:31]RAPDU: 90 00 [14:51:31]wFMCommunicate OK [14:51:31]wFMCommunicate request_size=21 [14:51:31]MH_SAM_APDU [14:51:31]CAPDU: 80 0D 02 02 10 04 00 CE C2 01 00 35 04 06 00 D2 A6 DD 4D C3 B9 [14:51:31]Write to MH i2c: E2 18 00 58 12 80 0D 02 02 10 00 04 00 CE C2 01 00 35 04 06 00 D2 A6 DD 4D C3 B9 00 00 F6 [14:51:31]Write i2c OK [14:51:31]MH_I2C_Read... [14:51:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:31]Read from MH i2c: E2 [14:51:31]MH_I2C_Read... [14:51:31]Read from MH i2c: E2 03 00 [14:51:31]MH_I2C_Read... [14:51:31]Read from MH i2c: E2 03 00 58 12 00 90 00 DE [14:51:31]RAPDU: 90 00 [14:51:31]wFMCommunicate OK [14:51:31]wFMCommunicate request_size=4 [14:51:31]MH_SAM_APDU [14:51:31]CAPDU: 80 0D 03 02 [14:51:31]Write to MH i2c: E2 08 00 59 12 80 0D 03 02 00 00 00 00 E6 [14:51:31]Write i2c OK [14:51:31]MH_I2C_Read... [14:51:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:31]Read from MH i2c: E2 [14:51:31]MH_I2C_Read... [14:51:31]Read from MH i2c: E2 0B 00 [14:51:31]MH_I2C_Read... [14:51:31]Read from MH i2c: E2 0B 00 59 12 00 BD A9 98 92 FE 0F 8A 91 90 00 9F [14:51:31]RAPDU: BD A9 98 92 FE 0F 8A 91 90 00 [14:51:31]wFMCommunicate OK [14:51:31]SAM_PROTO_SignData done [14:51:31]FM_MakeSignedData done [14:51:31]CreateOFDProtocolMessage [14:51:31]wFMCommunicate request_size=4 [14:51:31]MH_SAM_APDU [14:51:31]CAPDU: 80 11 00 00 [14:51:31]Write to MH i2c: E2 08 00 5A 12 80 11 00 00 00 00 00 00 E6 [14:51:31]Write i2c OK [14:51:31]MH_I2C_Read... [14:51:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:31]Read from MH i2c: E2 [14:51:31]MH_I2C_Read... [14:51:31]Read from MH i2c: E2 17 00 [14:51:31]MH_I2C_Read... [14:51:31]Read from MH i2c: E2 17 00 5A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 34 [14:51:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:51:31]wFMCommunicate OK [14:51:31]CreateOFDProtocolMessage done [14:51:31]OFDSenderStorePacket 115406 [14:51:31]StoreOFDPacket docnum=115406 [14:51:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 14 02 00 00 1A A2 0C 02 BA AB 5A 03 01 00 03 00 00 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 0B 00 00 00 00 07 04 06 00 E4 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 F3 2E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CE C2 01 00 35 04 06 00 D2 A6 DD 4D C3 B9 BD A9 98 92 FE 0F 8A 91 [14:51:31]CheckFolder [14:51:31]dirname=/storage/ofd_packets [14:51:31]CheckFolder done [14:51:31]ProducePacketName [14:51:31]name=ofd_packets/00115406 [14:51:31]NVStorageSaveData ofd_packets/00115406 [14:51:31]File name is /storage/ofd_packets/00115406 [14:51:31]Write 562 bytes [14:51:31]NVStorageSaveData done [14:51:31]OFDSenderStorePacket done [14:51:31]KKMCreateOFDPacket done [14:51:31]NVStorageSaveData kkm_last_timestamp [14:51:31]File name is /storage/kkm_last_timestamp [14:51:31]Write 4 bytes [14:51:31]NVStorageSaveData done [14:51:31]ExternCall_PrintAddStr [14:51:31]wPrintStart [14:51:31]Write to MH i2c: 01 00 00 5B 12 6D [14:51:31]Write i2c OK [14:51:31]MH_I2C_Read... [14:51:31]Read from MH i2c: 01 [14:51:31]MH_I2C_Read... [14:51:31]Read from MH i2c: 01 07 00 [14:51:31]MH_I2C_Read... [14:51:31]Read from MH i2c: 01 07 00 5B 12 00 00 00 00 00 FF 0F 82 [14:51:31]RasterBufferAndPrint [14:51:31]line Счет N : (3)343849 [14:51:31]line ИНН: 02508201610067 [14:51:31]line Контрольно-Кассовый Чек [14:51:31]line ПРОДАЖА [14:51:31]line Товар: 4700000160358 [14:51:31]line Вода Легенда 1л [14:51:31]line 1.000 * 50.00 [14:51:31]line = 50.00 [14:51:31]line НДС 12% НСП 1% [14:51:31]line > о реализуемом товаре [14:51:31]line Товар: 4660085515163 [14:51:31]line Шок Батончик Сникерс супер 95/80г [14:51:31]line 1.000 * 85.00 [14:51:31]line = 85.00 [14:51:31]line НДС 12% НСП 1% [14:51:31]line > о реализуемом товаре [14:51:31]line Товар: 4870233466272 [14:51:31]line Мороженое Пломбир Миша [14:51:31]line 2.000 * 77.00 [14:51:31]line = 154.00 [14:51:31]line НДС 12% НСП 1% [14:51:31]line > о реализуемом товаре [14:51:31]line ИТОГО: 289.00 [14:51:31]line НСП 1% : 2.55 [14:51:31]line НДС 12% : 30.69 [14:51:31]line Наличными: 289.00 [14:51:31]line Безнал.: 0.00 [14:51:31]line Место: АЗС № 90 "Партнер Нефть" [14:51:31]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:51:31]line СНО: Общий режим [14:51:31]line Чек 124 22.09.2024 14:51 [14:51:31]line Смена: 471 ФФД: 1.0 [14:51:31]line ЗНМ: 0300000120 [14:51:31]line РНМ: 0000000000091831 [14:51:31]line Версия ККМ: 001 [14:51:31]line ФМ: 0000000000871830 [14:51:31]line ФД: 115406 [14:51:31]line ФПД: 231614119265209 [14:51:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145131&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115406&fm=231614119265209&tin=02508201610067®Number=0000000000091831&sum=28900 [14:51:31]line 0 [14:51:31]written 0, free lines is 4095 [14:51:32]OFD Sender: Processing packet 115406 [packets to send 481, broken 480] [14:51:32]ProducePacketName [14:51:32]name=ofd_packets/00115406 [14:51:32]OFD Sender: To server: pG, [14:51:32]CommunicateWithHost lk.salyk.kg:30040 [14:51:32]ConnectInit lk.salyk.kg [14:51:32]Connected sock=9 [14:51:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 14 02 00 00 1A A2 0C 02 BA AB 5A 03 01 00 03 00 00 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 0B 00 00 00 00 07 04 06 00 E4 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 F3 2E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CE C2 01 00 35 04 06 00 D2 A6 DD 4D C3 B9 BD A9 98 92 FE 0F 8A 91 [14:51:32]Write to MH i2c: 01 00 00 8F 12 A1 [14:51:32]Write i2c OK [14:51:32]MH_I2C_Read... [14:51:32]Read from MH i2c: 01 [14:51:32]MH_I2C_Read... [14:51:32]Read from MH i2c: 01 07 00 [14:51:32]MH_I2C_Read... [14:51:32]Read from MH i2c: 01 07 00 8F 12 00 00 00 00 00 85 0B 38 [14:51:32]RasterBufferAndPrint [14:51:32]line [14:51:32]line [14:51:32]line [14:51:32]line [14:51:32]line [14:51:32]written 0, free lines is 2952 [14:51:32]MH_Cut [14:51:32]Write to MH i2c: D1 01 00 96 12 01 7A [14:51:32]Write i2c OK [14:51:32]MH_I2C_Read... [14:51:32]Read from MH i2c: D1 [14:51:32]MH_I2C_Read... [14:51:32]Read from MH i2c: D1 01 00 [14:51:32]MH_I2C_Read... [14:51:32]Read from MH i2c: D1 01 00 96 12 00 79 [14:51:32]Write to MH i2c: 01 00 00 97 12 A9 [14:51:32]Write i2c OK [14:51:32]MH_I2C_Read... [14:51:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 8F D9 47 00 51 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CE C2 01 00 F4 03 04 00 39 D4 EF 66 B6 04 01 00 00 3D 34 CE D3 5D E6 6C 15 [14:51:32]CommunicateWithHost err = 0 [14:51:32]CheckOFDResponse [14:51:32]1017 (14) - 77093643461234 [14:51:32]1041 (16) - 0000000000871830 [14:51:32]1040 (4) - 115406 [14:51:32]1012 (4) - 22.09.2024 08:24 [14:51:32]1206 (1) - 0 [14:51:32]OFD Sender: Remove packet 115406 [14:51:32]ProducePacketName [14:51:32]name=ofd_packets/00115406 [14:51:32]NVStorageDeleteData [14:51:33]OFD Sender: No OFD packet to send [14:51:34]*** Cut start [14:51:34]*** Partial cut [14:51:34]*** CUTSNS_PIN = 1 [14:51:34]*** CUTSNS_PIN = 0 [14:51:34]*** Brake cut motor [14:51:34]Read from MH i2c: 01 [14:51:34]MH_I2C_Read... [14:51:34]*** Stop cut motor [14:51:34]*** Cut end [14:51:34]Read from MH i2c: 01 07 00 [14:51:34]MH_I2C_Read... [14:51:34]Read from MH i2c: 01 07 00 97 12 00 00 00 00 00 FF 0F BE [14:51:34]process_action close_receipt done [14:51:34]requested_data is exist [14:51:34]produce_requested_data [14:51:34]requested_item fm.sn is exist - process it [14:51:34]wFMCommunicate request_size=4 [14:51:34]MH_SAM_APDU [14:51:34]CAPDU: 80 11 00 00 [14:51:34]Write to MH i2c: E2 08 00 98 12 80 11 00 00 00 00 00 00 24 [14:51:34]Write i2c OK [14:51:34]MH_I2C_Read... [14:51:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:34]Read from MH i2c: E2 [14:51:34]MH_I2C_Read... [14:51:34]Read from MH i2c: E2 17 00 [14:51:34]MH_I2C_Read... [14:51:34]Read from MH i2c: E2 17 00 98 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 72 [14:51:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:51:34]wFMCommunicate OK [14:51:34]requested_item fd.num is exist - process it [14:51:34]SAM_PROTO_GetFieldsCounters [14:51:34]wFMCommunicate request_size=4 [14:51:34]MH_SAM_APDU [14:51:34]CAPDU: 80 13 00 00 [14:51:34]Write to MH i2c: E2 08 00 99 12 80 13 00 00 00 00 00 00 27 [14:51:34]Write i2c OK [14:51:34]MH_I2C_Read... [14:51:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:34]Read from MH i2c: E2 [14:51:34]MH_I2C_Read... [14:51:34]Read from MH i2c: E2 62 00 [14:51:34]MH_I2C_Read... [14:51:34]Read from MH i2c: E2 62 00 99 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CE C2 01 00 0E 04 04 00 D7 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 1D [14:51:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CE C2 01 00 0E 04 04 00 D7 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 [14:51:34]wFMCommunicate OK [14:51:34]SAM_PROTO_GetFieldsCounters done [14:51:34]requested_item shift.num is exist - process it [14:51:34]requested_item shift.opened is exist - process it [14:51:34]req_shift_opened [14:51:34]FM_GetShiftState [14:51:34]SAM_PROTO_GetShiftState [14:51:34]wFMCommunicate request_size=4 [14:51:34]MH_SAM_APDU [14:51:34]CAPDU: 80 13 01 00 [14:51:34]Write to MH i2c: E2 08 00 9A 12 80 13 01 00 00 00 00 00 29 [14:51:34]Write i2c OK [14:51:34]MH_I2C_Read... [14:51:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:34]Read from MH i2c: E2 [14:51:34]MH_I2C_Read... [14:51:34]Read from MH i2c: E2 0E 00 [14:51:34]MH_I2C_Read... [14:51:34]Read from MH i2c: E2 0E 00 9A 12 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 42 [14:51:34]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:51:34]wFMCommunicate OK [14:51:34]SAM_PROTO_GetShiftState done [14:51:34]FM_GetShiftState done [14:51:34]req_shift_opened done [14:51:34]requested_item shift.open_date is exist - process it [14:51:34]req_shift_open_date [14:51:34]req_shift_open_date done [14:51:34]produce_requested_data done [14:51:34]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115406,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [14:51:34]process_action_free close_receipt [14:51:34]json_value_free [14:51:34]json_value_free done [14:51:34]process_json_proto returns [14:51:34]Send response to host [14:51:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115406,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [14:51:34]free response buf [14:51:34]execute_script done [14:51:34]execute_script returns [14:51:34]free content buf [14:51:34]Sock 10.Close socket [14:51:34]Sock 10.Thread stoped [14:51:38]OFD Sender: No OFD packet to send [14:51:43]OFD Sender: No OFD packet to send [14:51:48]OFD Sender: No OFD packet to send [14:51:53]OFD Sender: No OFD packet to send [14:51:58]OFD Sender: No OFD packet to send [14:52:03]OFD Sender: No OFD packet to send [14:52:08]OFD Sender: No OFD packet to send [14:52:13]OFD Sender: No OFD packet to send [14:52:18]OFD Sender: No OFD packet to send [14:52:23]OFD Sender: No OFD packet to send [14:52:28]OFD Sender: No OFD packet to send [14:52:33]OFD Sender: No OFD packet to send [14:52:38]OFD Sender: No OFD packet to send [14:52:43]OFD Sender: No OFD packet to send [14:52:48]OFD Sender: No OFD packet to send [14:52:53]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:53:03]OFD Sender: No OFD packet to send [14:53:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:47]accept exits with 8 [14:53:47]New connection [14:53:47]New thread 3066826084 created [14:53:47]Thread 3066682724 joined [14:53:47]Waiting for new connection... [14:53:47] Sock 8.Parse request [14:53:47]Sock 8.Check first char [14:53:47]Sock 8.First char is OK [14:53:47]request: POST /json_proto HTTP/1.0 [14:53:47]Method: POST [14:53:47]URL: /json_proto [14:53:47]Method is POST - this is cgi request [14:53:47]url: /json_proto [14:53:47]query_string will be loaded in cgi processing [14:53:47]execute_cgi json_proto POST (null) [14:53:47]execute_cgi path=json_proto method=POST [14:53:47]POST find Content-Length [14:53:47]Host: 172.17.41.136:8080 [14:53:47]Content-Length: 622 [14:53:47]Content-Type: application/json [14:53:47] [14:53:47]POST finish read [14:53:47]Found Content-Length = 622 [14:53:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343850", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:47]execute_script... [14:53:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343850", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:47]POST & json_proto [14:53:47]process_json_proto [14:53:47]json parsed OK: [14:53:47]protocol is kg_v1.0 [14:53:47]action value=close_receipt [14:53:47]process_action close_receipt [14:53:47]cmd_close_receipt [14:53:47]MH_GetDate [14:53:47]Write to MH i2c: F0 00 00 9B 12 9C [14:53:47]Write i2c OK [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: F0 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: F0 09 00 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: F0 09 00 9B 12 00 7C 2F F0 66 1B D0 5A 64 4F [14:53:47]GetLastDocTimeStamp 1727016691 [14:53:47]current date 1727016828 [14:53:47]FM_GetShiftState [14:53:47]SAM_PROTO_GetShiftState [14:53:47]wFMCommunicate request_size=4 [14:53:47]MH_SAM_APDU [14:53:47]CAPDU: 80 13 01 00 [14:53:47]Write to MH i2c: E2 08 00 9C 12 80 13 01 00 00 00 00 00 2B [14:53:47]Write i2c OK [14:53:47]MH_I2C_Read... [14:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:47]Read from MH i2c: E2 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 0E 00 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 0E 00 9C 12 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 44 [14:53:47]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:53:47]wFMCommunicate OK [14:53:47]SAM_PROTO_GetShiftState done [14:53:47]FM_GetShiftState done [14:53:47]opened in 1726965840 [14:53:47]opened+sec_in_day 1727052240 [14:53:47]quantity*price = 15000 [14:53:47]sum+1 = 15001 [14:53:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 125 22.09.2024 14:53 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115407 ФПД: 106883659463692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145348&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115407&fm=106883659463692&tin=02508201610067®Number=0000000000091831&sum=15000 0 [14:53:48]StoreToDocumentArchive [14:53:48]shift 471 fd 115407 [14:53:48]save to /storage/0471/doc_00115407 [14:53:48]save last doc name /storage/0471/doc_00115407 to /storage/kkm_last_doc_name [14:53:48]save OK [14:53:48]Clear old archive folders... [14:53:48]ProcessDocumentItem done err = 0, tmpTLVsize=274 [14:53:48]tlvbuf is 01BF4800 [14:53:48]SAM_PROTO_ClearQueue [14:53:48]wFMCommunicate request_size=4 [14:53:48]MH_SAM_APDU [14:53:48]CAPDU: 80 09 00 00 [14:53:48]Write to MH i2c: E2 08 00 A9 12 80 09 00 00 00 00 00 00 2D [14:53:48]Write i2c OK [14:53:48]MH_I2C_Read... [14:53:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:48]Read from MH i2c: E2 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 03 00 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 03 00 A9 12 00 90 00 2F [14:53:48]RAPDU: 90 00 [14:53:48]wFMCommunicate OK [14:53:48]SAM_PROTO_ClearQueue done [14:53:48]KKMCreateOFDPacket [14:53:48]OFDProtocolAddRootSTLVToBuf [14:53:48]FM_MakeSignedData [14:53:48]FM_MakeSignedData [14:53:48]SAM_PROTO_SignData [14:53:48]wFMCommunicate request_size=4 [14:53:48]MH_SAM_APDU [14:53:48]CAPDU: 80 0D 01 02 [14:53:48]Write to MH i2c: E2 08 00 AA 12 80 0D 01 02 00 00 00 00 35 [14:53:48]Write i2c OK [14:53:48]MH_I2C_Read... [14:53:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:48]Read from MH i2c: E2 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 03 00 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 03 00 AA 12 00 90 00 30 [14:53:48]RAPDU: 90 00 [14:53:48]wFMCommunicate OK [14:53:48]wFMCommunicate request_size=255 [14:53:48]MH_SAM_APDU [14:53:48]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 7C 2F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 [14:53:48]Write to MH i2c: E2 02 01 AB 12 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 7C 2F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 00 00 25 [14:53:48]Write i2c OK [14:53:48]MH_I2C_Read... [14:53:48]OFD Sender: No OFD packet to send [14:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:48]Read from MH i2c: E2 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 03 00 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 03 00 AB 12 00 90 00 31 [14:53:48]RAPDU: 90 00 [14:53:48]wFMCommunicate OK [14:53:48]wFMCommunicate request_size=33 [14:53:48]MH_SAM_APDU [14:53:48]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CF C2 01 00 35 04 06 00 61 35 CA 8D FC 0C [14:53:48]Write to MH i2c: E2 24 00 AC 12 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CF C2 01 00 35 04 06 00 61 35 CA 8D FC 0C 00 00 49 [14:53:48]Write i2c OK [14:53:48]MH_I2C_Read... [14:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:48]Read from MH i2c: E2 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 03 00 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 03 00 AC 12 00 90 00 32 [14:53:48]RAPDU: 90 00 [14:53:48]wFMCommunicate OK [14:53:48]wFMCommunicate request_size=4 [14:53:48]MH_SAM_APDU [14:53:48]CAPDU: 80 0D 03 02 [14:53:48]Write to MH i2c: E2 08 00 AD 12 80 0D 03 02 00 00 00 00 3A [14:53:48]Write i2c OK [14:53:48]MH_I2C_Read... [14:53:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:48]Read from MH i2c: E2 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 0B 00 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 0B 00 AD 12 00 08 87 F2 FE 59 32 28 4F 90 00 BC [14:53:48]RAPDU: 08 87 F2 FE 59 32 28 4F 90 00 [14:53:48]wFMCommunicate OK [14:53:48]SAM_PROTO_SignData done [14:53:48]FM_MakeSignedData done [14:53:48]CreateOFDProtocolMessage [14:53:48]wFMCommunicate request_size=4 [14:53:48]MH_SAM_APDU [14:53:48]CAPDU: 80 11 00 00 [14:53:48]Write to MH i2c: E2 08 00 AE 12 80 11 00 00 00 00 00 00 3A [14:53:48]Write i2c OK [14:53:48]MH_I2C_Read... [14:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:48]Read from MH i2c: E2 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 17 00 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 17 00 AE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 88 [14:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:53:48]wFMCommunicate OK [14:53:48]CreateOFDProtocolMessage done [14:53:48]OFDSenderStorePacket 115407 [14:53:48]StoreOFDPacket docnum=115407 [14:53:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 26 01 00 00 70 55 1E 01 34 CE 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 7C 2F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CF C2 01 00 35 04 06 00 61 35 CA 8D FC 0C 08 87 F2 FE 59 32 28 4F [14:53:48]CheckFolder [14:53:48]dirname=/storage/ofd_packets [14:53:48]CheckFolder done [14:53:48]ProducePacketName [14:53:48]name=ofd_packets/00115407 [14:53:48]NVStorageSaveData ofd_packets/00115407 [14:53:48]File name is /storage/ofd_packets/00115407 [14:53:48]Write 324 bytes [14:53:48]NVStorageSaveData done [14:53:48]OFDSenderStorePacket done [14:53:48]KKMCreateOFDPacket done [14:53:48]NVStorageSaveData kkm_last_timestamp [14:53:48]File name is /storage/kkm_last_timestamp [14:53:48]Write 4 bytes [14:53:48]NVStorageSaveData done [14:53:48]ExternCall_PrintAddStr [14:53:48]wPrintStart [14:53:48]Write to MH i2c: 01 00 00 AF 12 C1 [14:53:48]OFD Sender: Processing packet 115407 [packets to send 481, broken 480] [14:53:48]ProducePacketName [14:53:48]name=ofd_packets/00115407 [14:53:48]OFD Sender: To server: pG, [14:53:48]CommunicateWithHost lk.salyk.kg:30040 [14:53:48]ConnectInit lk.salyk.kg [14:53:48]Write i2c OK [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: 01 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: 01 07 00 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: 01 07 00 AF 12 00 00 00 00 00 FF 0F D6 [14:53:48]RasterBufferAndPrint [14:53:48]line Счет N : (3)343850 [14:53:48]line ИНН: 02508201610067 [14:53:48]line Контрольно-Кассовый Чек [14:53:48]line ПРОДАЖА [14:53:48]line Товар: 4640030091645 [14:53:48]line Сигареты ESSE Exchange M [14:53:48]line 1.000 * 150.00 [14:53:48]line = 150.00 [14:53:48]line НДС 12% НСП 1% [14:53:48]line > о реализуемом товаре [14:53:48]line ИТОГО: 150.00 [14:53:48]line НСП 1% : 1.33 [14:53:48]line НДС 12% : 15.93 [14:53:48]line Наличными: 150.00 [14:53:48]line Безнал.: 0.00 [14:53:48]line Место: АЗС № 90 "Партнер Нефть" [14:53:48]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:53:48]line СНО: Общий режим [14:53:48]line Чек 125 22.09.2024 14:53 [14:53:48]line Смена: 471 ФФД: 1.0 [14:53:48]line ЗНМ: 0300000120 [14:53:48]line РНМ: 0000000000091831 [14:53:48]line Версия ККМ: 001 [14:53:48]line ФМ: 0000000000871830 [14:53:48]line ФД: 115407 [14:53:48]line ФПД: 106883659463692 [14:53:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145348&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115407&fm=106883659463692&tin=02508201610067®Number=0000000000091831&sum=15000 [14:53:49]Connected sock=10 [14:53:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 26 01 00 00 70 55 1E 01 34 CE 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 7C 2F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CF C2 01 00 35 04 06 00 61 35 CA 8D FC 0C 08 87 F2 FE 59 32 28 4F [14:53:49]line 0 [14:53:49]written 0, free lines is 4095 [14:53:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 94 E5 47 00 0E D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CF C2 01 00 F4 03 04 00 C2 D4 EF 66 B6 04 01 00 00 BE BB 09 A2 BB 20 2D 7A [14:53:49]CommunicateWithHost err = 0 [14:53:49]CheckOFDResponse [14:53:49]1017 (14) - 77093643461234 [14:53:49]1041 (16) - 0000000000871830 [14:53:49]1040 (4) - 115407 [14:53:49]1012 (4) - 22.09.2024 08:26 [14:53:49]1206 (1) - 0 [14:53:49]OFD Sender: Remove packet 115407 [14:53:49]ProducePacketName [14:53:49]name=ofd_packets/00115407 [14:53:49]NVStorageDeleteData [14:53:49]Write to MH i2c: 01 00 00 D6 12 E8 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: 01 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: 01 07 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: 01 07 00 D6 12 00 00 00 00 00 7E 0C 79 [14:53:49]RasterBufferAndPrint [14:53:49]line [14:53:49]line [14:53:49]line [14:53:49]line [14:53:49]line [14:53:49]written 0, free lines is 3203 [14:53:49]MH_Cut [14:53:49]Write to MH i2c: D1 01 00 DD 12 01 C1 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: D1 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: D1 01 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: D1 01 00 DD 12 00 C0 [14:53:49]Write to MH i2c: 01 00 00 DE 12 F0 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:50]OFD Sender: No OFD packet to send [14:53:50]*** Cut start [14:53:50]*** Partial cut [14:53:50]*** CUTSNS_PIN = 1 [14:53:50]*** CUTSNS_PIN = 0 [14:53:51]*** Brake cut motor [14:53:51]Read from MH i2c: 01 [14:53:51]MH_I2C_Read... [14:53:51]*** Stop cut motor [14:53:51]*** Cut end [14:53:51]Read from MH i2c: 01 07 00 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: 01 07 00 DE 12 00 00 00 00 00 FF 0F 05 [14:53:51]process_action close_receipt done [14:53:51]requested_data is exist [14:53:51]produce_requested_data [14:53:51]requested_item fm.sn is exist - process it [14:53:51]wFMCommunicate request_size=4 [14:53:51]MH_SAM_APDU [14:53:51]CAPDU: 80 11 00 00 [14:53:51]Write to MH i2c: E2 08 00 DF 12 80 11 00 00 00 00 00 00 6B [14:53:51]Write i2c OK [14:53:51]MH_I2C_Read... [14:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:51]Read from MH i2c: E2 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 17 00 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 17 00 DF 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B9 [14:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:53:51]wFMCommunicate OK [14:53:51]requested_item fd.num is exist - process it [14:53:51]SAM_PROTO_GetFieldsCounters [14:53:51]wFMCommunicate request_size=4 [14:53:51]MH_SAM_APDU [14:53:51]CAPDU: 80 13 00 00 [14:53:51]Write to MH i2c: E2 08 00 E0 12 80 13 00 00 00 00 00 00 6E [14:53:51]Write i2c OK [14:53:51]MH_I2C_Read... [14:53:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:51]Read from MH i2c: E2 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 62 00 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 62 00 E0 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CF C2 01 00 0E 04 04 00 D7 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 68 [14:53:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CF C2 01 00 0E 04 04 00 D7 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 [14:53:51]wFMCommunicate OK [14:53:51]SAM_PROTO_GetFieldsCounters done [14:53:51]requested_item shift.num is exist - process it [14:53:51]requested_item shift.opened is exist - process it [14:53:51]req_shift_opened [14:53:51]FM_GetShiftState [14:53:51]SAM_PROTO_GetShiftState [14:53:51]wFMCommunicate request_size=4 [14:53:51]MH_SAM_APDU [14:53:51]CAPDU: 80 13 01 00 [14:53:51]Write to MH i2c: E2 08 00 E1 12 80 13 01 00 00 00 00 00 70 [14:53:51]Write i2c OK [14:53:51]MH_I2C_Read... [14:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:51]Read from MH i2c: E2 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 0E 00 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 0E 00 E1 12 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 89 [14:53:51]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [14:53:51]wFMCommunicate OK [14:53:51]SAM_PROTO_GetShiftState done [14:53:51]FM_GetShiftState done [14:53:51]req_shift_opened done [14:53:51]requested_item shift.open_date is exist - process it [14:53:51]req_shift_open_date [14:53:51]req_shift_open_date done [14:53:51]produce_requested_data done [14:53:51]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115407,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [14:53:51]process_action_free close_receipt [14:53:51]json_value_free [14:53:51]json_value_free done [14:53:51]process_json_proto returns [14:53:51]Send response to host [14:53:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115407,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [14:53:51]free response buf [14:53:51]execute_script done [14:53:51]execute_script returns [14:53:51]free content buf [14:53:51]Sock 8.Close socket [14:53:51]Sock 8.Thread stoped [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:23]accept exits with 9 [15:03:23]New connection [15:03:23]New thread 3066682724 created [15:03:23]Thread 3066826084 joined [15:03:23]Waiting for new connection... [15:03:23] Sock 9.Parse request [15:03:23]Sock 9.Check first char [15:03:23]Sock 9.First char is OK [15:03:23]request: POST /json_proto HTTP/1.0 [15:03:23]Method: POST [15:03:23]URL: /json_proto [15:03:23]Method is POST - this is cgi request [15:03:23]url: /json_proto [15:03:23]query_string will be loaded in cgi processing [15:03:23]execute_cgi json_proto POST (null) [15:03:23]execute_cgi path=json_proto method=POST [15:03:23]POST find Content-Length [15:03:23]Host: 172.17.41.136:8080 [15:03:23]Content-Length: 630 [15:03:23]Content-Type: application/json [15:03:23] [15:03:23]POST finish read [15:03:23]Found Content-Length = 630 [15:03:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343851", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:23]execute_script... [15:03:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343851", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:23]POST & json_proto [15:03:23]process_json_proto [15:03:23]json parsed OK: [15:03:23]protocol is kg_v1.0 [15:03:23]action value=close_receipt [15:03:23]process_action close_receipt [15:03:23]cmd_close_receipt [15:03:23]MH_GetDate [15:03:23]Write to MH i2c: F0 00 00 E2 12 E3 [15:03:23]Write i2c OK [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: F0 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: F0 09 00 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: F0 09 00 E2 12 00 BC 31 F0 66 1B D0 5A 64 D8 [15:03:23]GetLastDocTimeStamp 1727016828 [15:03:23]current date 1727017404 [15:03:23]FM_GetShiftState [15:03:23]SAM_PROTO_GetShiftState [15:03:23]wFMCommunicate request_size=4 [15:03:23]MH_SAM_APDU [15:03:23]CAPDU: 80 13 01 00 [15:03:23]Write to MH i2c: E2 08 00 E3 12 80 13 01 00 00 00 00 00 72 [15:03:23]Write i2c OK [15:03:23]MH_I2C_Read... [15:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:23]Read from MH i2c: E2 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: E2 0E 00 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: E2 0E 00 E3 12 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 8B [15:03:23]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:03:23]wFMCommunicate OK [15:03:23]SAM_PROTO_GetShiftState done [15:03:23]FM_GetShiftState done [15:03:23]opened in 1726965840 [15:03:23]opened+sec_in_day 1727052240 [15:03:23]quantity*price = 5000 [15:03:23]sum+1 = 5001 [15:03:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 126 22.09.2024 15:03 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115408 ФПД: 864077891081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150325&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115408&fm=864077891081&tin=02508201610067®Number=0000000000091831&sum=5000 0 [15:03:24]StoreToDocumentArchive [15:03:24]shift 471 fd 115408 [15:03:24]save to /storage/0471/doc_00115408 [15:03:24]save last doc name /storage/0471/doc_00115408 to /storage/kkm_last_doc_name [15:03:24]save OK [15:03:24]Clear old archive folders... [15:03:24]ProcessDocumentItem done err = 0, tmpTLVsize=269 [15:03:24]tlvbuf is 01BF43C0 [15:03:24]SAM_PROTO_ClearQueue [15:03:24]wFMCommunicate request_size=4 [15:03:24]MH_SAM_APDU [15:03:24]CAPDU: 80 09 00 00 [15:03:24]Write to MH i2c: E2 08 00 F0 12 80 09 00 00 00 00 00 00 74 [15:03:24]Write i2c OK [15:03:24]MH_I2C_Read... [15:03:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:24]Read from MH i2c: E2 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 03 00 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 03 00 F0 12 00 90 00 76 [15:03:24]RAPDU: 90 00 [15:03:24]wFMCommunicate OK [15:03:24]SAM_PROTO_ClearQueue done [15:03:24]KKMCreateOFDPacket [15:03:24]OFDProtocolAddRootSTLVToBuf [15:03:24]FM_MakeSignedData [15:03:24]FM_MakeSignedData [15:03:24]SAM_PROTO_SignData [15:03:24]wFMCommunicate request_size=4 [15:03:24]MH_SAM_APDU [15:03:24]CAPDU: 80 0D 01 02 [15:03:24]Write to MH i2c: E2 08 00 F1 12 80 0D 01 02 00 00 00 00 7C [15:03:24]Write i2c OK [15:03:24]MH_I2C_Read... [15:03:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:24]Read from MH i2c: E2 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 03 00 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 03 00 F1 12 00 90 00 77 [15:03:24]RAPDU: 90 00 [15:03:24]wFMCommunicate OK [15:03:24]wFMCommunicate request_size=255 [15:03:24]MH_SAM_APDU [15:03:24]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 BD 31 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [15:03:24]Write to MH i2c: E2 02 01 F2 12 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 BD 31 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 2A [15:03:24]Write i2c OK [15:03:24]MH_I2C_Read... [15:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:24]Read from MH i2c: E2 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 03 00 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 03 00 F2 12 00 90 00 78 [15:03:24]RAPDU: 90 00 [15:03:24]wFMCommunicate OK [15:03:24]wFMCommunicate request_size=28 [15:03:24]MH_SAM_APDU [15:03:24]CAPDU: 80 0D 02 02 17 37 31 38 33 30 10 04 04 00 D0 C2 01 00 35 04 06 00 00 C9 2F 0E 46 09 [15:03:24]Write to MH i2c: E2 1F 00 F3 12 80 0D 02 02 17 00 37 31 38 33 30 10 04 04 00 D0 C2 01 00 35 04 06 00 00 C9 2F 0E 46 09 00 00 EF [15:03:24]Write i2c OK [15:03:24]MH_I2C_Read... [15:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:24]Read from MH i2c: E2 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 03 00 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 03 00 F3 12 00 90 00 79 [15:03:24]RAPDU: 90 00 [15:03:24]wFMCommunicate OK [15:03:24]wFMCommunicate request_size=4 [15:03:24]MH_SAM_APDU [15:03:24]CAPDU: 80 0D 03 02 [15:03:24]Write to MH i2c: E2 08 00 F4 12 80 0D 03 02 00 00 00 00 81 [15:03:24]Write i2c OK [15:03:24]MH_I2C_Read... [15:03:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:24]Read from MH i2c: E2 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 0B 00 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 0B 00 F4 12 00 05 28 E8 35 AA E8 E8 B2 90 00 F8 [15:03:24]RAPDU: 05 28 E8 35 AA E8 E8 B2 90 00 [15:03:24]wFMCommunicate OK [15:03:24]SAM_PROTO_SignData done [15:03:24]FM_MakeSignedData done [15:03:24]CreateOFDProtocolMessage [15:03:24]wFMCommunicate request_size=4 [15:03:24]MH_SAM_APDU [15:03:24]CAPDU: 80 11 00 00 [15:03:24]Write to MH i2c: E2 08 00 F5 12 80 11 00 00 00 00 00 00 81 [15:03:24]Write i2c OK [15:03:24]MH_I2C_Read... [15:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:24]Read from MH i2c: E2 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 17 00 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 17 00 F5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CF [15:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:03:24]wFMCommunicate OK [15:03:24]CreateOFDProtocolMessage done [15:03:24]OFDSenderStorePacket 115408 [15:03:24]StoreOFDPacket docnum=115408 [15:03:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 21 01 00 00 C4 F1 19 01 2B 1F 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 BD 31 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D0 C2 01 00 35 04 06 00 00 C9 2F 0E 46 09 05 28 E8 35 AA E8 E8 B2 [15:03:24]CheckFolder [15:03:24]dirname=/storage/ofd_packets [15:03:24]CheckFolder done [15:03:24]ProducePacketName [15:03:24]name=ofd_packets/00115408 [15:03:24]NVStorageSaveData ofd_packets/00115408 [15:03:24]File name is /storage/ofd_packets/00115408 [15:03:24]Write 319 bytes [15:03:24]NVStorageSaveData done [15:03:24]OFDSenderStorePacket done [15:03:24]KKMCreateOFDPacket done [15:03:24]NVStorageSaveData kkm_last_timestamp [15:03:24]File name is /storage/kkm_last_timestamp [15:03:24]Write 4 bytes [15:03:24]NVStorageSaveData done [15:03:24]ExternCall_PrintAddStr [15:03:24]wPrintStart [15:03:24]Write to MH i2c: 01 00 00 F6 12 08 [15:03:24]Write i2c OK [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: 01 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: 01 07 00 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: 01 07 00 F6 12 00 00 00 00 00 FF 0F 1D [15:03:24]RasterBufferAndPrint [15:03:24]line Счет N : (3)343851 [15:03:24]line ИНН: 02508201610067 [15:03:24]line Контрольно-Кассовый Чек [15:03:24]line ПРОДАЖА [15:03:24]line Товар: 4700000160358 [15:03:24]line Вода Легенда 1л [15:03:24]line 1.000 * 50.00 [15:03:24]line = 50.00 [15:03:24]line НДС 12% НСП 1% [15:03:24]line > о реализуемом товаре [15:03:24]line ИТОГО: 50.00 [15:03:24]line НСП 1% : 0.44 [15:03:24]line НДС 12% : 5.31 [15:03:24]line Наличными: 50.00 [15:03:24]line Безнал.: 0.00 [15:03:24]line Место: АЗС № 90 "Партнер Нефть" [15:03:24]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:03:24]line СНО: Общий режим [15:03:24]line Чек 126 22.09.2024 15:03 [15:03:24]line Смена: 471 ФФД: 1.0 [15:03:24]line ЗНМ: 0300000120 [15:03:24]line РНМ: 0000000000091831 [15:03:24]line Версия ККМ: 001 [15:03:24]line ФМ: 0000000000871830 [15:03:24]line ФД: 115408 [15:03:24]line ФПД: 864077891081 [15:03:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150325&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115408&fm=864077891081&tin=02508201610067®Number=0000000000091831&sum=5000 [15:03:24]line 0 [15:03:24]written 0, free lines is 4095 [15:03:24]OFD Sender: Processing packet 115408 [packets to send 481, broken 480] [15:03:24]ProducePacketName [15:03:24]name=ofd_packets/00115408 [15:03:24]OFD Sender: To server: pG, [15:03:24]CommunicateWithHost lk.salyk.kg:30040 [15:03:24]ConnectInit lk.salyk.kg [15:03:25]Connected sock=10 [15:03:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 21 01 00 00 C4 F1 19 01 2B 1F 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 BD 31 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D0 C2 01 00 35 04 06 00 00 C9 2F 0E 46 09 05 28 E8 35 AA E8 E8 B2 [15:03:25]Write to MH i2c: 01 00 00 1D 13 30 [15:03:25]Write i2c OK [15:03:25]MH_I2C_Read... [15:03:25]Read from MH i2c: 01 [15:03:25]MH_I2C_Read... [15:03:25]Read from MH i2c: 01 07 00 [15:03:25]MH_I2C_Read... [15:03:25]Read from MH i2c: 01 07 00 1D 13 00 00 00 00 00 87 0C CA [15:03:25]RasterBufferAndPrint [15:03:25]line [15:03:25]line [15:03:25]line [15:03:25]line [15:03:25]line [15:03:25]written 0, free lines is 3213 [15:03:25]MH_Cut [15:03:25]Write to MH i2c: D1 01 00 24 13 01 09 [15:03:25]Write i2c OK [15:03:25]MH_I2C_Read... [15:03:25]Read from MH i2c: D1 [15:03:25]MH_I2C_Read... [15:03:25]Read from MH i2c: D1 01 00 [15:03:25]MH_I2C_Read... [15:03:25]Read from MH i2c: D1 01 00 24 13 00 08 [15:03:25]Write to MH i2c: 01 00 00 25 13 38 [15:03:25]Write i2c OK [15:03:25]MH_I2C_Read... [15:03:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 97 92 47 00 AB 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 31 38 33 30 10 04 04 00 D0 C2 01 00 F4 03 04 00 02 D7 EF 66 B6 04 01 00 00 AC 3D 74 F9 70 6D B7 A3 [15:03:25]CommunicateWithHost err = 0 [15:03:25]CheckOFDResponse [15:03:25]1017 (14) - 77093643461234 [15:03:25]1041 (16) - 0000000000871830 [15:03:25]1040 (4) - 115408 [15:03:25]1012 (4) - 22.09.2024 08:36 [15:03:25]1206 (1) - 0 [15:03:25]OFD Sender: Remove packet 115408 [15:03:25]ProducePacketName [15:03:25]name=ofd_packets/00115408 [15:03:25]NVStorageDeleteData [15:03:26]OFD Sender: No OFD packet to send [15:03:26]*** Cut start [15:03:26]*** Partial cut [15:03:26]*** CUTSNS_PIN = 1 [15:03:26]*** CUTSNS_PIN = 0 [15:03:26]*** Brake cut motor [15:03:27]Read from MH i2c: 01 [15:03:27]MH_I2C_Read... [15:03:27]*** Stop cut motor [15:03:27]*** Cut end [15:03:27]Read from MH i2c: 01 07 00 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: 01 07 00 25 13 00 00 00 00 00 FF 0F 4D [15:03:27]process_action close_receipt done [15:03:27]requested_data is exist [15:03:27]produce_requested_data [15:03:27]requested_item fm.sn is exist - process it [15:03:27]wFMCommunicate request_size=4 [15:03:27]MH_SAM_APDU [15:03:27]CAPDU: 80 11 00 00 [15:03:27]Write to MH i2c: E2 08 00 26 13 80 11 00 00 00 00 00 00 B3 [15:03:27]Write i2c OK [15:03:27]MH_I2C_Read... [15:03:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:27]Read from MH i2c: E2 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 17 00 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 17 00 26 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 01 [15:03:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:03:27]wFMCommunicate OK [15:03:27]requested_item fd.num is exist - process it [15:03:27]SAM_PROTO_GetFieldsCounters [15:03:27]wFMCommunicate request_size=4 [15:03:27]MH_SAM_APDU [15:03:27]CAPDU: 80 13 00 00 [15:03:27]Write to MH i2c: E2 08 00 27 13 80 13 00 00 00 00 00 00 B6 [15:03:27]Write i2c OK [15:03:27]MH_I2C_Read... [15:03:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:27]Read from MH i2c: E2 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 62 00 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 62 00 27 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D0 C2 01 00 0E 04 04 00 D7 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 B4 [15:03:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D0 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:27]wFMCommunicate OK [15:03:27]SAM_PROTO_GetFieldsCounters done [15:03:27]requested_item shift.num is exist - process it [15:03:27]requested_item shift.opened is exist - process it [15:03:27]req_shift_opened [15:03:27]FM_GetShiftState [15:03:27]SAM_PROTO_GetShiftState [15:03:27]wFMCommunicate request_size=4 [15:03:27]MH_SAM_APDU [15:03:27]CAPDU: 80 13 01 00 [15:03:27]Write to MH i2c: E2 08 00 28 13 80 13 01 00 00 00 00 00 B8 [15:03:27]Write i2c OK [15:03:27]MH_I2C_Read... [15:03:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:27]Read from MH i2c: E2 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 0E 00 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 0E 00 28 13 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D1 [15:03:27]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:03:27]wFMCommunicate OK [15:03:27]SAM_PROTO_GetShiftState done [15:03:27]FM_GetShiftState done [15:03:27]req_shift_opened done [15:03:27]requested_item shift.open_date is exist - process it [15:03:27]req_shift_open_date [15:03:27]req_shift_open_date done [15:03:27]produce_requested_data done [15:03:27]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115408,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [15:03:27]process_action_free close_receipt [15:03:27]json_value_free [15:03:27]json_value_free done [15:03:27]process_json_proto returns [15:03:27]Send response to host [15:03:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115408,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [15:03:27]free response buf [15:03:27]execute_script done [15:03:27]execute_script returns [15:03:27]free content buf [15:03:27]Sock 9.Close socket [15:03:27]Sock 9.Thread stoped [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:25]accept exits with 8 [15:05:25]New connection [15:05:25]New thread 3066826084 created [15:05:25]Thread 3066682724 joined [15:05:25]Waiting for new connection... [15:05:25] Sock 8.Parse request [15:05:25]Sock 8.Check first char [15:05:25]Sock 8.First char is OK [15:05:25]request: POST /json_proto HTTP/1.0 [15:05:25]Method: POST [15:05:25]URL: /json_proto [15:05:25]Method is POST - this is cgi request [15:05:25]url: /json_proto [15:05:25]query_string will be loaded in cgi processing [15:05:25]execute_cgi json_proto POST (null) [15:05:25]execute_cgi path=json_proto method=POST [15:05:25]POST find Content-Length [15:05:25]Host: 172.17.41.136:8080 [15:05:25]Content-Length: 683 [15:05:25]Content-Type: application/json [15:05:25] [15:05:25]POST finish read [15:05:25]Found Content-Length = 683 [15:05:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343852", "tax_sys" : 0, "items" : [ { "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:25]execute_script... [15: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 : (3)343852", "tax_sys" : 0, "items" : [ { "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:25]POST & json_proto [15:05:25]process_json_proto [15:05:25]json parsed OK: [15:05:25]protocol is kg_v1.0 [15:05:25]action value=close_receipt [15:05:25]process_action close_receipt [15:05:25]cmd_close_receipt [15:05:25]MH_GetDate [15:05:25]Write to MH i2c: F0 00 00 29 13 2B [15:05:25]Write i2c OK [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: F0 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: F0 09 00 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: F0 09 00 29 13 00 37 32 F0 66 1B D0 5A 64 9C [15:05:25]GetLastDocTimeStamp 1727017405 [15:05:25]current date 1727017527 [15:05:25]FM_GetShiftState [15:05:25]SAM_PROTO_GetShiftState [15:05:25]wFMCommunicate request_size=4 [15:05:25]MH_SAM_APDU [15:05:25]CAPDU: 80 13 01 00 [15:05:25]Write to MH i2c: E2 08 00 2A 13 80 13 01 00 00 00 00 00 BA [15:05:25]Write i2c OK [15:05:25]MH_I2C_Read... [15:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:25]Read from MH i2c: E2 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: E2 0E 00 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: E2 0E 00 2A 13 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D3 [15:05:25]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:05:25]wFMCommunicate OK [15:05:25]SAM_PROTO_GetShiftState done [15:05:25]FM_GetShiftState done [15:05:25]opened in 1726965840 [15:05:25]opened+sec_in_day 1727052240 [15:05:25]quantity*price = 10000 [15:05:25]sum+1 = 10001 [15:05:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 127 22.09.2024 15:05 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115409 ФПД: 232742645241041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150527&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115409&fm=232742645241041&tin=02508201610067®Number=0000000000091831&sum=10000 0 [15:05:26]StoreToDocumentArchive [15:05:26]shift 471 fd 115409 [15:05:26]save to /storage/0471/doc_00115409 [15:05:26]save last doc name /storage/0471/doc_00115409 to /storage/kkm_last_doc_name [15:05:26]save OK [15:05:26]Clear old archive folders... [15:05:26]OFD Sender: No OFD packet to send [15:05:26]ProcessDocumentItem done err = 0, tmpTLVsize=291 [15:05:26]tlvbuf is 01C5D6C0 [15:05:26]SAM_PROTO_ClearQueue [15:05:26]wFMCommunicate request_size=4 [15:05:26]MH_SAM_APDU [15:05:26]CAPDU: 80 09 00 00 [15:05:26]Write to MH i2c: E2 08 00 37 13 80 09 00 00 00 00 00 00 BC [15:05:26]Write i2c OK [15:05:26]MH_I2C_Read... [15:05:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:26]Read from MH i2c: E2 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 03 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 03 00 37 13 00 90 00 BE [15:05:26]RAPDU: 90 00 [15:05:26]wFMCommunicate OK [15:05:26]SAM_PROTO_ClearQueue done [15:05:26]KKMCreateOFDPacket [15:05:26]OFDProtocolAddRootSTLVToBuf [15:05:26]FM_MakeSignedData [15:05:26]FM_MakeSignedData [15:05:26]SAM_PROTO_SignData [15:05:26]wFMCommunicate request_size=4 [15:05:26]MH_SAM_APDU [15:05:26]CAPDU: 80 0D 01 02 [15:05:26]Write to MH i2c: E2 08 00 38 13 80 0D 01 02 00 00 00 00 C4 [15:05:26]Write i2c OK [15:05:26]MH_I2C_Read... [15:05:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:26]Read from MH i2c: E2 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 03 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 03 00 38 13 00 90 00 BF [15:05:26]RAPDU: 90 00 [15:05:26]wFMCommunicate OK [15:05:26]wFMCommunicate request_size=255 [15:05:26]MH_SAM_APDU [15:05:26]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 37 32 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [15:05:26]Write to MH i2c: E2 02 01 39 13 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 37 32 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 FE [15:05:26]Write i2c OK [15:05:26]MH_I2C_Read... [15:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:26]Read from MH i2c: E2 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 03 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 03 00 39 13 00 90 00 C0 [15:05:26]RAPDU: 90 00 [15:05:26]wFMCommunicate OK [15:05:26]wFMCommunicate request_size=50 [15:05:26]MH_SAM_APDU [15:05:26]CAPDU: 80 0D 02 02 2D 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D1 C2 01 00 35 04 06 00 D3 AD 9E B1 94 D1 [15:05:26]Write to MH i2c: E2 35 00 3A 13 80 0D 02 02 2D 00 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D1 C2 01 00 35 04 06 00 D3 AD 9E B1 94 D1 00 00 E6 [15:05:26]Write i2c OK [15:05:26]MH_I2C_Read... [15:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:26]Read from MH i2c: E2 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 03 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 03 00 3A 13 00 90 00 C1 [15:05:26]RAPDU: 90 00 [15:05:26]wFMCommunicate OK [15:05:26]wFMCommunicate request_size=4 [15:05:26]MH_SAM_APDU [15:05:26]CAPDU: 80 0D 03 02 [15:05:26]Write to MH i2c: E2 08 00 3B 13 80 0D 03 02 00 00 00 00 C9 [15:05:26]Write i2c OK [15:05:26]MH_I2C_Read... [15:05:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:26]Read from MH i2c: E2 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 0B 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 0B 00 3B 13 00 A7 CF B4 0A F0 71 1B 60 90 00 DA [15:05:26]RAPDU: A7 CF B4 0A F0 71 1B 60 90 00 [15:05:26]wFMCommunicate OK [15:05:26]SAM_PROTO_SignData done [15:05:26]FM_MakeSignedData done [15:05:26]CreateOFDProtocolMessage [15:05:26]wFMCommunicate request_size=4 [15:05:26]MH_SAM_APDU [15:05:26]CAPDU: 80 11 00 00 [15:05:26]Write to MH i2c: E2 08 00 3C 13 80 11 00 00 00 00 00 00 C9 [15:05:26]Write i2c OK [15:05:26]MH_I2C_Read... [15:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:26]Read from MH i2c: E2 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 17 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 17 00 3C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 17 [15:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:05:26]wFMCommunicate OK [15:05:26]CreateOFDProtocolMessage done [15:05:26]OFDSenderStorePacket 115409 [15:05:26]StoreOFDPacket docnum=115409 [15:05:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 37 01 00 00 25 11 2F 01 75 94 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 37 32 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D1 C2 01 00 35 04 06 00 D3 AD 9E B1 94 D1 A7 CF B4 0A F0 71 1B 60 [15:05:26]CheckFolder [15:05:26]dirname=/storage/ofd_packets [15:05:26]CheckFolder done [15:05:26]ProducePacketName [15:05:26]name=ofd_packets/00115409 [15:05:26]NVStorageSaveData ofd_packets/00115409 [15:05:26]File name is /storage/ofd_packets/00115409 [15:05:26]Write 341 bytes [15:05:26]NVStorageSaveData done [15:05:26]OFDSenderStorePacket done [15:05:26]KKMCreateOFDPacket done [15:05:26]NVStorageSaveData kkm_last_timestamp [15:05:26]File name is /storage/kkm_last_timestamp [15:05:26]Write 4 bytes [15:05:26]NVStorageSaveData done [15:05:26]ExternCall_PrintAddStr [15:05:26]wPrintStart [15:05:26]Write to MH i2c: 01 00 00 3D 13 50 [15:05:26]Write i2c OK [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: 01 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: 01 07 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: 01 07 00 3D 13 00 00 00 00 00 FF 0F 65 [15:05:26]RasterBufferAndPrint [15:05:26]line Счет N : (3)343852 [15:05:26]line ИНН: 02508201610067 [15:05:26]line Контрольно-Кассовый Чек [15:05:26]line ПРОДАЖА [15:05:26]line Товар: 4870002328398 [15:05:26]line Вода ASU пит н.газ мята ПЭТ 1л [15:05:26]line 1.000 * 100.00 [15:05:26]line = 100.00 [15:05:26]line НДС 12% НСП 1% [15:05:26]line > о реализуемом товаре [15:05:26]line ИТОГО: 100.00 [15:05:26]line НСП 1% : 0.88 [15:05:26]line НДС 12% : 10.62 [15:05:26]line Наличными: 100.00 [15:05:26]line Безнал.: 0.00 [15:05:26]line Место: АЗС № 90 "Партнер Нефть" [15:05:26]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:05:26]line СНО: Общий режим [15:05:26]line Чек 127 22.09.2024 15:05 [15:05:26]line Смена: 471 ФФД: 1.0 [15:05:26]line ЗНМ: 0300000120 [15:05:26]line РНМ: 0000000000091831 [15:05:26]line Версия ККМ: 001 [15:05:26]line ФМ: 0000000000871830 [15:05:26]line ФД: 115409 [15:05:26]line ФПД: 232742645241041 [15:05:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150527&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115409&fm=232742645241041&tin=02508201610067®Number=0000000000091831&sum=10000 [15:05:27]OFD Sender: Processing packet 115409 [packets to send 481, broken 480] [15:05:27]ProducePacketName [15:05:27]name=ofd_packets/00115409 [15:05:27]OFD Sender: To server: pG, [15:05:27]CommunicateWithHost lk.salyk.kg:30040 [15:05:27]ConnectInit lk.salyk.kg [15:05:27]line 0 [15:05:27]written 0, free lines is 4095 [15:05:27]Connected sock=10 [15:05:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 37 01 00 00 25 11 2F 01 75 94 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 37 32 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D1 C2 01 00 35 04 06 00 D3 AD 9E B1 94 D1 A7 CF B4 0A F0 71 1B 60 [15:05:27]Write to MH i2c: 01 00 00 65 13 78 [15:05:27]Write i2c OK [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: 01 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: 01 07 00 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: 01 07 00 65 13 00 00 00 00 00 69 0C F4 [15:05:27]RasterBufferAndPrint [15:05:27]line [15:05:27]line [15:05:27]line [15:05:27]line [15:05:27]line [15:05:27]written 0, free lines is 3182 [15:05:27]MH_Cut [15:05:27]Write to MH i2c: D1 01 00 6C 13 01 51 [15:05:27]Write i2c OK [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: D1 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: D1 01 00 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: D1 01 00 6C 13 00 50 [15:05:27]Write to MH i2c: 01 00 00 6D 13 80 [15:05:27]Write i2c OK [15:05:27]MH_I2C_Read... [15:05:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 04 7F 47 00 61 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 31 38 33 30 10 04 04 00 D1 C2 01 00 F4 03 04 00 7C D7 EF 66 B6 04 01 00 00 42 7F 82 D2 D0 DC 48 B0 [15:05:27]CommunicateWithHost err = 0 [15:05:27]CheckOFDResponse [15:05:27]1017 (14) - 77093643461234 [15:05:27]1041 (16) - 0000000000871830 [15:05:27]1040 (4) - 115409 [15:05:27]1012 (4) - 22.09.2024 08:38 [15:05:27]1206 (1) - 0 [15:05:27]OFD Sender: Remove packet 115409 [15:05:27]ProducePacketName [15:05:27]name=ofd_packets/00115409 [15:05:27]NVStorageDeleteData [15:05:28]OFD Sender: No OFD packet to send [15:05:28]*** Cut start [15:05:28]*** Partial cut [15:05:28]*** CUTSNS_PIN = 1 [15:05:29]*** CUTSNS_PIN = 0 [15:05:29]*** Brake cut motor [15:05:29]Read from MH i2c: 01 [15:05:29]MH_I2C_Read... [15:05:29]*** Stop cut motor [15:05:29]*** Cut end [15:05:29]Read from MH i2c: 01 07 00 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: 01 07 00 6D 13 00 00 00 00 00 FF 0F 95 [15:05:29]process_action close_receipt done [15:05:29]requested_data is exist [15:05:29]produce_requested_data [15:05:29]requested_item fm.sn is exist - process it [15:05:29]wFMCommunicate request_size=4 [15:05:29]MH_SAM_APDU [15:05:29]CAPDU: 80 11 00 00 [15:05:29]Write to MH i2c: E2 08 00 6E 13 80 11 00 00 00 00 00 00 FB [15:05:29]Write i2c OK [15:05:29]MH_I2C_Read... [15:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:29]Read from MH i2c: E2 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: E2 17 00 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: E2 17 00 6E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 49 [15:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:05:29]wFMCommunicate OK [15:05:29]requested_item fd.num is exist - process it [15:05:29]SAM_PROTO_GetFieldsCounters [15:05:29]wFMCommunicate request_size=4 [15:05:29]MH_SAM_APDU [15:05:29]CAPDU: 80 13 00 00 [15:05:29]Write to MH i2c: E2 08 00 6F 13 80 13 00 00 00 00 00 00 FE [15:05:29]Write i2c OK [15:05:29]MH_I2C_Read... [15:05:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:29]Read from MH i2c: E2 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: E2 62 00 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: E2 62 00 6F 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D1 C2 01 00 0E 04 04 00 D7 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 00 [15:05:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D1 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:29]wFMCommunicate OK [15:05:29]SAM_PROTO_GetFieldsCounters done [15:05:29]requested_item shift.num is exist - process it [15:05:29]requested_item shift.opened is exist - process it [15:05:29]req_shift_opened [15:05:29]FM_GetShiftState [15:05:29]SAM_PROTO_GetShiftState [15:05:29]wFMCommunicate request_size=4 [15:05:29]MH_SAM_APDU [15:05:29]CAPDU: 80 13 01 00 [15:05:29]Write to MH i2c: E2 08 00 70 13 80 13 01 00 00 00 00 00 00 [15:05:29]Write i2c OK [15:05:29]MH_I2C_Read... [15:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:29]Read from MH i2c: E2 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: E2 0E 00 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: E2 0E 00 70 13 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 19 [15:05:29]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:05:29]wFMCommunicate OK [15:05:29]SAM_PROTO_GetShiftState done [15:05:29]FM_GetShiftState done [15:05:29]req_shift_opened done [15:05:29]requested_item shift.open_date is exist - process it [15:05:29]req_shift_open_date [15:05:29]req_shift_open_date done [15:05:29]produce_requested_data done [15:05:29]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115409,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [15:05:29]process_action_free close_receipt [15:05:29]json_value_free [15:05:29]json_value_free done [15:05:29]process_json_proto returns [15:05:29]Send response to host [15:05:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115409,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [15:05:29]free response buf [15:05:29]execute_script done [15:05:29]execute_script returns [15:05:29]free content buf [15:05:29]Sock 8.Close socket [15:05:29]Sock 8.Thread stoped [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:20]accept exits with 9 [15:09:20]New connection [15:09:20]New thread 3066682724 created [15:09:20]Thread 3066826084 joined [15:09:20]Waiting for new connection... [15:09:20] Sock 9.Parse request [15:09:20]Sock 9.Check first char [15:09:20]Sock 9.First char is OK [15:09:20]request: POST /json_proto HTTP/1.0 [15:09:20]Method: POST [15:09:20]URL: /json_proto [15:09:20]Method is POST - this is cgi request [15:09:20]url: /json_proto [15:09:20]query_string will be loaded in cgi processing [15:09:20]execute_cgi json_proto POST (null) [15:09:20]execute_cgi path=json_proto method=POST [15:09:20]POST find Content-Length [15:09:20]Host: 172.17.41.136:8080 [15:09:20]Content-Length: 637 [15:09:20]Content-Type: application/json [15:09:20] [15:09:20]POST finish read [15:09:20]Found Content-Length = 637 [15:09:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343853", "tax_sys" : 0, "items" : [ { "code": "4700003610546", "name": "\u0412\u043E\u0434\u0430 \u0421orona Ice \u043D\u0435\u0433\u0430\u0437 6\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:20]execute_script... [15: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 : (3)343853", "tax_sys" : 0, "items" : [ { "code": "4700003610546", "name": "\u0412\u043E\u0434\u0430 \u0421orona Ice \u043D\u0435\u0433\u0430\u0437 6\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:20]POST & json_proto [15:09:20]process_json_proto [15:09:20]json parsed OK: [15:09:20]protocol is kg_v1.0 [15:09:20]action value=close_receipt [15:09:20]process_action close_receipt [15:09:20]cmd_close_receipt [15:09:20]MH_GetDate [15:09:20]Write to MH i2c: F0 00 00 71 13 73 [15:09:20]Write i2c OK [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: F0 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: F0 09 00 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: F0 09 00 71 13 00 22 33 F0 66 1B D0 5A 64 D0 [15:09:20]GetLastDocTimeStamp 1727017527 [15:09:20]current date 1727017762 [15:09:20]FM_GetShiftState [15:09:20]SAM_PROTO_GetShiftState [15:09:20]wFMCommunicate request_size=4 [15:09:20]MH_SAM_APDU [15:09:20]CAPDU: 80 13 01 00 [15:09:20]Write to MH i2c: E2 08 00 72 13 80 13 01 00 00 00 00 00 02 [15:09:20]Write i2c OK [15:09:20]MH_I2C_Read... [15:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:20]Read from MH i2c: E2 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: E2 0E 00 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: E2 0E 00 72 13 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 1B [15:09:20]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:09:20]wFMCommunicate OK [15:09:20]SAM_PROTO_GetShiftState done [15:09:20]FM_GetShiftState done [15:09:20]opened in 1726965840 [15:09:20]opened+sec_in_day 1727052240 [15:09:20]quantity*price = 10000 [15:09:20]sum+1 = 10001 [15:09:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 128 22.09.2024 15:09 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115410 ФПД: 80771480686324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150922&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115410&fm=80771480686324&tin=02508201610067®Number=0000000000091831&sum=10000 0 [15:09:21]StoreToDocumentArchive [15:09:21]shift 471 fd 115410 [15:09:21]save to /storage/0471/doc_00115410 [15:09:21]save last doc name /storage/0471/doc_00115410 to /storage/kkm_last_doc_name [15:09:21]save OK [15:09:21]Clear old archive folders... [15:09:21]ProcessDocumentItem done err = 0, tmpTLVsize=277 [15:09:21]tlvbuf is 01C593A0 [15:09:21]SAM_PROTO_ClearQueue [15:09:21]wFMCommunicate request_size=4 [15:09:21]MH_SAM_APDU [15:09:21]CAPDU: 80 09 00 00 [15:09:21]Write to MH i2c: E2 08 00 7F 13 80 09 00 00 00 00 00 00 04 [15:09:21]Write i2c OK [15:09:21]MH_I2C_Read... [15:09:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:21]Read from MH i2c: E2 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 03 00 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 03 00 7F 13 00 90 00 06 [15:09:21]RAPDU: 90 00 [15:09:21]wFMCommunicate OK [15:09:21]SAM_PROTO_ClearQueue done [15:09:21]KKMCreateOFDPacket [15:09:21]OFDProtocolAddRootSTLVToBuf [15:09:21]FM_MakeSignedData [15:09:21]FM_MakeSignedData [15:09:21]SAM_PROTO_SignData [15:09:21]wFMCommunicate request_size=4 [15:09:21]MH_SAM_APDU [15:09:21]CAPDU: 80 0D 01 02 [15:09:21]Write to MH i2c: E2 08 00 80 13 80 0D 01 02 00 00 00 00 0C [15:09:21]Write i2c OK [15:09:21]MH_I2C_Read... [15:09:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:21]Read from MH i2c: E2 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 03 00 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 03 00 80 13 00 90 00 07 [15:09:21]RAPDU: 90 00 [15:09:21]wFMCommunicate OK [15:09:21]wFMCommunicate request_size=255 [15:09:21]MH_SAM_APDU [15:09:21]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 22 33 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 [15:09:21]Write to MH i2c: E2 02 01 81 13 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 22 33 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 00 00 5F [15:09:21]Write i2c OK [15:09:21]MH_I2C_Read... [15:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:21]Read from MH i2c: E2 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 03 00 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 03 00 81 13 00 90 00 08 [15:09:21]RAPDU: 90 00 [15:09:21]wFMCommunicate OK [15:09:21]wFMCommunicate request_size=36 [15:09:21]MH_SAM_APDU [15:09:21]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D2 C2 01 00 35 04 06 00 49 76 13 6A 0E F4 [15:09:21]Write to MH i2c: E2 27 00 82 13 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D2 C2 01 00 35 04 06 00 49 76 13 6A 0E F4 00 00 02 [15:09:21]Write i2c OK [15:09:21]MH_I2C_Read... [15:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:21]Read from MH i2c: E2 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 03 00 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 03 00 82 13 00 90 00 09 [15:09:21]RAPDU: 90 00 [15:09:21]wFMCommunicate OK [15:09:21]wFMCommunicate request_size=4 [15:09:21]MH_SAM_APDU [15:09:21]CAPDU: 80 0D 03 02 [15:09:21]Write to MH i2c: E2 08 00 83 13 80 0D 03 02 00 00 00 00 11 [15:09:21]Write i2c OK [15:09:21]MH_I2C_Read... [15:09:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:21]Read from MH i2c: E2 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 0B 00 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 0B 00 83 13 00 75 D9 D6 10 D4 AA 11 5E 90 00 33 [15:09:21]RAPDU: 75 D9 D6 10 D4 AA 11 5E 90 00 [15:09:21]wFMCommunicate OK [15:09:21]SAM_PROTO_SignData done [15:09:21]FM_MakeSignedData done [15:09:21]CreateOFDProtocolMessage [15:09:21]wFMCommunicate request_size=4 [15:09:21]MH_SAM_APDU [15:09:21]CAPDU: 80 11 00 00 [15:09:21]Write to MH i2c: E2 08 00 84 13 80 11 00 00 00 00 00 00 11 [15:09:21]Write i2c OK [15:09:21]MH_I2C_Read... [15:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:21]Read from MH i2c: E2 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 17 00 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 17 00 84 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5F [15:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:09:21]wFMCommunicate OK [15:09:21]CreateOFDProtocolMessage done [15:09:21]OFDSenderStorePacket 115410 [15:09:21]StoreOFDPacket docnum=115410 [15:09:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 29 01 00 00 F1 63 21 01 7F 04 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 22 33 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D2 C2 01 00 35 04 06 00 49 76 13 6A 0E F4 75 D9 D6 10 D4 AA 11 5E [15:09:21]CheckFolder [15:09:21]dirname=/storage/ofd_packets [15:09:21]CheckFolder done [15:09:21]ProducePacketName [15:09:21]name=ofd_packets/00115410 [15:09:21]NVStorageSaveData ofd_packets/00115410 [15:09:21]File name is /storage/ofd_packets/00115410 [15:09:21]Write 327 bytes [15:09:21]NVStorageSaveData done [15:09:21]OFDSenderStorePacket done [15:09:21]KKMCreateOFDPacket done [15:09:21]NVStorageSaveData kkm_last_timestamp [15:09:21]File name is /storage/kkm_last_timestamp [15:09:21]Write 4 bytes [15:09:21]NVStorageSaveData done [15:09:21]ExternCall_PrintAddStr [15:09:21]wPrintStart [15:09:21]Write to MH i2c: 01 00 00 85 13 98 [15:09:21]Write i2c OK [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: 01 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: 01 07 00 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: 01 07 00 85 13 00 00 00 00 00 FF 0F AD [15:09:21]RasterBufferAndPrint [15:09:21]line Счет N : (3)343853 [15:09:21]line ИНН: 02508201610067 [15:09:21]line Контрольно-Кассовый Чек [15:09:21]line ПРОДАЖА [15:09:21]line Товар: 4700003610546 [15:09:21]line Вода Сorona Ice негаз 6л [15:09:21]line 1.000 * 100.00 [15:09:21]line = 100.00 [15:09:21]line НДС 12% НСП 1% [15:09:21]line > о реализуемом товаре [15:09:21]line ИТОГО: 100.00 [15:09:21]line НСП 1% : 0.88 [15:09:21]line НДС 12% : 10.62 [15:09:21]line Наличными: 100.00 [15:09:21]line Безнал.: 0.00 [15:09:21]line Место: АЗС № 90 "Партнер Нефть" [15:09:21]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:09:21]line СНО: Общий режим [15:09:21]line Чек 128 22.09.2024 15:09 [15:09:21]line Смена: 471 ФФД: 1.0 [15:09:21]line ЗНМ: 0300000120 [15:09:21]line РНМ: 0000000000091831 [15:09:21]line Версия ККМ: 001 [15:09:21]line ФМ: 0000000000871830 [15:09:21]line ФД: 115410 [15:09:21]line ФПД: 80771480686324 [15:09:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150922&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115410&fm=80771480686324&tin=02508201610067®Number=0000000000091831&sum=10000 [15:09:21]line 0 [15:09:21]written 0, free lines is 4095 [15:09:21]OFD Sender: Processing packet 115410 [packets to send 481, broken 480] [15:09:21]ProducePacketName [15:09:21]name=ofd_packets/00115410 [15:09:22]OFD Sender: To server: pG, [15:09:22]CommunicateWithHost lk.salyk.kg:30040 [15:09:22]ConnectInit lk.salyk.kg [15:09:22]Write to MH i2c: 01 00 00 AC 13 BF [15:09:22]Write i2c OK [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: 01 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: 01 07 00 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: 01 07 00 AC 13 00 00 00 00 00 7E 0C 50 [15:09:22]RasterBufferAndPrint [15:09:22]line [15:09:22]line [15:09:22]line [15:09:22]line [15:09:22]line [15:09:22]written 0, free lines is 3202 [15:09:22]MH_Cut [15:09:22]Write to MH i2c: D1 01 00 B3 13 01 98 [15:09:22]Write i2c OK [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: D1 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: D1 01 00 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: D1 01 00 B3 13 00 97 [15:09:22]Write to MH i2c: 01 00 00 B4 13 C7 [15:09:22]Write i2c OK [15:09:22]MH_I2C_Read... [15:09:23]*** Cut start [15:09:23]*** Partial cut [15:09:23]*** CUTSNS_PIN = 1 [15:09:23]*** CUTSNS_PIN = 0 [15:09:23]*** Brake cut motor [15:09:24]Read from MH i2c: 01 [15:09:24]MH_I2C_Read... [15:09:24]*** Stop cut motor [15:09:24]*** Cut end [15:09:24]Read from MH i2c: 01 07 00 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: 01 07 00 B4 13 00 00 00 00 00 FF 0F DC [15:09:24]process_action close_receipt done [15:09:24]requested_data is exist [15:09:24]produce_requested_data [15:09:24]requested_item fm.sn is exist - process it [15:09:24]wFMCommunicate request_size=4 [15:09:24]MH_SAM_APDU [15:09:24]CAPDU: 80 11 00 00 [15:09:24]Write to MH i2c: E2 08 00 B5 13 80 11 00 00 00 00 00 00 42 [15:09:24]Write i2c OK [15:09:24]MH_I2C_Read... [15:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:24]Read from MH i2c: E2 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 17 00 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 17 00 B5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 90 [15:09:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:09:24]wFMCommunicate OK [15:09:24]requested_item fd.num is exist - process it [15:09:24]SAM_PROTO_GetFieldsCounters [15:09:24]wFMCommunicate request_size=4 [15:09:24]MH_SAM_APDU [15:09:24]CAPDU: 80 13 00 00 [15:09:24]Write to MH i2c: E2 08 00 B6 13 80 13 00 00 00 00 00 00 45 [15:09:24]Write i2c OK [15:09:24]MH_I2C_Read... [15:09:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:24]Read from MH i2c: E2 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 62 00 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 62 00 B6 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D2 C2 01 00 0E 04 04 00 D7 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 4B [15: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D2 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:24]wFMCommunicate OK [15:09:24]SAM_PROTO_GetFieldsCounters done [15:09:24]requested_item shift.num is exist - process it [15:09:24]requested_item shift.opened is exist - process it [15:09:24]req_shift_opened [15:09:24]FM_GetShiftState [15:09:24]SAM_PROTO_GetShiftState [15:09:24]wFMCommunicate request_size=4 [15:09:24]MH_SAM_APDU [15:09:24]CAPDU: 80 13 01 00 [15:09:24]Write to MH i2c: E2 08 00 B7 13 80 13 01 00 00 00 00 00 47 [15:09:24]Write i2c OK [15:09:24]MH_I2C_Read... [15:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:24]Read from MH i2c: E2 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 0E 00 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 0E 00 B7 13 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 60 [15:09:24]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:09:24]wFMCommunicate OK [15:09:24]SAM_PROTO_GetShiftState done [15:09:24]FM_GetShiftState done [15:09:24]req_shift_opened done [15:09:24]requested_item shift.open_date is exist - process it [15:09:24]req_shift_open_date [15:09:24]req_shift_open_date done [15:09:24]produce_requested_data done [15:09:24]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115410,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [15:09:24]process_action_free close_receipt [15:09:24]json_value_free [15:09:24]json_value_free done [15:09:24]process_json_proto returns [15:09:24]Send response to host [15:09:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115410,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [15:09:24]free response buf [15:09:24]execute_script done [15:09:24]execute_script returns [15:09:24]free content buf [15:09:24]Sock 9.Close socket [15:09:24]Sock 9.Thread stoped [15:11:34]ConnectInit Can't connect to host [15:11:34]CommunicateWithHost connect error [15:11:34]CommunicateWithHost err = -1 [15:11:34]OFD Sender: Server communicate error [15:11:39]OFD Sender: Processing packet 115410 [packets to send 481, broken 480] [15:11:39]ProducePacketName [15:11:39]name=ofd_packets/00115410 [15:11:39]OFD Sender: To server: pG, [15:11:39]CommunicateWithHost lk.salyk.kg:30040 [15:11:39]ConnectInit lk.salyk.kg [15:11:39]Connected sock=10 [15:11:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 29 01 00 00 F1 63 21 01 7F 04 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 22 33 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D2 C2 01 00 35 04 06 00 49 76 13 6A 0E F4 75 D9 D6 10 D4 AA 11 5E [15:11:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 00 33 47 00 00 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D2 C2 01 00 F4 03 04 00 F0 D8 EF 66 B6 04 01 00 00 A8 06 C8 DE 86 25 0C D9 [15:11:39]CommunicateWithHost err = 0 [15:11:39]CheckOFDResponse [15:11:39]1017 (14) - 77093643461234 [15:11:39]1041 (16) - 0000000000871830 [15:11:39]1040 (4) - 115410 [15:11:39]1012 (4) - 22.09.2024 08:44 [15:11:39]1206 (1) - 0 [15:11:39]OFD Sender: Remove packet 115410 [15:11:39]ProducePacketName [15:11:39]name=ofd_packets/00115410 [15:11:39]NVStorageDeleteData [15:11:40]OFD Sender: No OFD packet to send [15:11:44]accept exits with 8 [15:11:44]New connection [15:11:44]New thread 3066826084 created [15:11:44]Thread 3066682724 joined [15:11:44]Waiting for new connection... [15:11:44] Sock 8.Parse request [15:11:44]Sock 8.Check first char [15:11:44]Sock 8.First char is OK [15:11:44]request: POST /json_proto HTTP/1.0 [15:11:44]Method: POST [15:11:44]URL: /json_proto [15:11:44]Method is POST - this is cgi request [15:11:44]url: /json_proto [15:11:44]query_string will be loaded in cgi processing [15:11:44]execute_cgi json_proto POST (null) [15:11:44]execute_cgi path=json_proto method=POST [15:11:44]POST find Content-Length [15:11:44]Host: 172.17.41.136:8080 [15:11:44]Content-Length: 1291 [15:11:44]Content-Type: application/json [15:11:44] [15:11:44]POST finish read [15:11:44]Found Content-Length = 1291 [15:11:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343854", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:44]execute_script... [15:11:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343854", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:44]POST & json_proto [15:11:44]process_json_proto [15:11:44]json parsed OK: [15:11:44]protocol is kg_v1.0 [15:11:44]action value=close_receipt [15:11:44]process_action close_receipt [15:11:44]cmd_close_receipt [15:11:44]MH_GetDate [15:11:44]Write to MH i2c: F0 00 00 B8 13 BA [15:11:44]Write i2c OK [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: F0 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: F0 09 00 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: F0 09 00 B8 13 00 B2 33 F0 66 1B D0 5A 64 A7 [15:11:44]GetLastDocTimeStamp 1727017762 [15:11:44]current date 1727017906 [15:11:44]FM_GetShiftState [15:11:44]SAM_PROTO_GetShiftState [15:11:44]wFMCommunicate request_size=4 [15:11:44]MH_SAM_APDU [15:11:44]CAPDU: 80 13 01 00 [15:11:44]Write to MH i2c: E2 08 00 B9 13 80 13 01 00 00 00 00 00 49 [15:11:44]Write i2c OK [15:11:44]MH_I2C_Read... [15:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:44]Read from MH i2c: E2 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: E2 0E 00 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: E2 0E 00 B9 13 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 62 [15:11:44]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:11:44]wFMCommunicate OK [15:11:44]SAM_PROTO_GetShiftState done [15:11:44]FM_GetShiftState done [15:11:44]opened in 1726965840 [15:11:44]opened+sec_in_day 1727052240 [15:11:44]quantity*price = 10000 [15:11:44]sum+1 = 10001 [15:11:44]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.16 НДС 12% : 26.02 Наличными: 245.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 129 22.09.2024 15:11 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115411 ФПД: 244322207720081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151146&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115411&fm=244322207720081&tin=02508201610067®Number=0000000000091831&sum=24500 0 [15:11:45]StoreToDocumentArchive [15:11:45]shift 471 fd 115411 [15:11:45]save to /storage/0471/doc_00115411 [15:11:45]save last doc name /storage/0471/doc_00115411 to /storage/kkm_last_doc_name [15:11:45]save OK [15:11:45]Clear old archive folders... [15:11:45]ProcessDocumentItem done err = 0, tmpTLVsize=537 [15:11:45]tlvbuf is 01C2DF00 [15:11:45]SAM_PROTO_ClearQueue [15:11:45]wFMCommunicate request_size=4 [15:11:45]MH_SAM_APDU [15:11:45]CAPDU: 80 09 00 00 [15:11:45]Write to MH i2c: E2 08 00 C6 13 80 09 00 00 00 00 00 00 4B [15:11:45]Write i2c OK [15:11:45]MH_I2C_Read... [15:11:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:45]Read from MH i2c: E2 [15:11:45]MH_I2C_Read... [15:11:45]Read from MH i2c: E2 03 00 [15:11:45]MH_I2C_Read... [15:11:45]Read from MH i2c: E2 03 00 C6 13 00 90 00 4D [15:11:45]RAPDU: 90 00 [15:11:45]wFMCommunicate OK [15:11:45]SAM_PROTO_ClearQueue done [15:11:45]KKMCreateOFDPacket [15:11:45]OFDProtocolAddRootSTLVToBuf [15:11:45]FM_MakeSignedData [15:11:45]FM_MakeSignedData [15:11:45]SAM_PROTO_SignData [15:11:45]wFMCommunicate request_size=4 [15:11:45]MH_SAM_APDU [15:11:45]CAPDU: 80 0D 01 02 [15:11:45]Write to MH i2c: E2 08 00 C7 13 80 0D 01 02 00 00 00 00 53 [15:11:45]Write i2c OK [15:11:45]MH_I2C_Read... [15:11:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:45]Read from MH i2c: E2 [15:11:45]MH_I2C_Read... [15:11:45]Read from MH i2c: E2 03 00 [15:11:45]MH_I2C_Read... [15:11:45]Read from MH i2c: E2 03 00 C7 13 00 90 00 4E [15:11:45]RAPDU: 90 00 [15:11:45]wFMCommunicate OK [15:11:45]wFMCommunicate request_size=255 [15:11:45]MH_SAM_APDU [15:11:45]CAPDU: 80 0D 02 02 FA 03 00 19 02 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 [15:11:46]Write to MH i2c: E2 02 01 C8 13 80 0D 02 02 FA 00 03 00 19 02 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 00 00 02 [15:11:46]Write i2c OK [15:11:46]MH_I2C_Read... [15:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:46]Read from MH i2c: E2 [15:11:46]MH_I2C_Read... [15:11:46]Read from MH i2c: E2 03 00 [15:11:46]MH_I2C_Read... [15:11:46]Read from MH i2c: E2 03 00 C8 13 00 90 00 4F [15:11:46]RAPDU: 90 00 [15:11:46]wFMCommunicate OK [15:11:46]wFMCommunicate request_size=255 [15:11:46]MH_SAM_APDU [15:11:46]CAPDU: 80 0D 02 02 FA 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 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 B2 33 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [15:11:46]Write to MH i2c: E2 02 01 C9 13 80 0D 02 02 FA 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 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 B2 33 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 27 [15:11:46]Write i2c OK [15:11:46]MH_I2C_Read... [15:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:46]Read from MH i2c: E2 [15:11:46]MH_I2C_Read... [15:11:46]Read from MH i2c: E2 03 00 [15:11:46]MH_I2C_Read... [15:11:46]Read from MH i2c: E2 03 00 C9 13 00 90 00 50 [15:11:46]RAPDU: 90 00 [15:11:46]wFMCommunicate OK [15:11:46]wFMCommunicate request_size=46 [15:11:46]MH_SAM_APDU [15:11:46]CAPDU: 80 0D 02 02 29 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D3 C2 01 00 35 04 06 00 DE 35 B2 66 E2 91 [15:11:46]Write to MH i2c: E2 31 00 CA 13 80 0D 02 02 29 00 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D3 C2 01 00 35 04 06 00 DE 35 B2 66 E2 91 00 00 10 [15:11:46]Write i2c OK [15:11:46]MH_I2C_Read... [15:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:46]Read from MH i2c: E2 [15:11:46]MH_I2C_Read... [15:11:46]Read from MH i2c: E2 03 00 [15:11:46]MH_I2C_Read... [15:11:46]Read from MH i2c: E2 03 00 CA 13 00 90 00 51 [15:11:46]RAPDU: 90 00 [15:11:46]wFMCommunicate OK [15:11:46]wFMCommunicate request_size=4 [15:11:46]MH_SAM_APDU [15:11:46]CAPDU: 80 0D 03 02 [15:11:46]Write to MH i2c: E2 08 00 CB 13 80 0D 03 02 00 00 00 00 59 [15:11:46]Write i2c OK [15:11:46]MH_I2C_Read... [15:11:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:46]Read from MH i2c: E2 [15:11:46]MH_I2C_Read... [15:11:46]Read from MH i2c: E2 0B 00 [15:11:46]MH_I2C_Read... [15:11:46]Read from MH i2c: E2 0B 00 CB 13 00 A6 84 B0 15 40 01 38 E0 90 00 A2 [15:11:46]RAPDU: A6 84 B0 15 40 01 38 E0 90 00 [15:11:46]wFMCommunicate OK [15:11:46]SAM_PROTO_SignData done [15:11:46]FM_MakeSignedData done [15:11:46]CreateOFDProtocolMessage [15:11:46]wFMCommunicate request_size=4 [15:11:46]MH_SAM_APDU [15:11:46]CAPDU: 80 11 00 00 [15:11:46]Write to MH i2c: E2 08 00 CC 13 80 11 00 00 00 00 00 00 59 [15:11:46]Write i2c OK [15:11:46]MH_I2C_Read... [15:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:46]Read from MH i2c: E2 [15:11:46]MH_I2C_Read... [15:11:46]Read from MH i2c: E2 17 00 [15:11:46]MH_I2C_Read... [15:11:46]Read from MH i2c: E2 17 00 CC 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A7 [15:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:11:46]wFMCommunicate OK [15:11:46]CreateOFDProtocolMessage done [15:11:46]OFDSenderStorePacket 115411 [15:11:46]StoreOFDPacket docnum=115411 [15:11:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2D 02 00 00 A8 52 25 02 EC EC 5A 03 01 00 03 00 19 02 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 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 B2 33 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D3 C2 01 00 35 04 06 00 DE 35 B2 66 E2 91 A6 84 B0 15 40 01 38 E0 [15:11:46]CheckFolder [15:11:46]dirname=/storage/ofd_packets [15:11:46]CheckFolder done [15:11:46]ProducePacketName [15:11:46]name=ofd_packets/00115411 [15:11:46]NVStorageSaveData ofd_packets/00115411 [15:11:46]File name is /storage/ofd_packets/00115411 [15:11:46]Write 587 bytes [15:11:46]NVStorageSaveData done [15:11:46]OFDSenderStorePacket done [15:11:46]KKMCreateOFDPacket done [15:11:46]NVStorageSaveData kkm_last_timestamp [15:11:46]File name is /storage/kkm_last_timestamp [15:11:46]Write 4 bytes [15:11:46]NVStorageSaveData done [15:11:46]ExternCall_PrintAddStr [15:11:46]wPrintStart [15:11:46]Write to MH i2c: 01 00 00 CD 13 E0 [15:11:46]Write i2c OK [15:11:46]MH_I2C_Read... [15:11:46]Read from MH i2c: 01 [15:11:46]MH_I2C_Read... [15:11:46]Read from MH i2c: 01 07 00 [15:11:46]MH_I2C_Read... [15:11:46]Read from MH i2c: 01 07 00 CD 13 00 00 00 00 00 FF 0F F5 [15:11:46]RasterBufferAndPrint [15:11:46]line Счет N : (3)343854 [15:11:46]line ИНН: 02508201610067 [15:11:46]line Контрольно-Кассовый Чек [15:11:46]line ПРОДАЖА [15:11:46]line Товар: 4870001571528 [15:11:46]line Вода ASU пит н.газ персик ПЭТ 1,0 л [15:11:46]line 1.000 * 100.00 [15:11:46]line = 100.00 [15:11:46]line НДС 12% НСП 1% [15:11:46]line > о реализуемом товаре [15:11:46]line Товар: 5449000027474 [15:11:46]line Напиток FuzeTea зел чай манго,ромашка 1л [15:11:46]line 1.000 * 105.00 [15:11:46]line = 105.00 [15:11:46]line НДС 12% НСП 1% [15:11:46]line > о реализуемом товаре [15:11:46]line Товар: 4700000160211 [15:11:46]line Вода Легенда 0,5л [15:11:46]line 1.000 * 40.00 [15:11:46]line = 40.00 [15:11:46]line НДС 12% НСП 1% [15:11:46]line > о реализуемом товаре [15:11:46]line ИТОГО: 245.00 [15:11:46]line НСП 1% : 2.16 [15:11:46]line НДС 12% : 26.02 [15:11:46]line Наличными: 245.00 [15:11:46]line Безнал.: 0.00 [15:11:46]line Место: АЗС № 90 "Партнер Нефть" [15:11:46]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:11:46]line СНО: Общий режим [15:11:46]line Чек 129 22.09.2024 15:11 [15:11:46]line Смена: 471 ФФД: 1.0 [15:11:46]line ЗНМ: 0300000120 [15:11:46]line РНМ: 0000000000091831 [15:11:46]line Версия ККМ: 001 [15:11:46]line ФМ: 0000000000871830 [15:11:46]line ФД: 115411 [15:11:46]line ФПД: 244322207720081 [15:11:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151146&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115411&fm=244322207720081&tin=02508201610067®Number=0000000000091831&sum=24500 [15:11:47]OFD Sender: Processing packet 115411 [packets to send 481, broken 480] [15:11:47]ProducePacketName [15:11:47]name=ofd_packets/00115411 [15:11:47]OFD Sender: To server: pG, [15:11:47]CommunicateWithHost lk.salyk.kg:30040 [15:11:47]ConnectInit lk.salyk.kg [15:11:47]line 0 [15:11:47]written 0, free lines is 4095 [15:11:47]Connected sock=9 [15:11:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2D 02 00 00 A8 52 25 02 EC EC 5A 03 01 00 03 00 19 02 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 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 B2 33 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D3 C2 01 00 35 04 06 00 DE 35 B2 66 E2 91 A6 84 B0 15 40 01 38 E0 [15:11:47]Write to MH i2c: 01 00 00 02 14 16 [15:11:47]Write i2c OK [15:11:47]MH_I2C_Read... [15:11:47]Read from MH i2c: 01 [15:11:47]MH_I2C_Read... [15:11:47]Read from MH i2c: 01 07 00 [15:11:47]MH_I2C_Read... [15:11:47]Read from MH i2c: 01 07 00 02 14 00 00 00 00 00 66 0B 8E [15:11:47]RasterBufferAndPrint [15:11:47]line [15:11:47]line [15:11:47]line [15:11:47]line [15:11:47]line [15:11:47]written 0, free lines is 2922 [15:11:47]MH_Cut [15:11:47]Write to MH i2c: D1 01 00 09 14 01 EF [15:11:47]Write i2c OK [15:11:47]MH_I2C_Read... [15:11:47]Read from MH i2c: D1 [15:11:47]MH_I2C_Read... [15:11:47]Read from MH i2c: D1 01 00 [15:11:47]MH_I2C_Read... [15:11:47]Read from MH i2c: D1 01 00 09 14 00 EE [15:11:47]Write to MH i2c: 01 00 00 0A 14 1E [15:11:47]Write i2c OK [15:11:47]MH_I2C_Read... [15:11:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 98 F4 47 00 AE 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 31 38 33 30 10 04 04 00 D3 C2 01 00 F4 03 04 00 F8 D8 EF 66 B6 04 01 00 00 F7 C2 72 F2 71 7C A8 78 [15:11:47]CommunicateWithHost err = 0 [15:11:47]CheckOFDResponse [15:11:47]1017 (14) - 77093643461234 [15:11:47]1041 (16) - 0000000000871830 [15:11:47]1040 (4) - 115411 [15:11:47]1012 (4) - 22.09.2024 08:44 [15:11:47]1206 (1) - 0 [15:11:47]OFD Sender: Remove packet 115411 [15:11:47]ProducePacketName [15:11:47]name=ofd_packets/00115411 [15:11:47]NVStorageDeleteData [15:11:48]OFD Sender: No OFD packet to send [15:11:49]*** Cut start [15:11:49]*** Partial cut [15:11:49]*** CUTSNS_PIN = 1 [15:11:49]*** CUTSNS_PIN = 0 [15:11:49]*** Brake cut motor [15:11:49]Read from MH i2c: 01 [15:11:49]MH_I2C_Read... [15:11:49]*** Stop cut motor [15:11:49]*** Cut end [15:11:49]Read from MH i2c: 01 07 00 [15:11:49]MH_I2C_Read... [15:11:49]Read from MH i2c: 01 07 00 0A 14 00 00 00 00 00 FF 0F 33 [15:11:49]process_action close_receipt done [15:11:49]requested_data is exist [15:11:49]produce_requested_data [15:11:49]requested_item fm.sn is exist - process it [15:11:49]wFMCommunicate request_size=4 [15:11:49]MH_SAM_APDU [15:11:49]CAPDU: 80 11 00 00 [15:11:49]Write to MH i2c: E2 08 00 0B 14 80 11 00 00 00 00 00 00 99 [15:11:49]Write i2c OK [15:11:49]MH_I2C_Read... [15:11:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:49]Read from MH i2c: E2 [15:11:49]MH_I2C_Read... [15:11:49]Read from MH i2c: E2 17 00 [15:11:49]MH_I2C_Read... [15:11:49]Read from MH i2c: E2 17 00 0B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E7 [15:11:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:11:49]wFMCommunicate OK [15:11:49]requested_item fd.num is exist - process it [15:11:49]SAM_PROTO_GetFieldsCounters [15:11:49]wFMCommunicate request_size=4 [15:11:49]MH_SAM_APDU [15:11:49]CAPDU: 80 13 00 00 [15:11:49]Write to MH i2c: E2 08 00 0C 14 80 13 00 00 00 00 00 00 9C [15:11:49]Write i2c OK [15:11:49]MH_I2C_Read... [15:11:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:50]Read from MH i2c: E2 [15:11:50]MH_I2C_Read... [15:11:50]Read from MH i2c: E2 62 00 [15:11:50]MH_I2C_Read... [15:11:50]Read from MH i2c: E2 62 00 0C 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D3 C2 01 00 0E 04 04 00 D7 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 A6 [15:11:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D3 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:50]wFMCommunicate OK [15:11:50]SAM_PROTO_GetFieldsCounters done [15:11:50]requested_item shift.num is exist - process it [15:11:50]requested_item shift.opened is exist - process it [15:11:50]req_shift_opened [15:11:50]FM_GetShiftState [15:11:50]SAM_PROTO_GetShiftState [15:11:50]wFMCommunicate request_size=4 [15:11:50]MH_SAM_APDU [15:11:50]CAPDU: 80 13 01 00 [15:11:50]Write to MH i2c: E2 08 00 0D 14 80 13 01 00 00 00 00 00 9E [15:11:50]Write i2c OK [15:11:50]MH_I2C_Read... [15:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:50]Read from MH i2c: E2 [15:11:50]MH_I2C_Read... [15:11:50]Read from MH i2c: E2 0E 00 [15:11:50]MH_I2C_Read... [15:11:50]Read from MH i2c: E2 0E 00 0D 14 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B7 [15:11:50]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:11:50]wFMCommunicate OK [15:11:50]SAM_PROTO_GetShiftState done [15:11:50]FM_GetShiftState done [15:11:50]req_shift_opened done [15:11:50]requested_item shift.open_date is exist - process it [15:11:50]req_shift_open_date [15:11:50]req_shift_open_date done [15:11:50]produce_requested_data done [15:11:50]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115411,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [15:11:50]process_action_free close_receipt [15:11:50]json_value_free [15:11:50]json_value_free done [15:11:50]process_json_proto returns [15:11:50]Send response to host [15:11:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115411,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [15:11:50]free response buf [15:11:50]execute_script done [15:11:50]execute_script returns [15:11:50]free content buf [15:11:50]Sock 8.Close socket [15:11:50]Sock 8.Thread stoped [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:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]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:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:26]accept exits with 10 [15:18:26]New connection [15:18:26]New thread 3066682724 created [15:18:26]Thread 3066826084 joined [15:18:26]Waiting for new connection... [15:18:26] Sock 10.Parse request [15:18:26]Sock 10.Check first char [15:18:26]Sock 10.First char is OK [15:18:26]request: POST /json_proto HTTP/1.0 [15:18:26]Method: POST [15:18:26]URL: /json_proto [15:18:26]Method is POST - this is cgi request [15:18:26]url: /json_proto [15:18:26]query_string will be loaded in cgi processing [15:18:26]execute_cgi json_proto POST (null) [15:18:26]execute_cgi path=json_proto method=POST [15:18:26]POST find Content-Length [15:18:26]Host: 172.17.41.136:8080 [15:18:26]Content-Length: 621 [15:18:26]Content-Type: application/json [15:18:26] [15:18:26]POST finish read [15:18:26]Found Content-Length = 621 [15:18:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343855", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:26]execute_script... [15:18:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343855", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:26]POST & json_proto [15:18:26]process_json_proto [15:18:26]json parsed OK: [15:18:26]protocol is kg_v1.0 [15:18:26]action value=close_receipt [15:18:26]process_action close_receipt [15:18:26]cmd_close_receipt [15:18:26]MH_GetDate [15:18:26]Write to MH i2c: F0 00 00 0E 14 11 [15:18:26]Write i2c OK [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: F0 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: F0 09 00 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: F0 09 00 0E 14 00 43 35 F0 66 1B D0 5A 64 91 [15:18:26]GetLastDocTimeStamp 1727017906 [15:18:26]current date 1727018307 [15:18:26]FM_GetShiftState [15:18:26]SAM_PROTO_GetShiftState [15:18:26]wFMCommunicate request_size=4 [15:18:26]MH_SAM_APDU [15:18:26]CAPDU: 80 13 01 00 [15:18:26]Write to MH i2c: E2 08 00 0F 14 80 13 01 00 00 00 00 00 A0 [15:18:26]Write i2c OK [15:18:26]MH_I2C_Read... [15:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:26]Read from MH i2c: E2 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: E2 0E 00 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: E2 0E 00 0F 14 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B9 [15:18:26]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:18:26]wFMCommunicate OK [15:18:26]SAM_PROTO_GetShiftState done [15:18:26]FM_GetShiftState done [15:18:26]opened in 1726965840 [15:18:26]opened+sec_in_day 1727052240 [15:18:26]quantity*price = 14400 [15:18:26]sum+1 = 14401 [15:18:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 130 22.09.2024 15:18 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115412 ФПД: 46863367066492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151827&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115412&fm=46863367066492&tin=02508201610067®Number=0000000000091831&sum=14400 0 [15:18:27]StoreToDocumentArchive [15:18:27]shift 471 fd 115412 [15:18:27]save to /storage/0471/doc_00115412 [15:18:27]save last doc name /storage/0471/doc_00115412 to /storage/kkm_last_doc_name [15:18:27]save OK [15:18:27]Clear old archive folders... [15:18:27]ProcessDocumentItem done err = 0, tmpTLVsize=273 [15:18:27]tlvbuf is B6D89AA0 [15:18:27]SAM_PROTO_ClearQueue [15:18:27]wFMCommunicate request_size=4 [15:18:27]MH_SAM_APDU [15:18:27]CAPDU: 80 09 00 00 [15:18:27]Write to MH i2c: E2 08 00 1C 14 80 09 00 00 00 00 00 00 A2 [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:27]Read from MH i2c: E2 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 1C 14 00 90 00 A4 [15:18:27]RAPDU: 90 00 [15:18:27]wFMCommunicate OK [15:18:27]SAM_PROTO_ClearQueue done [15:18:27]KKMCreateOFDPacket [15:18:27]OFDProtocolAddRootSTLVToBuf [15:18:27]FM_MakeSignedData [15:18:27]FM_MakeSignedData [15:18:27]SAM_PROTO_SignData [15:18:27]wFMCommunicate request_size=4 [15:18:27]MH_SAM_APDU [15:18:27]CAPDU: 80 0D 01 02 [15:18:27]Write to MH i2c: E2 08 00 1D 14 80 0D 01 02 00 00 00 00 AA [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:27]Read from MH i2c: E2 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 1D 14 00 90 00 A5 [15:18:27]RAPDU: 90 00 [15:18:27]wFMCommunicate OK [15:18:27]wFMCommunicate request_size=255 [15:18:27]MH_SAM_APDU [15:18:27]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 82 00 00 00 F4 03 04 00 43 35 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 [15:18:27]Write to MH i2c: E2 02 01 1E 14 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 82 00 00 00 F4 03 04 00 43 35 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 39 [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:27]Read from MH i2c: E2 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 1E 14 00 90 00 A6 [15:18:27]RAPDU: 90 00 [15:18:27]wFMCommunicate OK [15:18:27]wFMCommunicate request_size=32 [15:18:27]MH_SAM_APDU [15:18:27]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 33 30 10 04 04 00 D4 C2 01 00 35 04 06 00 2A 9F 3A 58 D3 7C [15:18:27]Write to MH i2c: E2 23 00 1F 14 80 0D 02 02 1B 00 30 30 30 38 37 31 38 33 30 10 04 04 00 D4 C2 01 00 35 04 06 00 2A 9F 3A 58 D3 7C 00 00 46 [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:27]Read from MH i2c: E2 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 1F 14 00 90 00 A7 [15:18:27]RAPDU: 90 00 [15:18:27]wFMCommunicate OK [15:18:27]wFMCommunicate request_size=4 [15:18:27]MH_SAM_APDU [15:18:27]CAPDU: 80 0D 03 02 [15:18:27]Write to MH i2c: E2 08 00 20 14 80 0D 03 02 00 00 00 00 AF [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:27]Read from MH i2c: E2 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 0B 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 0B 00 20 14 00 00 96 6C 71 EC D9 7E 94 90 00 FA [15:18:27]RAPDU: 00 96 6C 71 EC D9 7E 94 90 00 [15:18:27]wFMCommunicate OK [15:18:27]SAM_PROTO_SignData done [15:18:27]FM_MakeSignedData done [15:18:27]CreateOFDProtocolMessage [15:18:27]wFMCommunicate request_size=4 [15:18:27]MH_SAM_APDU [15:18:27]CAPDU: 80 11 00 00 [15:18:27]Write to MH i2c: E2 08 00 21 14 80 11 00 00 00 00 00 00 AF [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:27]Read from MH i2c: E2 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 17 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 17 00 21 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FD [15:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:18:27]wFMCommunicate OK [15:18:27]CreateOFDProtocolMessage done [15:18:27]OFDSenderStorePacket 115412 [15:18:27]StoreOFDPacket docnum=115412 [15:18:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 25 01 00 00 90 A7 1D 01 F9 E5 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 82 00 00 00 F4 03 04 00 43 35 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D4 C2 01 00 35 04 06 00 2A 9F 3A 58 D3 7C 00 96 6C 71 EC D9 7E 94 [15:18:27]CheckFolder [15:18:27]dirname=/storage/ofd_packets [15:18:27]CheckFolder done [15:18:27]ProducePacketName [15:18:27]name=ofd_packets/00115412 [15:18:27]NVStorageSaveData ofd_packets/00115412 [15:18:27]File name is /storage/ofd_packets/00115412 [15:18:27]Write 323 bytes [15:18:27]NVStorageSaveData done [15:18:27]OFDSenderStorePacket done [15:18:27]KKMCreateOFDPacket done [15:18:27]NVStorageSaveData kkm_last_timestamp [15:18:27]File name is /storage/kkm_last_timestamp [15:18:27]Write 4 bytes [15:18:27]NVStorageSaveData done [15:18:27]ExternCall_PrintAddStr [15:18:27]wPrintStart [15:18:27]Write to MH i2c: 01 00 00 22 14 36 [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: 01 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: 01 07 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: 01 07 00 22 14 00 00 00 00 00 FF 0F 4B [15:18:27]RasterBufferAndPrint [15:18:27]line Счет N : (3)343855 [15:18:27]line ИНН: 02508201610067 [15:18:27]line Контрольно-Кассовый Чек [15:18:27]line ПРОДАЖА [15:18:27]line Товар: 48743570 [15:18:27]line Сигареты Winston XStyle Blue [15:18:27]line 1.000 * 144.00 [15:18:27]line = 144.00 [15:18:27]line НДС 12% НСП 1% [15:18:27]line > о реализуемом товаре [15:18:27]line ИТОГО: 144.00 [15:18:27]line НСП 1% : 1.27 [15:18:27]line НДС 12% : 15.29 [15:18:27]line Наличными: 144.00 [15:18:27]line Безнал.: 0.00 [15:18:27]line Место: АЗС № 90 "Партнер Нефть" [15:18:27]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:18:27]line СНО: Общий режим [15:18:27]line Чек 130 22.09.2024 15:18 [15:18:27]line Смена: 471 ФФД: 1.0 [15:18:27]line ЗНМ: 0300000120 [15:18:27]line РНМ: 0000000000091831 [15:18:27]line Версия ККМ: 001 [15:18:27]line ФМ: 0000000000871830 [15:18:27]line ФД: 115412 [15:18:27]line ФПД: 46863367066492 [15:18:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151827&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115412&fm=46863367066492&tin=02508201610067®Number=0000000000091831&sum=14400 [15:18:28]line 0 [15:18:28]OFD Sender: Processing packet 115412 [packets to send 481, broken 480] [15:18:28]ProducePacketName [15:18:28]name=ofd_packets/00115412 [15:18:28]OFD Sender: To server: pG, [15:18:28]CommunicateWithHost lk.salyk.kg:30040 [15:18:28]ConnectInit lk.salyk.kg [15:18:28]written 0, free lines is 4095 [15:18:28]Connected sock=9 [15: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 31 38 33 30 25 01 00 00 90 A7 1D 01 F9 E5 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 82 00 00 00 F4 03 04 00 43 35 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D4 C2 01 00 35 04 06 00 2A 9F 3A 58 D3 7C 00 96 6C 71 EC D9 7E 94 [15:18:28]Write to MH i2c: 01 00 00 49 14 5D [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: 01 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: 01 07 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: 01 07 00 49 14 00 00 00 00 00 83 0C F3 [15:18:28]RasterBufferAndPrint [15:18:28]line [15:18:28]line [15:18:28]line [15:18:28]line [15:18:28]line [15:18:28]written 0, free lines is 3205 [15:18:28]MH_Cut [15:18:28]Write to MH i2c: D1 01 00 50 14 01 36 [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: D1 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: D1 01 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: D1 01 00 50 14 00 35 [15:18:28]Write to MH i2c: 01 00 00 51 14 65 [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A7 A8 47 00 2C 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D4 C2 01 00 F4 03 04 00 89 DA EF 66 B6 04 01 00 00 9D 51 76 5A 5E 91 F2 AE [15:18:28]CommunicateWithHost err = 0 [15:18:28]CheckOFDResponse [15:18:28]1017 (14) - 77093643461234 [15:18:28]1041 (16) - 0000000000871830 [15:18:28]1040 (4) - 115412 [15:18:28]1012 (4) - 22.09.2024 08:51 [15:18:28]1206 (1) - 0 [15:18:28]OFD Sender: Remove packet 115412 [15:18:28]ProducePacketName [15:18:28]name=ofd_packets/00115412 [15:18:28]NVStorageDeleteData [15:18:29]OFD Sender: No OFD packet to send [15:18:29]*** Cut start [15:18:29]*** Partial cut [15:18:29]*** CUTSNS_PIN = 1 [15:18:29]*** CUTSNS_PIN = 0 [15:18:30]*** Brake cut motor [15:18:30]Read from MH i2c: 01 [15:18:30]MH_I2C_Read... [15:18:30]*** Stop cut motor [15:18:30]*** Cut end [15:18:30]Read from MH i2c: 01 07 00 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: 01 07 00 51 14 00 00 00 00 00 FF 0F 7A [15:18:30]process_action close_receipt done [15:18:30]requested_data is exist [15:18:30]produce_requested_data [15:18:30]requested_item fm.sn is exist - process it [15:18:30]wFMCommunicate request_size=4 [15:18:30]MH_SAM_APDU [15:18:30]CAPDU: 80 11 00 00 [15:18:30]Write to MH i2c: E2 08 00 52 14 80 11 00 00 00 00 00 00 E0 [15:18:30]Write i2c OK [15:18:30]MH_I2C_Read... [15:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:30]Read from MH i2c: E2 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: E2 17 00 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: E2 17 00 52 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2E [15:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:18:30]wFMCommunicate OK [15:18:30]requested_item fd.num is exist - process it [15:18:30]SAM_PROTO_GetFieldsCounters [15:18:30]wFMCommunicate request_size=4 [15:18:30]MH_SAM_APDU [15:18:30]CAPDU: 80 13 00 00 [15:18:30]Write to MH i2c: E2 08 00 53 14 80 13 00 00 00 00 00 00 E3 [15:18:30]Write i2c OK [15:18:30]MH_I2C_Read... [15:18:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:30]Read from MH i2c: E2 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: E2 62 00 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: E2 62 00 53 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D4 C2 01 00 0E 04 04 00 D7 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 F1 [15:18:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D4 C2 01 00 0E 04 04 00 D7 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 [15:18:30]wFMCommunicate OK [15:18:30]SAM_PROTO_GetFieldsCounters done [15:18:30]requested_item shift.num is exist - process it [15:18:30]requested_item shift.opened is exist - process it [15:18:30]req_shift_opened [15:18:30]FM_GetShiftState [15:18:30]SAM_PROTO_GetShiftState [15:18:30]wFMCommunicate request_size=4 [15:18:30]MH_SAM_APDU [15:18:30]CAPDU: 80 13 01 00 [15:18:30]Write to MH i2c: E2 08 00 54 14 80 13 01 00 00 00 00 00 E5 [15:18:30]Write i2c OK [15:18:30]MH_I2C_Read... [15:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:30]Read from MH i2c: E2 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: E2 0E 00 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: E2 0E 00 54 14 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 FE [15:18:30]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:18:30]wFMCommunicate OK [15:18:30]SAM_PROTO_GetShiftState done [15:18:30]FM_GetShiftState done [15:18:30]req_shift_opened done [15:18:30]requested_item shift.open_date is exist - process it [15:18:30]req_shift_open_date [15:18:30]req_shift_open_date done [15:18:30]produce_requested_data done [15:18:30]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115412,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [15:18:30]process_action_free close_receipt [15:18:30]json_value_free [15:18:30]json_value_free done [15:18:30]process_json_proto returns [15:18:30]Send response to host [15:18:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115412,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [15:18:30]free response buf [15:18:30]execute_script done [15:18:30]execute_script returns [15:18:30]free content buf [15:18:30]Sock 10.Close socket [15:18:30]Sock 10.Thread stoped [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:28]accept exits with 8 [15:19:28]New connection [15:19:28]New thread 3066826084 created [15:19:28]Thread 3066682724 joined [15:19:28]Waiting for new connection... [15:19:28] Sock 8.Parse request [15:19:28]Sock 8.Check first char [15:19:28]Sock 8.First char is OK [15:19:28]request: POST /json_proto HTTP/1.0 [15:19:28]Method: POST [15:19:28]URL: /json_proto [15:19:28]Method is POST - this is cgi request [15:19:28]url: /json_proto [15:19:28]query_string will be loaded in cgi processing [15:19:28]execute_cgi json_proto POST (null) [15:19:28]execute_cgi path=json_proto method=POST [15:19:28]POST find Content-Length [15:19:28]Host: 172.17.41.136:8080 [15:19:28]Content-Length: 1270 [15:19:28]Content-Type: application/json [15:19:28] [15:19:28]POST finish read [15:19:28]Found Content-Length = 1270 [15:19:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343856", "tax_sys" : 0, "items" : [ { "code": "4620016300305", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut classic \u0432\u043B \u0430/\u0431\u0430\u043A\u0442 20 \u0448\u0442", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:28]execute_script... [15:19: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 : (3)343856", "tax_sys" : 0, "items" : [ { "code": "4620016300305", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut classic \u0432\u043B \u0430/\u0431\u0430\u043A\u0442 20 \u0448\u0442", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:28]POST & json_proto [15:19:28]process_json_proto [15:19:28]json parsed OK: [15:19:28]protocol is kg_v1.0 [15:19:28]action value=close_receipt [15:19:28]process_action close_receipt [15:19:28]cmd_close_receipt [15:19:28]MH_GetDate [15:19:28]Write to MH i2c: F0 00 00 55 14 58 [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: F0 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: F0 09 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: F0 09 00 55 14 00 82 35 F0 66 1B D0 5A 64 17 [15:19:28]GetLastDocTimeStamp 1727018307 [15:19:28]current date 1727018370 [15:19:28]FM_GetShiftState [15:19:28]SAM_PROTO_GetShiftState [15:19:28]wFMCommunicate request_size=4 [15:19:28]MH_SAM_APDU [15:19:28]CAPDU: 80 13 01 00 [15:19:28]Write to MH i2c: E2 08 00 56 14 80 13 01 00 00 00 00 00 E7 [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:28]Read from MH i2c: E2 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 0E 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 0E 00 56 14 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 00 [15:19:28]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:19:28]wFMCommunicate OK [15:19:28]SAM_PROTO_GetShiftState done [15:19:28]FM_GetShiftState done [15:19:28]opened in 1726965840 [15:19:28]opened+sec_in_day 1727052240 [15:19:28]quantity*price = 5500 [15:19:28]sum+1 = 5501 [15:19:28]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001154059 Напиток Lipton IceTea 0,5л зел чай 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480364 Напиток энерг Nitro экзотик 0.45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 131 22.09.2024 15:19 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115413 ФПД: 258327592905605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151930&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115413&fm=258327592905605&tin=02508201610067®Number=0000000000091831&sum=22500 0 [15:19:29]StoreToDocumentArchive [15:19:29]shift 471 fd 115413 [15:19:29]save to /storage/0471/doc_00115413 [15:19:29]save last doc name /storage/0471/doc_00115413 to /storage/kkm_last_doc_name [15:19:29]save OK [15:19:29]Clear old archive folders... [15:19:29]ProcessDocumentItem done err = 0, tmpTLVsize=548 [15:19:29]tlvbuf is B6F392E0 [15:19:29]SAM_PROTO_ClearQueue [15:19:29]wFMCommunicate request_size=4 [15:19:29]MH_SAM_APDU [15:19:29]CAPDU: 80 09 00 00 [15:19:29]Write to MH i2c: E2 08 00 63 14 80 09 00 00 00 00 00 00 E9 [15:19:29]Write i2c OK [15:19:29]MH_I2C_Read... [15:19:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:29]Read from MH i2c: E2 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: E2 03 00 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: E2 03 00 63 14 00 90 00 EB [15:19:29]RAPDU: 90 00 [15:19:29]wFMCommunicate OK [15:19:29]SAM_PROTO_ClearQueue done [15:19:29]KKMCreateOFDPacket [15:19:29]OFDProtocolAddRootSTLVToBuf [15:19:29]FM_MakeSignedData [15:19:29]FM_MakeSignedData [15:19:29]SAM_PROTO_SignData [15:19:29]wFMCommunicate request_size=4 [15:19:29]MH_SAM_APDU [15:19:29]CAPDU: 80 0D 01 02 [15:19:29]Write to MH i2c: E2 08 00 64 14 80 0D 01 02 00 00 00 00 F1 [15:19:29]Write i2c OK [15:19:29]MH_I2C_Read... [15:19:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:29]Read from MH i2c: E2 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: E2 03 00 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: E2 03 00 64 14 00 90 00 EC [15:19:29]RAPDU: 90 00 [15:19:29]wFMCommunicate OK [15:19:29]wFMCommunicate request_size=255 [15:19:29]MH_SAM_APDU [15:19:29]CAPDU: 80 0D 02 02 FA 03 00 24 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 [15:19:29]Write to MH i2c: E2 02 01 65 14 80 0D 02 02 FA 00 03 00 24 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 00 00 38 [15:19:30]Write i2c OK [15:19:30]MH_I2C_Read... [15:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:30]Read from MH i2c: E2 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 03 00 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 03 00 65 14 00 90 00 ED [15:19:30]RAPDU: 90 00 [15:19:30]wFMCommunicate OK [15:19:30]wFMCommunicate request_size=255 [15:19:30]MH_SAM_APDU [15:19:30]CAPDU: 80 0D 02 02 FA 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 82 35 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [15:19:30]Write to MH i2c: E2 02 01 66 14 80 0D 02 02 FA 00 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 82 35 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 FD [15:19:30]Write i2c OK [15:19:30]MH_I2C_Read... [15:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:30]Read from MH i2c: E2 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 03 00 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 03 00 66 14 00 90 00 EE [15:19:30]RAPDU: 90 00 [15:19:30]wFMCommunicate OK [15:19:30]wFMCommunicate request_size=57 [15:19:30]MH_SAM_APDU [15:19:30]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D5 C2 01 00 35 04 06 00 EA F2 94 69 2B 85 [15:19:30]Write to MH i2c: E2 3C 00 67 14 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D5 C2 01 00 35 04 06 00 EA F2 94 69 2B 85 00 00 CB [15:19:30]Write i2c OK [15:19:30]MH_I2C_Read... [15:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:30]Read from MH i2c: E2 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 03 00 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 03 00 67 14 00 90 00 EF [15:19:30]RAPDU: 90 00 [15:19:30]wFMCommunicate OK [15:19:30]wFMCommunicate request_size=4 [15:19:30]MH_SAM_APDU [15:19:30]CAPDU: 80 0D 03 02 [15:19:30]Write to MH i2c: E2 08 00 68 14 80 0D 03 02 00 00 00 00 F7 [15:19:30]Write i2c OK [15:19:30]MH_I2C_Read... [15:19:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:30]Read from MH i2c: E2 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 0B 00 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 0B 00 68 14 00 43 D9 E4 27 CF 60 60 0A 90 00 B8 [15:19:30]RAPDU: 43 D9 E4 27 CF 60 60 0A 90 00 [15:19:30]wFMCommunicate OK [15:19:30]SAM_PROTO_SignData done [15:19:30]FM_MakeSignedData done [15:19:30]CreateOFDProtocolMessage [15:19:30]wFMCommunicate request_size=4 [15:19:30]MH_SAM_APDU [15:19:30]CAPDU: 80 11 00 00 [15:19:30]Write to MH i2c: E2 08 00 69 14 80 11 00 00 00 00 00 00 F7 [15:19:30]Write i2c OK [15:19:30]MH_I2C_Read... [15:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:30]Read from MH i2c: E2 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 17 00 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 17 00 69 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 45 [15:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:19:30]wFMCommunicate OK [15:19:30]CreateOFDProtocolMessage done [15:19:30]OFDSenderStorePacket 115413 [15:19:30]StoreOFDPacket docnum=115413 [15:19:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 38 02 00 00 37 DD 30 02 45 11 5A 03 01 00 03 00 24 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 82 35 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D5 C2 01 00 35 04 06 00 EA F2 94 69 2B 85 43 D9 E4 27 CF 60 60 0A [15:19:30]CheckFolder [15:19:30]dirname=/storage/ofd_packets [15:19:30]CheckFolder done [15:19:30]ProducePacketName [15:19:30]name=ofd_packets/00115413 [15:19:30]NVStorageSaveData ofd_packets/00115413 [15:19:30]File name is /storage/ofd_packets/00115413 [15:19:30]Write 598 bytes [15:19:30]NVStorageSaveData done [15:19:30]OFDSenderStorePacket done [15:19:30]KKMCreateOFDPacket done [15:19:30]NVStorageSaveData kkm_last_timestamp [15:19:30]File name is /storage/kkm_last_timestamp [15:19:30]Write 4 bytes [15:19:30]NVStorageSaveData done [15:19:31]ExternCall_PrintAddStr [15:19:31]wPrintStart [15:19:31]Write to MH i2c: 01 00 00 6A 14 7E [15:19:31]Write i2c OK [15:19:31]MH_I2C_Read... [15:19:31]Read from MH i2c: 01 [15:19:31]MH_I2C_Read... [15:19:31]Read from MH i2c: 01 07 00 [15:19:31]MH_I2C_Read... [15:19:31]Read from MH i2c: 01 07 00 6A 14 00 00 00 00 00 FF 0F 93 [15:19:31]RasterBufferAndPrint [15:19:31]line Счет N : (3)343856 [15:19:31]line ИНН: 02508201610067 [15:19:31]line Контрольно-Кассовый Чек [15:19:31]line ПРОДАЖА [15:19:31]line Товар: 4620016300305 [15:19:31]line Салфетки Absolut classic вл а/бакт 20 шт [15:19:31]line 1.000 * 55.00 [15:19:31]line = 55.00 [15:19:31]line НДС 12% НСП 1% [15:19:31]line > о реализуемом товаре [15:19:31]line Товар: 4870001154059 [15:19:31]line Напиток Lipton IceTea 0,5л зел чай [15:19:31]line 1.000 * 75.00 [15:19:31]line = 75.00 [15:19:31]line НДС 12% НСП 1% [15:19:31]line > о реализуемом товаре [15:19:31]line Товар: 4700000480364 [15:19:31]line Напиток энерг Nitro экзотик 0.45 ж/б [15:19:31]line 1.000 * 95.00 [15:19:31]line = 95.00 [15:19:31]line НДС 12% НСП 1% [15:19:31]line > о реализуемом товаре [15:19:31]line ИТОГО: 225.00 [15:19:31]line НСП 1% : 1.99 [15:19:31]line НДС 12% : 23.89 [15:19:31]line Наличными: 225.00 [15:19:31]line Безнал.: 0.00 [15:19:31]line Место: АЗС № 90 "Партнер Нефть" [15:19:31]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:19:31]line СНО: Общий режим [15:19:31]line Чек 131 22.09.2024 15:19 [15:19:31]line Смена: 471 ФФД: 1.0 [15:19:31]line ЗНМ: 0300000120 [15:19:31]line РНМ: 0000000000091831 [15:19:31]line Версия ККМ: 001 [15:19:31]line ФМ: 0000000000871830 [15:19:31]line ФД: 115413 [15:19:31]line ФПД: 258327592905605 [15:19:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151930&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115413&fm=258327592905605&tin=02508201610067®Number=0000000000091831&sum=22500 [15:19:31]line 0 [15:19:31]written 0, free lines is 4095 [15:19:31]OFD Sender: Processing packet 115413 [packets to send 481, broken 480] [15:19:31]ProducePacketName [15:19:31]name=ofd_packets/00115413 [15:19:31]OFD Sender: To server: pG, [15:19:31]CommunicateWithHost lk.salyk.kg:30040 [15:19:31]ConnectInit lk.salyk.kg [15:19:31]Connected sock=10 [15:19:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 38 02 00 00 37 DD 30 02 45 11 5A 03 01 00 03 00 24 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 82 35 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D5 C2 01 00 35 04 06 00 EA F2 94 69 2B 85 43 D9 E4 27 CF 60 60 0A [15:19:31]Write to MH i2c: 01 00 00 A0 14 B4 [15:19:31]Write i2c OK [15:19:31]MH_I2C_Read... [15:19:31]Read from MH i2c: 01 [15:19:31]MH_I2C_Read... [15:19:31]Read from MH i2c: 01 07 00 [15:19:31]MH_I2C_Read... [15:19:31]Read from MH i2c: 01 07 00 A0 14 00 00 00 00 00 5B 0B 21 [15:19:31]RasterBufferAndPrint [15:19:31]line [15:19:31]line [15:19:31]line [15:19:31]line [15:19:31]line [15:19:31]written 0, free lines is 2911 [15:19:31]MH_Cut [15:19:31]Write to MH i2c: D1 01 00 A7 14 01 8D [15:19:31]Write i2c OK [15:19:31]MH_I2C_Read... [15:19:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 7E 77 47 00 A6 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 31 38 33 30 10 04 04 00 D5 C2 01 00 F4 03 04 00 C8 DA EF 66 B6 04 01 00 00 7A 5D EB 3C 8A 73 05 58 [15:19:31]CommunicateWithHost err = 0 [15:19:31]CheckOFDResponse [15:19:31]1017 (14) - 77093643461234 [15:19:31]1041 (16) - 0000000000871830 [15:19:31]1040 (4) - 115413 [15:19:31]1012 (4) - 22.09.2024 08:52 [15:19:31]1206 (1) - 0 [15:19:31]OFD Sender: Remove packet 115413 [15:19:31]ProducePacketName [15:19:31]name=ofd_packets/00115413 [15:19:31]NVStorageDeleteData [15:19:31]Read from MH i2c: D1 [15:19:31]MH_I2C_Read... [15:19:31]Read from MH i2c: D1 01 00 [15:19:31]MH_I2C_Read... [15:19:31]Read from MH i2c: D1 01 00 A7 14 00 8C [15:19:31]Write to MH i2c: 01 00 00 A8 14 BC [15:19:31]Write i2c OK [15:19:31]MH_I2C_Read... [15:19:32]OFD Sender: No OFD packet to send [15:19:33]*** Cut start [15:19:33]*** Partial cut [15:19:33]*** CUTSNS_PIN = 1 [15:19:33]*** CUTSNS_PIN = 0 [15:19:33]*** Brake cut motor [15:19:34]Read from MH i2c: 01 [15:19:34]MH_I2C_Read... [15:19:34]*** Stop cut motor [15:19:34]*** Cut end [15:19:34]Read from MH i2c: 01 07 00 [15:19:34]MH_I2C_Read... [15:19:34]Read from MH i2c: 01 07 00 A8 14 00 00 00 00 00 FF 0F D1 [15:19:34]process_action close_receipt done [15:19:34]requested_data is exist [15:19:34]produce_requested_data [15:19:34]requested_item fm.sn is exist - process it [15:19:34]wFMCommunicate request_size=4 [15:19:34]MH_SAM_APDU [15:19:34]CAPDU: 80 11 00 00 [15:19:34]Write to MH i2c: E2 08 00 A9 14 80 11 00 00 00 00 00 00 37 [15:19:34]Write i2c OK [15:19:34]MH_I2C_Read... [15:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:34]Read from MH i2c: E2 [15:19:34]MH_I2C_Read... [15:19:34]Read from MH i2c: E2 17 00 [15:19:34]MH_I2C_Read... [15:19:34]Read from MH i2c: E2 17 00 A9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 85 [15:19:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:19:34]wFMCommunicate OK [15:19:34]requested_item fd.num is exist - process it [15:19:34]SAM_PROTO_GetFieldsCounters [15:19:34]wFMCommunicate request_size=4 [15:19:34]MH_SAM_APDU [15:19:34]CAPDU: 80 13 00 00 [15:19:34]Write to MH i2c: E2 08 00 AA 14 80 13 00 00 00 00 00 00 3A [15:19:34]Write i2c OK [15:19:34]MH_I2C_Read... [15:19:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:34]Read from MH i2c: E2 [15:19:34]MH_I2C_Read... [15:19:34]Read from MH i2c: E2 62 00 [15:19:34]MH_I2C_Read... [15:19:34]Read from MH i2c: E2 62 00 AA 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D5 C2 01 00 0E 04 04 00 D7 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 [15:19:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D5 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:34]wFMCommunicate OK [15:19:34]SAM_PROTO_GetFieldsCounters done [15:19:34]requested_item shift.num is exist - process it [15:19:34]requested_item shift.opened is exist - process it [15:19:34]req_shift_opened [15:19:34]FM_GetShiftState [15:19:34]SAM_PROTO_GetShiftState [15:19:34]wFMCommunicate request_size=4 [15:19:34]MH_SAM_APDU [15:19:34]CAPDU: 80 13 01 00 [15:19:34]Write to MH i2c: E2 08 00 AB 14 80 13 01 00 00 00 00 00 3C [15:19:34]Write i2c OK [15:19:34]MH_I2C_Read... [15:19:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:34]Read from MH i2c: E2 [15:19:34]MH_I2C_Read... [15:19:34]Read from MH i2c: E2 0E 00 [15:19:34]MH_I2C_Read... [15:19:34]Read from MH i2c: E2 0E 00 AB 14 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 55 [15:19:34]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:19:34]wFMCommunicate OK [15:19:34]SAM_PROTO_GetShiftState done [15:19:34]FM_GetShiftState done [15:19:34]req_shift_opened done [15:19:34]requested_item shift.open_date is exist - process it [15:19:34]req_shift_open_date [15:19:34]req_shift_open_date done [15:19:34]produce_requested_data done [15:19:34]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115413,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [15:19:34]process_action_free close_receipt [15:19:34]json_value_free [15:19:34]json_value_free done [15:19:34]process_json_proto returns [15:19:34]Send response to host [15:19:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115413,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [15:19:34]free response buf [15:19:34]execute_script done [15:19:34]execute_script returns [15:19:34]free content buf [15:19:34]Sock 8.Close socket [15:19:34]Sock 8.Thread stoped [15:19:37]OFD Sender: No OFD packet to send [15:19:42]OFD Sender: No OFD packet to send [15:19:47]OFD Sender: No OFD packet to send [15:19:52]OFD Sender: No OFD packet to send [15:19:57]OFD Sender: No OFD packet to send [15:20:02]OFD Sender: No OFD packet to send [15:20:07]OFD Sender: No OFD packet to send [15:20:12]OFD Sender: No OFD packet to send [15:20:17]OFD Sender: No OFD packet to send [15:20:22]OFD Sender: No OFD packet to send [15:20:27]OFD Sender: No OFD packet to send [15:20:32]OFD Sender: No OFD packet to send [15:20:37]OFD Sender: No OFD packet to send [15:20:42]OFD Sender: No OFD packet to send [15:20:47]OFD Sender: No OFD packet to send [15:20:52]OFD Sender: No OFD packet to send [15:20:57]OFD Sender: No OFD packet to send [15:21:02]OFD Sender: No OFD packet to send [15:21:07]OFD Sender: No OFD packet to send [15:21:12]OFD Sender: No OFD packet to send [15:21:17]OFD Sender: No OFD packet to send [15:21:22]OFD Sender: No OFD packet to send [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:17]OFD Sender: No OFD packet to send [15:23:23]OFD Sender: No OFD packet to send [15:23:28]OFD Sender: No OFD packet to send [15:23:33]OFD Sender: No OFD packet to send [15:23:38]OFD Sender: No OFD packet to send [15:23:43]OFD Sender: No OFD packet to send [15:23:48]OFD Sender: No OFD packet to send [15:23:53]OFD Sender: No OFD packet to send [15:23:58]OFD Sender: No OFD packet to send [15:24:03]OFD Sender: No OFD packet to send [15:24:08]OFD Sender: No OFD packet to send [15:24:13]OFD Sender: No OFD packet to send [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:34]accept exits with 9 [15:24:34]New connection [15:24:34]New thread 3066682724 created [15:24:34]Thread 3066826084 joined [15:24:34]Waiting for new connection... [15:24:34] Sock 9.Parse request [15:24:34]Sock 9.Check first char [15:24:34]Sock 9.First char is OK [15:24:34]request: POST /json_proto HTTP/1.0 [15:24:34]Method: POST [15:24:34]URL: /json_proto [15:24:34]Method is POST - this is cgi request [15:24:34]url: /json_proto [15:24:34]query_string will be loaded in cgi processing [15:24:34]execute_cgi json_proto POST (null) [15:24:34]execute_cgi path=json_proto method=POST [15:24:34]POST find Content-Length [15:24:34]Host: 172.17.41.136:8080 [15:24:34]Content-Length: 846 [15:24:34]Content-Type: application/json [15:24:34] [15:24:34]POST finish read [15:24:34]Found Content-Length = 846 [15:24:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343857", "tax_sys" : 0, "items" : [ { "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:34]execute_script... [15:24:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343857", "tax_sys" : 0, "items" : [ { "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:34]POST & json_proto [15:24:34]process_json_proto [15:24:34]json parsed OK: [15:24:34]protocol is kg_v1.0 [15:24:34]action value=close_receipt [15:24:34]process_action close_receipt [15:24:34]cmd_close_receipt [15:24:34]MH_GetDate [15:24:34]Write to MH i2c: F0 00 00 AC 14 AF [15:24:34]Write i2c OK [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: F0 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: F0 09 00 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: F0 09 00 AC 14 00 B4 36 F0 66 1B D0 5A 64 A1 [15:24:34]GetLastDocTimeStamp 1727018370 [15:24:34]current date 1727018676 [15:24:34]FM_GetShiftState [15:24:34]SAM_PROTO_GetShiftState [15:24:34]wFMCommunicate request_size=4 [15:24:34]MH_SAM_APDU [15:24:34]CAPDU: 80 13 01 00 [15:24:34]Write to MH i2c: E2 08 00 AD 14 80 13 01 00 00 00 00 00 3E [15:24:34]Write i2c OK [15:24:34]MH_I2C_Read... [15:24:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:34]Read from MH i2c: E2 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: E2 0E 00 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: E2 0E 00 AD 14 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 57 [15:24:34]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:24:34]wFMCommunicate OK [15:24:34]SAM_PROTO_GetShiftState done [15:24:34]FM_GetShiftState done [15:24:34]opened in 1726965840 [15:24:34]opened+sec_in_day 1727052240 [15:24:34]quantity*price = 8000 [15:24:34]sum+1 = 8001 [15:24:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 0.00 Безнал.: 80.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 132 22.09.2024 15:24 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115414 ФПД: 30601046601758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152436&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115414&fm=30601046601758&tin=02508201610067®Number=0000000000091831&sum=8000 0 [15:24:35]StoreToDocumentArchive [15:24:35]shift 471 fd 115414 [15:24:35]save to /storage/0471/doc_00115414 [15:24:35]save last doc name /storage/0471/doc_00115414 to /storage/kkm_last_doc_name [15:24:35]save OK [15:24:35]Clear old archive folders... [15:24:35]ProcessDocumentItem done err = 0, tmpTLVsize=296 [15:24:35]tlvbuf is 01C5E530 [15:24:35]SAM_PROTO_ClearQueue [15:24:35]wFMCommunicate request_size=4 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 09 00 00 [15:24:35]Write to MH i2c: E2 08 00 BA 14 80 09 00 00 00 00 00 00 40 [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 BA 14 00 90 00 42 [15:24:35]RAPDU: 90 00 [15:24:35]wFMCommunicate OK [15:24:35]SAM_PROTO_ClearQueue done [15:24:35]KKMCreateOFDPacket [15:24:35]OFDProtocolAddRootSTLVToBuf [15:24:35]FM_MakeSignedData [15:24:35]FM_MakeSignedData [15:24:35]SAM_PROTO_SignData [15:24:35]wFMCommunicate request_size=4 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 0D 01 02 [15:24:35]Write to MH i2c: E2 08 00 BB 14 80 0D 01 02 00 00 00 00 48 [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 BB 14 00 90 00 43 [15:24:35]RAPDU: 90 00 [15:24:35]wFMCommunicate OK [15:24:35]wFMCommunicate request_size=255 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 B4 36 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [15:24:35]Write to MH i2c: E2 02 01 BC 14 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 B4 36 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 A3 [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 BC 14 00 90 00 44 [15:24:35]RAPDU: 90 00 [15:24:35]wFMCommunicate OK [15:24:35]wFMCommunicate request_size=55 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D6 C2 01 00 35 04 06 00 1B D4 DC 83 30 1E [15:24:35]Write to MH i2c: E2 3A 00 BD 14 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D6 C2 01 00 35 04 06 00 1B D4 DC 83 30 1E 00 00 D1 [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 BD 14 00 90 00 45 [15:24:35]RAPDU: 90 00 [15:24:35]wFMCommunicate OK [15:24:35]wFMCommunicate request_size=4 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 0D 03 02 [15:24:35]Write to MH i2c: E2 08 00 BE 14 80 0D 03 02 00 00 00 00 4D [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 0B 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 0B 00 BE 14 00 D9 D8 B5 E1 7D 0A 48 55 90 00 B9 [15:24:35]RAPDU: D9 D8 B5 E1 7D 0A 48 55 90 00 [15:24:35]wFMCommunicate OK [15:24:35]SAM_PROTO_SignData done [15:24:35]FM_MakeSignedData done [15:24:35]CreateOFDProtocolMessage [15:24:35]wFMCommunicate request_size=4 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 11 00 00 [15:24:35]Write to MH i2c: E2 08 00 BF 14 80 11 00 00 00 00 00 00 4D [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 17 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 17 00 BF 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9B [15:24:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:24:35]wFMCommunicate OK [15:24:35]CreateOFDProtocolMessage done [15:24:35]OFDSenderStorePacket 115414 [15:24:35]StoreOFDPacket docnum=115414 [15:24:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3C 01 00 00 4C 32 34 01 83 2D 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 B4 36 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D6 C2 01 00 35 04 06 00 1B D4 DC 83 30 1E D9 D8 B5 E1 7D 0A 48 55 [15:24:35]CheckFolder [15:24:35]dirname=/storage/ofd_packets [15:24:35]CheckFolder done [15:24:35]ProducePacketName [15:24:35]name=ofd_packets/00115414 [15:24:35]NVStorageSaveData ofd_packets/00115414 [15:24:35]File name is /storage/ofd_packets/00115414 [15:24:35]Write 346 bytes [15:24:35]NVStorageSaveData done [15:24:35]OFDSenderStorePacket done [15:24:35]KKMCreateOFDPacket done [15:24:35]NVStorageSaveData kkm_last_timestamp [15:24:35]File name is /storage/kkm_last_timestamp [15:24:35]Write 4 bytes [15:24:35]NVStorageSaveData done [15:24:35]ExternCall_PrintAddStr [15:24:35]wPrintStart [15:24:35]Write to MH i2c: 01 00 00 C0 14 D4 [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: 01 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: 01 07 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: 01 07 00 C0 14 00 00 00 00 00 FF 0F E9 [15:24:35]RasterBufferAndPrint [15:24:35]line Счет N : (3)343857 [15:24:35]line ИНН: 02508201610067 [15:24:35]line Контрольно-Кассовый Чек [15:24:35]line ПРОДАЖА [15:24:35]line Товар: 4700003010476 [15:24:35]line Напиток Let`s Go! с/с яблоко ПЭТ 1л [15:24:35]line 1.000 * 80.00 [15:24:35]line = 80.00 [15:24:35]line НДС 12% НСП 1% [15:24:35]line > о реализуемом товаре [15:24:35]line ИТОГО: 80.00 [15:24:35]line НСП 1% : 0.71 [15:24:35]line НДС 12% : 8.50 [15:24:35]line Наличными: 0.00 [15:24:35]line Безнал.: 80.00 [15:24:35]line Место: АЗС № 90 "Партнер Нефть" [15:24:35]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:24:35]line СНО: Общий режим [15:24:35]line Чек 132 22.09.2024 15:24 [15:24:35]line Смена: 471 ФФД: 1.0 [15:24:35]line ЗНМ: 0300000120 [15:24:35]line РНМ: 0000000000091831 [15:24:35]line Версия ККМ: 001 [15:24:35]line Платежная система: O! деньги [15:24:35]line ФМ: 0000000000871830 [15:24:35]line ФД: 115414 [15:24:35]line ФПД: 30601046601758 [15:24:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152436&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115414&fm=30601046601758&tin=02508201610067®Number=0000000000091831&sum=8000 [15:24:36]line 0 [15:24:36]OFD Sender: Processing packet 115414 [packets to send 481, broken 480] [15:24:36]ProducePacketName [15:24:36]name=ofd_packets/00115414 [15:24:36]OFD Sender: To server: pG, [15:24:36]CommunicateWithHost lk.salyk.kg:30040 [15:24:36]ConnectInit lk.salyk.kg [15:24:36]written 0, free lines is 4095 [15:24:36]Connected sock=10 [15:24:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3C 01 00 00 4C 32 34 01 83 2D 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 B4 36 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D6 C2 01 00 35 04 06 00 1B D4 DC 83 30 1E D9 D8 B5 E1 7D 0A 48 55 [15:24:36]Write to MH i2c: 01 00 00 EA 14 FE [15:24:36]Write i2c OK [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: 01 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: 01 07 00 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: 01 07 00 EA 14 00 00 00 00 00 3D 0C 4E [15:24:36]RasterBufferAndPrint [15:24:36]line [15:24:36]line [15:24:36]line [15:24:36]line [15:24:36]line [15:24:36]written 0, free lines is 3136 [15:24:36]MH_Cut [15:24:36]Write to MH i2c: D1 01 00 F1 14 01 D7 [15:24:36]Write i2c OK [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: D1 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: D1 01 00 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: D1 01 00 F1 14 00 D6 [15:24:36]Write to MH i2c: 01 00 00 F2 14 06 [15:24:36]Write i2c OK [15:24:36]MH_I2C_Read... [15:24:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6B 07 47 00 41 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 31 38 33 30 10 04 04 00 D6 C2 01 00 F4 03 04 00 F9 DB EF 66 B6 04 01 00 00 5A F5 DF 90 4C 39 B8 C7 [15:24:36]CommunicateWithHost err = 0 [15:24:36]CheckOFDResponse [15:24:36]1017 (14) - 77093643461234 [15:24:36]1041 (16) - 0000000000871830 [15:24:36]1040 (4) - 115414 [15:24:36]1012 (4) - 22.09.2024 08:57 [15:24:36]1206 (1) - 0 [15:24:36]OFD Sender: Remove packet 115414 [15:24:36]ProducePacketName [15:24:36]name=ofd_packets/00115414 [15:24:36]NVStorageDeleteData [15:24:37]OFD Sender: No OFD packet to send [15:24:38]*** Cut start [15:24:38]*** Partial cut [15:24:38]*** CUTSNS_PIN = 1 [15:24:38]*** CUTSNS_PIN = 0 [15:24:38]*** Brake cut motor [15:24:38]Read from MH i2c: 01 [15:24:38]MH_I2C_Read... [15:24:38]*** Stop cut motor [15:24:38]*** Cut end [15:24:38]Read from MH i2c: 01 07 00 [15:24:38]MH_I2C_Read... [15:24:38]Read from MH i2c: 01 07 00 F2 14 00 00 00 00 00 FF 0F 1B [15:24:38]process_action close_receipt done [15:24:38]requested_data is exist [15:24:38]produce_requested_data [15:24:38]requested_item fm.sn is exist - process it [15:24:38]wFMCommunicate request_size=4 [15:24:38]MH_SAM_APDU [15:24:38]CAPDU: 80 11 00 00 [15:24:38]Write to MH i2c: E2 08 00 F3 14 80 11 00 00 00 00 00 00 81 [15:24:38]Write i2c OK [15:24:38]MH_I2C_Read... [15:24:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:38]Read from MH i2c: E2 [15:24:38]MH_I2C_Read... [15:24:38]Read from MH i2c: E2 17 00 [15:24:38]MH_I2C_Read... [15:24:38]Read from MH i2c: E2 17 00 F3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CF [15:24:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:24:38]wFMCommunicate OK [15:24:38]requested_item fd.num is exist - process it [15:24:38]SAM_PROTO_GetFieldsCounters [15:24:38]wFMCommunicate request_size=4 [15:24:38]MH_SAM_APDU [15:24:38]CAPDU: 80 13 00 00 [15:24:38]Write to MH i2c: E2 08 00 F4 14 80 13 00 00 00 00 00 00 84 [15:24:38]Write i2c OK [15:24:38]MH_I2C_Read... [15:24:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:38]Read from MH i2c: E2 [15:24:38]MH_I2C_Read... [15:24:38]Read from MH i2c: E2 62 00 [15:24:38]MH_I2C_Read... [15:24:38]Read from MH i2c: E2 62 00 F4 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D6 C2 01 00 0E 04 04 00 D7 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 [15:24:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D6 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:38]wFMCommunicate OK [15:24:38]SAM_PROTO_GetFieldsCounters done [15:24:38]requested_item shift.num is exist - process it [15:24:38]requested_item shift.opened is exist - process it [15:24:38]req_shift_opened [15:24:38]FM_GetShiftState [15:24:38]SAM_PROTO_GetShiftState [15:24:38]wFMCommunicate request_size=4 [15:24:38]MH_SAM_APDU [15:24:38]CAPDU: 80 13 01 00 [15:24:38]Write to MH i2c: E2 08 00 F5 14 80 13 01 00 00 00 00 00 86 [15:24:38]Write i2c OK [15:24:38]MH_I2C_Read... [15:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:38]Read from MH i2c: E2 [15:24:38]MH_I2C_Read... [15:24:38]Read from MH i2c: E2 0E 00 [15:24:38]MH_I2C_Read... [15:24:38]Read from MH i2c: E2 0E 00 F5 14 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 9F [15:24:38]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:24:38]wFMCommunicate OK [15:24:38]SAM_PROTO_GetShiftState done [15:24:38]FM_GetShiftState done [15:24:38]req_shift_opened done [15:24:38]requested_item shift.open_date is exist - process it [15:24:38]req_shift_open_date [15:24:38]req_shift_open_date done [15:24:38]produce_requested_data done [15:24:38]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115414,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [15:24:38]process_action_free close_receipt [15:24:38]json_value_free [15:24:38]json_value_free done [15:24:38]process_json_proto returns [15:24:38]Send response to host [15:24:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115414,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [15:24:38]free response buf [15:24:38]execute_script done [15:24:38]execute_script returns [15:24:38]free content buf [15:24:38]Sock 9.Close socket [15:24:38]Sock 9.Thread stoped [15:24:42]OFD Sender: No OFD packet to send [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]accept exits with 8 [15:25:12]New connection [15:25:12]New thread 3066826084 created [15:25:12]Thread 3066682724 joined [15:25:12]Waiting for new connection... [15:25:12] Sock 8.Parse request [15:25:12]Sock 8.Check first char [15:25:12]Sock 8.First char is OK [15:25:12]request: POST /json_proto HTTP/1.0 [15:25:12]Method: POST [15:25:12]URL: /json_proto [15:25:12]Method is POST - this is cgi request [15:25:12]url: /json_proto [15:25:12]query_string will be loaded in cgi processing [15:25:12]execute_cgi json_proto POST (null) [15:25:12]execute_cgi path=json_proto method=POST [15:25:12]POST find Content-Length [15:25:12]Host: 172.17.41.136:8080 [15:25:12]Content-Length: 644 [15:25:12]Content-Type: application/json [15:25:12] [15:25:12]POST finish read [15:25:12]Found Content-Length = 644 [15:25:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343858", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:12]execute_script... [15:25:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343858", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:12]POST & json_proto [15:25:12]process_json_proto [15:25:12]json parsed OK: [15:25:12]protocol is kg_v1.0 [15:25:12]action value=close_receipt [15:25:12]process_action close_receipt [15:25:12]cmd_close_receipt [15:25:12]MH_GetDate [15:25:12]Write to MH i2c: F0 00 00 F6 14 F9 [15:25:12]Write i2c OK [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: F0 [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: F0 09 00 [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: F0 09 00 F6 14 00 DA 36 F0 66 1B D0 5A 64 11 [15:25:12]GetLastDocTimeStamp 1727018676 [15:25:12]current date 1727018714 [15:25:12]FM_GetShiftState [15:25:12]SAM_PROTO_GetShiftState [15:25:12]wFMCommunicate request_size=4 [15:25:12]MH_SAM_APDU [15:25:12]CAPDU: 80 13 01 00 [15:25:12]Write to MH i2c: E2 08 00 F7 14 80 13 01 00 00 00 00 00 88 [15:25:12]Write i2c OK [15:25:12]MH_I2C_Read... [15:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:12]Read from MH i2c: E2 [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: E2 0E 00 [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: E2 0E 00 F7 14 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A1 [15:25:12]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:25:12]wFMCommunicate OK [15:25:12]SAM_PROTO_GetShiftState done [15:25:12]FM_GetShiftState done [15:25:12]opened in 1726965840 [15:25:12]opened+sec_in_day 1727052240 [15:25:12]quantity*price = 11500 [15:25:12]sum+1 = 11501 [15:25:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 133 22.09.2024 15:25 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115415 ФПД: 105125322886667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152514&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115415&fm=105125322886667&tin=02508201610067®Number=0000000000091831&sum=11500 0 [15:25:13]StoreToDocumentArchive [15:25:13]shift 471 fd 115415 [15:25:13]save to /storage/0471/doc_00115415 [15:25:13]save last doc name /storage/0471/doc_00115415 to /storage/kkm_last_doc_name [15:25:13]save OK [15:25:13]Clear old archive folders... [15:25:13]ProcessDocumentItem done err = 0, tmpTLVsize=280 [15:25:13]tlvbuf is B6EA2990 [15:25:13]SAM_PROTO_ClearQueue [15:25:13]wFMCommunicate request_size=4 [15:25:13]MH_SAM_APDU [15:25:13]CAPDU: 80 09 00 00 [15:25:13]Write to MH i2c: E2 08 00 04 15 80 09 00 00 00 00 00 00 8B [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:13]Read from MH i2c: E2 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 03 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 03 00 04 15 00 90 00 8D [15:25:13]RAPDU: 90 00 [15:25:13]wFMCommunicate OK [15:25:13]SAM_PROTO_ClearQueue done [15:25:13]KKMCreateOFDPacket [15:25:13]OFDProtocolAddRootSTLVToBuf [15:25:13]FM_MakeSignedData [15:25:13]FM_MakeSignedData [15:25:13]SAM_PROTO_SignData [15:25:13]wFMCommunicate request_size=4 [15:25:13]MH_SAM_APDU [15:25:13]CAPDU: 80 0D 01 02 [15:25:13]Write to MH i2c: E2 08 00 05 15 80 0D 01 02 00 00 00 00 93 [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:13]Read from MH i2c: E2 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 03 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 03 00 05 15 00 90 00 8E [15:25:13]RAPDU: 90 00 [15:25:13]wFMCommunicate OK [15:25:13]wFMCommunicate request_size=255 [15:25:13]MH_SAM_APDU [15:25:13]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DA 36 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 [15:25:13]Write to MH i2c: E2 02 01 06 15 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DA 36 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 00 00 93 [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:13]Read from MH i2c: E2 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 03 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 03 00 06 15 00 90 00 8F [15:25:13]RAPDU: 90 00 [15:25:13]wFMCommunicate OK [15:25:13]wFMCommunicate request_size=39 [15:25:13]MH_SAM_APDU [15:25:13]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D7 C2 01 00 35 04 06 00 5F 9C 65 87 0E 0B [15:25:13]Write to MH i2c: E2 2A 00 07 15 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D7 C2 01 00 35 04 06 00 5F 9C 65 87 0E 0B 00 00 E6 [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:13]Read from MH i2c: E2 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 03 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 03 00 07 15 00 90 00 90 [15:25:13]RAPDU: 90 00 [15:25:13]wFMCommunicate OK [15:25:13]wFMCommunicate request_size=4 [15:25:13]MH_SAM_APDU [15:25:13]CAPDU: 80 0D 03 02 [15:25:13]Write to MH i2c: E2 08 00 08 15 80 0D 03 02 00 00 00 00 98 [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:13]Read from MH i2c: E2 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 0B 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 0B 00 08 15 00 DB 41 E6 AE 41 EB 62 AB 90 00 82 [15:25:13]RAPDU: DB 41 E6 AE 41 EB 62 AB 90 00 [15:25:13]wFMCommunicate OK [15:25:13]SAM_PROTO_SignData done [15:25:13]FM_MakeSignedData done [15:25:13]CreateOFDProtocolMessage [15:25:13]wFMCommunicate request_size=4 [15:25:13]MH_SAM_APDU [15:25:13]CAPDU: 80 11 00 00 [15:25:13]Write to MH i2c: E2 08 00 09 15 80 11 00 00 00 00 00 00 98 [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:13]Read from MH i2c: E2 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 17 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 17 00 09 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E6 [15:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:25:13]wFMCommunicate OK [15:25:13]CreateOFDProtocolMessage done [15:25:13]OFDSenderStorePacket 115415 [15:25:13]StoreOFDPacket docnum=115415 [15:25:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2C 01 00 00 1E 43 24 01 08 E4 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DA 36 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D7 C2 01 00 35 04 06 00 5F 9C 65 87 0E 0B DB 41 E6 AE 41 EB 62 AB [15:25:13]CheckFolder [15:25:13]dirname=/storage/ofd_packets [15:25:13]CheckFolder done [15:25:13]ProducePacketName [15:25:13]name=ofd_packets/00115415 [15:25:13]NVStorageSaveData ofd_packets/00115415 [15:25:13]File name is /storage/ofd_packets/00115415 [15:25:13]Write 330 bytes [15:25:13]NVStorageSaveData done [15:25:13]OFDSenderStorePacket done [15:25:13]KKMCreateOFDPacket done [15:25:13]NVStorageSaveData kkm_last_timestamp [15:25:13]File name is /storage/kkm_last_timestamp [15:25:13]Write 4 bytes [15:25:13]NVStorageSaveData done [15:25:13]ExternCall_PrintAddStr [15:25:13]wPrintStart [15:25:13]Write to MH i2c: 01 00 00 0A 15 1F [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: 01 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: 01 07 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: 01 07 00 0A 15 00 00 00 00 00 FF 0F 34 [15:25:13]RasterBufferAndPrint [15:25:13]line Счет N : (3)343858 [15:25:13]line ИНН: 02508201610067 [15:25:13]line Контрольно-Кассовый Чек [15:25:13]line ПРОДАЖА [15:25:13]line Товар: 2000036210013 [15:25:13]line Кофе Капучино (GABB TRADE) [15:25:13]line 1.000 * 115.00 [15:25:13]line = 115.00 [15:25:13]line НДС 12% НСП 1% [15:25:13]line > о реализуемом товаре [15:25:13]line ИТОГО: 115.00 [15:25:13]line НСП 1% : 1.02 [15:25:13]line НДС 12% : 12.21 [15:25:13]line Наличными: 115.00 [15:25:13]line Безнал.: 0.00 [15:25:13]line Место: АЗС № 90 "Партнер Нефть" [15:25:13]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:25:13]line СНО: Общий режим [15:25:13]line Чек 133 22.09.2024 15:25 [15:25:13]line Смена: 471 ФФД: 1.0 [15:25:13]line ЗНМ: 0300000120 [15:25:13]line РНМ: 0000000000091831 [15:25:13]line Версия ККМ: 001 [15:25:13]line ФМ: 0000000000871830 [15:25:13]line ФД: 115415 [15:25:13]line ФПД: 105125322886667 [15:25:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152514&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115415&fm=105125322886667&tin=02508201610067®Number=0000000000091831&sum=11500 [15:25:13]line 0 [15:25:13]written 0, free lines is 4095 [15:25:14]OFD Sender: Processing packet 115415 [packets to send 481, broken 480] [15:25:14]ProducePacketName [15:25:14]name=ofd_packets/00115415 [15:25:14]OFD Sender: To server: pG, [15:25:14]CommunicateWithHost lk.salyk.kg:30040 [15:25:14]ConnectInit lk.salyk.kg [15:25:14]Write to MH i2c: 01 00 00 31 15 46 [15:25:14]Write i2c OK [15:25:14]MH_I2C_Read... [15:25:14]Read from MH i2c: 01 [15:25:14]MH_I2C_Read... [15:25:14]Read from MH i2c: 01 07 00 [15:25:14]MH_I2C_Read... [15:25:14]Read from MH i2c: 01 07 00 31 15 00 00 00 00 00 86 0C DF [15:25:14]RasterBufferAndPrint [15:25:14]line [15:25:14]line [15:25:14]line [15:25:14]line [15:25:14]line [15:25:14]written 0, free lines is 3209 [15:25:14]Connected sock=11 [15:25:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2C 01 00 00 1E 43 24 01 08 E4 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DA 36 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D7 C2 01 00 35 04 06 00 5F 9C 65 87 0E 0B DB 41 E6 AE 41 EB 62 AB [15:25:14]MH_Cut [15:25:14]Write to MH i2c: D1 01 00 38 15 01 1F [15:25:14]Write i2c OK [15:25:14]MH_I2C_Read... [15:25:14]Read from MH i2c: D1 [15:25:14]MH_I2C_Read... [15:25:14]Read from MH i2c: D1 01 00 [15:25:14]MH_I2C_Read... [15:25:14]Read from MH i2c: D1 01 00 38 15 00 1E [15:25:14]Write to MH i2c: 01 00 00 39 15 4E [15:25:14]Write i2c OK [15:25:14]MH_I2C_Read... [15:25:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 61 EA 47 00 28 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 31 38 33 30 10 04 04 00 D7 C2 01 00 F4 03 04 00 1F DC EF 66 B6 04 01 00 00 52 AB 79 DD 29 24 ED 1B [15:25:14]CommunicateWithHost err = 0 [15:25:14]CheckOFDResponse [15:25:14]1017 (14) - 77093643461234 [15:25:14]1041 (16) - 0000000000871830 [15:25:14]1040 (4) - 115415 [15:25:14]1012 (4) - 22.09.2024 08:58 [15:25:14]1206 (1) - 0 [15:25:14]OFD Sender: Remove packet 115415 [15:25:14]ProducePacketName [15:25:14]name=ofd_packets/00115415 [15:25:14]NVStorageDeleteData [15:25:15]OFD Sender: No OFD packet to send [15:25:15]*** Cut start [15:25:15]*** Partial cut [15:25:15]*** CUTSNS_PIN = 1 [15:25:15]*** CUTSNS_PIN = 0 [15:25:15]*** Brake cut motor [15:25:16]Read from MH i2c: 01 [15:25:16]MH_I2C_Read... [15:25:16]*** Stop cut motor [15:25:16]*** Cut end [15:25:16]Read from MH i2c: 01 07 00 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: 01 07 00 39 15 00 00 00 00 00 FF 0F 63 [15:25:16]process_action close_receipt done [15:25:16]requested_data is exist [15:25:16]produce_requested_data [15:25:16]requested_item fm.sn is exist - process it [15:25:16]wFMCommunicate request_size=4 [15:25:16]MH_SAM_APDU [15:25:16]CAPDU: 80 11 00 00 [15:25:16]Write to MH i2c: E2 08 00 3A 15 80 11 00 00 00 00 00 00 C9 [15:25:16]Write i2c OK [15:25:16]MH_I2C_Read... [15:25:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:16]Read from MH i2c: E2 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: E2 17 00 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: E2 17 00 3A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 17 [15:25:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:25:16]wFMCommunicate OK [15:25:16]requested_item fd.num is exist - process it [15:25:16]SAM_PROTO_GetFieldsCounters [15:25:16]wFMCommunicate request_size=4 [15:25:16]MH_SAM_APDU [15:25:16]CAPDU: 80 13 00 00 [15:25:16]Write to MH i2c: E2 08 00 3B 15 80 13 00 00 00 00 00 00 CC [15:25:16]Write i2c OK [15:25:16]MH_I2C_Read... [15:25:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:16]Read from MH i2c: E2 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: E2 62 00 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: E2 62 00 3B 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D7 C2 01 00 0E 04 04 00 D7 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 E6 [15:25:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D7 C2 01 00 0E 04 04 00 D7 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 [15:25:16]wFMCommunicate OK [15:25:16]SAM_PROTO_GetFieldsCounters done [15:25:16]requested_item shift.num is exist - process it [15:25:16]requested_item shift.opened is exist - process it [15:25:16]req_shift_opened [15:25:16]FM_GetShiftState [15:25:16]SAM_PROTO_GetShiftState [15:25:16]wFMCommunicate request_size=4 [15:25:16]MH_SAM_APDU [15:25:16]CAPDU: 80 13 01 00 [15:25:16]Write to MH i2c: E2 08 00 3C 15 80 13 01 00 00 00 00 00 CE [15:25:16]Write i2c OK [15:25:16]MH_I2C_Read... [15:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:16]Read from MH i2c: E2 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: E2 0E 00 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: E2 0E 00 3C 15 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 E7 [15:25:16]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:25:16]wFMCommunicate OK [15:25:16]SAM_PROTO_GetShiftState done [15:25:16]FM_GetShiftState done [15:25:16]req_shift_opened done [15:25:16]requested_item shift.open_date is exist - process it [15:25:16]req_shift_open_date [15:25:16]req_shift_open_date done [15:25:16]produce_requested_data done [15:25:16]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115415,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [15:25:16]process_action_free close_receipt [15:25:16]json_value_free [15:25:16]json_value_free done [15:25:16]process_json_proto returns [15:25:16]Send response to host [15:25:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115415,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [15:25:16]free response buf [15:25:16]execute_script done [15:25:16]execute_script returns [15:25:16]free content buf [15:25:16]Sock 8.Close socket [15:25:16]Sock 8.Thread stoped [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:34]accept exits with 9 [15:25:34]New connection [15:25:34]New thread 3066682724 created [15:25:34]Thread 3066826084 joined [15:25:34]Waiting for new connection... [15:25:34] Sock 9.Parse request [15:25:34]Sock 9.Check first char [15:25:34]Sock 9.First char is OK [15:25:34]request: POST /json_proto HTTP/1.0 [15:25:34]Method: POST [15:25:34]URL: /json_proto [15:25:34]Method is POST - this is cgi request [15:25:34]url: /json_proto [15:25:34]query_string will be loaded in cgi processing [15:25:34]execute_cgi json_proto POST (null) [15:25:34]execute_cgi path=json_proto method=POST [15:25:34]POST find Content-Length [15:25:34]Host: 172.17.41.136:8080 [15:25:34]Content-Length: 829 [15:25:34]Content-Type: application/json [15:25:34] [15:25:34]POST finish read [15:25:34]Found Content-Length = 829 [15:25:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343859", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 189.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:34]execute_script... [15:25:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343859", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 189.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:34]POST & json_proto [15:25:34]process_json_proto [15:25:34]json parsed OK: [15:25:34]protocol is kg_v1.0 [15:25:34]action value=close_receipt [15:25:34]process_action close_receipt [15:25:34]cmd_close_receipt [15:25:34]MH_GetDate [15:25:34]Write to MH i2c: F0 00 00 3D 15 41 [15:25:34]Write i2c OK [15:25:34]MH_I2C_Read... [15:25:34]Read from MH i2c: F0 [15:25:34]MH_I2C_Read... [15:25:34]Read from MH i2c: F0 09 00 [15:25:34]MH_I2C_Read... [15:25:34]Read from MH i2c: F0 09 00 3D 15 00 F0 36 F0 66 1B D0 5A 64 6F [15:25:34]GetLastDocTimeStamp 1727018714 [15:25:34]current date 1727018736 [15:25:34]FM_GetShiftState [15:25:34]SAM_PROTO_GetShiftState [15:25:34]wFMCommunicate request_size=4 [15:25:34]MH_SAM_APDU [15:25:34]CAPDU: 80 13 01 00 [15:25:34]Write to MH i2c: E2 08 00 3E 15 80 13 01 00 00 00 00 00 D0 [15:25:34]Write i2c OK [15:25:34]MH_I2C_Read... [15:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:34]Read from MH i2c: E2 [15:25:34]MH_I2C_Read... [15:25:34]Read from MH i2c: E2 0E 00 [15:25:34]MH_I2C_Read... [15:25:34]Read from MH i2c: E2 0E 00 3E 15 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 E9 [15:25:34]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:25:34]wFMCommunicate OK [15:25:34]SAM_PROTO_GetShiftState done [15:25:34]FM_GetShiftState done [15:25:34]opened in 1726965840 [15:25:34]opened+sec_in_day 1727052240 [15:25:34]quantity*price = 14400 [15:25:34]sum+1 = 14401 [15:25:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42069942 Жев Orbit White Fresh Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 189.00 НСП 1% : 1.67 НДС 12% : 20.07 Наличными: 189.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 134 22.09.2024 15:25 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115416 ФПД: 98431465340499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152536&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115416&fm=98431465340499&tin=02508201610067®Number=0000000000091831&sum=18900 0 [15:25:35]StoreToDocumentArchive [15:25:35]shift 471 fd 115416 [15:25:35]save to /storage/0471/doc_00115416 [15:25:35]save last doc name /storage/0471/doc_00115416 to /storage/kkm_last_doc_name [15:25:35]save OK [15:25:35]Clear old archive folders... [15:25:35]ProcessDocumentItem done err = 0, tmpTLVsize=369 [15:25:35]tlvbuf is 01C29C60 [15:25:35]SAM_PROTO_ClearQueue [15:25:35]wFMCommunicate request_size=4 [15:25:35]MH_SAM_APDU [15:25:35]CAPDU: 80 09 00 00 [15:25:35]Write to MH i2c: E2 08 00 4B 15 80 09 00 00 00 00 00 00 D2 [15:25:35]Write i2c OK [15:25:35]MH_I2C_Read... [15:25:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:35]Read from MH i2c: E2 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: E2 03 00 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: E2 03 00 4B 15 00 90 00 D4 [15:25:35]RAPDU: 90 00 [15:25:35]wFMCommunicate OK [15:25:35]SAM_PROTO_ClearQueue done [15:25:35]KKMCreateOFDPacket [15:25:35]OFDProtocolAddRootSTLVToBuf [15:25:35]FM_MakeSignedData [15:25:35]FM_MakeSignedData [15:25:35]SAM_PROTO_SignData [15:25:35]wFMCommunicate request_size=4 [15:25:35]MH_SAM_APDU [15:25:35]CAPDU: 80 0D 01 02 [15:25:35]Write to MH i2c: E2 08 00 4C 15 80 0D 01 02 00 00 00 00 DA [15:25:35]Write i2c OK [15:25:35]MH_I2C_Read... [15:25:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:35]Read from MH i2c: E2 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: E2 03 00 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: E2 03 00 4C 15 00 90 00 D5 [15:25:35]RAPDU: 90 00 [15:25:35]wFMCommunicate OK [15:25:35]wFMCommunicate request_size=255 [15:25:35]MH_SAM_APDU [15:25:35]CAPDU: 80 0D 02 02 FA 03 00 71 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 [15:25:35]Write to MH i2c: E2 02 01 4D 15 80 0D 02 02 FA 00 03 00 71 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 00 00 A2 [15:25:35]Write i2c OK [15:25:35]MH_I2C_Read... [15:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:35]Read from MH i2c: E2 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: E2 03 00 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: E2 03 00 4D 15 00 90 00 D6 [15:25:35]RAPDU: 90 00 [15:25:35]wFMCommunicate OK [15:25:35]wFMCommunicate request_size=128 [15:25:35]MH_SAM_APDU [15:25:35]CAPDU: 80 0D 02 02 7B F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F0 36 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D8 C2 01 00 35 04 06 00 59 85 DC 86 BE 53 [15:25:35]Write to MH i2c: E2 83 00 4E 15 80 0D 02 02 7B 00 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F0 36 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D8 C2 01 00 35 04 06 00 59 85 DC 86 BE 53 00 00 C2 [15:25:35]Write i2c OK [15:25:35]MH_I2C_Read... [15:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:35]Read from MH i2c: E2 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: E2 03 00 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: E2 03 00 4E 15 00 90 00 D7 [15:25:35]RAPDU: 90 00 [15:25:35]wFMCommunicate OK [15:25:35]wFMCommunicate request_size=4 [15:25:35]MH_SAM_APDU [15:25:35]CAPDU: 80 0D 03 02 [15:25:35]Write to MH i2c: E2 08 00 4F 15 80 0D 03 02 00 00 00 00 DF [15:25:35]Write i2c OK [15:25:35]MH_I2C_Read... [15:25:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:35]Read from MH i2c: E2 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: E2 0B 00 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: E2 0B 00 4F 15 00 77 C7 E7 74 F7 AB 18 FF 90 00 32 [15:25:35]RAPDU: 77 C7 E7 74 F7 AB 18 FF 90 00 [15:25:35]wFMCommunicate OK [15:25:35]SAM_PROTO_SignData done [15:25:35]FM_MakeSignedData done [15:25:35]CreateOFDProtocolMessage [15:25:35]wFMCommunicate request_size=4 [15:25:36]MH_SAM_APDU [15:25:36]CAPDU: 80 11 00 00 [15:25:36]Write to MH i2c: E2 08 00 50 15 80 11 00 00 00 00 00 00 DF [15:25:36]Write i2c OK [15:25:36]MH_I2C_Read... [15:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:36]Read from MH i2c: E2 [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: E2 17 00 [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: E2 17 00 50 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2D [15:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:25:36]wFMCommunicate OK [15:25:36]CreateOFDProtocolMessage done [15:25:36]OFDSenderStorePacket 115416 [15:25:36]StoreOFDPacket docnum=115416 [15:25:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 85 01 00 00 F0 AD 7D 01 A6 6E 5A 03 01 00 03 00 71 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F0 36 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D8 C2 01 00 35 04 06 00 59 85 DC 86 BE 53 77 C7 E7 74 F7 AB 18 FF [15:25:36]CheckFolder [15:25:36]dirname=/storage/ofd_packets [15:25:36]CheckFolder done [15:25:36]ProducePacketName [15:25:36]name=ofd_packets/00115416 [15:25:36]NVStorageSaveData ofd_packets/00115416 [15:25:36]File name is /storage/ofd_packets/00115416 [15:25:36]Write 419 bytes [15:25:36]NVStorageSaveData done [15:25:36]OFDSenderStorePacket done [15:25:36]KKMCreateOFDPacket done [15:25:36]NVStorageSaveData kkm_last_timestamp [15:25:36]File name is /storage/kkm_last_timestamp [15:25:36]Write 4 bytes [15:25:36]NVStorageSaveData done [15:25:36]ExternCall_PrintAddStr [15:25:36]wPrintStart [15:25:36]Write to MH i2c: 01 00 00 51 15 66 [15:25:36]Write i2c OK [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: 01 [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: 01 07 00 [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: 01 07 00 51 15 00 00 00 00 00 FF 0F 7B [15:25:36]RasterBufferAndPrint [15:25:36]line Счет N : (3)343859 [15:25:36]line ИНН: 02508201610067 [15:25:36]line Контрольно-Кассовый Чек [15:25:36]line ПРОДАЖА [15:25:36]line Товар: 48743570 [15:25:36]line Сигареты Winston XStyle Blue [15:25:36]line 1.000 * 144.00 [15:25:36]line = 144.00 [15:25:36]line НДС 12% НСП 1% [15:25:36]line > о реализуемом товаре [15:25:36]line Товар: 42069942 [15:25:36]line Жев Orbit White Fresh Mint [15:25:36]line 1.000 * 45.00 [15:25:36]line = 45.00 [15:25:36]line НДС 12% НСП 1% [15:25:36]line > о реализуемом товаре [15:25:36]line ИТОГО: 189.00 [15:25:36]line НСП 1% : 1.67 [15:25:36]line НДС 12% : 20.07 [15:25:36]line Наличными: 189.00 [15:25:36]line Безнал.: 0.00 [15:25:36]line Место: АЗС № 90 "Партнер Нефть" [15:25:36]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:25:36]line СНО: Общий режим [15:25:36]line Чек 134 22.09.2024 15:25 [15:25:36]line Смена: 471 ФФД: 1.0 [15:25:36]line ЗНМ: 0300000120 [15:25:36]line РНМ: 0000000000091831 [15:25:36]line Версия ККМ: 001 [15:25:36]line ФМ: 0000000000871830 [15:25:36]line ФД: 115416 [15:25:36]line ФПД: 98431465340499 [15:25:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152536&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115416&fm=98431465340499&tin=02508201610067®Number=0000000000091831&sum=18900 [15:25:36]line 0 [15:25:36]OFD Sender: Processing packet 115416 [packets to send 481, broken 480] [15:25:36]ProducePacketName [15:25:36]name=ofd_packets/00115416 [15:25:36]OFD Sender: To server: pG, [15:25:36]CommunicateWithHost lk.salyk.kg:30040 [15:25:36]ConnectInit lk.salyk.kg [15:25:36]written 0, free lines is 4095 [15:25:36]Connected sock=10 [15:25:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 85 01 00 00 F0 AD 7D 01 A6 6E 5A 03 01 00 03 00 71 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F0 36 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D8 C2 01 00 35 04 06 00 59 85 DC 86 BE 53 77 C7 E7 74 F7 AB 18 FF [15:25:36]Write to MH i2c: 01 00 00 7E 15 93 [15:25:36]Write i2c OK [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: 01 [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: 01 07 00 [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: 01 07 00 7E 15 00 00 00 00 00 1D 0C C3 [15:25:36]RasterBufferAndPrint [15:25:36]line [15:25:36]line [15:25:36]line [15:25:36]line [15:25:36]line [15:25:36]written 0, free lines is 3104 [15:25:36]MH_Cut [15:25:36]Write to MH i2c: D1 01 00 85 15 01 6C [15:25:36]Write i2c OK [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: D1 [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: D1 01 00 [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: D1 01 00 85 15 00 6B [15:25:36]Write to MH i2c: 01 00 00 86 15 9B [15:25:36]Write i2c OK [15:25:36]MH_I2C_Read... [15:25:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A0 7E 47 00 3D 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D8 C2 01 00 F4 03 04 00 35 DC EF 66 B6 04 01 00 00 36 6A 3E 1B 17 B7 7A 94 [15:25:36]CommunicateWithHost err = 0 [15:25:36]CheckOFDResponse [15:25:36]1017 (14) - 77093643461234 [15:25:36]1041 (16) - 0000000000871830 [15:25:36]1040 (4) - 115416 [15:25:36]1012 (4) - 22.09.2024 08:58 [15:25:36]1206 (1) - 0 [15:25:36]OFD Sender: Remove packet 115416 [15:25:36]ProducePacketName [15:25:36]name=ofd_packets/00115416 [15:25:36]NVStorageDeleteData [15:25:37]OFD Sender: No OFD packet to send [15:25:38]*** Cut start [15:25:38]*** Partial cut [15:25:38]*** CUTSNS_PIN = 1 [15:25:38]*** CUTSNS_PIN = 0 [15:25:38]*** Brake cut motor [15:25:38]Read from MH i2c: 01 [15:25:38]MH_I2C_Read... [15:25:38]*** Stop cut motor [15:25:38]*** Cut end [15:25:38]Read from MH i2c: 01 07 00 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: 01 07 00 86 15 00 00 00 00 00 FF 0F B0 [15:25:38]process_action close_receipt done [15:25:38]requested_data is exist [15:25:38]produce_requested_data [15:25:38]requested_item fm.sn is exist - process it [15:25:38]wFMCommunicate request_size=4 [15:25:38]MH_SAM_APDU [15:25:38]CAPDU: 80 11 00 00 [15:25:38]Write to MH i2c: E2 08 00 87 15 80 11 00 00 00 00 00 00 16 [15:25:38]Write i2c OK [15:25:38]MH_I2C_Read... [15:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:38]Read from MH i2c: E2 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: E2 17 00 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: E2 17 00 87 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 64 [15:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:25:38]wFMCommunicate OK [15:25:38]requested_item fd.num is exist - process it [15:25:38]SAM_PROTO_GetFieldsCounters [15:25:38]wFMCommunicate request_size=4 [15:25:38]MH_SAM_APDU [15:25:38]CAPDU: 80 13 00 00 [15:25:38]Write to MH i2c: E2 08 00 88 15 80 13 00 00 00 00 00 00 19 [15:25:38]Write i2c OK [15:25:38]MH_I2C_Read... [15:25:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:39]Read from MH i2c: E2 [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: E2 62 00 [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: E2 62 00 88 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D8 C2 01 00 0E 04 04 00 D7 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 [15:25: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D8 C2 01 00 0E 04 04 00 D7 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 [15:25:39]wFMCommunicate OK [15:25:39]SAM_PROTO_GetFieldsCounters done [15:25:39]requested_item shift.num is exist - process it [15:25:39]requested_item shift.opened is exist - process it [15:25:39]req_shift_opened [15:25:39]FM_GetShiftState [15:25:39]SAM_PROTO_GetShiftState [15:25:39]wFMCommunicate request_size=4 [15:25:39]MH_SAM_APDU [15:25:39]CAPDU: 80 13 01 00 [15:25:39]Write to MH i2c: E2 08 00 89 15 80 13 01 00 00 00 00 00 1B [15:25:39]Write i2c OK [15:25:39]MH_I2C_Read... [15:25:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:39]Read from MH i2c: E2 [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: E2 0E 00 [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: E2 0E 00 89 15 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 34 [15:25:39]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:25:39]wFMCommunicate OK [15:25:39]SAM_PROTO_GetShiftState done [15:25:39]FM_GetShiftState done [15:25:39]req_shift_opened done [15:25:39]requested_item shift.open_date is exist - process it [15:25:39]req_shift_open_date [15:25:39]req_shift_open_date done [15:25:39]produce_requested_data done [15:25:39]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115416,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [15:25:39]process_action_free close_receipt [15:25:39]json_value_free [15:25:39]json_value_free done [15:25:39]process_json_proto returns [15:25:39]Send response to host [15:25:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115416,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [15:25:39]free response buf [15:25:39]execute_script done [15:25:39]execute_script returns [15:25:39]free content buf [15:25:39]Sock 9.Close socket [15:25:39]Sock 9.Thread stoped [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:34]accept exits with 8 [15:26:34]New connection [15:26:34]New thread 3066826084 created [15:26:34]Thread 3066682724 joined [15:26:34]Waiting for new connection... [15:26:34] Sock 8.Parse request [15:26:34]Sock 8.Check first char [15:26:34]Sock 8.First char is OK [15:26:34]request: POST /json_proto HTTP/1.0 [15:26:34]Method: POST [15:26:34]URL: /json_proto [15:26:34]Method is POST - this is cgi request [15:26:34]url: /json_proto [15:26:34]query_string will be loaded in cgi processing [15:26:34]execute_cgi json_proto POST (null) [15:26:34]execute_cgi path=json_proto method=POST [15:26:34]POST find Content-Length [15:26:34]Host: 172.17.41.136:8080 [15:26:34]Content-Length: 695 [15:26:34]Content-Type: application/json [15:26:34] [15:26:34]POST finish read [15:26:34]Found Content-Length = 695 [15:26:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343860", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:34]execute_script... [15:26:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343860", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:34]POST & json_proto [15:26:34]process_json_proto [15:26:34]json parsed OK: [15:26:34]protocol is kg_v1.0 [15:26:34]action value=close_receipt [15:26:34]process_action close_receipt [15:26:34]cmd_close_receipt [15:26:34]MH_GetDate [15:26:34]Write to MH i2c: F0 00 00 8A 15 8E [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: F0 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: F0 09 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: F0 09 00 8A 15 00 2B 37 F0 66 1B D0 5A 64 F8 [15:26:34]GetLastDocTimeStamp 1727018736 [15:26:34]current date 1727018795 [15:26:34]FM_GetShiftState [15:26:34]SAM_PROTO_GetShiftState [15:26:34]wFMCommunicate request_size=4 [15:26:34]MH_SAM_APDU [15:26:34]CAPDU: 80 13 01 00 [15:26:34]Write to MH i2c: E2 08 00 8B 15 80 13 01 00 00 00 00 00 1D [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:34]Read from MH i2c: E2 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 0E 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 0E 00 8B 15 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 36 [15:26:34]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:26:34]wFMCommunicate OK [15:26:34]SAM_PROTO_GetShiftState done [15:26:34]FM_GetShiftState done [15:26:34]opened in 1726965840 [15:26:34]opened+sec_in_day 1727052240 [15:26:34]quantity*price = 9500 [15:26:34]sum+1 = 9501 [15:26:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 135 22.09.2024 15:26 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115417 ФПД: 147458597147313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152636&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115417&fm=147458597147313&tin=02508201610067®Number=0000000000091831&sum=9500 0 [15:26:35]StoreToDocumentArchive [15:26:35]shift 471 fd 115417 [15:26:35]save to /storage/0471/doc_00115417 [15:26:35]save last doc name /storage/0471/doc_00115417 to /storage/kkm_last_doc_name [15:26:35]save OK [15:26:35]Clear old archive folders... [15:26:35]ProcessDocumentItem done err = 0, tmpTLVsize=302 [15:26:35]tlvbuf is 01BF4190 [15:26:35]SAM_PROTO_ClearQueue [15:26:35]wFMCommunicate request_size=4 [15:26:35]MH_SAM_APDU [15:26:35]CAPDU: 80 09 00 00 [15:26:35]Write to MH i2c: E2 08 00 98 15 80 09 00 00 00 00 00 00 1F [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:35]Read from MH i2c: E2 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: E2 03 00 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: E2 03 00 98 15 00 90 00 21 [15:26:35]RAPDU: 90 00 [15:26:35]wFMCommunicate OK [15:26:35]SAM_PROTO_ClearQueue done [15:26:35]KKMCreateOFDPacket [15:26:35]OFDProtocolAddRootSTLVToBuf [15:26:35]FM_MakeSignedData [15:26:35]FM_MakeSignedData [15:26:35]SAM_PROTO_SignData [15:26:35]wFMCommunicate request_size=4 [15:26:35]MH_SAM_APDU [15:26:35]CAPDU: 80 0D 01 02 [15:26:35]Write to MH i2c: E2 08 00 99 15 80 0D 01 02 00 00 00 00 27 [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:35]Read from MH i2c: E2 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: E2 03 00 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: E2 03 00 99 15 00 90 00 22 [15:26:35]RAPDU: 90 00 [15:26:35]wFMCommunicate OK [15:26:35]wFMCommunicate request_size=255 [15:26:35]MH_SAM_APDU [15:26:35]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 2C 37 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 [15:26:35]Write to MH i2c: E2 02 01 9A 15 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 2C 37 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 00 00 1E [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:35]Read from MH i2c: E2 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: E2 03 00 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: E2 03 00 9A 15 00 90 00 23 [15:26:35]RAPDU: 90 00 [15:26:35]wFMCommunicate OK [15:26:35]wFMCommunicate request_size=61 [15:26:35]MH_SAM_APDU [15:26:35]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D9 C2 01 00 35 04 06 00 86 1C E1 4D 52 B1 [15:26:35]Write to MH i2c: E2 40 00 9B 15 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D9 C2 01 00 35 04 06 00 86 1C E1 4D 52 B1 00 00 C6 [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:35]Read from MH i2c: E2 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: E2 03 00 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: E2 03 00 9B 15 00 90 00 24 [15:26:35]RAPDU: 90 00 [15:26:35]wFMCommunicate OK [15:26:35]wFMCommunicate request_size=4 [15:26:35]MH_SAM_APDU [15:26:35]CAPDU: 80 0D 03 02 [15:26:35]Write to MH i2c: E2 08 00 9C 15 80 0D 03 02 00 00 00 00 2C [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:35]Read from MH i2c: E2 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: E2 0B 00 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: E2 0B 00 9C 15 00 AB 8C A3 02 61 93 73 69 90 00 D9 [15:26:35]RAPDU: AB 8C A3 02 61 93 73 69 90 00 [15:26:35]wFMCommunicate OK [15:26:35]SAM_PROTO_SignData done [15:26:35]FM_MakeSignedData done [15:26:35]CreateOFDProtocolMessage [15:26:35]wFMCommunicate request_size=4 [15:26:35]MH_SAM_APDU [15:26:35]CAPDU: 80 11 00 00 [15:26:35]Write to MH i2c: E2 08 00 9D 15 80 11 00 00 00 00 00 00 2C [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:35]Read from MH i2c: E2 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: E2 17 00 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: E2 17 00 9D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7A [15:26:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:26:35]wFMCommunicate OK [15:26:35]CreateOFDProtocolMessage done [15:26:35]OFDSenderStorePacket 115417 [15:26:35]StoreOFDPacket docnum=115417 [15:26:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 42 01 00 00 9A 1D 3A 01 58 8E 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 2C 37 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D9 C2 01 00 35 04 06 00 86 1C E1 4D 52 B1 AB 8C A3 02 61 93 73 69 [15:26:35]CheckFolder [15:26:35]dirname=/storage/ofd_packets [15:26:35]CheckFolder done [15:26:35]ProducePacketName [15:26:35]name=ofd_packets/00115417 [15:26:35]NVStorageSaveData ofd_packets/00115417 [15:26:35]File name is /storage/ofd_packets/00115417 [15:26:35]Write 352 bytes [15:26:35]NVStorageSaveData done [15:26:35]OFDSenderStorePacket done [15:26:35]KKMCreateOFDPacket done [15:26:35]NVStorageSaveData kkm_last_timestamp [15:26:35]File name is /storage/kkm_last_timestamp [15:26:35]Write 4 bytes [15:26:35]NVStorageSaveData done [15:26:35]ExternCall_PrintAddStr [15:26:35]wPrintStart [15:26:35]Write to MH i2c: 01 00 00 9E 15 B3 [15:26:35]OFD Sender: Processing packet 115417 [packets to send 481, broken 480] [15:26:35]ProducePacketName [15:26:35]name=ofd_packets/00115417 [15:26:35]OFD Sender: To server: pG, [15:26:35]CommunicateWithHost lk.salyk.kg:30040 [15:26:35]ConnectInit lk.salyk.kg [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: 01 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: 01 07 00 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: 01 07 00 9E 15 00 00 00 00 00 FF 0F C8 [15:26:35]RasterBufferAndPrint [15:26:35]line Счет N : (3)343860 [15:26:35]line ИНН: 02508201610067 [15:26:35]line Контрольно-Кассовый Чек [15:26:35]line ПРОДАЖА [15:26:35]line Товар: 4631162227163 [15:26:35]line Напиток газированный Mojito LEMON LIME ж [15:26:35]line 1.000 * 95.00 [15:26:35]line = 95.00 [15:26:35]line НДС 12% НСП 1% [15:26:35]line > о реализуемом товаре [15:26:35]line ИТОГО: 95.00 [15:26:35]line НСП 1% : 0.84 [15:26:35]line НДС 12% : 10.09 [15:26:35]line Наличными: 95.00 [15:26:35]line Безнал.: 0.00 [15:26:35]line Место: АЗС № 90 "Партнер Нефть" [15:26:35]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:26:35]line СНО: Общий режим [15:26:35]line Чек 135 22.09.2024 15:26 [15:26:35]line Смена: 471 ФФД: 1.0 [15:26:35]line ЗНМ: 0300000120 [15:26:35]line РНМ: 0000000000091831 [15:26:35]line Версия ККМ: 001 [15:26:35]line ФМ: 0000000000871830 [15:26:35]line ФД: 115417 [15:26:35]line ФПД: 147458597147313 [15:26:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152636&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115417&fm=147458597147313&tin=02508201610067®Number=0000000000091831&sum=9500 [15:26:36]line 0 [15:26:36]written 0, free lines is 4095 [15:26:36]Write to MH i2c: 01 00 00 C6 15 DB [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: 01 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: 01 07 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: 01 07 00 C6 15 00 00 00 00 00 6B 0C 59 [15:26:36]RasterBufferAndPrint [15:26:36]line [15:26:36]line [15:26:36]line [15:26:36]line [15:26:36]line [15:26:36]written 0, free lines is 3182 [15:26:36]MH_Cut [15:26:36]Write to MH i2c: D1 01 00 CD 15 01 B4 [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: D1 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: D1 01 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: D1 01 00 CD 15 00 B3 [15:26:36]Write to MH i2c: 01 00 00 CE 15 E3 [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:37]*** Cut start [15:26:37]*** Partial cut [15:26:37]*** CUTSNS_PIN = 1 [15:26:37]*** CUTSNS_PIN = 0 [15:26:38]*** Brake cut motor [15:26:38]Read from MH i2c: 01 [15:26:38]MH_I2C_Read... [15:26:38]*** Stop cut motor [15:26:38]*** Cut end [15:26:38]Read from MH i2c: 01 07 00 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: 01 07 00 CE 15 00 00 00 00 00 FF 0F F8 [15:26:38]process_action close_receipt done [15:26:38]requested_data is exist [15:26:38]produce_requested_data [15:26:38]requested_item fm.sn is exist - process it [15:26:38]wFMCommunicate request_size=4 [15:26:38]MH_SAM_APDU [15:26:38]CAPDU: 80 11 00 00 [15:26:38]Write to MH i2c: E2 08 00 CF 15 80 11 00 00 00 00 00 00 5E [15:26:38]Write i2c OK [15:26:38]MH_I2C_Read... [15:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:38]Read from MH i2c: E2 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: E2 17 00 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: E2 17 00 CF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AC [15:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:26:38]wFMCommunicate OK [15:26:38]requested_item fd.num is exist - process it [15:26:38]SAM_PROTO_GetFieldsCounters [15:26:38]wFMCommunicate request_size=4 [15:26:38]MH_SAM_APDU [15:26:38]CAPDU: 80 13 00 00 [15:26:38]Write to MH i2c: E2 08 00 D0 15 80 13 00 00 00 00 00 00 61 [15:26:38]Write i2c OK [15:26:38]MH_I2C_Read... [15:26:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:38]Read from MH i2c: E2 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: E2 62 00 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: E2 62 00 D0 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D9 C2 01 00 0E 04 04 00 D7 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 83 [15:26:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D9 C2 01 00 0E 04 04 00 D7 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 [15:26:38]wFMCommunicate OK [15:26:38]SAM_PROTO_GetFieldsCounters done [15:26:38]requested_item shift.num is exist - process it [15:26:38]requested_item shift.opened is exist - process it [15:26:38]req_shift_opened [15:26:38]FM_GetShiftState [15:26:38]SAM_PROTO_GetShiftState [15:26:38]wFMCommunicate request_size=4 [15:26:38]MH_SAM_APDU [15:26:38]CAPDU: 80 13 01 00 [15:26:38]Write to MH i2c: E2 08 00 D1 15 80 13 01 00 00 00 00 00 63 [15:26:38]Write i2c OK [15:26:38]MH_I2C_Read... [15:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:38]Read from MH i2c: E2 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: E2 0E 00 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: E2 0E 00 D1 15 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 7C [15:26:38]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:26:38]wFMCommunicate OK [15:26:38]SAM_PROTO_GetShiftState done [15:26:38]FM_GetShiftState done [15:26:38]req_shift_opened done [15:26:38]requested_item shift.open_date is exist - process it [15:26:38]req_shift_open_date [15:26:38]req_shift_open_date done [15:26:38]produce_requested_data done [15:26:38]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115417,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [15:26:38]process_action_free close_receipt [15:26:38]json_value_free [15:26:38]json_value_free done [15:26:38]process_json_proto returns [15:26:38]Send response to host [15:26:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115417,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [15:26:38]free response buf [15:26:38]execute_script done [15:26:38]execute_script returns [15:26:38]free content buf [15:26:38]Sock 8.Close socket [15:26:38]Sock 8.Thread stoped [15:28:44]accept exits with 9 [15:28:44]New connection [15:28:44]New thread 3066682724 created [15:28:44]Thread 3066826084 joined [15:28:44]Waiting for new connection... [15:28:44] Sock 9.Parse request [15:28:44]Sock 9.Check first char [15:28:44]Sock 9.First char is OK [15:28:44]request: POST /json_proto HTTP/1.0 [15:28:44]Method: POST [15:28:44]URL: /json_proto [15:28:44]Method is POST - this is cgi request [15:28:44]url: /json_proto [15:28:44]query_string will be loaded in cgi processing [15:28:44]execute_cgi json_proto POST (null) [15:28:44]execute_cgi path=json_proto method=POST [15:28:44]POST find Content-Length [15:28:44]Host: 172.17.41.136:8080 [15:28:44]Content-Length: 969 [15:28:44]Content-Type: application/json [15:28:44] [15:28:44]POST finish read [15:28:44]Found Content-Length = 969 [15:28:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343861", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 259.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:44]execute_script... [15:28:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343861", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 259.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:44]POST & json_proto [15:28:44]process_json_proto [15:28:44]json parsed OK: [15:28:44]protocol is kg_v1.0 [15:28:44]action value=close_receipt [15:28:44]process_action close_receipt [15:28:44]cmd_close_receipt [15:28:44]MH_GetDate [15:28:44]Write to MH i2c: F0 00 00 D2 15 D6 [15:28:44]Write i2c OK [15:28:44]MH_I2C_Read... [15:28:44]Read from MH i2c: F0 [15:28:44]MH_I2C_Read... [15:28:44]Read from MH i2c: F0 09 00 [15:28:44]MH_I2C_Read... [15:28:44]Read from MH i2c: F0 09 00 D2 15 00 AE 37 F0 66 1B D0 5A 64 C3 [15:28:44]GetLastDocTimeStamp 1727018796 [15:28:44]current date 1727018926 [15:28:44]FM_GetShiftState [15:28:44]SAM_PROTO_GetShiftState [15:28:44]wFMCommunicate request_size=4 [15:28:44]MH_SAM_APDU [15:28:44]CAPDU: 80 13 01 00 [15:28:44]Write to MH i2c: E2 08 00 D3 15 80 13 01 00 00 00 00 00 65 [15:28:44]Write i2c OK [15:28:44]MH_I2C_Read... [15:28:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:44]Read from MH i2c: E2 [15:28:44]MH_I2C_Read... [15:28:44]Read from MH i2c: E2 0E 00 [15:28:44]MH_I2C_Read... [15:28:44]Read from MH i2c: E2 0E 00 D3 15 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 7E [15:28:44]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:28:44]wFMCommunicate OK [15:28:44]SAM_PROTO_GetShiftState done [15:28:44]FM_GetShiftState done [15:28:44]opened in 1726965840 [15:28:44]opened+sec_in_day 1727052240 [15:28:44]quantity*price = 15400 [15:28:44]sum+1 = 15401 [15:28:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 259.00 НСП 1% : 2.29 НДС 12% : 27.50 Наличными: 259.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 136 22.09.2024 15:28 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115418 ФПД: 62464111610597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152846&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115418&fm=62464111610597&tin=02508201610067®Number=0000000000091831&sum=25900 0 [15:28:45]StoreToDocumentArchive [15:28:45]shift 471 fd 115418 [15:28:45]save to /storage/0471/doc_00115418 [15:28:45]save last doc name /storage/0471/doc_00115418 to /storage/kkm_last_doc_name [15:28:45]save OK [15:28:45]Clear old archive folders... [15:28:45]ProcessDocumentItem done err = 0, tmpTLVsize=415 [15:28:45]tlvbuf is B6EA2C30 [15:28:45]SAM_PROTO_ClearQueue [15:28:45]wFMCommunicate request_size=4 [15:28:45]MH_SAM_APDU [15:28:45]CAPDU: 80 09 00 00 [15:28:45]Write to MH i2c: E2 08 00 E0 15 80 09 00 00 00 00 00 00 67 [15:28:45]Write i2c OK [15:28:45]MH_I2C_Read... [15:28:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:45]Read from MH i2c: E2 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 E0 15 00 90 00 69 [15:28:45]RAPDU: 90 00 [15:28:45]wFMCommunicate OK [15:28:45]SAM_PROTO_ClearQueue done [15:28:45]KKMCreateOFDPacket [15:28:45]OFDProtocolAddRootSTLVToBuf [15:28:45]FM_MakeSignedData [15:28:45]FM_MakeSignedData [15:28:45]SAM_PROTO_SignData [15:28:45]wFMCommunicate request_size=4 [15:28:45]MH_SAM_APDU [15:28:45]CAPDU: 80 0D 01 02 [15:28:45]Write to MH i2c: E2 08 00 E1 15 80 0D 01 02 00 00 00 00 6F [15:28:45]Write i2c OK [15:28:45]MH_I2C_Read... [15:28:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:45]Read from MH i2c: E2 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 E1 15 00 90 00 6A [15:28:45]RAPDU: 90 00 [15:28:45]wFMCommunicate OK [15:28:45]wFMCommunicate request_size=255 [15:28:45]MH_SAM_APDU [15:28:45]CAPDU: 80 0D 02 02 FA 03 00 9F 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [15:28:45]Write to MH i2c: E2 02 01 E2 15 80 0D 02 02 FA 00 03 00 9F 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 6D [15:28:45]Write i2c OK [15:28:45]MH_I2C_Read... [15:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:45]Read from MH i2c: E2 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 E2 15 00 90 00 6B [15:28:45]RAPDU: 90 00 [15:28:45]wFMCommunicate OK [15:28:45]wFMCommunicate request_size=174 [15:28:45]MH_SAM_APDU [15:28:45]CAPDU: 80 0D 02 02 A9 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 2C 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 AE 37 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DA C2 01 00 35 04 06 00 38 CF 8F 2F 0A E5 [15:28:45]Write to MH i2c: E2 B1 00 E3 15 80 0D 02 02 A9 00 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 2C 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 AE 37 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DA C2 01 00 35 04 06 00 38 CF 8F 2F 0A E5 00 00 BF [15:28:45]Write i2c OK [15:28:45]MH_I2C_Read... [15:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:46]Read from MH i2c: E2 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 03 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 03 00 E3 15 00 90 00 6C [15:28:46]RAPDU: 90 00 [15:28:46]wFMCommunicate OK [15:28:46]wFMCommunicate request_size=4 [15:28:46]MH_SAM_APDU [15:28:46]CAPDU: 80 0D 03 02 [15:28:46]Write to MH i2c: E2 08 00 E4 15 80 0D 03 02 00 00 00 00 74 [15:28:46]Write i2c OK [15:28:46]MH_I2C_Read... [15:28:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:46]Read from MH i2c: E2 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 0B 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 0B 00 E4 15 00 9C CA 91 3E D5 C0 69 85 90 00 2D [15:28:46]RAPDU: 9C CA 91 3E D5 C0 69 85 90 00 [15:28:46]wFMCommunicate OK [15:28:46]SAM_PROTO_SignData done [15:28:46]FM_MakeSignedData done [15:28:46]CreateOFDProtocolMessage [15:28:46]wFMCommunicate request_size=4 [15:28:46]MH_SAM_APDU [15:28:46]CAPDU: 80 11 00 00 [15:28:46]Write to MH i2c: E2 08 00 E5 15 80 11 00 00 00 00 00 00 74 [15:28:46]Write i2c OK [15:28:46]MH_I2C_Read... [15:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:46]Read from MH i2c: E2 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 17 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 17 00 E5 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C2 [15:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:28:46]wFMCommunicate OK [15:28:46]CreateOFDProtocolMessage done [15:28:46]OFDSenderStorePacket 115418 [15:28:46]StoreOFDPacket docnum=115418 [15:28:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B3 01 00 00 66 EA AB 01 D8 9C 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 2C 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 AE 37 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DA C2 01 00 35 04 06 00 38 CF 8F 2F 0A E5 9C CA 91 3E D5 C0 69 85 [15:28:46]CheckFolder [15:28:46]dirname=/storage/ofd_packets [15:28:46]CheckFolder done [15:28:46]ProducePacketName [15:28:46]name=ofd_packets/00115418 [15:28:46]NVStorageSaveData ofd_packets/00115418 [15:28:46]File name is /storage/ofd_packets/00115418 [15:28:46]Write 465 bytes [15:28:46]NVStorageSaveData done [15:28:46]OFDSenderStorePacket done [15:28:46]KKMCreateOFDPacket done [15:28:46]NVStorageSaveData kkm_last_timestamp [15:28:46]File name is /storage/kkm_last_timestamp [15:28:46]Write 4 bytes [15:28:46]NVStorageSaveData done [15:28:46]ExternCall_PrintAddStr [15:28:46]wPrintStart [15:28:46]Write to MH i2c: 01 00 00 E6 15 FB [15:28:46]Write i2c OK [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: 01 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: 01 07 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: 01 07 00 E6 15 00 00 00 00 00 FF 0F 10 [15:28:46]RasterBufferAndPrint [15:28:46]line Счет N : (3)343861 [15:28:46]line ИНН: 02508201610067 [15:28:46]line Контрольно-Кассовый Чек [15:28:46]line ПРОДАЖА [15:28:46]line Товар: 46230607 [15:28:46]line Сигареты Richmond Bronze Edition [15:28:46]line 1.000 * 154.00 [15:28:46]line = 154.00 [15:28:46]line НДС 12% НСП 1% [15:28:46]line > о реализуемом товаре [15:28:46]line Товар: 5449000027474 [15:28:46]line Напиток FuzeTea зел чай манго,ромашка 1л [15:28:46]line 1.000 * 105.00 [15:28:46]line = 105.00 [15:28:46]line НДС 12% НСП 1% [15:28:46]line > о реализуемом товаре [15:28:46]line ИТОГО: 259.00 [15:28:46]line НСП 1% : 2.29 [15:28:46]line НДС 12% : 27.50 [15:28:46]line Наличными: 259.00 [15:28:46]line Безнал.: 0.00 [15:28:46]line Место: АЗС № 90 "Партнер Нефть" [15:28:46]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:28:46]line СНО: Общий режим [15:28:46]line Чек 136 22.09.2024 15:28 [15:28:46]line Смена: 471 ФФД: 1.0 [15:28:46]line ЗНМ: 0300000120 [15:28:46]line РНМ: 0000000000091831 [15:28:46]line Версия ККМ: 001 [15:28:46]line ФМ: 0000000000871830 [15:28:46]line ФД: 115418 [15:28:46]line ФПД: 62464111610597 [15:28:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152846&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115418&fm=62464111610597&tin=02508201610067®Number=0000000000091831&sum=25900 [15:28:46]line 0 [15:28:46]written 0, free lines is 4095 [15:28:46]Write to MH i2c: 01 00 00 15 16 2B [15:28:46]Write i2c OK [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: 01 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: 01 07 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: 01 07 00 15 16 00 00 00 00 00 E9 0B 26 [15:28:46]RasterBufferAndPrint [15:28:46]line [15:28:46]line [15:28:46]line [15:28:46]line [15:28:46]line [15:28:46]written 0, free lines is 3053 [15:28:47]MH_Cut [15:28:47]Write to MH i2c: D1 01 00 1C 16 01 04 [15:28:47]Write i2c OK [15:28:47]MH_I2C_Read... [15:28:47]Read from MH i2c: D1 [15:28:47]MH_I2C_Read... [15:28:47]Read from MH i2c: D1 01 00 [15:28:47]MH_I2C_Read... [15:28:47]Read from MH i2c: D1 01 00 1C 16 00 03 [15:28:47]Write to MH i2c: 01 00 00 1D 16 33 [15:28:47]Write i2c OK [15:28:47]MH_I2C_Read... [15:28:48]ConnectInit Can't connect to host [15:28:48]CommunicateWithHost connect error [15:28:48]CommunicateWithHost err = -1 [15:28:48]OFD Sender: Server communicate error [15:28:48]OFD Sender: Processing packet 115417 [packets to send 482, broken 480] [15:28:48]ProducePacketName [15:28:48]name=ofd_packets/00115417 [15:28:48]OFD Sender: To server: pG, [15:28:48]CommunicateWithHost lk.salyk.kg:30040 [15:28:48]ConnectInit lk.salyk.kg [15:28:48]*** Cut start [15:28:48]*** Partial cut [15:28:48]*** CUTSNS_PIN = 1 [15:28:48]*** CUTSNS_PIN = 0 [15:28:48]Connected sock=10 [15:28:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 42 01 00 00 9A 1D 3A 01 58 8E 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 2C 37 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D9 C2 01 00 35 04 06 00 86 1C E1 4D 52 B1 AB 8C A3 02 61 93 73 69 [15:28:48]*** Brake cut motor [15:28:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F4 A4 47 00 70 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D9 C2 01 00 F4 03 04 00 F5 DC EF 66 B6 04 01 00 00 21 6A EF DB 13 8A 36 E2 [15:28:48]CommunicateWithHost err = 0 [15:28:48]CheckOFDResponse [15:28:48]1017 (14) - 77093643461234 [15:28:48]1041 (16) - 0000000000871830 [15:28:48]1040 (4) - 115417 [15:28:48]1012 (4) - 22.09.2024 09:01 [15:28:48]1206 (1) - 0 [15:28:48]OFD Sender: Remove packet 115417 [15:28:48]ProducePacketName [15:28:48]name=ofd_packets/00115417 [15:28:48]NVStorageDeleteData [15:28:48]Read from MH i2c: 01 [15:28:49]MH_I2C_Read... [15:28:49]*** Stop cut motor [15:28:49]*** Cut end [15:28:49]Read from MH i2c: 01 07 00 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: 01 07 00 1D 16 00 00 00 00 00 FF 0F 48 [15:28:49]process_action close_receipt done [15:28:49]requested_data is exist [15:28:49]produce_requested_data [15:28:49]requested_item fm.sn is exist - process it [15:28:49]wFMCommunicate request_size=4 [15:28:49]MH_SAM_APDU [15:28:49]CAPDU: 80 11 00 00 [15:28:49]Write to MH i2c: E2 08 00 1E 16 80 11 00 00 00 00 00 00 AE [15:28:49]Write i2c OK [15:28:49]MH_I2C_Read... [15:28:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:49]Read from MH i2c: E2 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: E2 17 00 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: E2 17 00 1E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FC [15:28:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:28:49]wFMCommunicate OK [15:28:49]requested_item fd.num is exist - process it [15:28:49]SAM_PROTO_GetFieldsCounters [15:28:49]wFMCommunicate request_size=4 [15:28:49]MH_SAM_APDU [15:28:49]CAPDU: 80 13 00 00 [15:28:49]Write to MH i2c: E2 08 00 1F 16 80 13 00 00 00 00 00 00 B1 [15:28:49]Write i2c OK [15:28:49]MH_I2C_Read... [15:28:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:49]Read from MH i2c: E2 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: E2 62 00 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: E2 62 00 1F 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DA C2 01 00 0E 04 04 00 D7 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 D7 [15:28:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DA C2 01 00 0E 04 04 00 D7 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 [15:28:49]wFMCommunicate OK [15:28:49]SAM_PROTO_GetFieldsCounters done [15:28:49]requested_item shift.num is exist - process it [15:28:49]requested_item shift.opened is exist - process it [15:28:49]req_shift_opened [15:28:49]FM_GetShiftState [15:28:49]SAM_PROTO_GetShiftState [15:28:49]wFMCommunicate request_size=4 [15:28:49]MH_SAM_APDU [15:28:49]CAPDU: 80 13 01 00 [15:28:49]Write to MH i2c: E2 08 00 20 16 80 13 01 00 00 00 00 00 B3 [15:28:49]Write i2c OK [15:28:49]MH_I2C_Read... [15:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:49]Read from MH i2c: E2 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: E2 0E 00 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: E2 0E 00 20 16 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 CC [15:28:49]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:28:49]wFMCommunicate OK [15:28:49]SAM_PROTO_GetShiftState done [15:28:49]FM_GetShiftState done [15:28:49]req_shift_opened done [15:28:49]requested_item shift.open_date is exist - process it [15:28:49]req_shift_open_date [15:28:49]req_shift_open_date done [15:28:49]produce_requested_data done [15:28:49]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115418,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [15:28:49]process_action_free close_receipt [15:28:49]json_value_free [15:28:49]json_value_free done [15:28:49]process_json_proto returns [15:28:49]Send response to host [15:28:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115418,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [15:28:49]free response buf [15:28:49]execute_script done [15:28:49]execute_script returns [15:28:49]free content buf [15:28:49]Sock 9.Close socket [15:28:49]Sock 9.Thread stoped [15:28:49]OFD Sender: Processing packet 115418 [packets to send 481, broken 480] [15:28:49]ProducePacketName [15:28:49]name=ofd_packets/00115418 [15:28:49]OFD Sender: To server: pG, [15:28:49]CommunicateWithHost lk.salyk.kg:30040 [15:28:49]ConnectInit lk.salyk.kg [15:28:49]Connected sock=9 [15:28:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B3 01 00 00 66 EA AB 01 D8 9C 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 2C 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 AE 37 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DA C2 01 00 35 04 06 00 38 CF 8F 2F 0A E5 9C CA 91 3E D5 C0 69 85 [15:28:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 67 1A 47 00 BC 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 31 38 33 30 10 04 04 00 DA C2 01 00 F4 03 04 00 F7 DC EF 66 B6 04 01 00 00 26 35 EB 96 4A CF 55 AF [15:28:50]CommunicateWithHost err = 0 [15:28:50]CheckOFDResponse [15:28:50]1017 (14) - 77093643461234 [15:28:50]1041 (16) - 0000000000871830 [15:28:50]1040 (4) - 115418 [15:28:50]1012 (4) - 22.09.2024 09:01 [15:28:50]1206 (1) - 0 [15:28:50]OFD Sender: Remove packet 115418 [15:28:50]ProducePacketName [15:28:50]name=ofd_packets/00115418 [15:28:50]NVStorageDeleteData [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:14]accept exits with 8 [15:29:14]New connection [15:29:14]New thread 3066826084 created [15:29:14]Thread 3066682724 joined [15:29:14]Waiting for new connection... [15:29:14] Sock 8.Parse request [15:29:14]Sock 8.Check first char [15:29:14]Sock 8.First char is OK [15:29:14]request: POST /json_proto HTTP/1.0 [15:29:14]Method: POST [15:29:14]URL: /json_proto [15:29:14]Method is POST - this is cgi request [15:29:14]url: /json_proto [15:29:14]query_string will be loaded in cgi processing [15:29:14]execute_cgi json_proto POST (null) [15:29:14]execute_cgi path=json_proto method=POST [15:29:14]POST find Content-Length [15:29:14]Host: 172.17.41.136:8080 [15:29:14]Content-Length: 630 [15:29:14]Content-Type: application/json [15:29:14] [15:29:14]POST finish read [15:29:14]Found Content-Length = 630 [15:29:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343862", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:14]execute_script... [15:29:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343862", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:14]POST & json_proto [15:29:14]process_json_proto [15:29:14]json parsed OK: [15:29:14]protocol is kg_v1.0 [15:29:14]action value=close_receipt [15:29:14]process_action close_receipt [15:29:14]cmd_close_receipt [15:29:14]MH_GetDate [15:29:14]Write to MH i2c: F0 00 00 21 16 26 [15:29:14]Write i2c OK [15:29:14]MH_I2C_Read... [15:29:14]Read from MH i2c: F0 [15:29:14]MH_I2C_Read... [15:29:14]Read from MH i2c: F0 09 00 [15:29:14]MH_I2C_Read... [15:29:14]Read from MH i2c: F0 09 00 21 16 00 CC 37 F0 66 1B D0 5A 64 31 [15:29:14]GetLastDocTimeStamp 1727018926 [15:29:14]current date 1727018956 [15:29:14]FM_GetShiftState [15:29:14]SAM_PROTO_GetShiftState [15:29:14]wFMCommunicate request_size=4 [15:29:14]MH_SAM_APDU [15:29:14]CAPDU: 80 13 01 00 [15:29:14]Write to MH i2c: E2 08 00 22 16 80 13 01 00 00 00 00 00 B5 [15:29:14]Write i2c OK [15:29:14]MH_I2C_Read... [15:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:14]Read from MH i2c: E2 [15:29:14]MH_I2C_Read... [15:29:14]Read from MH i2c: E2 0E 00 [15:29:14]MH_I2C_Read... [15:29:14]Read from MH i2c: E2 0E 00 22 16 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 CE [15:29:14]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:29:14]wFMCommunicate OK [15:29:14]SAM_PROTO_GetShiftState done [15:29:14]FM_GetShiftState done [15:29:14]opened in 1726965840 [15:29:14]opened+sec_in_day 1727052240 [15:29:14]quantity*price = 5000 [15:29:14]sum+1 = 5001 [15:29:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 137 22.09.2024 15:29 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115419 ФПД: 49589316586989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152916&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115419&fm=49589316586989&tin=02508201610067®Number=0000000000091831&sum=5000 0 [15:29:15]StoreToDocumentArchive [15:29:15]shift 471 fd 115419 [15:29:15]save to /storage/0471/doc_00115419 [15:29:15]save last doc name /storage/0471/doc_00115419 to /storage/kkm_last_doc_name [15:29:15]save OK [15:29:15]Clear old archive folders... [15:29:15]ProcessDocumentItem done err = 0, tmpTLVsize=269 [15:29:15]tlvbuf is 01C01BC0 [15:29:15]SAM_PROTO_ClearQueue [15:29:15]wFMCommunicate request_size=4 [15:29:15]MH_SAM_APDU [15:29:15]CAPDU: 80 09 00 00 [15:29:15]Write to MH i2c: E2 08 00 2F 16 80 09 00 00 00 00 00 00 B7 [15:29:15]Write i2c OK [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 [15:29:15]MH_I2C_Read... [15:29:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:15]Read from MH i2c: E2 03 00 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 03 00 2F 16 00 90 00 B9 [15:29:15]RAPDU: 90 00 [15:29:15]wFMCommunicate OK [15:29:15]SAM_PROTO_ClearQueue done [15:29:15]KKMCreateOFDPacket [15:29:15]OFDProtocolAddRootSTLVToBuf [15:29:15]FM_MakeSignedData [15:29:15]FM_MakeSignedData [15:29:15]SAM_PROTO_SignData [15:29:15]wFMCommunicate request_size=4 [15:29:15]MH_SAM_APDU [15:29:15]CAPDU: 80 0D 01 02 [15:29:15]Write to MH i2c: E2 08 00 30 16 80 0D 01 02 00 00 00 00 BF [15:29:15]Write i2c OK [15:29:15]MH_I2C_Read... [15:29:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:15]Read from MH i2c: E2 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 03 00 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 03 00 30 16 00 90 00 BA [15:29:15]RAPDU: 90 00 [15:29:15]wFMCommunicate OK [15:29:15]wFMCommunicate request_size=255 [15:29:15]MH_SAM_APDU [15:29:15]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 CC 37 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [15:29:15]Write to MH i2c: E2 02 01 31 16 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 CC 37 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 8D [15:29:15]Write i2c OK [15:29:15]MH_I2C_Read... [15:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:15]Read from MH i2c: E2 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 03 00 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 03 00 31 16 00 90 00 BB [15:29:15]RAPDU: 90 00 [15:29:15]wFMCommunicate OK [15:29:15]wFMCommunicate request_size=28 [15:29:15]MH_SAM_APDU [15:29:15]CAPDU: 80 0D 02 02 17 37 31 38 33 30 10 04 04 00 DB C2 01 00 35 04 06 00 2D 19 E9 99 8D ED [15:29:15]Write to MH i2c: E2 1F 00 32 16 80 0D 02 02 17 00 37 31 38 33 30 10 04 04 00 DB C2 01 00 35 04 06 00 2D 19 E9 99 8D ED 00 00 2A [15:29:15]Write i2c OK [15:29:15]MH_I2C_Read... [15:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:15]Read from MH i2c: E2 [15:29:15]MH_I2C_Read... [15:29:15]OFD Sender: No OFD packet to send [15:29:15]Read from MH i2c: E2 03 00 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 03 00 32 16 00 90 00 BC [15:29:15]RAPDU: 90 00 [15:29:15]wFMCommunicate OK [15:29:15]wFMCommunicate request_size=4 [15:29:15]MH_SAM_APDU [15:29:15]CAPDU: 80 0D 03 02 [15:29:15]Write to MH i2c: E2 08 00 33 16 80 0D 03 02 00 00 00 00 C4 [15:29:15]Write i2c OK [15:29:15]MH_I2C_Read... [15:29:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:15]Read from MH i2c: E2 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 0B 00 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 0B 00 33 16 00 B3 B1 C6 F5 27 9D 3E D5 90 00 BB [15:29:15]RAPDU: B3 B1 C6 F5 27 9D 3E D5 90 00 [15:29:15]wFMCommunicate OK [15:29:15]SAM_PROTO_SignData done [15:29:15]FM_MakeSignedData done [15:29:15]CreateOFDProtocolMessage [15:29:15]wFMCommunicate request_size=4 [15:29:15]MH_SAM_APDU [15:29:15]CAPDU: 80 11 00 00 [15:29:15]Write to MH i2c: E2 08 00 34 16 80 11 00 00 00 00 00 00 C4 [15:29:15]Write i2c OK [15:29:15]MH_I2C_Read... [15:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:15]Read from MH i2c: E2 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 17 00 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: E2 17 00 34 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 12 [15:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:29:15]wFMCommunicate OK [15:29:15]CreateOFDProtocolMessage done [15:29:15]OFDSenderStorePacket 115419 [15:29:15]StoreOFDPacket docnum=115419 [15:29:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 21 01 00 00 D8 81 19 01 69 05 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 CC 37 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DB C2 01 00 35 04 06 00 2D 19 E9 99 8D ED B3 B1 C6 F5 27 9D 3E D5 [15:29:15]CheckFolder [15:29:15]dirname=/storage/ofd_packets [15:29:15]CheckFolder done [15:29:15]ProducePacketName [15:29:15]name=ofd_packets/00115419 [15:29:15]NVStorageSaveData ofd_packets/00115419 [15:29:15]File name is /storage/ofd_packets/00115419 [15:29:15]Write 319 bytes [15:29:15]NVStorageSaveData done [15:29:15]OFDSenderStorePacket done [15:29:15]KKMCreateOFDPacket done [15:29:15]NVStorageSaveData kkm_last_timestamp [15:29:15]File name is /storage/kkm_last_timestamp [15:29:15]Write 4 bytes [15:29:15]NVStorageSaveData done [15:29:15]ExternCall_PrintAddStr [15:29:15]wPrintStart [15:29:15]Write to MH i2c: 01 00 00 35 16 4B [15:29:15]OFD Sender: Processing packet 115419 [packets to send 481, broken 480] [15:29:15]ProducePacketName [15:29:15]name=ofd_packets/00115419 [15:29:15]OFD Sender: To server: pG, [15:29:15]CommunicateWithHost lk.salyk.kg:30040 [15:29:15]ConnectInit lk.salyk.kg [15:29:15]Write i2c OK [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: 01 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: 01 07 00 [15:29:15]MH_I2C_Read... [15:29:15]Read from MH i2c: 01 07 00 35 16 00 00 00 00 00 FF 0F 60 [15:29:15]RasterBufferAndPrint [15:29:15]line Счет N : (3)343862 [15:29:15]line ИНН: 02508201610067 [15:29:15]line Контрольно-Кассовый Чек [15:29:15]line ПРОДАЖА [15:29:15]line Товар: 4700000160358 [15:29:15]line Вода Легенда 1л [15:29:15]line 1.000 * 50.00 [15:29:15]line = 50.00 [15:29:15]line НДС 12% НСП 1% [15:29:15]line > о реализуемом товаре [15:29:15]line ИТОГО: 50.00 [15:29:15]line НСП 1% : 0.44 [15:29:15]line НДС 12% : 5.31 [15:29:15]line Наличными: 50.00 [15:29:15]line Безнал.: 0.00 [15:29:15]line Место: АЗС № 90 "Партнер Нефть" [15:29:15]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:29:15]line СНО: Общий режим [15:29:15]line Чек 137 22.09.2024 15:29 [15:29:15]line Смена: 471 ФФД: 1.0 [15:29:15]line ЗНМ: 0300000120 [15:29:15]line РНМ: 0000000000091831 [15:29:15]line Версия ККМ: 001 [15:29:15]line ФМ: 0000000000871830 [15:29:15]line ФД: 115419 [15:29:15]line ФПД: 49589316586989 [15:29:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152916&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115419&fm=49589316586989&tin=02508201610067®Number=0000000000091831&sum=5000 [15:29:16]line 0 [15:29:16]written 0, free lines is 4095 [15:29:16]Connected sock=10 [15:29:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 21 01 00 00 D8 81 19 01 69 05 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 CC 37 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DB C2 01 00 35 04 06 00 2D 19 E9 99 8D ED B3 B1 C6 F5 27 9D 3E D5 [15:29:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 9E 07 47 00 AB 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 31 38 33 30 10 04 04 00 DB C2 01 00 F4 03 04 00 11 DD EF 66 B6 04 01 00 00 00 12 F9 9E 95 5A 7D 30 [15:29:16]CommunicateWithHost err = 0 [15:29:16]CheckOFDResponse [15:29:16]1017 (14) - 77093643461234 [15:29:16]1041 (16) - 0000000000871830 [15:29:16]1040 (4) - 115419 [15:29:16]1012 (4) - 22.09.2024 09:02 [15:29:16]1206 (1) - 0 [15:29:16]OFD Sender: Remove packet 115419 [15:29:16]ProducePacketName [15:29:16]name=ofd_packets/00115419 [15:29:16]NVStorageDeleteData [15:29:16]Write to MH i2c: 01 00 00 5C 16 72 [15:29:16]Write i2c OK [15:29:16]MH_I2C_Read... [15:29:16]Read from MH i2c: 01 [15:29:16]MH_I2C_Read... [15:29:16]Read from MH i2c: 01 07 00 [15:29:16]MH_I2C_Read... [15:29:16]Read from MH i2c: 01 07 00 5C 16 00 00 00 00 00 8F 0C 14 [15:29:16]RasterBufferAndPrint [15:29:16]line [15:29:16]line [15:29:16]line [15:29:16]line [15:29:16]line [15:29:16]written 0, free lines is 3220 [15:29:16]MH_Cut [15:29:16]Write to MH i2c: D1 01 00 63 16 01 4B [15:29:16]Write i2c OK [15:29:16]MH_I2C_Read... [15:29:16]Read from MH i2c: D1 [15:29:16]MH_I2C_Read... [15:29:16]Read from MH i2c: D1 01 00 [15:29:16]MH_I2C_Read... [15:29:16]Read from MH i2c: D1 01 00 63 16 00 4A [15:29:16]Write to MH i2c: 01 00 00 64 16 7A [15:29:16]Write i2c OK [15:29:16]MH_I2C_Read... [15:29:16]OFD Sender: No OFD packet to send [15:29:17]*** Cut start [15:29:17]*** Partial cut [15:29:17]*** CUTSNS_PIN = 1 [15:29:17]*** CUTSNS_PIN = 0 [15:29:18]*** Brake cut motor [15:29:18]Read from MH i2c: 01 [15:29:18]MH_I2C_Read... [15:29:18]*** Stop cut motor [15:29:18]*** Cut end [15:29:18]Read from MH i2c: 01 07 00 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: 01 07 00 64 16 00 00 00 00 00 FF 0F 8F [15:29:18]process_action close_receipt done [15:29:18]requested_data is exist [15:29:18]produce_requested_data [15:29:18]requested_item fm.sn is exist - process it [15:29:18]wFMCommunicate request_size=4 [15:29:18]MH_SAM_APDU [15:29:18]CAPDU: 80 11 00 00 [15:29:18]Write to MH i2c: E2 08 00 65 16 80 11 00 00 00 00 00 00 F5 [15:29:18]Write i2c OK [15:29:18]MH_I2C_Read... [15:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:18]Read from MH i2c: E2 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 17 00 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 17 00 65 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 43 [15:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:29:18]wFMCommunicate OK [15:29:18]requested_item fd.num is exist - process it [15:29:18]SAM_PROTO_GetFieldsCounters [15:29:18]wFMCommunicate request_size=4 [15:29:18]MH_SAM_APDU [15:29:18]CAPDU: 80 13 00 00 [15:29:18]Write to MH i2c: E2 08 00 66 16 80 13 00 00 00 00 00 00 F8 [15:29:18]Write i2c OK [15:29:18]MH_I2C_Read... [15:29:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:18]Read from MH i2c: E2 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 62 00 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 62 00 66 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DB C2 01 00 0E 04 04 00 D7 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 22 [15:29:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DB C2 01 00 0E 04 04 00 D7 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 [15:29:18]wFMCommunicate OK [15:29:18]SAM_PROTO_GetFieldsCounters done [15:29:18]requested_item shift.num is exist - process it [15:29:18]requested_item shift.opened is exist - process it [15:29:18]req_shift_opened [15:29:18]FM_GetShiftState [15:29:18]SAM_PROTO_GetShiftState [15:29:18]wFMCommunicate request_size=4 [15:29:18]MH_SAM_APDU [15:29:18]CAPDU: 80 13 01 00 [15:29:18]Write to MH i2c: E2 08 00 67 16 80 13 01 00 00 00 00 00 FA [15:29:18]Write i2c OK [15:29:18]MH_I2C_Read... [15:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:18]Read from MH i2c: E2 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 0E 00 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 0E 00 67 16 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 13 [15:29:18]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:29:18]wFMCommunicate OK [15:29:18]SAM_PROTO_GetShiftState done [15:29:18]FM_GetShiftState done [15:29:18]req_shift_opened done [15:29:18]requested_item shift.open_date is exist - process it [15:29:18]req_shift_open_date [15:29:18]req_shift_open_date done [15:29:18]produce_requested_data done [15:29:18]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115419,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [15:29:18]process_action_free close_receipt [15:29:18]json_value_free [15:29:18]json_value_free done [15:29:18]process_json_proto returns [15:29:18]Send response to host [15:29:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115419,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [15:29:18]free response buf [15:29:18]execute_script done [15:29:18]execute_script returns [15:29:18]free content buf [15:29:18]Sock 8.Close socket [15:29:18]Sock 8.Thread stoped [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:36]accept exits with 9 [15:36:36]New connection [15:36:36]New thread 3066682724 created [15:36:36]Thread 3066826084 joined [15:36:36]Waiting for new connection... [15:36:36] Sock 9.Parse request [15:36:36]Sock 9.Check first char [15:36:36]Sock 9.First char is OK [15:36:36]request: POST /json_proto HTTP/1.0 [15:36:36]Method: POST [15:36:36]URL: /json_proto [15:36:36]Method is POST - this is cgi request [15:36:36]url: /json_proto [15:36:36]query_string will be loaded in cgi processing [15:36:36]execute_cgi json_proto POST (null) [15:36:36]execute_cgi path=json_proto method=POST [15:36:36]POST find Content-Length [15:36:36]Host: 172.17.41.136:8080 [15:36:36]Content-Length: 668 [15:36:36]Content-Type: application/json [15:36:36] [15:36:36]POST finish read [15:36:36]Found Content-Length = 668 [15:36:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343863", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:36]execute_script... [15:36:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343863", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:36]POST & json_proto [15:36:36]process_json_proto [15:36:36]json parsed OK: [15:36:36]protocol is kg_v1.0 [15:36:36]action value=close_receipt [15:36:36]process_action close_receipt [15:36:36]cmd_close_receipt [15:36:36]MH_GetDate [15:36:36]Write to MH i2c: F0 00 00 68 16 6D [15:36:36]Write i2c OK [15:36:36]MH_I2C_Read... [15:36:36]Read from MH i2c: F0 [15:36:36]MH_I2C_Read... [15:36:36]Read from MH i2c: F0 09 00 [15:36:36]MH_I2C_Read... [15:36:36]Read from MH i2c: F0 09 00 68 16 00 86 39 F0 66 1B D0 5A 64 34 [15:36:36]GetLastDocTimeStamp 1727018956 [15:36:36]current date 1727019398 [15:36:36]FM_GetShiftState [15:36:36]SAM_PROTO_GetShiftState [15:36:36]wFMCommunicate request_size=4 [15:36:36]MH_SAM_APDU [15:36:36]CAPDU: 80 13 01 00 [15:36:36]Write to MH i2c: E2 08 00 69 16 80 13 01 00 00 00 00 00 FC [15:36:36]Write i2c OK [15:36:36]MH_I2C_Read... [15:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:36]Read from MH i2c: E2 [15:36:36]MH_I2C_Read... [15:36:36]Read from MH i2c: E2 0E 00 [15:36:36]MH_I2C_Read... [15:36:36]Read from MH i2c: E2 0E 00 69 16 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 15 [15:36:36]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:36:36]wFMCommunicate OK [15:36:36]SAM_PROTO_GetShiftState done [15:36:36]FM_GetShiftState done [15:36:36]opened in 1726965840 [15:36:36]opened+sec_in_day 1727052240 [15:36:36]quantity*price = 7500 [15:36:36]sum+1 = 7501 [15:36:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 138 22.09.2024 15:36 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115420 ФПД: 184107982286154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T153638&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115420&fm=184107982286154&tin=02508201610067®Number=0000000000091831&sum=7500 0 [15:36:37]StoreToDocumentArchive [15:36:37]shift 471 fd 115420 [15:36:37]save to /storage/0471/doc_00115420 [15:36:37]save last doc name /storage/0471/doc_00115420 to /storage/kkm_last_doc_name [15:36:37]save OK [15:36:37]Clear old archive folders... [15:36:37]ProcessDocumentItem done err = 0, tmpTLVsize=287 [15:36:37]tlvbuf is 01C7E7E0 [15:36:37]SAM_PROTO_ClearQueue [15:36:37]wFMCommunicate request_size=4 [15:36:37]MH_SAM_APDU [15:36:37]CAPDU: 80 09 00 00 [15:36:37]Write to MH i2c: E2 08 00 76 16 80 09 00 00 00 00 00 00 FE [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:37]Read from MH i2c: E2 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 03 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 03 00 76 16 00 90 00 00 [15:36:37]RAPDU: 90 00 [15:36:37]wFMCommunicate OK [15:36:37]SAM_PROTO_ClearQueue done [15:36:37]KKMCreateOFDPacket [15:36:37]OFDProtocolAddRootSTLVToBuf [15:36:37]FM_MakeSignedData [15:36:37]FM_MakeSignedData [15:36:37]SAM_PROTO_SignData [15:36:37]wFMCommunicate request_size=4 [15:36:37]MH_SAM_APDU [15:36:37]CAPDU: 80 0D 01 02 [15:36:37]Write to MH i2c: E2 08 00 77 16 80 0D 01 02 00 00 00 00 06 [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:37]Read from MH i2c: E2 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 03 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 03 00 77 16 00 90 00 01 [15:36:37]RAPDU: 90 00 [15:36:37]wFMCommunicate OK [15:36:37]wFMCommunicate request_size=255 [15:36:37]MH_SAM_APDU [15:36:37]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 86 39 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [15:36:37]Write to MH i2c: E2 02 01 78 16 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 86 39 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 FA [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:37]Read from MH i2c: E2 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 03 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 03 00 78 16 00 90 00 02 [15:36:37]RAPDU: 90 00 [15:36:37]wFMCommunicate OK [15:36:37]wFMCommunicate request_size=46 [15:36:37]MH_SAM_APDU [15:36:37]CAPDU: 80 0D 02 02 29 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DC C2 01 00 35 04 06 00 A7 71 FA E2 6D 4A [15:36:37]Write to MH i2c: E2 31 00 79 16 80 0D 02 02 29 00 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DC C2 01 00 35 04 06 00 A7 71 FA E2 6D 4A 00 00 D8 [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:37]Read from MH i2c: E2 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 03 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 03 00 79 16 00 90 00 03 [15:36:37]RAPDU: 90 00 [15:36:37]wFMCommunicate OK [15:36:37]wFMCommunicate request_size=4 [15:36:37]MH_SAM_APDU [15:36:37]CAPDU: 80 0D 03 02 [15:36:37]Write to MH i2c: E2 08 00 7A 16 80 0D 03 02 00 00 00 00 0B [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:37]Read from MH i2c: E2 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 0B 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 0B 00 7A 16 00 4F 13 CF 71 85 F6 9C 68 90 00 2D [15:36:37]RAPDU: 4F 13 CF 71 85 F6 9C 68 90 00 [15:36:37]wFMCommunicate OK [15:36:37]SAM_PROTO_SignData done [15:36:37]FM_MakeSignedData done [15:36:37]CreateOFDProtocolMessage [15:36:37]wFMCommunicate request_size=4 [15:36:37]MH_SAM_APDU [15:36:37]CAPDU: 80 11 00 00 [15:36:37]Write to MH i2c: E2 08 00 7B 16 80 11 00 00 00 00 00 00 0B [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:37]Read from MH i2c: E2 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 17 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 17 00 7B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 59 [15:36:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:36:37]wFMCommunicate OK [15:36:37]CreateOFDProtocolMessage done [15:36:37]OFDSenderStorePacket 115420 [15:36:37]StoreOFDPacket docnum=115420 [15:36:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 33 01 00 00 A6 A9 2B 01 EE 78 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 86 39 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DC C2 01 00 35 04 06 00 A7 71 FA E2 6D 4A 4F 13 CF 71 85 F6 9C 68 [15:36:37]CheckFolder [15:36:37]dirname=/storage/ofd_packets [15:36:37]CheckFolder done [15:36:37]ProducePacketName [15:36:37]name=ofd_packets/00115420 [15:36:37]NVStorageSaveData ofd_packets/00115420 [15:36:37]File name is /storage/ofd_packets/00115420 [15:36:37]Write 337 bytes [15:36:37]NVStorageSaveData done [15:36:37]OFDSenderStorePacket done [15:36:37]KKMCreateOFDPacket done [15:36:37]NVStorageSaveData kkm_last_timestamp [15:36:37]File name is /storage/kkm_last_timestamp [15:36:37]Write 4 bytes [15:36:37]NVStorageSaveData done [15:36:37]ExternCall_PrintAddStr [15:36:37]wPrintStart [15:36:37]Write to MH i2c: 01 00 00 7C 16 92 [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: 01 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: 01 07 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: 01 07 00 7C 16 00 00 00 00 00 FF 0F A7 [15:36:37]RasterBufferAndPrint [15:36:37]line Счет N : (3)343863 [15:36:37]line ИНН: 02508201610067 [15:36:37]line Контрольно-Кассовый Чек [15:36:37]line ПРОДАЖА [15:36:37]line Товар: 5449000189394 [15:36:37]line Холодный чай Fuse ягода 0,5л [15:36:37]line 1.000 * 75.00 [15:36:37]line = 75.00 [15:36:37]line НДС 12% НСП 1% [15:36:37]line > о реализуемом товаре [15:36:37]line ИТОГО: 75.00 [15:36:37]line НСП 1% : 0.66 [15:36:37]line НДС 12% : 7.96 [15:36:37]line Наличными: 75.00 [15:36:37]line Безнал.: 0.00 [15:36:37]line Место: АЗС № 90 "Партнер Нефть" [15:36:37]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:36:37]line СНО: Общий режим [15:36:37]line Чек 138 22.09.2024 15:36 [15:36:37]line Смена: 471 ФФД: 1.0 [15:36:37]line ЗНМ: 0300000120 [15:36:37]line РНМ: 0000000000091831 [15:36:37]line Версия ККМ: 001 [15:36:37]line ФМ: 0000000000871830 [15:36:37]line ФД: 115420 [15:36:37]line ФПД: 184107982286154 [15:36:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T153638&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115420&fm=184107982286154&tin=02508201610067®Number=0000000000091831&sum=7500 [15:36:38]line 0 [15:36:38]OFD Sender: Processing packet 115420 [packets to send 481, broken 480] [15:36:38]ProducePacketName [15:36:38]name=ofd_packets/00115420 [15:36:38]OFD Sender: To server: pG, [15:36:38]CommunicateWithHost lk.salyk.kg:30040 [15:36:38]ConnectInit lk.salyk.kg [15:36:38]written 0, free lines is 4095 [15:36:38]Connected sock=10 [15:36:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 33 01 00 00 A6 A9 2B 01 EE 78 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 86 39 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DC C2 01 00 35 04 06 00 A7 71 FA E2 6D 4A 4F 13 CF 71 85 F6 9C 68 [15:36:38]Write to MH i2c: 01 00 00 A3 16 B9 [15:36:38]Write i2c OK [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: 01 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: 01 07 00 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: 01 07 00 A3 16 00 00 00 00 00 77 0C 43 [15:36:38]RasterBufferAndPrint [15:36:38]line [15:36:38]line [15:36:38]line [15:36:38]line [15:36:38]line [15:36:38]written 0, free lines is 3195 [15:36:38]MH_Cut [15:36:38]Write to MH i2c: D1 01 00 AA 16 01 92 [15:36:38]Write i2c OK [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: D1 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: D1 01 00 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: D1 01 00 AA 16 00 91 [15:36:38]Write to MH i2c: 01 00 00 AB 16 C1 [15:36:38]Write i2c OK [15:36:38]MH_I2C_Read... [15:36:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 FE 8C 47 00 D0 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DC C2 01 00 F4 03 04 00 CB DE EF 66 B6 04 01 00 00 1B FB 1A 0B 5B 71 1D 21 [15:36:38]CommunicateWithHost err = 0 [15:36:38]CheckOFDResponse [15:36:38]1017 (14) - 77093643461234 [15:36:38]1041 (16) - 0000000000871830 [15:36:38]1040 (4) - 115420 [15:36:38]1012 (4) - 22.09.2024 09:09 [15:36:38]1206 (1) - 0 [15:36:38]OFD Sender: Remove packet 115420 [15:36:38]ProducePacketName [15:36:38]name=ofd_packets/00115420 [15:36:38]NVStorageDeleteData [15:36:39]OFD Sender: No OFD packet to send [15:36:39]*** Cut start [15:36:39]*** Partial cut [15:36:39]*** CUTSNS_PIN = 1 [15:36:39]*** CUTSNS_PIN = 0 [15:36:40]*** Brake cut motor [15:36:40]Read from MH i2c: 01 [15:36:40]MH_I2C_Read... [15:36:40]*** Stop cut motor [15:36:40]*** Cut end [15:36:40]Read from MH i2c: 01 07 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: 01 07 00 AB 16 00 00 00 00 00 FF 0F D6 [15:36:40]process_action close_receipt done [15:36:40]requested_data is exist [15:36:40]produce_requested_data [15:36:40]requested_item fm.sn is exist - process it [15:36:40]wFMCommunicate request_size=4 [15:36:40]MH_SAM_APDU [15:36:40]CAPDU: 80 11 00 00 [15:36:40]Write to MH i2c: E2 08 00 AC 16 80 11 00 00 00 00 00 00 3C [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:40]Read from MH i2c: E2 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 17 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 17 00 AC 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8A [15:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:36:40]wFMCommunicate OK [15:36:40]requested_item fd.num is exist - process it [15:36:40]SAM_PROTO_GetFieldsCounters [15:36:40]wFMCommunicate request_size=4 [15:36:40]MH_SAM_APDU [15:36:40]CAPDU: 80 13 00 00 [15:36:40]Write to MH i2c: E2 08 00 AD 16 80 13 00 00 00 00 00 00 3F [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:40]Read from MH i2c: E2 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 62 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 62 00 AD 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DC C2 01 00 0E 04 04 00 D7 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 6D [15:36:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DC C2 01 00 0E 04 04 00 D7 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 [15:36:40]wFMCommunicate OK [15:36:40]SAM_PROTO_GetFieldsCounters done [15:36:40]requested_item shift.num is exist - process it [15:36:40]requested_item shift.opened is exist - process it [15:36:40]req_shift_opened [15:36:40]FM_GetShiftState [15:36:40]SAM_PROTO_GetShiftState [15:36:40]wFMCommunicate request_size=4 [15:36:40]MH_SAM_APDU [15:36:40]CAPDU: 80 13 01 00 [15:36:40]Write to MH i2c: E2 08 00 AE 16 80 13 01 00 00 00 00 00 41 [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:40]Read from MH i2c: E2 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 0E 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 0E 00 AE 16 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 5A [15:36:40]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:36:40]wFMCommunicate OK [15:36:40]SAM_PROTO_GetShiftState done [15:36:40]FM_GetShiftState done [15:36:40]req_shift_opened done [15:36:40]requested_item shift.open_date is exist - process it [15:36:40]req_shift_open_date [15:36:40]req_shift_open_date done [15:36:40]produce_requested_data done [15:36:40]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115420,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [15:36:40]process_action_free close_receipt [15:36:40]json_value_free [15:36:40]json_value_free done [15:36:40]process_json_proto returns [15:36:40]Send response to host [15:36:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115420,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [15:36:40]free response buf [15:36:40]execute_script done [15:36:40]execute_script returns [15:36:40]free content buf [15:36:40]Sock 9.Close socket [15:36:40]Sock 9.Thread stoped [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:35]OFD Sender: No OFD packet to send [15:41:40]OFD Sender: No OFD packet to send [15:41:45]OFD Sender: No OFD packet to send [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:41:56]accept exits with 8 [15:41:56]New connection [15:41:56]New thread 3066826084 created [15:41:56]Thread 3066682724 joined [15:41:56]Waiting for new connection... [15:41:56] Sock 8.Parse request [15:41:56]Sock 8.Check first char [15:41:56]Sock 8.First char is OK [15:41:56]request: POST /json_proto HTTP/1.0 [15:41:56]Method: POST [15:41:56]URL: /json_proto [15:41:56]Method is POST - this is cgi request [15:41:56]url: /json_proto [15:41:56]query_string will be loaded in cgi processing [15:41:56]execute_cgi json_proto POST (null) [15:41:56]execute_cgi path=json_proto method=POST [15:41:56]POST find Content-Length [15:41:56]Host: 172.17.41.136:8080 [15:41:56]Content-Length: 633 [15:41:56]Content-Type: application/json [15:41:56] [15:41:56]POST finish read [15:41:56]Found Content-Length = 633 [15:41:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343864", "tax_sys" : 0, "items" : [ { "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:56]execute_script... [15:41:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343864", "tax_sys" : 0, "items" : [ { "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:56]POST & json_proto [15:41:56]process_json_proto [15:41:56]json parsed OK: [15:41:56]protocol is kg_v1.0 [15:41:56]action value=close_receipt [15:41:56]process_action close_receipt [15:41:56]cmd_close_receipt [15:41:56]MH_GetDate [15:41:56]Write to MH i2c: F0 00 00 AF 16 B4 [15:41:56]Write i2c OK [15:41:56]MH_I2C_Read... [15:41:56]Read from MH i2c: F0 [15:41:56]MH_I2C_Read... [15:41:56]Read from MH i2c: F0 09 00 [15:41:56]MH_I2C_Read... [15:41:56]Read from MH i2c: F0 09 00 AF 16 00 C6 3A F0 66 1B D0 5A 64 BC [15:41:56]GetLastDocTimeStamp 1727019398 [15:41:56]current date 1727019718 [15:41:56]FM_GetShiftState [15:41:56]SAM_PROTO_GetShiftState [15:41:56]wFMCommunicate request_size=4 [15:41:56]MH_SAM_APDU [15:41:56]CAPDU: 80 13 01 00 [15:41:56]Write to MH i2c: E2 08 00 B0 16 80 13 01 00 00 00 00 00 43 [15:41:56]Write i2c OK [15:41:56]MH_I2C_Read... [15:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:56]Read from MH i2c: E2 [15:41:56]MH_I2C_Read... [15:41:56]Read from MH i2c: E2 0E 00 [15:41:56]MH_I2C_Read... [15:41:56]Read from MH i2c: E2 0E 00 B0 16 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 5C [15:41:56]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:41:56]wFMCommunicate OK [15:41:56]SAM_PROTO_GetShiftState done [15:41:56]FM_GetShiftState done [15:41:56]opened in 1726965840 [15:41:56]opened+sec_in_day 1727052240 [15:41:56]quantity*price = 14700 [15:41:56]sum+1 = 14701 [15:41:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 147.00 НСП 1% : 1.30 НДС 12% : 15.61 Наличными: 147.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 139 22.09.2024 15:41 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115421 ФПД: 216154563044233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T154158&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115421&fm=216154563044233&tin=02508201610067®Number=0000000000091831&sum=14700 0 [15:41:57]StoreToDocumentArchive [15:41:57]shift 471 fd 115421 [15:41:57]save to /storage/0471/doc_00115421 [15:41:57]save last doc name /storage/0471/doc_00115421 to /storage/kkm_last_doc_name [15:41:57]save OK [15:41:57]Clear old archive folders... [15:41:57]ProcessDocumentItem done err = 0, tmpTLVsize=285 [15:41:57]tlvbuf is 01C50E00 [15:41:57]SAM_PROTO_ClearQueue [15:41:57]wFMCommunicate request_size=4 [15:41:57]MH_SAM_APDU [15:41:57]CAPDU: 80 09 00 00 [15:41:57]Write to MH i2c: E2 08 00 BD 16 80 09 00 00 00 00 00 00 45 [15:41:57]Write i2c OK [15:41:57]MH_I2C_Read... [15:41:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:57]Read from MH i2c: E2 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: E2 03 00 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: E2 03 00 BD 16 00 90 00 47 [15:41:57]RAPDU: 90 00 [15:41:57]wFMCommunicate OK [15:41:57]SAM_PROTO_ClearQueue done [15:41:57]KKMCreateOFDPacket [15:41:57]OFDProtocolAddRootSTLVToBuf [15:41:57]FM_MakeSignedData [15:41:57]FM_MakeSignedData [15:41:57]SAM_PROTO_SignData [15:41:57]wFMCommunicate request_size=4 [15:41:57]MH_SAM_APDU [15:41:57]CAPDU: 80 0D 01 02 [15:41:57]Write to MH i2c: E2 08 00 BE 16 80 0D 01 02 00 00 00 00 4D [15:41:57]Write i2c OK [15:41:57]MH_I2C_Read... [15:41:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:57]Read from MH i2c: E2 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: E2 03 00 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: E2 03 00 BE 16 00 90 00 48 [15:41:57]RAPDU: 90 00 [15:41:57]wFMCommunicate OK [15:41:57]wFMCommunicate request_size=255 [15:41:57]MH_SAM_APDU [15:41:57]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 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 C6 3A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 [15:41:57]Write to MH i2c: E2 02 01 BF 16 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 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 C6 3A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 00 00 64 [15:41:57]Write i2c OK [15:41:57]MH_I2C_Read... [15:41:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:57]Read from MH i2c: E2 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: E2 03 00 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: E2 03 00 BF 16 00 90 00 49 [15:41:57]RAPDU: 90 00 [15:41:57]wFMCommunicate OK [15:41:57]wFMCommunicate request_size=44 [15:41:57]MH_SAM_APDU [15:41:57]CAPDU: 80 0D 02 02 27 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DD C2 01 00 35 04 06 00 C4 97 67 F2 63 89 [15:41:57]Write to MH i2c: E2 2F 00 C0 16 80 0D 02 02 27 00 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DD C2 01 00 35 04 06 00 C4 97 67 F2 63 89 00 00 A6 [15:41:57]Write i2c OK [15:41:57]MH_I2C_Read... [15:41:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:57]Read from MH i2c: E2 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: E2 03 00 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: E2 03 00 C0 16 00 90 00 4A [15:41:57]RAPDU: 90 00 [15:41:57]wFMCommunicate OK [15:41:57]wFMCommunicate request_size=4 [15:41:57]MH_SAM_APDU [15:41:57]CAPDU: 80 0D 03 02 [15:41:57]Write to MH i2c: E2 08 00 C1 16 80 0D 03 02 00 00 00 00 52 [15:41:57]Write i2c OK [15:41:57]MH_I2C_Read... [15:41:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:57]Read from MH i2c: E2 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: E2 0B 00 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: E2 0B 00 C1 16 00 4B C0 34 4A EF BA 7B 30 90 00 30 [15:41:57]RAPDU: 4B C0 34 4A EF BA 7B 30 90 00 [15:41:57]wFMCommunicate OK [15:41:57]SAM_PROTO_SignData done [15:41:57]FM_MakeSignedData done [15:41:57]CreateOFDProtocolMessage [15:41:57]wFMCommunicate request_size=4 [15:41:57]MH_SAM_APDU [15:41:57]CAPDU: 80 11 00 00 [15:41:57]Write to MH i2c: E2 08 00 C2 16 80 11 00 00 00 00 00 00 52 [15:41:57]Write i2c OK [15:41:57]MH_I2C_Read... [15:41:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:57]Read from MH i2c: E2 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: E2 17 00 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: E2 17 00 C2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A0 [15:41:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:41:57]wFMCommunicate OK [15:41:57]CreateOFDProtocolMessage done [15:41:57]OFDSenderStorePacket 115421 [15:41:57]StoreOFDPacket docnum=115421 [15:41:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 31 01 00 00 15 60 29 01 35 CF 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 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 C6 3A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DD C2 01 00 35 04 06 00 C4 97 67 F2 63 89 4B C0 34 4A EF BA 7B 30 [15:41:57]CheckFolder [15:41:57]dirname=/storage/ofd_packets [15:41:57]CheckFolder done [15:41:57]ProducePacketName [15:41:57]name=ofd_packets/00115421 [15:41:57]NVStorageSaveData ofd_packets/00115421 [15:41:57]File name is /storage/ofd_packets/00115421 [15:41:57]Write 335 bytes [15:41:57]NVStorageSaveData done [15:41:57]OFDSenderStorePacket done [15:41:57]KKMCreateOFDPacket done [15:41:57]NVStorageSaveData kkm_last_timestamp [15:41:57]File name is /storage/kkm_last_timestamp [15:41:57]Write 4 bytes [15:41:57]NVStorageSaveData done [15:41:57]ExternCall_PrintAddStr [15:41:57]wPrintStart [15:41:57]Write to MH i2c: 01 00 00 C3 16 D9 [15:41:57]Write i2c OK [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: 01 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: 01 07 00 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: 01 07 00 C3 16 00 00 00 00 00 FF 0F EE [15:41:57]RasterBufferAndPrint [15:41:57]line Счет N : (3)343864 [15:41:57]line ИНН: 02508201610067 [15:41:57]line Контрольно-Кассовый Чек [15:41:57]line ПРОДАЖА [15:41:57]line Товар: 48746717 [15:41:57]line Сигареты Winston XStyle Caster + Dream M [15:41:57]line 1.000 * 147.00 [15:41:57]line = 147.00 [15:41:57]line НДС 12% НСП 1% [15:41:57]line > о реализуемом товаре [15:41:57]line ИТОГО: 147.00 [15:41:57]line НСП 1% : 1.30 [15:41:57]line НДС 12% : 15.61 [15:41:57]line Наличными: 147.00 [15:41:57]line Безнал.: 0.00 [15:41:57]line Место: АЗС № 90 "Партнер Нефть" [15:41:57]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:41:57]line СНО: Общий режим [15:41:57]line Чек 139 22.09.2024 15:41 [15:41:57]line Смена: 471 ФФД: 1.0 [15:41:57]line ЗНМ: 0300000120 [15:41:57]line РНМ: 0000000000091831 [15:41:57]line Версия ККМ: 001 [15:41:57]line ФМ: 0000000000871830 [15:41:57]line ФД: 115421 [15:41:57]line ФПД: 216154563044233 [15:41:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T154158&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115421&fm=216154563044233&tin=02508201610067®Number=0000000000091831&sum=14700 [15:41:57]line 0 [15:41:57]written 0, free lines is 4095 [15:41:57]OFD Sender: Processing packet 115421 [packets to send 481, broken 480] [15:41:57]ProducePacketName [15:41:57]name=ofd_packets/00115421 [15:41:57]OFD Sender: To server: pG, [15:41:57]CommunicateWithHost lk.salyk.kg:30040 [15:41:58]ConnectInit lk.salyk.kg [15:41:58]Write to MH i2c: 01 00 00 EB 16 01 [15:41:58]Write i2c OK [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: 01 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: 01 07 00 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: 01 07 00 EB 16 00 00 00 00 00 6F 0C 83 [15:41:58]RasterBufferAndPrint [15:41:58]line [15:41:58]line [15:41:58]line [15:41:58]line [15:41:58]line [15:41:58]written 0, free lines is 3189 [15:41:58]MH_Cut [15:41:58]Write to MH i2c: D1 01 00 F2 16 01 DA [15:41:58]Write i2c OK [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: D1 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: D1 01 00 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: D1 01 00 F2 16 00 D9 [15:41:58]Write to MH i2c: 01 00 00 F3 16 09 [15:41:58]Write i2c OK [15:41:58]MH_I2C_Read... [15:41:58]Connected sock=10 [15:41:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 31 01 00 00 15 60 29 01 35 CF 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 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 C6 3A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DD C2 01 00 35 04 06 00 C4 97 67 F2 63 89 4B C0 34 4A EF BA 7B 30 [15:41:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 01 5E 47 00 D0 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DD C2 01 00 F4 03 04 00 0B E0 EF 66 B6 04 01 00 00 50 08 AD 35 BD C6 29 5D [15:41:58]CommunicateWithHost err = 0 [15:41:58]CheckOFDResponse [15:41:58]1017 (14) - 77093643461234 [15:41:58]1041 (16) - 0000000000871830 [15:41:58]1040 (4) - 115421 [15:41:58]1012 (4) - 22.09.2024 09:14 [15:41:58]1206 (1) - 0 [15:41:58]OFD Sender: Remove packet 115421 [15:41:58]ProducePacketName [15:41:58]name=ofd_packets/00115421 [15:41:58]NVStorageDeleteData [15:41:59]OFD Sender: No OFD packet to send [15:41:59]*** Cut start [15:41:59]*** Partial cut [15:41:59]*** CUTSNS_PIN = 1 [15:41:59]*** CUTSNS_PIN = 0 [15:41:59]*** Brake cut motor [15:42:00]Read from MH i2c: 01 [15:42:00]MH_I2C_Read... [15:42:00]*** Stop cut motor [15:42:00]*** Cut end [15:42:00]Read from MH i2c: 01 07 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: 01 07 00 F3 16 00 00 00 00 00 FF 0F 1E [15:42:00]process_action close_receipt done [15:42:00]requested_data is exist [15:42:00]produce_requested_data [15:42:00]requested_item fm.sn is exist - process it [15:42:00]wFMCommunicate request_size=4 [15:42:00]MH_SAM_APDU [15:42:00]CAPDU: 80 11 00 00 [15:42:00]Write to MH i2c: E2 08 00 F4 16 80 11 00 00 00 00 00 00 84 [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:00]Read from MH i2c: E2 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 17 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 17 00 F4 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [15:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:42:00]wFMCommunicate OK [15:42:00]requested_item fd.num is exist - process it [15:42:00]SAM_PROTO_GetFieldsCounters [15:42:00]wFMCommunicate request_size=4 [15:42:00]MH_SAM_APDU [15:42:00]CAPDU: 80 13 00 00 [15:42:00]Write to MH i2c: E2 08 00 F5 16 80 13 00 00 00 00 00 00 87 [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:00]Read from MH i2c: E2 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 62 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 62 00 F5 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DD C2 01 00 0E 04 04 00 D7 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 B9 [15:42:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DD C2 01 00 0E 04 04 00 D7 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 [15:42:00]wFMCommunicate OK [15:42:00]SAM_PROTO_GetFieldsCounters done [15:42:00]requested_item shift.num is exist - process it [15:42:00]requested_item shift.opened is exist - process it [15:42:00]req_shift_opened [15:42:00]FM_GetShiftState [15:42:00]SAM_PROTO_GetShiftState [15:42:00]wFMCommunicate request_size=4 [15:42:00]MH_SAM_APDU [15:42:00]CAPDU: 80 13 01 00 [15:42:00]Write to MH i2c: E2 08 00 F6 16 80 13 01 00 00 00 00 00 89 [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:00]Read from MH i2c: E2 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 0E 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 0E 00 F6 16 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A2 [15:42:00]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:42:00]wFMCommunicate OK [15:42:00]SAM_PROTO_GetShiftState done [15:42:00]FM_GetShiftState done [15:42:00]req_shift_opened done [15:42:00]requested_item shift.open_date is exist - process it [15:42:00]req_shift_open_date [15:42:00]req_shift_open_date done [15:42:00]produce_requested_data done [15:42:00]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115421,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [15:42:00]process_action_free close_receipt [15:42:00]json_value_free [15:42:00]json_value_free done [15:42:00]process_json_proto returns [15:42:00]Send response to host [15:42:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115421,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [15:42:00]free response buf [15:42:00]execute_script done [15:42:00]execute_script returns [15:42:00]free content buf [15:42:00]Sock 8.Close socket [15:42:00]Sock 8.Thread stoped [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:55]accept exits with 9 [15:43:55]New connection [15:43:55]New thread 3066682724 created [15:43:55]Thread 3066826084 joined [15:43:55]Waiting for new connection... [15:43:55] Sock 9.Parse request [15:43:55]Sock 9.Check first char [15:43:55]Sock 9.First char is OK [15:43:55]request: POST /json_proto HTTP/1.0 [15:43:55]Method: POST [15:43:55]URL: /json_proto [15:43:55]Method is POST - this is cgi request [15:43:55]url: /json_proto [15:43:55]query_string will be loaded in cgi processing [15:43:55]execute_cgi json_proto POST (null) [15:43:55]execute_cgi path=json_proto method=POST [15:43:55]POST find Content-Length [15:43:55]Host: 172.17.41.136:8080 [15:43:55]Content-Length: 802 [15:43:55]Content-Type: application/json [15:43:55] [15:43:55]POST finish read [15:43:55]Found Content-Length = 802 [15:43:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:55]execute_script... [15:43: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)24616907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:55]POST & json_proto [15:43:55]process_json_proto [15:43:55]json parsed OK: [15:43:55]protocol is kg_v1.0 [15:43:55]action value=close_receipt [15:43:55]process_action close_receipt [15:43:55]cmd_close_receipt [15:43:55]MH_GetDate [15:43:55]Write to MH i2c: F0 00 00 F7 16 FC [15:43:55]Write i2c OK [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: F0 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: F0 09 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: F0 09 00 F7 16 00 3D 3B F0 66 1B D0 5A 64 7C [15:43:55]GetLastDocTimeStamp 1727019718 [15:43:55]current date 1727019837 [15:43:55]FM_GetShiftState [15:43:55]SAM_PROTO_GetShiftState [15:43:55]wFMCommunicate request_size=4 [15:43:55]MH_SAM_APDU [15:43:55]CAPDU: 80 13 01 00 [15:43:55]Write to MH i2c: E2 08 00 F8 16 80 13 01 00 00 00 00 00 8B [15:43:55]Write i2c OK [15:43:55]MH_I2C_Read... [15:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:55]Read from MH i2c: E2 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 0E 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 0E 00 F8 16 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A4 [15:43:55]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:43:55]wFMCommunicate OK [15:43:55]SAM_PROTO_GetShiftState done [15:43:55]FM_GetShiftState done [15:43:55]opened in 1726965840 [15:43:55]opened+sec_in_day 1727052240 [15:43:55]quantity*price = 300075 [15:43:55]sum+1 = 300077 [15:43:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 140 22.09.2024 15:43 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115422 ФПД: 153887631241404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T154357&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115422&fm=153887631241404&tin=02508201610067®Number=0000000000091831&sum=300076 [15:43:57]StoreToDocumentArchive [15:43:57]shift 471 fd 115422 [15:43:57]save to /storage/0471/doc_00115422 [15:43:57]save last doc name /storage/0471/doc_00115422 to /storage/kkm_last_doc_name [15:43:57]save OK [15:43:57]Clear old archive folders... [15:43:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:43:57]tlvbuf is 01C50A20 [15:43:57]SAM_PROTO_ClearQueue [15:43:57]wFMCommunicate request_size=4 [15:43:57]MH_SAM_APDU [15:43:57]CAPDU: 80 09 00 00 [15:43:57]Write to MH i2c: E2 08 00 05 17 80 09 00 00 00 00 00 00 8E [15:43:57]Write i2c OK [15:43:57]MH_I2C_Read... [15:43:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:57]Read from MH i2c: E2 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: E2 03 00 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: E2 03 00 05 17 00 90 00 90 [15:43:57]RAPDU: 90 00 [15:43:57]wFMCommunicate OK [15:43:57]SAM_PROTO_ClearQueue done [15:43:57]KKMCreateOFDPacket [15:43:57]OFDProtocolAddRootSTLVToBuf [15:43:57]FM_MakeSignedData [15:43:57]FM_MakeSignedData [15:43:57]SAM_PROTO_SignData [15:43:57]wFMCommunicate request_size=4 [15:43:57]MH_SAM_APDU [15:43:57]CAPDU: 80 0D 01 02 [15:43:57]Write to MH i2c: E2 08 00 06 17 80 0D 01 02 00 00 00 00 96 [15:43:57]Write i2c OK [15:43:57]MH_I2C_Read... [15:43:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:57]Read from MH i2c: E2 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: E2 03 00 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: E2 03 00 06 17 00 90 00 91 [15:43:57]RAPDU: 90 00 [15:43:57]wFMCommunicate OK [15:43:57]wFMCommunicate request_size=255 [15:43:57]MH_SAM_APDU [15:43:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 3D 3B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DE C2 01 00 35 04 06 00 8B F5 C1 98 [15:43:57]Write to MH i2c: E2 02 01 07 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 3D 3B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DE C2 01 00 35 04 06 00 8B F5 C1 98 00 00 90 [15:43:57]Write i2c OK [15:43:57]MH_I2C_Read... [15:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:57]Read from MH i2c: E2 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: E2 03 00 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: E2 03 00 07 17 00 90 00 92 [15:43:57]RAPDU: 90 00 [15:43:57]wFMCommunicate OK [15:43:57]wFMCommunicate request_size=7 [15:43:57]MH_SAM_APDU [15:43:57]CAPDU: 80 0D 02 02 02 70 BC [15:43:57]Write to MH i2c: E2 0A 00 08 17 80 0D 02 02 02 00 70 BC 00 00 C9 [15:43:57]Write i2c OK [15:43:57]MH_I2C_Read... [15:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:57]Read from MH i2c: E2 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: E2 03 00 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: E2 03 00 08 17 00 90 00 93 [15:43:57]RAPDU: 90 00 [15:43:57]wFMCommunicate OK [15:43:57]wFMCommunicate request_size=4 [15:43:57]MH_SAM_APDU [15:43:57]CAPDU: 80 0D 03 02 [15:43:57]Write to MH i2c: E2 08 00 09 17 80 0D 03 02 00 00 00 00 9B [15:43:57]Write i2c OK [15:43:57]MH_I2C_Read... [15:43:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:57]Read from MH i2c: E2 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: E2 0B 00 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: E2 0B 00 09 17 00 6F 7F 52 3B 1F EA DA F8 90 00 F2 [15:43:57]RAPDU: 6F 7F 52 3B 1F EA DA F8 90 00 [15:43:57]wFMCommunicate OK [15:43:57]SAM_PROTO_SignData done [15:43:57]FM_MakeSignedData done [15:43:57]CreateOFDProtocolMessage [15:43:57]wFMCommunicate request_size=4 [15:43:57]MH_SAM_APDU [15:43:57]CAPDU: 80 11 00 00 [15:43:57]Write to MH i2c: E2 08 00 0A 17 80 11 00 00 00 00 00 00 9B [15:43:57]Write i2c OK [15:43:57]MH_I2C_Read... [15:43:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:57]Read from MH i2c: E2 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: E2 17 00 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: E2 17 00 0A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E9 [15:43:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:43:57]wFMCommunicate OK [15:43:57]CreateOFDProtocolMessage done [15:43:57]OFDSenderStorePacket 115422 [15:43:57]StoreOFDPacket docnum=115422 [15:43:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 49 80 04 01 D8 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 3D 3B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DE C2 01 00 35 04 06 00 8B F5 C1 98 70 BC 6F 7F 52 3B 1F EA DA F8 [15:43:57]CheckFolder [15:43:57]dirname=/storage/ofd_packets [15:43:57]CheckFolder done [15:43:57]ProducePacketName [15:43:57]name=ofd_packets/00115422 [15:43:57]NVStorageSaveData ofd_packets/00115422 [15:43:57]File name is /storage/ofd_packets/00115422 [15:43:57]Write 298 bytes [15:43:57]NVStorageSaveData done [15:43:57]OFDSenderStorePacket done [15:43:57]KKMCreateOFDPacket done [15:43:57]NVStorageSaveData kkm_last_timestamp [15:43:57]File name is /storage/kkm_last_timestamp [15:43:57]Write 4 bytes [15:43:57]NVStorageSaveData done [15:43:57]ExternCall_PrintAddStr [15:43:57]wPrintStart [15:43:57]Write to MH i2c: 01 00 00 0B 17 22 [15:43:57]Write i2c OK [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: 01 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: 01 07 00 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: 01 07 00 0B 17 00 00 00 00 00 FF 0F 37 [15:43:57]RasterBufferAndPrint [15:43:57]line Счет N : (1)24616907 [15:43:57]line ИНН: 02508201610067 [15:43:57]line Контрольно-Кассовый Чек [15:43:57]line ПРОДАЖА [15:43:57]line ТРК (МРК, ГНК) : 11 [15:43:57]line Товар: 2710194210 [15:43:57]line ДТ-К-5 [15:43:57]line 39.380 * 76.20 [15:43:57]line = 3000.76 [15:43:57]line НДС 12% НСП 1% [15:43:57]line > о реализуемом товаре [15:43:57]line ИТОГО: 3000.76 [15:43:57]line НСП 1% : 26.55 [15:43:57]line НДС 12% : 318.66 [15:43:57]line Наличными: 0.00 [15:43:57]line Безнал.: 3000.76 [15:43:57]line Место: АЗС № 90 "Партнер Нефть" [15:43:57]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:43:57]line СНО: Общий режим [15:43:57]line Чек 140 22.09.2024 15:43 [15:43:57]line Смена: 471 ФФД: 1.0 [15:43:57]line ЗНМ: 0300000120 [15:43:57]line РНМ: 0000000000091831 [15:43:57]line Версия ККМ: 001 [15:43:57]line Платежная система: O! деньги [15:43:57]line ФМ: 0000000000871830 [15:43:57]line ФД: 115422 [15:43:57]line ФПД: 153887631241404 [15:43:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T154357&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115422&fm=153887631241404&tin=02508201610067®Number=0000000000091831&sum=300076 [15:43:57]written 0, free lines is 4095 [15:43:57]OFD Sender: Processing packet 115422 [packets to send 481, broken 480] [15:43:57]ProducePacketName [15:43:57]name=ofd_packets/00115422 [15:43:57]OFD Sender: To server: pG, [15:43:57]CommunicateWithHost lk.salyk.kg:30040 [15:43:57]ConnectInit lk.salyk.kg [15:43:57]Connected sock=10 [15:43:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 49 80 04 01 D8 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 3D 3B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DE C2 01 00 35 04 06 00 8B F5 C1 98 70 BC 6F 7F 52 3B 1F EA DA F8 [15:43:58]Write to MH i2c: 01 00 00 34 17 4B [15:43:58]Write i2c OK [15:43:58]MH_I2C_Read... [15:43:58]Read from MH i2c: 01 [15:43:58]MH_I2C_Read... [15:43:58]Read from MH i2c: 01 07 00 [15:43:58]MH_I2C_Read... [15:43:58]Read from MH i2c: 01 07 00 34 17 00 00 00 00 00 80 0C DE [15:43:58]RasterBufferAndPrint [15:43:58]line [15:43:58]line [15:43:58]line [15:43:58]line [15:43:58]line [15:43:58]written 0, free lines is 3205 [15:43:58]MH_Cut [15:43:58]Write to MH i2c: D1 01 00 3B 17 01 24 [15:43:58]Write i2c OK [15:43:58]MH_I2C_Read... [15:43:58]Read from MH i2c: D1 [15:43:58]MH_I2C_Read... [15:43:58]Read from MH i2c: D1 01 00 [15:43:58]MH_I2C_Read... [15:43:58]Read from MH i2c: D1 01 00 3B 17 00 23 [15:43:58]Write to MH i2c: 01 00 00 3C 17 53 [15:43:58]Write i2c OK [15:43:58]MH_I2C_Read... [15:43:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 4F 68 47 00 73 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DE C2 01 00 F4 03 04 00 83 E0 EF 66 B6 04 01 00 00 55 F5 1E 7A 24 FB 4E 87 [15:43:58]CommunicateWithHost err = 0 [15:43:58]CheckOFDResponse [15:43:58]1017 (14) - 77093643461234 [15:43:58]1041 (16) - 0000000000871830 [15:43:58]1040 (4) - 115422 [15:43:58]1012 (4) - 22.09.2024 09:16 [15:43:58]1206 (1) - 0 [15:43:58]OFD Sender: Remove packet 115422 [15:43:58]ProducePacketName [15:43:58]name=ofd_packets/00115422 [15:43:58]NVStorageDeleteData [15:43:58]OFD Sender: No OFD packet to send [15:43:59]*** Cut start [15:43:59]*** Partial cut [15:43:59]*** CUTSNS_PIN = 1 [15:43:59]*** CUTSNS_PIN = 0 [15:43:59]*** Brake cut motor [15:43:59]Read from MH i2c: 01 [15:43:59]MH_I2C_Read... [15:43:59]*** Stop cut motor [15:43:59]*** Cut end [15:43:59]Read from MH i2c: 01 07 00 [15:43:59]MH_I2C_Read... [15:43:59]Read from MH i2c: 01 07 00 3C 17 00 00 00 00 00 FF 0F 68 [15:43:59]process_action close_receipt done [15:43:59]requested_data is exist [15:43:59]produce_requested_data [15:43:59]requested_item fm.sn is exist - process it [15:43:59]wFMCommunicate request_size=4 [15:43:59]MH_SAM_APDU [15:43:59]CAPDU: 80 11 00 00 [15:43:59]Write to MH i2c: E2 08 00 3D 17 80 11 00 00 00 00 00 00 CE [15:43:59]Write i2c OK [15:43:59]MH_I2C_Read... [15:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:59]Read from MH i2c: E2 [15:43:59]MH_I2C_Read... [15:43:59]Read from MH i2c: E2 17 00 [15:43:59]MH_I2C_Read... [15:43:59]Read from MH i2c: E2 17 00 3D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1C [15:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:43:59]wFMCommunicate OK [15:43:59]requested_item fd.num is exist - process it [15:43:59]SAM_PROTO_GetFieldsCounters [15:43:59]wFMCommunicate request_size=4 [15:43:59]MH_SAM_APDU [15:43:59]CAPDU: 80 13 00 00 [15:43:59]Write to MH i2c: E2 08 00 3E 17 80 13 00 00 00 00 00 00 D1 [15:43:59]Write i2c OK [15:43:59]MH_I2C_Read... [15:44:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:00]Read from MH i2c: E2 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 62 00 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 62 00 3E 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DE C2 01 00 0E 04 04 00 D7 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 07 [15:44:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DE C2 01 00 0E 04 04 00 D7 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 [15:44:00]wFMCommunicate OK [15:44:00]SAM_PROTO_GetFieldsCounters done [15:44:00]requested_item shift.num is exist - process it [15:44:00]requested_item shift.opened is exist - process it [15:44:00]req_shift_opened [15:44:00]FM_GetShiftState [15:44:00]SAM_PROTO_GetShiftState [15:44:00]wFMCommunicate request_size=4 [15:44:00]MH_SAM_APDU [15:44:00]CAPDU: 80 13 01 00 [15:44:00]Write to MH i2c: E2 08 00 3F 17 80 13 01 00 00 00 00 00 D3 [15:44:00]Write i2c OK [15:44:00]MH_I2C_Read... [15:44:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:00]Read from MH i2c: E2 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 0E 00 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 0E 00 3F 17 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 EC [15:44:00]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:44:00]wFMCommunicate OK [15:44:00]SAM_PROTO_GetShiftState done [15:44:00]FM_GetShiftState done [15:44:00]req_shift_opened done [15:44:00]requested_item shift.open_date is exist - process it [15:44:00]req_shift_open_date [15:44:00]req_shift_open_date done [15:44:00]produce_requested_data done [15:44:00]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115422,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [15:44:00]process_action_free close_receipt [15:44:00]json_value_free [15:44:00]json_value_free done [15:44:00]process_json_proto returns [15:44:00]Send response to host [15:44:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115422,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [15:44:00]free response buf [15:44:00]execute_script done [15:44:00]execute_script returns [15:44:00]free content buf [15:44:00]Sock 9.Close socket [15:44:00]Sock 9.Thread stoped [15:44:03]OFD Sender: No OFD packet to send [15:44:08]OFD Sender: No OFD packet to send [15:44:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:48]OFD Sender: No OFD packet to send [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:34]OFD Sender: No OFD packet to send [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:54]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:14]OFD Sender: No OFD packet to send [15:46:19]OFD Sender: No OFD packet to send [15:46:24]OFD Sender: No OFD packet to send [15:46:29]OFD Sender: No OFD packet to send [15:46:34]OFD Sender: No OFD packet to send [15:46:39]OFD Sender: No OFD packet to send [15:46:44]OFD Sender: No OFD packet to send [15:46:49]OFD Sender: No OFD packet to send [15:46:54]OFD Sender: No OFD packet to send [15:46:59]OFD Sender: No OFD packet to send [15:47:04]OFD Sender: No OFD packet to send [15:47:09]OFD Sender: No OFD packet to send [15:47:11]accept exits with 8 [15:47:11]New connection [15:47:11]New thread 3066826084 created [15:47:11]Thread 3066682724 joined [15:47:11]Waiting for new connection... [15:47:11] Sock 8.Parse request [15:47:11]Sock 8.Check first char [15:47:11]Sock 8.First char is OK [15:47:11]request: POST /json_proto HTTP/1.0 [15:47:11]Method: POST [15:47:11]URL: /json_proto [15:47:11]Method is POST - this is cgi request [15:47:11]url: /json_proto [15:47:11]query_string will be loaded in cgi processing [15:47:11]execute_cgi json_proto POST (null) [15:47:11]execute_cgi path=json_proto method=POST [15:47:11]POST find Content-Length [15:47:11]Host: 172.17.41.136:8080 [15:47:11]Content-Length: 679 [15:47:11]Content-Type: application/json [15:47:11] [15:47:11]POST finish read [15:47:11]Found Content-Length = 679 [15:47:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:11]execute_script... [15: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)24616911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:11]POST & json_proto [15:47:11]process_json_proto [15:47:11]json parsed OK: [15:47:11]protocol is kg_v1.0 [15:47:11]action value=close_receipt [15:47:11]process_action close_receipt [15:47:11]cmd_close_receipt [15:47:11]MH_GetDate [15:47:11]Write to MH i2c: F0 00 00 40 17 46 [15:47:11]Write i2c OK [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: F0 [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: F0 09 00 [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: F0 09 00 40 17 00 01 3C F0 66 1B D0 5A 64 8B [15:47:11]GetLastDocTimeStamp 1727019837 [15:47:11]current date 1727020033 [15:47:11]FM_GetShiftState [15:47:11]SAM_PROTO_GetShiftState [15:47:11]wFMCommunicate request_size=4 [15:47:11]MH_SAM_APDU [15:47:11]CAPDU: 80 13 01 00 [15:47:11]Write to MH i2c: E2 08 00 41 17 80 13 01 00 00 00 00 00 D5 [15:47:11]Write i2c OK [15:47:11]MH_I2C_Read... [15:47:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:11]Read from MH i2c: E2 [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: E2 0E 00 [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: E2 0E 00 41 17 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 EE [15:47:11]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:47:11]wFMCommunicate OK [15:47:11]SAM_PROTO_GetShiftState done [15:47:11]FM_GetShiftState done [15:47:11]opened in 1726965840 [15:47:11]opened+sec_in_day 1727052240 [15:47:11]quantity*price = 60027 [15:47:11]sum+1 = 60029 [15:47:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 141 22.09.2024 15:47 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115423 ФПД: 253382000650003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T154713&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115423&fm=253382000650003&tin=02508201610067®Number=0000000000091831&sum=60000 [15:47:12]StoreToDocumentArchive [15:47:12]shift 471 fd 115423 [15:47:12]save to /storage/0471/doc_00115423 [15:47:12]save last doc name /storage/0471/doc_00115423 to /storage/kkm_last_doc_name [15:47:12]save OK [15:47:12]Clear old archive folders... [15:47:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:12]tlvbuf is 01C30540 [15:47:12]SAM_PROTO_ClearQueue [15:47:12]wFMCommunicate request_size=4 [15:47:12]MH_SAM_APDU [15:47:12]CAPDU: 80 09 00 00 [15:47:12]Write to MH i2c: E2 08 00 4E 17 80 09 00 00 00 00 00 00 D7 [15:47:12]Write i2c OK [15:47:12]MH_I2C_Read... [15:47:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:12]Read from MH i2c: E2 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 03 00 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 03 00 4E 17 00 90 00 D9 [15:47:12]RAPDU: 90 00 [15:47:12]wFMCommunicate OK [15:47:12]SAM_PROTO_ClearQueue done [15:47:12]KKMCreateOFDPacket [15:47:12]OFDProtocolAddRootSTLVToBuf [15:47:12]FM_MakeSignedData [15:47:12]FM_MakeSignedData [15:47:12]SAM_PROTO_SignData [15:47:12]wFMCommunicate request_size=4 [15:47:12]MH_SAM_APDU [15:47:12]CAPDU: 80 0D 01 02 [15:47:12]Write to MH i2c: E2 08 00 4F 17 80 0D 01 02 00 00 00 00 DF [15:47:12]Write i2c OK [15:47:12]MH_I2C_Read... [15:47:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:12]Read from MH i2c: E2 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 03 00 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 03 00 4F 17 00 90 00 DA [15:47:12]RAPDU: 90 00 [15:47:12]wFMCommunicate OK [15:47:12]wFMCommunicate request_size=255 [15:47:12]MH_SAM_APDU [15:47:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 8D 00 00 00 F4 03 04 00 01 3C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DF C2 01 00 35 04 06 00 E6 [15:47:12]Write to MH i2c: E2 02 01 50 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 8D 00 00 00 F4 03 04 00 01 3C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DF C2 01 00 35 04 06 00 E6 00 00 44 [15:47:12]Write i2c OK [15:47:12]MH_I2C_Read... [15:47:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:13]Read from MH i2c: E2 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: E2 03 00 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: E2 03 00 50 17 00 90 00 DB [15:47:13]RAPDU: 90 00 [15:47:13]wFMCommunicate OK [15:47:13]wFMCommunicate request_size=10 [15:47:13]MH_SAM_APDU [15:47:13]CAPDU: 80 0D 02 02 05 73 18 24 27 13 [15:47:13]Write to MH i2c: E2 0D 00 51 17 80 0D 02 02 05 00 73 18 24 27 13 00 00 D5 [15:47:13]Write i2c OK [15:47:13]MH_I2C_Read... [15:47:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:13]Read from MH i2c: E2 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: E2 03 00 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: E2 03 00 51 17 00 90 00 DC [15:47:13]RAPDU: 90 00 [15:47:13]wFMCommunicate OK [15:47:13]wFMCommunicate request_size=4 [15:47:13]MH_SAM_APDU [15:47:13]CAPDU: 80 0D 03 02 [15:47:13]Write to MH i2c: E2 08 00 52 17 80 0D 03 02 00 00 00 00 E4 [15:47:13]Write i2c OK [15:47:13]MH_I2C_Read... [15:47:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:13]Read from MH i2c: E2 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: E2 0B 00 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: E2 0B 00 52 17 00 D9 1D 0E 35 D5 DA 64 46 90 00 77 [15:47:13]RAPDU: D9 1D 0E 35 D5 DA 64 46 90 00 [15:47:13]wFMCommunicate OK [15:47:13]SAM_PROTO_SignData done [15:47:13]FM_MakeSignedData done [15:47:13]CreateOFDProtocolMessage [15:47:13]wFMCommunicate request_size=4 [15:47:13]MH_SAM_APDU [15:47:13]CAPDU: 80 11 00 00 [15:47:13]Write to MH i2c: E2 08 00 53 17 80 11 00 00 00 00 00 00 E4 [15:47:13]Write i2c OK [15:47:13]MH_I2C_Read... [15:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:13]Read from MH i2c: E2 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: E2 17 00 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: E2 17 00 53 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 32 [15:47:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:47:13]wFMCommunicate OK [15:47:13]CreateOFDProtocolMessage done [15:47:13]OFDSenderStorePacket 115423 [15:47:13]StoreOFDPacket docnum=115423 [15:47:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 B9 5D 07 01 6F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 01 3C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DF C2 01 00 35 04 06 00 E6 73 18 24 27 13 D9 1D 0E 35 D5 DA 64 46 [15:47:13]CheckFolder [15:47:13]dirname=/storage/ofd_packets [15:47:13]CheckFolder done [15:47:13]ProducePacketName [15:47:13]name=ofd_packets/00115423 [15:47:13]NVStorageSaveData ofd_packets/00115423 [15:47:13]File name is /storage/ofd_packets/00115423 [15:47:13]Write 301 bytes [15:47:13]NVStorageSaveData done [15:47:13]OFDSenderStorePacket done [15:47:13]KKMCreateOFDPacket done [15:47:13]NVStorageSaveData kkm_last_timestamp [15:47:13]File name is /storage/kkm_last_timestamp [15:47:13]Write 4 bytes [15:47:13]NVStorageSaveData done [15:47:13]ExternCall_PrintAddStr [15:47:13]wPrintStart [15:47:13]Write to MH i2c: 01 00 00 54 17 6B [15:47:13]Write i2c OK [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: 01 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: 01 07 00 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: 01 07 00 54 17 00 00 00 00 00 FF 0F 80 [15:47:13]RasterBufferAndPrint [15:47:13]line Счет N : (1)24616911 [15:47:13]line ИНН: 02508201610067 [15:47:13]line Контрольно-Кассовый Чек [15:47:13]line ПРОДАЖА [15:47:13]line ТРК (МРК, ГНК) : 62 [15:47:13]line Товар: 2710124500 [15:47:13]line Аи-95-К-5 [15:47:13]line 8.090 * 74.20 [15:47:13]line = 600.28 [15:47:13]line НДС 12% НСП 1% [15:47:13]line > о реализуемом товаре [15:47:13]line ОКРУГЛЕНИЕ: -0.28 [15:47:13]line ИТОГО: 600.00 [15:47:13]line Внесено: 600.00 [15:47:13]line СДАЧА: 0.00 [15:47:13]line НСП 1% : 5.31 [15:47:13]line НДС 12% : 63.75 [15:47:13]line Наличными: 600.00 [15:47:13]line Безнал.: 0.00 [15:47:13]line Место: АЗС № 90 "Партнер Нефть" [15:47:13]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:47:13]line СНО: Общий режим [15:47:13]line Чек 141 22.09.2024 15:47 [15:47:13]line Смена: 471 ФФД: 1.0 [15:47:13]line ЗНМ: 0300000120 [15:47:13]line РНМ: 0000000000091831 [15:47:13]line Версия ККМ: 001 [15:47:13]line ФМ: 0000000000871830 [15:47:13]line ФД: 115423 [15:47:13]line ФПД: 253382000650003 [15:47:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T154713&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115423&fm=253382000650003&tin=02508201610067®Number=0000000000091831&sum=60000 [15:47:13]written 0, free lines is 4095 [15:47:13]OFD Sender: Processing packet 115423 [packets to send 481, broken 480] [15:47:13]ProducePacketName [15:47:13]name=ofd_packets/00115423 [15:47:13]OFD Sender: To server: pG, [15:47:13]CommunicateWithHost lk.salyk.kg:30040 [15:47:13]ConnectInit lk.salyk.kg [15:47:13]Connected sock=10 [15: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 31 38 33 30 0F 01 00 00 B9 5D 07 01 6F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 01 3C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DF C2 01 00 35 04 06 00 E6 73 18 24 27 13 D9 1D 0E 35 D5 DA 64 46 [15:47:13]Write to MH i2c: 01 00 00 7E 17 95 [15:47:13]Write i2c OK [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: 01 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: 01 07 00 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: 01 07 00 7E 17 00 00 00 00 00 65 0C 0D [15:47:13]RasterBufferAndPrint [15:47:13]line [15:47:13]line [15:47:13]line [15:47:13]line [15:47:13]line [15:47:13]written 0, free lines is 3178 [15:47:13]MH_Cut [15:47:13]Write to MH i2c: D1 01 00 85 17 01 6E [15:47:13]Write i2c OK [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: D1 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: D1 01 00 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: D1 01 00 85 17 00 6D [15:47:13]Write to MH i2c: 01 00 00 86 17 9D [15:47:13]Write i2c OK [15:47:13]MH_I2C_Read... [15:47:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1E A0 47 00 34 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 31 38 33 30 10 04 04 00 DF C2 01 00 F4 03 04 00 46 E1 EF 66 B6 04 01 00 00 A5 CF 82 E6 11 38 4C F0 [15:47:13]CommunicateWithHost err = 0 [15:47:13]CheckOFDResponse [15:47:13]1017 (14) - 77093643461234 [15:47:13]1041 (16) - 0000000000871830 [15:47:13]1040 (4) - 115423 [15:47:13]1012 (4) - 22.09.2024 09:20 [15:47:13]1206 (1) - 0 [15:47:13]OFD Sender: Remove packet 115423 [15:47:13]ProducePacketName [15:47:13]name=ofd_packets/00115423 [15:47:13]NVStorageDeleteData [15:47:14]OFD Sender: No OFD packet to send [15:47:15]*** Cut start [15:47:15]*** Partial cut [15:47:15]*** CUTSNS_PIN = 1 [15:47:15]*** CUTSNS_PIN = 0 [15:47:15]*** Brake cut motor [15:47:15]Read from MH i2c: 01 [15:47:15]MH_I2C_Read... [15:47:15]*** Stop cut motor [15:47:15]*** Cut end [15:47:15]Read from MH i2c: 01 07 00 [15:47:15]MH_I2C_Read... [15:47:15]Read from MH i2c: 01 07 00 86 17 00 00 00 00 00 FF 0F B2 [15:47:15]process_action close_receipt done [15:47:15]requested_data is exist [15:47:15]produce_requested_data [15:47:15]requested_item fm.sn is exist - process it [15:47:15]wFMCommunicate request_size=4 [15:47:15]MH_SAM_APDU [15:47:15]CAPDU: 80 11 00 00 [15:47:15]Write to MH i2c: E2 08 00 87 17 80 11 00 00 00 00 00 00 18 [15:47:15]Write i2c OK [15:47:15]MH_I2C_Read... [15:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:15]Read from MH i2c: E2 [15:47:15]MH_I2C_Read... [15:47:15]Read from MH i2c: E2 17 00 [15:47:15]MH_I2C_Read... [15:47:15]Read from MH i2c: E2 17 00 87 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 66 [15:47:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:47:15]wFMCommunicate OK [15:47:15]requested_item fd.num is exist - process it [15:47:15]SAM_PROTO_GetFieldsCounters [15:47:15]wFMCommunicate request_size=4 [15:47:15]MH_SAM_APDU [15:47:15]CAPDU: 80 13 00 00 [15:47:15]Write to MH i2c: E2 08 00 88 17 80 13 00 00 00 00 00 00 1B [15:47:15]Write i2c OK [15:47:15]MH_I2C_Read... [15:47:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:15]Read from MH i2c: E2 [15:47:15]MH_I2C_Read... [15:47:15]Read from MH i2c: E2 62 00 [15:47:15]MH_I2C_Read... [15:47:15]Read from MH i2c: E2 62 00 88 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DF C2 01 00 0E 04 04 00 D7 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 55 [15: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DF C2 01 00 0E 04 04 00 D7 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 [15:47:15]wFMCommunicate OK [15:47:15]SAM_PROTO_GetFieldsCounters done [15:47:15]requested_item shift.num is exist - process it [15:47:15]requested_item shift.opened is exist - process it [15:47:15]req_shift_opened [15:47:15]FM_GetShiftState [15:47:15]SAM_PROTO_GetShiftState [15:47:15]wFMCommunicate request_size=4 [15:47:15]MH_SAM_APDU [15:47:15]CAPDU: 80 13 01 00 [15:47:15]Write to MH i2c: E2 08 00 89 17 80 13 01 00 00 00 00 00 1D [15:47:15]Write i2c OK [15:47:15]MH_I2C_Read... [15:47:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:15]Read from MH i2c: E2 [15:47:15]MH_I2C_Read... [15:47:15]Read from MH i2c: E2 0E 00 [15:47:15]MH_I2C_Read... [15:47:15]Read from MH i2c: E2 0E 00 89 17 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 36 [15:47:15]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [15:47:15]wFMCommunicate OK [15:47:15]SAM_PROTO_GetShiftState done [15:47:15]FM_GetShiftState done [15:47:15]req_shift_opened done [15:47:15]requested_item shift.open_date is exist - process it [15:47:15]req_shift_open_date [15:47:15]req_shift_open_date done [15:47:15]produce_requested_data done [15:47:15]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115423,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [15:47:15]process_action_free close_receipt [15:47:15]json_value_free [15:47:15]json_value_free done [15:47:15]process_json_proto returns [15:47:15]Send response to host [15:47:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115423,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [15:47:15]free response buf [15:47:15]execute_script done [15:47:15]execute_script returns [15:47:15]free content buf [15:47:15]Sock 8.Close socket [15:47:15]Sock 8.Thread stoped [15:47:19]OFD Sender: No OFD packet to send [15:47:24]OFD Sender: No OFD packet to send [15:47:29]OFD Sender: No OFD packet to send [15:47:34]OFD Sender: No OFD packet to send [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:09]OFD Sender: No OFD packet to send [15:51:14]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58: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]accept exits with 9 [16:01:21]New connection [16:01:21]New thread 3066682724 created [16:01:21]Thread 3066826084 joined [16:01:21]Waiting for new connection... [16:01:21] Sock 9.Parse request [16:01:21]Sock 9.Check first char [16:01:21]Sock 9.First char is OK [16:01:21]request: POST /json_proto HTTP/1.0 [16:01:21]Method: POST [16:01:21]URL: /json_proto [16:01:21]Method is POST - this is cgi request [16:01:21]url: /json_proto [16:01:21]query_string will be loaded in cgi processing [16:01:21]execute_cgi json_proto POST (null) [16:01:21]execute_cgi path=json_proto method=POST [16:01:21]POST find Content-Length [16:01:21]Host: 172.17.41.136:8080 [16:01:21]Content-Length: 654 [16:01:21]Content-Type: application/json [16:01:21] [16:01:21]POST finish read [16:01:21]Found Content-Length = 654 [16:01:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343865", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:21]execute_script... [16:01:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343865", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:21]POST & json_proto [16:01:21]process_json_proto [16:01:21]json parsed OK: [16:01:21]protocol is kg_v1.0 [16:01:21]action value=close_receipt [16:01:21]process_action close_receipt [16:01:21]cmd_close_receipt [16:01:21]MH_GetDate [16:01:21]Write to MH i2c: F0 00 00 8A 17 90 [16:01:21]Write i2c OK [16:01:21]MH_I2C_Read... [16:01:21]Read from MH i2c: F0 [16:01:21]MH_I2C_Read... [16:01:21]Read from MH i2c: F0 09 00 [16:01:21]MH_I2C_Read... [16:01:21]Read from MH i2c: F0 09 00 8A 17 00 53 3F F0 66 1B D0 5A 64 2A [16:01:21]GetLastDocTimeStamp 1727020033 [16:01:21]current date 1727020883 [16:01:21]FM_GetShiftState [16:01:21]SAM_PROTO_GetShiftState [16:01:21]wFMCommunicate request_size=4 [16:01:21]MH_SAM_APDU [16:01:21]CAPDU: 80 13 01 00 [16:01:21]Write to MH i2c: E2 08 00 8B 17 80 13 01 00 00 00 00 00 1F [16:01:21]Write i2c OK [16:01:21]MH_I2C_Read... [16:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:21]Read from MH i2c: E2 [16:01:21]MH_I2C_Read... [16:01:21]Read from MH i2c: E2 0E 00 [16:01:21]MH_I2C_Read... [16:01:21]Read from MH i2c: E2 0E 00 8B 17 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 38 [16:01:21]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:01:21]wFMCommunicate OK [16:01:21]SAM_PROTO_GetShiftState done [16:01:21]FM_GetShiftState done [16:01:21]opened in 1726965840 [16:01:21]opened+sec_in_day 1727052240 [16:01:21]quantity*price = 7700 [16:01:21]sum+1 = 7701 [16:01:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 77.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 142 22.09.2024 16:01 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115424 ФПД: 236229012398555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T160123&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115424&fm=236229012398555&tin=02508201610067®Number=0000000000091831&sum=7700 0 [16:01:22]StoreToDocumentArchive [16:01:22]shift 471 fd 115424 [16:01:22]save to /storage/0471/doc_00115424 [16:01:22]save last doc name /storage/0471/doc_00115424 to /storage/kkm_last_doc_name [16:01:22]save OK [16:01:22]Clear old archive folders... [16:01:22]ProcessDocumentItem done err = 0, tmpTLVsize=293 [16:01:22]tlvbuf is 01C30400 [16:01:22]SAM_PROTO_ClearQueue [16:01:22]wFMCommunicate request_size=4 [16:01:22]MH_SAM_APDU [16:01:22]CAPDU: 80 09 00 00 [16:01:22]Write to MH i2c: E2 08 00 98 17 80 09 00 00 00 00 00 00 21 [16:01:22]Write i2c OK [16:01:22]MH_I2C_Read... [16:01:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:22]Read from MH i2c: E2 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 98 17 00 90 00 23 [16:01:22]RAPDU: 90 00 [16:01:22]wFMCommunicate OK [16:01:22]SAM_PROTO_ClearQueue done [16:01:22]KKMCreateOFDPacket [16:01:22]OFDProtocolAddRootSTLVToBuf [16:01:22]FM_MakeSignedData [16:01:22]FM_MakeSignedData [16:01:22]SAM_PROTO_SignData [16:01:22]wFMCommunicate request_size=4 [16:01:22]MH_SAM_APDU [16:01:22]CAPDU: 80 0D 01 02 [16:01:22]Write to MH i2c: E2 08 00 99 17 80 0D 01 02 00 00 00 00 29 [16:01:22]Write i2c OK [16:01:22]MH_I2C_Read... [16:01:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:22]Read from MH i2c: E2 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 99 17 00 90 00 24 [16:01:22]RAPDU: 90 00 [16:01:22]wFMCommunicate OK [16:01:22]wFMCommunicate request_size=255 [16:01:22]MH_SAM_APDU [16:01:22]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 53 3F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [16:01:22]Write to MH i2c: E2 02 01 9A 17 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 53 3F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 0C [16:01:22]Write i2c OK [16:01:22]MH_I2C_Read... [16:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:22]Read from MH i2c: E2 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 9A 17 00 90 00 25 [16:01:22]RAPDU: 90 00 [16:01:22]wFMCommunicate OK [16:01:22]wFMCommunicate request_size=52 [16:01:22]MH_SAM_APDU [16:01:22]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E0 C2 01 00 35 04 06 00 D6 D9 5A 5E A1 DB [16:01:22]Write to MH i2c: E2 37 00 9B 17 80 0D 02 02 2F 00 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E0 C2 01 00 35 04 06 00 D6 D9 5A 5E A1 DB 00 00 6D [16:01:22]Write i2c OK [16:01:22]MH_I2C_Read... [16:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:22]Read from MH i2c: E2 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 9B 17 00 90 00 26 [16:01:22]RAPDU: 90 00 [16:01:22]wFMCommunicate OK [16:01:22]wFMCommunicate request_size=4 [16:01:22]MH_SAM_APDU [16:01:22]CAPDU: 80 0D 03 02 [16:01:22]Write to MH i2c: E2 08 00 9C 17 80 0D 03 02 00 00 00 00 2E [16:01:22]Write i2c OK [16:01:22]MH_I2C_Read... [16:01:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:22]Read from MH i2c: E2 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 0B 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 0B 00 9C 17 00 9E 6E F8 88 4A BA BD 6B 90 00 E7 [16:01:22]RAPDU: 9E 6E F8 88 4A BA BD 6B 90 00 [16:01:22]wFMCommunicate OK [16:01:22]SAM_PROTO_SignData done [16:01:22]FM_MakeSignedData done [16:01:22]CreateOFDProtocolMessage [16:01:22]wFMCommunicate request_size=4 [16:01:22]MH_SAM_APDU [16:01:22]CAPDU: 80 11 00 00 [16:01:22]Write to MH i2c: E2 08 00 9D 17 80 11 00 00 00 00 00 00 2E [16:01:22]Write i2c OK [16:01:22]MH_I2C_Read... [16:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:22]Read from MH i2c: E2 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 17 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 17 00 9D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7C [16:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:01:22]wFMCommunicate OK [16:01:22]CreateOFDProtocolMessage done [16:01:22]OFDSenderStorePacket 115424 [16:01:22]StoreOFDPacket docnum=115424 [16:01:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 39 01 00 00 CE 43 31 01 87 9B 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 53 3F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E0 C2 01 00 35 04 06 00 D6 D9 5A 5E A1 DB 9E 6E F8 88 4A BA BD 6B [16:01:22]CheckFolder [16:01:22]dirname=/storage/ofd_packets [16:01:22]CheckFolder done [16:01:22]ProducePacketName [16:01:22]name=ofd_packets/00115424 [16:01:22]NVStorageSaveData ofd_packets/00115424 [16:01:22]File name is /storage/ofd_packets/00115424 [16:01:22]Write 343 bytes [16:01:22]NVStorageSaveData done [16:01:22]OFDSenderStorePacket done [16:01:22]KKMCreateOFDPacket done [16:01:22]NVStorageSaveData kkm_last_timestamp [16:01:22]File name is /storage/kkm_last_timestamp [16:01:22]Write 4 bytes [16:01:22]NVStorageSaveData done [16:01:22]OFD Sender: Processing packet 115424 [packets to send 481, broken 480] [16:01:22]ProducePacketName [16:01:22]name=ofd_packets/00115424 [16:01:22]OFD Sender: To server: pG, [16:01:22]CommunicateWithHost lk.salyk.kg:30040 [16:01:22]ConnectInit lk.salyk.kg [16:01:22]ExternCall_PrintAddStr [16:01:22]wPrintStart [16:01:22]Write to MH i2c: 01 00 00 9E 17 B5 [16:01:22]Write i2c OK [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: 01 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: 01 07 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: 01 07 00 9E 17 00 00 00 00 00 FF 0F CA [16:01:22]RasterBufferAndPrint [16:01:22]line Счет N : (3)343865 [16:01:22]line ИНН: 02508201610067 [16:01:22]line Контрольно-Кассовый Чек [16:01:22]line ПРОДАЖА [16:01:22]line Товар: 4700000480050 [16:01:22]line Напиток Nitro Energy эн green ж/б 0,45л [16:01:22]line 1.000 * 77.00 [16:01:22]line = 77.00 [16:01:22]line НДС 12% НСП 1% [16:01:22]line > о реализуемом товаре [16:01:22]line ИТОГО: 77.00 [16:01:22]line НСП 1% : 0.68 [16:01:22]line НДС 12% : 8.18 [16:01:22]line Наличными: 77.00 [16:01:22]line Безнал.: 0.00 [16:01:22]line Место: АЗС № 90 "Партнер Нефть" [16:01:22]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:01:22]line СНО: Общий режим [16:01:22]line Чек 142 22.09.2024 16:01 [16:01:22]line Смена: 471 ФФД: 1.0 [16:01:22]line ЗНМ: 0300000120 [16:01:22]line РНМ: 0000000000091831 [16:01:22]line Версия ККМ: 001 [16:01:22]line ФМ: 0000000000871830 [16:01:22]line ФД: 115424 [16:01:22]line ФПД: 236229012398555 [16:01:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T160123&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115424&fm=236229012398555&tin=02508201610067®Number=0000000000091831&sum=7700 [16:01:23]line 0 [16:01:23]Connected sock=8 [16:01:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 39 01 00 00 CE 43 31 01 87 9B 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 53 3F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E0 C2 01 00 35 04 06 00 D6 D9 5A 5E A1 DB 9E 6E F8 88 4A BA BD 6B [16:01:23]written 0, free lines is 4095 [16:01:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 CB 31 47 00 66 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 31 38 33 30 10 04 04 00 E0 C2 01 00 F4 03 04 00 98 E4 EF 66 B6 04 01 00 00 25 26 00 5A 8E 31 BE DC [16:01:23]CommunicateWithHost err = 0 [16:01:23]CheckOFDResponse [16:01:23]1017 (14) - 77093643461234 [16:01:23]1041 (16) - 0000000000871830 [16:01:23]1040 (4) - 115424 [16:01:23]1012 (4) - 22.09.2024 09:34 [16:01:23]1206 (1) - 0 [16:01:23]OFD Sender: Remove packet 115424 [16:01:23]ProducePacketName [16:01:23]name=ofd_packets/00115424 [16:01:23]NVStorageDeleteData [16:01:23]Write to MH i2c: 01 00 00 C6 17 DD [16:01:23]Write i2c OK [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: 01 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: 01 07 00 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: 01 07 00 C6 17 00 00 00 00 00 69 0C 59 [16:01:23]RasterBufferAndPrint [16:01:23]line [16:01:23]line [16:01:23]line [16:01:23]line [16:01:23]line [16:01:23]written 0, free lines is 3182 [16:01:23]MH_Cut [16:01:23]Write to MH i2c: D1 01 00 CD 17 01 B6 [16:01:23]Write i2c OK [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: D1 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: D1 01 00 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: D1 01 00 CD 17 00 B5 [16:01:23]Write to MH i2c: 01 00 00 CE 17 E5 [16:01:23]Write i2c OK [16:01:23]MH_I2C_Read... [16:01:23]OFD Sender: No OFD packet to send [16:01:24]*** Cut start [16:01:24]*** Partial cut [16:01:24]*** CUTSNS_PIN = 1 [16:01:24]*** CUTSNS_PIN = 0 [16:01:25]*** Brake cut motor [16:01:25]Read from MH i2c: 01 [16:01:25]MH_I2C_Read... [16:01:25]*** Stop cut motor [16:01:25]*** Cut end [16:01:25]Read from MH i2c: 01 07 00 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: 01 07 00 CE 17 00 00 00 00 00 FF 0F FA [16:01:25]process_action close_receipt done [16:01:25]requested_data is exist [16:01:25]produce_requested_data [16:01:25]requested_item fm.sn is exist - process it [16:01:25]wFMCommunicate request_size=4 [16:01:25]MH_SAM_APDU [16:01:25]CAPDU: 80 11 00 00 [16:01:25]Write to MH i2c: E2 08 00 CF 17 80 11 00 00 00 00 00 00 60 [16:01:25]Write i2c OK [16:01:25]MH_I2C_Read... [16:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:25]Read from MH i2c: E2 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 17 00 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 17 00 CF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AE [16:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:01:25]wFMCommunicate OK [16:01:25]requested_item fd.num is exist - process it [16:01:25]SAM_PROTO_GetFieldsCounters [16:01:25]wFMCommunicate request_size=4 [16:01:25]MH_SAM_APDU [16:01:25]CAPDU: 80 13 00 00 [16:01:25]Write to MH i2c: E2 08 00 D0 17 80 13 00 00 00 00 00 00 63 [16:01:25]Write i2c OK [16:01:25]MH_I2C_Read... [16:01:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:25]Read from MH i2c: E2 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 62 00 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 62 00 D0 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E0 C2 01 00 0E 04 04 00 D7 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 A1 [16:01:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E0 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:25]wFMCommunicate OK [16:01:25]SAM_PROTO_GetFieldsCounters done [16:01:25]requested_item shift.num is exist - process it [16:01:25]requested_item shift.opened is exist - process it [16:01:25]req_shift_opened [16:01:25]FM_GetShiftState [16:01:25]SAM_PROTO_GetShiftState [16:01:25]wFMCommunicate request_size=4 [16:01:25]MH_SAM_APDU [16:01:25]CAPDU: 80 13 01 00 [16:01:25]Write to MH i2c: E2 08 00 D1 17 80 13 01 00 00 00 00 00 65 [16:01:25]Write i2c OK [16:01:25]MH_I2C_Read... [16:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:25]Read from MH i2c: E2 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 0E 00 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 0E 00 D1 17 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 7E [16:01:25]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:01:25]wFMCommunicate OK [16:01:25]SAM_PROTO_GetShiftState done [16:01:25]FM_GetShiftState done [16:01:25]req_shift_opened done [16:01:25]requested_item shift.open_date is exist - process it [16:01:25]req_shift_open_date [16:01:25]req_shift_open_date done [16:01:25]produce_requested_data done [16:01:25]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115424,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:01:25]process_action_free close_receipt [16:01:25]json_value_free [16:01:25]json_value_free done [16:01:25]process_json_proto returns [16:01:25]Send response to host [16:01:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115424,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:01:25]free response buf [16:01:25]execute_script done [16:01:25]execute_script returns [16:01:25]free content buf [16:01:25]Sock 9.Close socket [16:01:25]Sock 9.Thread stoped [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:39]OFD Sender: No OFD packet to send [16:04:44]OFD Sender: No OFD packet to send [16:04:49]OFD Sender: No OFD packet to send [16:04:54]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:04]OFD Sender: No OFD packet to send [16:05:09]OFD Sender: No OFD packet to send [16:05:14]OFD Sender: No OFD packet to send [16:05:19]OFD Sender: No OFD packet to send [16:05:24]OFD Sender: No OFD packet to send [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [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:32]accept exits with 10 [16:11:32]New connection [16:11:32]New thread 3066826084 created [16:11:32]Thread 3066682724 joined [16:11:32]Waiting for new connection... [16:11:32] Sock 10.Parse request [16:11:32]Sock 10.Check first char [16:11:32]Sock 10.First char is OK [16:11:32]request: POST /json_proto HTTP/1.0 [16:11:32]Method: POST [16:11:32]URL: /json_proto [16:11:32]Method is POST - this is cgi request [16:11:32]url: /json_proto [16:11:32]query_string will be loaded in cgi processing [16:11:32]execute_cgi json_proto POST (null) [16:11:32]execute_cgi path=json_proto method=POST [16:11:32]POST find Content-Length [16:11:32]Host: 172.17.41.136:8080 [16:11:32]Content-Length: 681 [16:11:32]Content-Type: application/json [16:11:32] [16:11:32]POST finish read [16:11:32]Found Content-Length = 681 [16:11:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:32]execute_script... [16:11: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)24616938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:32]POST & json_proto [16:11:32]process_json_proto [16:11:32]json parsed OK: [16:11:32]protocol is kg_v1.0 [16:11:32]action value=close_receipt [16:11:32]process_action close_receipt [16:11:32]cmd_close_receipt [16:11:32]MH_GetDate [16:11:32]Write to MH i2c: F0 00 00 D2 17 D8 [16:11:32]Write i2c OK [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: F0 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: F0 09 00 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: F0 09 00 D2 17 00 B7 41 F0 66 1B D0 5A 64 D8 [16:11:32]GetLastDocTimeStamp 1727020883 [16:11:32]current date 1727021495 [16:11:32]FM_GetShiftState [16:11:32]SAM_PROTO_GetShiftState [16:11:32]wFMCommunicate request_size=4 [16:11:32]MH_SAM_APDU [16:11:32]CAPDU: 80 13 01 00 [16:11:32]Write to MH i2c: E2 08 00 D3 17 80 13 01 00 00 00 00 00 67 [16:11:32]Write i2c OK [16:11:32]MH_I2C_Read... [16:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:33]Read from MH i2c: E2 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: E2 0E 00 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: E2 0E 00 D3 17 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 80 [16:11:33]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:11:33]wFMCommunicate OK [16:11:33]SAM_PROTO_GetShiftState done [16:11:33]FM_GetShiftState done [16:11:33]opened in 1726965840 [16:11:33]opened+sec_in_day 1727052240 [16:11:33]quantity*price = 100050 [16:11:33]sum+1 = 100052 [16:11:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 143 22.09.2024 16:11 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115425 ФПД: 32708346857893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T161135&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115425&fm=32708346857893&tin=02508201610067®Number=0000000000091831&sum=100000 [16:11:34]StoreToDocumentArchive [16:11:34]shift 471 fd 115425 [16:11:34]save to /storage/0471/doc_00115425 [16:11:34]save last doc name /storage/0471/doc_00115425 to /storage/kkm_last_doc_name [16:11:34]save OK [16:11:34]Clear old archive folders... [16:11:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:11:34]tlvbuf is B6E89600 [16:11:34]SAM_PROTO_ClearQueue [16:11:34]wFMCommunicate request_size=4 [16:11:34]MH_SAM_APDU [16:11:34]CAPDU: 80 09 00 00 [16:11:34]Write to MH i2c: E2 08 00 E0 17 80 09 00 00 00 00 00 00 69 [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:34]Read from MH i2c: E2 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 03 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 03 00 E0 17 00 90 00 6B [16:11:34]RAPDU: 90 00 [16:11:34]wFMCommunicate OK [16:11:34]SAM_PROTO_ClearQueue done [16:11:34]KKMCreateOFDPacket [16:11:34]OFDProtocolAddRootSTLVToBuf [16:11:34]FM_MakeSignedData [16:11:34]FM_MakeSignedData [16:11:34]SAM_PROTO_SignData [16:11:34]wFMCommunicate request_size=4 [16:11:34]MH_SAM_APDU [16:11:34]CAPDU: 80 0D 01 02 [16:11:34]Write to MH i2c: E2 08 00 E1 17 80 0D 01 02 00 00 00 00 71 [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:34]Read from MH i2c: E2 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 03 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 03 00 E1 17 00 90 00 6C [16:11:34]RAPDU: 90 00 [16:11:34]wFMCommunicate OK [16:11:34]wFMCommunicate request_size=255 [16:11:34]MH_SAM_APDU [16: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 B7 41 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E1 C2 01 00 35 04 06 00 1D BF 81 65 [16:11:34]Write to MH i2c: E2 02 01 E2 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8F 00 00 00 F4 03 04 00 B7 41 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E1 C2 01 00 35 04 06 00 1D BF 81 65 00 00 09 [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:34]Read from MH i2c: E2 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 03 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 03 00 E2 17 00 90 00 6D [16:11:34]RAPDU: 90 00 [16:11:34]wFMCommunicate OK [16:11:34]wFMCommunicate request_size=7 [16:11:34]MH_SAM_APDU [16:11:34]CAPDU: 80 0D 02 02 02 49 A5 [16:11:34]Write to MH i2c: E2 0A 00 E3 17 80 0D 02 02 02 00 49 A5 00 00 66 [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:34]Read from MH i2c: E2 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 03 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 03 00 E3 17 00 90 00 6E [16:11:34]RAPDU: 90 00 [16:11:34]wFMCommunicate OK [16:11:34]wFMCommunicate request_size=4 [16:11:34]MH_SAM_APDU [16:11:34]CAPDU: 80 0D 03 02 [16:11:34]Write to MH i2c: E2 08 00 E4 17 80 0D 03 02 00 00 00 00 76 [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:34]Read from MH i2c: E2 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 0B 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 0B 00 E4 17 00 68 9E 1F 26 0B 92 55 5D 90 00 11 [16:11:34]RAPDU: 68 9E 1F 26 0B 92 55 5D 90 00 [16:11:34]wFMCommunicate OK [16:11:34]SAM_PROTO_SignData done [16:11:34]FM_MakeSignedData done [16:11:34]CreateOFDProtocolMessage [16:11:34]wFMCommunicate request_size=4 [16:11:34]MH_SAM_APDU [16:11:34]CAPDU: 80 11 00 00 [16:11:34]Write to MH i2c: E2 08 00 E5 17 80 11 00 00 00 00 00 00 76 [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:34]Read from MH i2c: E2 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 17 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 17 00 E5 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C4 [16:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:11:34]wFMCommunicate OK [16:11:34]CreateOFDProtocolMessage done [16:11:34]OFDSenderStorePacket 115425 [16:11:34]StoreOFDPacket docnum=115425 [16:11:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 6A 42 04 01 6B 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8F 00 00 00 F4 03 04 00 B7 41 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E1 C2 01 00 35 04 06 00 1D BF 81 65 49 A5 68 9E 1F 26 0B 92 55 5D [16:11:34]CheckFolder [16:11:34]dirname=/storage/ofd_packets [16:11:34]CheckFolder done [16:11:34]ProducePacketName [16:11:34]name=ofd_packets/00115425 [16:11:34]NVStorageSaveData ofd_packets/00115425 [16:11:34]File name is /storage/ofd_packets/00115425 [16:11:34]Write 298 bytes [16:11:34]NVStorageSaveData done [16:11:34]OFDSenderStorePacket done [16:11:34]KKMCreateOFDPacket done [16:11:34]NVStorageSaveData kkm_last_timestamp [16:11:34]File name is /storage/kkm_last_timestamp [16:11:34]Write 4 bytes [16:11:34]NVStorageSaveData done [16:11:34]ExternCall_PrintAddStr [16:11:34]wPrintStart [16:11:34]Write to MH i2c: 01 00 00 E6 17 FD [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: 01 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: 01 07 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: 01 07 00 E6 17 00 00 00 00 00 FF 0F 12 [16:11:34]RasterBufferAndPrint [16:11:34]line Счет N : (1)24616938 [16:11:34]line ИНН: 02508201610067 [16:11:34]line Контрольно-Кассовый Чек [16:11:34]line ПРОДАЖА [16:11:34]line ТРК (МРК, ГНК) : 22 [16:11:34]line Товар: 2710194210 [16:11:34]line ДТ-К-5 [16:11:34]line 13.130 * 76.20 [16:11:34]line = 1000.51 [16:11:34]line НДС 12% НСП 1% [16:11:34]line > о реализуемом товаре [16:11:34]line ОКРУГЛЕНИЕ: -0.51 [16:11:34]line ИТОГО: 1000.00 [16:11:34]line Внесено: 1000.00 [16:11:34]line СДАЧА: 0.00 [16:11:34]line НСП 1% : 8.85 [16:11:34]line НДС 12% : 106.25 [16:11:34]line Наличными: 1000.00 [16:11:34]line Безнал.: 0.00 [16:11:34]line Место: АЗС № 90 "Партнер Нефть" [16:11:34]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:11:34]line СНО: Общий режим [16:11:34]line Чек 143 22.09.2024 16:11 [16:11:34]line Смена: 471 ФФД: 1.0 [16:11:34]line ЗНМ: 0300000120 [16:11:34]line РНМ: 0000000000091831 [16:11:34]line Версия ККМ: 001 [16:11:34]line ФМ: 0000000000871830 [16:11:34]line ФД: 115425 [16:11:34]line ФПД: 32708346857893 [16:11:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T161135&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115425&fm=32708346857893&tin=02508201610067®Number=0000000000091831&sum=100000 [16:11:34]OFD Sender: Processing packet 115425 [packets to send 481, broken 480] [16:11:34]ProducePacketName [16:11:34]name=ofd_packets/00115425 [16:11:34]OFD Sender: To server: pG, [16:11:34]CommunicateWithHost lk.salyk.kg:30040 [16:11:34]ConnectInit lk.salyk.kg [16:11:35]written 0, free lines is 4095 [16:11:35]Connected sock=9 [16: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 31 38 33 30 0C 01 00 00 6A 42 04 01 6B 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8F 00 00 00 F4 03 04 00 B7 41 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E1 C2 01 00 35 04 06 00 1D BF 81 65 49 A5 68 9E 1F 26 0B 92 55 5D [16:11:35]Write to MH i2c: 01 00 00 10 18 28 [16:11:35]Write i2c OK [16:11:35]MH_I2C_Read... [16:11:35]Read from MH i2c: 01 [16:11:35]MH_I2C_Read... [16:11:35]Read from MH i2c: 01 07 00 [16:11:35]MH_I2C_Read... [16:11:35]Read from MH i2c: 01 07 00 10 18 00 00 00 00 00 6C 0C A7 [16:11:35]RasterBufferAndPrint [16:11:35]line [16:11:35]line [16:11:35]line [16:11:35]line [16:11:35]line [16:11:35]written 0, free lines is 3183 [16:11:35]MH_Cut [16:11:35]Write to MH i2c: D1 01 00 17 18 01 01 [16:11:35]Write i2c OK [16:11:35]MH_I2C_Read... [16:11:35]Read from MH i2c: D1 [16:11:35]MH_I2C_Read... [16:11:35]Read from MH i2c: D1 01 00 [16:11:35]MH_I2C_Read... [16:11:35]Read from MH i2c: D1 01 00 17 18 00 00 [16:11:35]Write to MH i2c: 01 00 00 18 18 30 [16:11:35]Write i2c OK [16:11:35]MH_I2C_Read... [16:11:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 5E 86 47 00 80 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E1 C2 01 00 F4 03 04 00 FC E6 EF 66 B6 04 01 00 00 C7 8D 3B C4 8E 65 A2 07 [16:11:35]CommunicateWithHost err = 0 [16:11:35]CheckOFDResponse [16:11:35]1017 (14) - 77093643461234 [16:11:35]1041 (16) - 0000000000871830 [16:11:35]1040 (4) - 115425 [16:11:35]1012 (4) - 22.09.2024 09:44 [16:11:35]1206 (1) - 0 [16:11:35]OFD Sender: Remove packet 115425 [16:11:35]ProducePacketName [16:11:35]name=ofd_packets/00115425 [16:11:35]NVStorageDeleteData [16:11:36]OFD Sender: No OFD packet to send [16:11:36]*** Cut start [16:11:36]*** Partial cut [16:11:36]*** CUTSNS_PIN = 1 [16:11:36]*** CUTSNS_PIN = 0 [16:11:37]*** Brake cut motor [16:11:37]Read from MH i2c: 01 [16:11:37]MH_I2C_Read... [16:11:37]*** Stop cut motor [16:11:37]*** Cut end [16:11:37]Read from MH i2c: 01 07 00 [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: 01 07 00 18 18 00 00 00 00 00 FF 0F 45 [16:11:37]process_action close_receipt done [16:11:37]requested_data is exist [16:11:37]produce_requested_data [16:11:37]requested_item fm.sn is exist - process it [16:11:37]wFMCommunicate request_size=4 [16:11:37]MH_SAM_APDU [16:11:37]CAPDU: 80 11 00 00 [16:11:37]Write to MH i2c: E2 08 00 19 18 80 11 00 00 00 00 00 00 AB [16:11:37]Write i2c OK [16:11:37]MH_I2C_Read... [16:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:37]Read from MH i2c: E2 [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: E2 17 00 [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: E2 17 00 19 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F9 [16:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:11:37]wFMCommunicate OK [16:11:37]requested_item fd.num is exist - process it [16:11:37]SAM_PROTO_GetFieldsCounters [16:11:37]wFMCommunicate request_size=4 [16:11:37]MH_SAM_APDU [16:11:37]CAPDU: 80 13 00 00 [16:11:37]Write to MH i2c: E2 08 00 1A 18 80 13 00 00 00 00 00 00 AE [16:11:37]Write i2c OK [16:11:37]MH_I2C_Read... [16:11:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:37]Read from MH i2c: E2 [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: E2 62 00 [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: E2 62 00 1A 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E1 C2 01 00 0E 04 04 00 D7 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 F0 [16: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E1 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:37]wFMCommunicate OK [16:11:37]SAM_PROTO_GetFieldsCounters done [16:11:37]requested_item shift.num is exist - process it [16:11:37]requested_item shift.opened is exist - process it [16:11:37]req_shift_opened [16:11:37]FM_GetShiftState [16:11:37]SAM_PROTO_GetShiftState [16:11:37]wFMCommunicate request_size=4 [16:11:37]MH_SAM_APDU [16:11:37]CAPDU: 80 13 01 00 [16:11:37]Write to MH i2c: E2 08 00 1B 18 80 13 01 00 00 00 00 00 B0 [16:11:37]Write i2c OK [16:11:37]MH_I2C_Read... [16:11:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:37]Read from MH i2c: E2 [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: E2 0E 00 [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: E2 0E 00 1B 18 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C9 [16:11:37]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:11:37]wFMCommunicate OK [16:11:37]SAM_PROTO_GetShiftState done [16:11:37]FM_GetShiftState done [16:11:37]req_shift_opened done [16:11:37]requested_item shift.open_date is exist - process it [16:11:37]req_shift_open_date [16:11:37]req_shift_open_date done [16:11:37]produce_requested_data done [16:11:37]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115425,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:11:37]process_action_free close_receipt [16:11:37]json_value_free [16:11:37]json_value_free done [16:11:37]process_json_proto returns [16:11:37]Send response to host [16:11:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115425,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:11:37]free response buf [16:11:37]execute_script done [16:11:37]execute_script returns [16:11:37]free content buf [16:11:37]Sock 10.Close socket [16:11:37]Sock 10.Thread stoped [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:56]OFD Sender: No OFD packet to send [16:16:01]OFD Sender: No OFD packet to send [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]OFD Sender: No OFD packet to send [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:12]accept exits with 8 [16:21:12]New connection [16:21:12]New thread 3066682724 created [16:21:12]Thread 3066826084 joined [16:21:12]Waiting for new connection... [16:21:12] Sock 8.Parse request [16:21:12]Sock 8.Check first char [16:21:12]Sock 8.First char is OK [16:21:12]request: POST /json_proto HTTP/1.0 [16:21:12]Method: POST [16:21:12]URL: /json_proto [16:21:12]Method is POST - this is cgi request [16:21:12]url: /json_proto [16:21:12]query_string will be loaded in cgi processing [16:21:12]execute_cgi json_proto POST (null) [16:21:12]execute_cgi path=json_proto method=POST [16:21:12]POST find Content-Length [16:21:12]Host: 172.17.41.136:8080 [16:21:12]Content-Length: 1163 [16:21:12]Content-Type: application/json [16:21:12] [16:21:12]POST finish read [16:21:12]Found Content-Length = 1163 [16:21:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343866", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 149.00, "quantity" : 2.000, "sum" : 298.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 418.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:12]execute_script... [16:21:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343866", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 149.00, "quantity" : 2.000, "sum" : 298.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 418.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:12]POST & json_proto [16:21:12]process_json_proto [16:21:12]json parsed OK: [16:21:12]protocol is kg_v1.0 [16:21:12]action value=close_receipt [16:21:12]process_action close_receipt [16:21:12]cmd_close_receipt [16:21:12]MH_GetDate [16:21:12]Write to MH i2c: F0 00 00 1C 18 23 [16:21:12]Write i2c OK [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: F0 [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: F0 09 00 [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: F0 09 00 1C 18 00 FA 43 F0 66 1B D0 5A 64 68 [16:21:12]GetLastDocTimeStamp 1727021495 [16:21:12]current date 1727022074 [16:21:12]FM_GetShiftState [16:21:12]SAM_PROTO_GetShiftState [16:21:12]wFMCommunicate request_size=4 [16:21:12]MH_SAM_APDU [16:21:12]CAPDU: 80 13 01 00 [16:21:12]Write to MH i2c: E2 08 00 1D 18 80 13 01 00 00 00 00 00 B2 [16:21:12]Write i2c OK [16:21:12]MH_I2C_Read... [16:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:12]Read from MH i2c: E2 [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: E2 0E 00 [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: E2 0E 00 1D 18 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 CB [16:21:12]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:21:12]wFMCommunicate OK [16:21:12]SAM_PROTO_GetShiftState done [16:21:12]FM_GetShiftState done [16:21:12]opened in 1726965840 [16:21:12]opened+sec_in_day 1727052240 [16:21:12]quantity*price = 29800 [16:21:12]sum+1 = 29801 [16:21:12]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189394 Холодный чай Fuse ягода 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 42069942 Жев Orbit White Fresh Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 418.00 НСП 1% : 3.70 НДС 12% : 44.39 Наличными: 418.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 144 22.09.2024 16:21 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115426 ФПД: 83690898355965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T162114&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115426&fm=83690898355965&tin=02508201610067®Number=0000000000091831&sum=41800 0 [16:21:13]StoreToDocumentArchive [16:21:13]shift 471 fd 115426 [16:21:13]save to /storage/0471/doc_00115426 [16:21:13]save last doc name /storage/0471/doc_00115426 to /storage/kkm_last_doc_name [16:21:13]save OK [16:21:13]Clear old archive folders... [16:21:13]ProcessDocumentItem done err = 0, tmpTLVsize=495 [16:21:13]tlvbuf is 01C7E7E0 [16:21:13]SAM_PROTO_ClearQueue [16:21:13]wFMCommunicate request_size=4 [16:21:13]MH_SAM_APDU [16:21:13]CAPDU: 80 09 00 00 [16:21:13]Write to MH i2c: E2 08 00 2A 18 80 09 00 00 00 00 00 00 B4 [16:21:13]Write i2c OK [16:21:13]MH_I2C_Read... [16:21:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:13]Read from MH i2c: E2 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 2A 18 00 90 00 B6 [16:21:13]RAPDU: 90 00 [16:21:13]wFMCommunicate OK [16:21:13]SAM_PROTO_ClearQueue done [16:21:13]KKMCreateOFDPacket [16:21:13]OFDProtocolAddRootSTLVToBuf [16:21:13]FM_MakeSignedData [16:21:13]FM_MakeSignedData [16:21:13]SAM_PROTO_SignData [16:21:13]wFMCommunicate request_size=4 [16:21:13]MH_SAM_APDU [16:21:13]CAPDU: 80 0D 01 02 [16:21:13]Write to MH i2c: E2 08 00 2B 18 80 0D 01 02 00 00 00 00 BC [16:21:13]Write i2c OK [16:21:13]MH_I2C_Read... [16:21:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:13]Read from MH i2c: E2 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 2B 18 00 90 00 B7 [16:21:13]RAPDU: 90 00 [16:21:13]wFMCommunicate OK [16:21:13]wFMCommunicate request_size=255 [16:21:13]MH_SAM_APDU [16:21:13]CAPDU: 80 0D 02 02 FA 03 00 EF 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 68 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 [16:21:13]Write to MH i2c: E2 02 01 2C 18 80 0D 02 02 FA 00 03 00 EF 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 68 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 00 00 B2 [16:21:14]Write i2c OK [16:21:14]MH_I2C_Read... [16:21:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:14]Read from MH i2c: E2 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 03 00 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 03 00 2C 18 00 90 00 B8 [16:21:14]RAPDU: 90 00 [16:21:14]wFMCommunicate OK [16:21:14]wFMCommunicate request_size=254 [16:21:14]MH_SAM_APDU [16:21:14]CAPDU: 80 0D 02 02 F9 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 A3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 11 00 00 00 00 07 04 06 00 48 A3 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 FA 43 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E2 C2 01 00 35 04 06 00 4C 1D CE 44 76 FD [16:21:14]Write to MH i2c: E2 01 01 2D 18 80 0D 02 02 F9 00 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 A3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 11 00 00 00 00 07 04 06 00 48 A3 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 FA 43 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E2 C2 01 00 35 04 06 00 4C 1D CE 44 76 FD 00 00 FC [16:21:14]Write i2c OK [16:21:14]MH_I2C_Read... [16:21:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:14]Read from MH i2c: E2 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 03 00 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 03 00 2D 18 00 90 00 B9 [16:21:14]RAPDU: 90 00 [16:21:14]wFMCommunicate OK [16:21:14]wFMCommunicate request_size=4 [16:21:14]MH_SAM_APDU [16:21:14]CAPDU: 80 0D 03 02 [16:21:14]Write to MH i2c: E2 08 00 2E 18 80 0D 03 02 00 00 00 00 C1 [16:21:14]Write i2c OK [16:21:14]MH_I2C_Read... [16:21:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:14]Read from MH i2c: E2 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 0B 00 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 0B 00 2E 18 00 F3 C2 22 FA 21 C9 82 4C 90 00 4B [16:21:14]RAPDU: F3 C2 22 FA 21 C9 82 4C 90 00 [16:21:14]wFMCommunicate OK [16:21:14]SAM_PROTO_SignData done [16:21:14]FM_MakeSignedData done [16:21:14]CreateOFDProtocolMessage [16:21:14]wFMCommunicate request_size=4 [16:21:14]MH_SAM_APDU [16:21:14]CAPDU: 80 11 00 00 [16:21:14]Write to MH i2c: E2 08 00 2F 18 80 11 00 00 00 00 00 00 C1 [16:21:14]Write i2c OK [16:21:14]MH_I2C_Read... [16:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:14]Read from MH i2c: E2 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 17 00 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: E2 17 00 2F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0F [16:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:21:14]wFMCommunicate OK [16:21:14]CreateOFDProtocolMessage done [16:21:14]OFDSenderStorePacket 115426 [16:21:14]StoreOFDPacket docnum=115426 [16:21:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 03 02 00 00 4D FA FB 01 B1 02 5A 03 01 00 03 00 EF 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 68 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 A3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 11 00 00 00 00 07 04 06 00 48 A3 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 FA 43 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E2 C2 01 00 35 04 06 00 4C 1D CE 44 76 FD F3 C2 22 FA 21 C9 82 4C [16:21:14]CheckFolder [16:21:14]dirname=/storage/ofd_packets [16:21:14]CheckFolder done [16:21:14]ProducePacketName [16:21:14]name=ofd_packets/00115426 [16:21:14]NVStorageSaveData ofd_packets/00115426 [16:21:14]File name is /storage/ofd_packets/00115426 [16:21:14]Write 545 bytes [16:21:14]NVStorageSaveData done [16:21:14]OFDSenderStorePacket done [16:21:14]KKMCreateOFDPacket done [16:21:14]NVStorageSaveData kkm_last_timestamp [16:21:14]File name is /storage/kkm_last_timestamp [16:21:14]Write 4 bytes [16:21:14]NVStorageSaveData done [16:21:14]ExternCall_PrintAddStr [16:21:14]wPrintStart [16:21:14]Write to MH i2c: 01 00 00 30 18 48 [16:21:14]Write i2c OK [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: 01 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: 01 07 00 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: 01 07 00 30 18 00 00 00 00 00 FF 0F 5D [16:21:14]RasterBufferAndPrint [16:21:14]line Счет N : (3)343866 [16:21:14]line ИНН: 02508201610067 [16:21:14]line Контрольно-Кассовый Чек [16:21:14]line ПРОДАЖА [16:21:14]line Товар: 4700000480357 [16:21:14]line Пиво шахтерское 1л ПЭТ [16:21:14]line 2.000 * 149.00 [16:21:14]line = 298.00 [16:21:14]line НДС 12% НСП 1% [16:21:14]line > о реализуемом товаре [16:21:14]line Товар: 5449000189394 [16:21:14]line Холодный чай Fuse ягода 0,5л [16:21:14]line 1.000 * 75.00 [16:21:14]line = 75.00 [16:21:14]line НДС 12% НСП 1% [16:21:14]line > о реализуемом товаре [16:21:14]line Товар: 42069942 [16:21:14]line Жев Orbit White Fresh Mint [16:21:14]line 1.000 * 45.00 [16:21:14]line = 45.00 [16:21:14]line НДС 12% НСП 1% [16:21:14]line > о реализуемом товаре [16:21:14]line ИТОГО: 418.00 [16:21:14]line НСП 1% : 3.70 [16:21:14]line НДС 12% : 44.39 [16:21:14]line Наличными: 418.00 [16:21:14]line Безнал.: 0.00 [16:21:14]line Место: АЗС № 90 "Партнер Нефть" [16:21:14]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:21:14]line СНО: Общий режим [16:21:14]line Чек 144 22.09.2024 16:21 [16:21:14]line Смена: 471 ФФД: 1.0 [16:21:14]line ЗНМ: 0300000120 [16:21:14]line РНМ: 0000000000091831 [16:21:14]line Версия ККМ: 001 [16:21:14]line ФМ: 0000000000871830 [16:21:14]line ФД: 115426 [16:21:14]line ФПД: 83690898355965 [16:21:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T162114&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115426&fm=83690898355965&tin=02508201610067®Number=0000000000091831&sum=41800 [16:21:14]line 0 [16:21:14]written 0, free lines is 4095 [16:21:14]OFD Sender: Processing packet 115426 [packets to send 481, broken 480] [16:21:14]ProducePacketName [16:21:14]name=ofd_packets/00115426 [16:21:14]OFD Sender: To server: pG, [16:21:14]CommunicateWithHost lk.salyk.kg:30040 [16:21:14]ConnectInit lk.salyk.kg [16:21:15]Connected sock=10 [16:21:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 03 02 00 00 4D FA FB 01 B1 02 5A 03 01 00 03 00 EF 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 68 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 A3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 11 00 00 00 00 07 04 06 00 48 A3 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 FA 43 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E2 C2 01 00 35 04 06 00 4C 1D CE 44 76 FD F3 C2 22 FA 21 C9 82 4C [16:21:15]Write to MH i2c: 01 00 00 63 18 7B [16:21:15]Write i2c OK [16:21:15]MH_I2C_Read... [16:21:15]Read from MH i2c: 01 [16:21:15]MH_I2C_Read... [16:21:15]Read from MH i2c: 01 07 00 [16:21:15]MH_I2C_Read... [16:21:15]Read from MH i2c: 01 07 00 63 18 00 00 00 00 00 8E 0B 1B [16:21:15]RasterBufferAndPrint [16:21:15]line [16:21:15]line [16:21:15]line [16:21:15]line [16:21:15]line [16:21:15]written 0, free lines is 2962 [16:21:15]MH_Cut [16:21:15]Write to MH i2c: D1 01 00 6A 18 01 54 [16:21:15]Write i2c OK [16:21:15]MH_I2C_Read... [16:21:15]Read from MH i2c: D1 [16:21:15]MH_I2C_Read... [16:21:15]Read from MH i2c: D1 01 00 [16:21:15]MH_I2C_Read... [16:21:15]Read from MH i2c: D1 01 00 6A 18 00 53 [16:21:15]Write to MH i2c: 01 00 00 6B 18 83 [16:21:15]Write i2c OK [16:21:15]MH_I2C_Read... [16:21:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F2 40 47 00 C9 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 31 38 33 30 10 04 04 00 E2 C2 01 00 F4 03 04 00 40 E9 EF 66 B6 04 01 00 00 8D 03 7C D0 A3 FF 5F 42 [16:21:15]CommunicateWithHost err = 0 [16:21:15]CheckOFDResponse [16:21:15]1017 (14) - 77093643461234 [16:21:15]1041 (16) - 0000000000871830 [16:21:15]1040 (4) - 115426 [16:21:15]1012 (4) - 22.09.2024 09:54 [16:21:15]1206 (1) - 0 [16:21:15]OFD Sender: Remove packet 115426 [16:21:15]ProducePacketName [16:21:15]name=ofd_packets/00115426 [16:21:15]NVStorageDeleteData [16:21:16]OFD Sender: No OFD packet to send [16:21:16]*** Cut start [16:21:16]*** Partial cut [16:21:16]*** CUTSNS_PIN = 1 [16:21:16]*** CUTSNS_PIN = 0 [16:21:17]*** Brake cut motor [16:21:17]Read from MH i2c: 01 [16:21:17]MH_I2C_Read... [16:21:17]*** Stop cut motor [16:21:17]*** Cut end [16:21:17]Read from MH i2c: 01 07 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: 01 07 00 6B 18 00 00 00 00 00 FF 0F 98 [16:21:17]process_action close_receipt done [16:21:17]requested_data is exist [16:21:17]produce_requested_data [16:21:17]requested_item fm.sn is exist - process it [16:21:17]wFMCommunicate request_size=4 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 11 00 00 [16:21:17]Write to MH i2c: E2 08 00 6C 18 80 11 00 00 00 00 00 00 FE [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 17 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 17 00 6C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4C [16:21:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:21:17]wFMCommunicate OK [16:21:17]requested_item fd.num is exist - process it [16:21:17]SAM_PROTO_GetFieldsCounters [16:21:17]wFMCommunicate request_size=4 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 13 00 00 [16:21:17]Write to MH i2c: E2 08 00 6D 18 80 13 00 00 00 00 00 00 01 [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 62 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 62 00 6D 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E2 C2 01 00 0E 04 04 00 D7 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 47 [16:21:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E2 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:17]wFMCommunicate OK [16:21:17]SAM_PROTO_GetFieldsCounters done [16:21:17]requested_item shift.num is exist - process it [16:21:17]requested_item shift.opened is exist - process it [16:21:17]req_shift_opened [16:21:17]FM_GetShiftState [16:21:17]SAM_PROTO_GetShiftState [16:21:17]wFMCommunicate request_size=4 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 13 01 00 [16:21:17]Write to MH i2c: E2 08 00 6E 18 80 13 01 00 00 00 00 00 03 [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 0E 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 0E 00 6E 18 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 1C [16:21:17]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:21:17]wFMCommunicate OK [16:21:17]SAM_PROTO_GetShiftState done [16:21:17]FM_GetShiftState done [16:21:17]req_shift_opened done [16:21:17]requested_item shift.open_date is exist - process it [16:21:17]req_shift_open_date [16:21:17]req_shift_open_date done [16:21:17]produce_requested_data done [16:21:17]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115426,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:21:17]process_action_free close_receipt [16:21:17]json_value_free [16:21:17]json_value_free done [16:21:17]process_json_proto returns [16:21:17]Send response to host [16:21:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115426,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:21:17]free response buf [16:21:17]execute_script done [16:21:17]execute_script returns [16:21:17]free content buf [16:21:17]Sock 8.Close socket [16:21:17]Sock 8.Thread stoped [16:21:21]OFD Sender: No OFD packet to send [16:21:25]accept exits with 9 [16:21:25]New connection [16:21:25]New thread 3066826084 created [16:21:25]Thread 3066682724 joined [16:21:25]Waiting for new connection... [16:21:25] Sock 9.Parse request [16:21:25]Sock 9.Check first char [16:21:25]Sock 9.First char is OK [16:21:25]request: POST /json_proto HTTP/1.0 [16:21:25]Method: POST [16:21:25]URL: /json_proto [16:21:25]Method is POST - this is cgi request [16:21:25]url: /json_proto [16:21:25]query_string will be loaded in cgi processing [16:21:25]execute_cgi json_proto POST (null) [16:21:25]execute_cgi path=json_proto method=POST [16:21:25]POST find Content-Length [16:21:25]Host: 172.17.41.136:8080 [16:21:25]Content-Length: 630 [16:21:25]Content-Type: application/json [16:21:26] [16:21:26]POST finish read [16:21:26]Found Content-Length = 630 [16:21:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343867", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:26]execute_script... [16:21:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343867", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:26]POST & json_proto [16:21:26]process_json_proto [16:21:26]json parsed OK: [16:21:26]protocol is kg_v1.0 [16:21:26]action value=close_receipt [16:21:26]process_action close_receipt [16:21:26]cmd_close_receipt [16:21:26]MH_GetDate [16:21:26]Write to MH i2c: F0 00 00 6F 18 76 [16:21:26]Write i2c OK [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: F0 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: F0 09 00 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: F0 09 00 6F 18 00 08 44 F0 66 1B D0 5A 64 CA [16:21:26]GetLastDocTimeStamp 1727022074 [16:21:26]current date 1727022088 [16:21:26]FM_GetShiftState [16:21:26]SAM_PROTO_GetShiftState [16:21:26]wFMCommunicate request_size=4 [16:21:26]MH_SAM_APDU [16:21:26]CAPDU: 80 13 01 00 [16:21:26]Write to MH i2c: E2 08 00 70 18 80 13 01 00 00 00 00 00 05 [16:21:26]Write i2c OK [16:21:26]MH_I2C_Read... [16:21:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:26]Read from MH i2c: E2 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: E2 0E 00 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: E2 0E 00 70 18 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 1E [16:21:26]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:21:26]wFMCommunicate OK [16:21:26]SAM_PROTO_GetShiftState done [16:21:26]FM_GetShiftState done [16:21:26]opened in 1726965840 [16:21:26]opened+sec_in_day 1727052240 [16:21:26]quantity*price = 5000 [16:21:26]sum+1 = 5001 [16:21:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 145 22.09.2024 16:21 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115427 ФПД: 31989876840922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T162128&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115427&fm=31989876840922&tin=02508201610067®Number=0000000000091831&sum=5000 0 [16:21:27]StoreToDocumentArchive [16:21:27]shift 471 fd 115427 [16:21:27]save to /storage/0471/doc_00115427 [16:21:27]save last doc name /storage/0471/doc_00115427 to /storage/kkm_last_doc_name [16:21:27]save OK [16:21:27]Clear old archive folders... [16:21:27]ProcessDocumentItem done err = 0, tmpTLVsize=269 [16:21:27]tlvbuf is 01C47B30 [16:21:27]SAM_PROTO_ClearQueue [16:21:27]wFMCommunicate request_size=4 [16:21:27]MH_SAM_APDU [16:21:27]CAPDU: 80 09 00 00 [16:21:27]Write to MH i2c: E2 08 00 7D 18 80 09 00 00 00 00 00 00 07 [16:21:27]Write i2c OK [16:21:27]MH_I2C_Read... [16:21:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:27]Read from MH i2c: E2 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 03 00 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 03 00 7D 18 00 90 00 09 [16:21:27]RAPDU: 90 00 [16:21:27]wFMCommunicate OK [16:21:27]SAM_PROTO_ClearQueue done [16:21:27]KKMCreateOFDPacket [16:21:27]OFDProtocolAddRootSTLVToBuf [16:21:27]FM_MakeSignedData [16:21:27]FM_MakeSignedData [16:21:27]SAM_PROTO_SignData [16:21:27]wFMCommunicate request_size=4 [16:21:27]MH_SAM_APDU [16:21:27]CAPDU: 80 0D 01 02 [16:21:27]Write to MH i2c: E2 08 00 7E 18 80 0D 01 02 00 00 00 00 0F [16:21:27]Write i2c OK [16:21:27]MH_I2C_Read... [16:21:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:27]Read from MH i2c: E2 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 03 00 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 03 00 7E 18 00 90 00 0A [16:21:27]RAPDU: 90 00 [16:21:27]wFMCommunicate OK [16:21:27]wFMCommunicate request_size=255 [16:21:27]MH_SAM_APDU [16:21:27]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 08 44 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [16:21:27]Write to MH i2c: E2 02 01 7F 18 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 08 44 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 2E [16:21:27]Write i2c OK [16:21:27]MH_I2C_Read... [16:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:27]Read from MH i2c: E2 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 03 00 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 03 00 7F 18 00 90 00 0B [16:21:27]RAPDU: 90 00 [16:21:27]wFMCommunicate OK [16:21:27]wFMCommunicate request_size=28 [16:21:27]MH_SAM_APDU [16:21:27]CAPDU: 80 0D 02 02 17 37 31 38 33 30 10 04 04 00 E3 C2 01 00 35 04 06 00 1D 18 39 3E D9 DA [16:21:27]Write to MH i2c: E2 1F 00 80 18 80 0D 02 02 17 00 37 31 38 33 30 10 04 04 00 E3 C2 01 00 35 04 06 00 1D 18 39 3E D9 DA 00 00 9F [16:21:27]Write i2c OK [16:21:27]MH_I2C_Read... [16:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:27]Read from MH i2c: E2 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 03 00 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 03 00 80 18 00 90 00 0C [16:21:27]RAPDU: 90 00 [16:21:27]wFMCommunicate OK [16:21:27]wFMCommunicate request_size=4 [16:21:27]MH_SAM_APDU [16:21:27]CAPDU: 80 0D 03 02 [16:21:27]Write to MH i2c: E2 08 00 81 18 80 0D 03 02 00 00 00 00 14 [16:21:27]Write i2c OK [16:21:27]MH_I2C_Read... [16:21:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:27]Read from MH i2c: E2 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 0B 00 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 0B 00 81 18 00 20 1B FD 2E 29 62 E2 7A 90 00 62 [16:21:27]RAPDU: 20 1B FD 2E 29 62 E2 7A 90 00 [16:21:27]wFMCommunicate OK [16:21:27]SAM_PROTO_SignData done [16:21:27]FM_MakeSignedData done [16:21:27]CreateOFDProtocolMessage [16:21:27]wFMCommunicate request_size=4 [16:21:27]MH_SAM_APDU [16:21:27]CAPDU: 80 11 00 00 [16:21:27]Write to MH i2c: E2 08 00 82 18 80 11 00 00 00 00 00 00 14 [16:21:27]Write i2c OK [16:21:27]MH_I2C_Read... [16:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:27]Read from MH i2c: E2 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 17 00 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: E2 17 00 82 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 62 [16:21:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:21:27]wFMCommunicate OK [16:21:27]CreateOFDProtocolMessage done [16:21:27]OFDSenderStorePacket 115427 [16:21:27]StoreOFDPacket docnum=115427 [16:21:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 21 01 00 00 5C 88 19 01 28 40 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 08 44 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E3 C2 01 00 35 04 06 00 1D 18 39 3E D9 DA 20 1B FD 2E 29 62 E2 7A [16:21:27]CheckFolder [16:21:27]dirname=/storage/ofd_packets [16:21:27]CheckFolder done [16:21:27]ProducePacketName [16:21:27]name=ofd_packets/00115427 [16:21:27]NVStorageSaveData ofd_packets/00115427 [16:21:27]File name is /storage/ofd_packets/00115427 [16:21:27]Write 319 bytes [16:21:27]NVStorageSaveData done [16:21:27]OFDSenderStorePacket done [16:21:27]KKMCreateOFDPacket done [16:21:27]NVStorageSaveData kkm_last_timestamp [16:21:27]File name is /storage/kkm_last_timestamp [16:21:27]Write 4 bytes [16:21:27]NVStorageSaveData done [16:21:27]ExternCall_PrintAddStr [16:21:27]wPrintStart [16:21:27]Write to MH i2c: 01 00 00 83 18 9B [16:21:27]Write i2c OK [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: 01 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: 01 07 00 [16:21:27]MH_I2C_Read... [16:21:27]Read from MH i2c: 01 07 00 83 18 00 00 00 00 00 FF 0F B0 [16:21:27]RasterBufferAndPrint [16:21:27]line Счет N : (3)343867 [16:21:27]line ИНН: 02508201610067 [16:21:27]line Контрольно-Кассовый Чек [16:21:27]line ПРОДАЖА [16:21:27]line Товар: 4700000160358 [16:21:27]line Вода Легенда 1л [16:21:27]line 1.000 * 50.00 [16:21:27]line = 50.00 [16:21:27]line НДС 12% НСП 1% [16:21:27]line > о реализуемом товаре [16:21:27]line ИТОГО: 50.00 [16:21:27]line НСП 1% : 0.44 [16:21:27]line НДС 12% : 5.31 [16:21:27]line Наличными: 50.00 [16:21:27]line Безнал.: 0.00 [16:21:27]line Место: АЗС № 90 "Партнер Нефть" [16:21:27]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:21:27]line СНО: Общий режим [16:21:27]line Чек 145 22.09.2024 16:21 [16:21:27]line Смена: 471 ФФД: 1.0 [16:21:27]line ЗНМ: 0300000120 [16:21:27]line РНМ: 0000000000091831 [16:21:27]line Версия ККМ: 001 [16:21:27]line ФМ: 0000000000871830 [16:21:27]line ФД: 115427 [16:21:27]line ФПД: 31989876840922 [16:21:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T162128&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115427&fm=31989876840922&tin=02508201610067®Number=0000000000091831&sum=5000 [16:21:27]line 0 [16:21:27]written 0, free lines is 4095 [16:21:27]OFD Sender: Processing packet 115427 [packets to send 481, broken 480] [16:21:27]ProducePacketName [16:21:27]name=ofd_packets/00115427 [16:21:27]OFD Sender: To server: pG, [16:21:27]CommunicateWithHost lk.salyk.kg:30040 [16:21:27]ConnectInit lk.salyk.kg [16:21:28]Connected sock=10 [16:21:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 21 01 00 00 5C 88 19 01 28 40 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 08 44 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E3 C2 01 00 35 04 06 00 1D 18 39 3E D9 DA 20 1B FD 2E 29 62 E2 7A [16:21:28]Write to MH i2c: 01 00 00 AA 18 C2 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 07 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 07 00 AA 18 00 00 00 00 00 95 0C 6A [16:21:28]RasterBufferAndPrint [16:21:28]line [16:21:28]line [16:21:28]line [16:21:28]line [16:21:28]line [16:21:28]written 0, free lines is 3228 [16:21:28]MH_Cut [16:21:28]Write to MH i2c: D1 01 00 B1 18 01 9B [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: D1 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: D1 01 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: D1 01 00 B1 18 00 9A [16:21:28]Write to MH i2c: 01 00 00 B2 18 CA [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6D 2A 47 00 2A 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E3 C2 01 00 F4 03 04 00 4D E9 EF 66 B6 04 01 00 00 4B 1A 70 89 30 FF 62 89 [16:21:28]CommunicateWithHost err = 0 [16:21:28]CheckOFDResponse [16:21:28]1017 (14) - 77093643461234 [16:21:28]1041 (16) - 0000000000871830 [16:21:28]1040 (4) - 115427 [16:21:28]1012 (4) - 22.09.2024 09:54 [16:21:28]1206 (1) - 0 [16:21:28]OFD Sender: Remove packet 115427 [16:21:28]ProducePacketName [16:21:28]name=ofd_packets/00115427 [16:21:28]NVStorageDeleteData [16:21:28]OFD Sender: No OFD packet to send [16:21:29]*** Cut start [16:21:29]*** Partial cut [16:21:29]*** CUTSNS_PIN = 1 [16:21:29]*** CUTSNS_PIN = 0 [16:21:29]*** Brake cut motor [16:21:29]Read from MH i2c: 01 [16:21:29]MH_I2C_Read... [16:21:29]*** Stop cut motor [16:21:29]*** Cut end [16:21:29]Read from MH i2c: 01 07 00 [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: 01 07 00 B2 18 00 00 00 00 00 FF 0F DF [16:21:29]process_action close_receipt done [16:21:29]requested_data is exist [16:21:29]produce_requested_data [16:21:29]requested_item fm.sn is exist - process it [16:21:29]wFMCommunicate request_size=4 [16:21:29]MH_SAM_APDU [16:21:29]CAPDU: 80 11 00 00 [16:21:29]Write to MH i2c: E2 08 00 B3 18 80 11 00 00 00 00 00 00 45 [16:21:29]Write i2c OK [16:21:29]MH_I2C_Read... [16:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:29]Read from MH i2c: E2 [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: E2 17 00 [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: E2 17 00 B3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 93 [16:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:21:29]wFMCommunicate OK [16:21:29]requested_item fd.num is exist - process it [16:21:29]SAM_PROTO_GetFieldsCounters [16:21:29]wFMCommunicate request_size=4 [16:21:29]MH_SAM_APDU [16:21:29]CAPDU: 80 13 00 00 [16:21:29]Write to MH i2c: E2 08 00 B4 18 80 13 00 00 00 00 00 00 48 [16:21:29]Write i2c OK [16:21:29]MH_I2C_Read... [16:21:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:30]Read from MH i2c: E2 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: E2 62 00 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: E2 62 00 B4 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E3 C2 01 00 0E 04 04 00 D7 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 92 [16:21:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E3 C2 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:30]wFMCommunicate OK [16:21:30]SAM_PROTO_GetFieldsCounters done [16:21:30]requested_item shift.num is exist - process it [16:21:30]requested_item shift.opened is exist - process it [16:21:30]req_shift_opened [16:21:30]FM_GetShiftState [16:21:30]SAM_PROTO_GetShiftState [16:21:30]wFMCommunicate request_size=4 [16:21:30]MH_SAM_APDU [16:21:30]CAPDU: 80 13 01 00 [16:21:30]Write to MH i2c: E2 08 00 B5 18 80 13 01 00 00 00 00 00 4A [16:21:30]Write i2c OK [16:21:30]MH_I2C_Read... [16:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:30]Read from MH i2c: E2 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: E2 0E 00 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: E2 0E 00 B5 18 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 63 [16:21:30]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:21:30]wFMCommunicate OK [16:21:30]SAM_PROTO_GetShiftState done [16:21:30]FM_GetShiftState done [16:21:30]req_shift_opened done [16:21:30]requested_item shift.open_date is exist - process it [16:21:30]req_shift_open_date [16:21:30]req_shift_open_date done [16:21:30]produce_requested_data done [16:21:30]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115427,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:21:30]process_action_free close_receipt [16:21:30]json_value_free [16:21:30]json_value_free done [16:21:30]process_json_proto returns [16:21:30]Send response to host [16:21:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115427,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:21:30]free response buf [16:21:30]execute_script done [16:21:30]execute_script returns [16:21:30]free content buf [16:21:30]Sock 9.Close socket [16:21:30]Sock 9.Thread stoped [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:21]accept exits with 8 [16:24:21]New connection [16:24:21]New thread 3066682724 created [16:24:21]Thread 3066826084 joined [16:24:21]Waiting for new connection... [16:24:21] Sock 8.Parse request [16:24:21]Sock 8.Check first char [16:24:21]Sock 8.First char is OK [16:24:21]request: POST /json_proto HTTP/1.0 [16:24:21]Method: POST [16:24:21]URL: /json_proto [16:24:21]Method is POST - this is cgi request [16:24:21]url: /json_proto [16:24:21]query_string will be loaded in cgi processing [16:24:21]execute_cgi json_proto POST (null) [16:24:21]execute_cgi path=json_proto method=POST [16:24:21]POST find Content-Length [16:24:21]Host: 172.17.41.136:8080 [16:24:21]Content-Length: 647 [16:24:21]Content-Type: application/json [16:24:21] [16:24:21]POST finish read [16:24:21]Found Content-Length = 647 [16:24:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343868", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:21]execute_script... [16:24:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343868", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:21]POST & json_proto [16:24:21]process_json_proto [16:24:21]json parsed OK: [16:24:21]protocol is kg_v1.0 [16:24:21]action value=close_receipt [16:24:21]process_action close_receipt [16:24:21]cmd_close_receipt [16:24:21]MH_GetDate [16:24:21]Write to MH i2c: F0 00 00 B6 18 BD [16:24:21]Write i2c OK [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: F0 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: F0 09 00 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: F0 09 00 B6 18 00 B7 44 F0 66 1B D0 5A 64 C0 [16:24:21]GetLastDocTimeStamp 1727022088 [16:24:21]current date 1727022263 [16:24:21]FM_GetShiftState [16:24:21]SAM_PROTO_GetShiftState [16:24:21]wFMCommunicate request_size=4 [16:24:21]MH_SAM_APDU [16:24:21]CAPDU: 80 13 01 00 [16:24:21]Write to MH i2c: E2 08 00 B7 18 80 13 01 00 00 00 00 00 4C [16:24:21]Write i2c OK [16:24:21]MH_I2C_Read... [16:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:21]Read from MH i2c: E2 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: E2 0E 00 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: E2 0E 00 B7 18 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 65 [16:24:21]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:24:21]wFMCommunicate OK [16:24:21]SAM_PROTO_GetShiftState done [16:24:21]FM_GetShiftState done [16:24:21]opened in 1726965840 [16:24:21]opened+sec_in_day 1727052240 [16:24:21]quantity*price = 13000 [16:24:21]sum+1 = 13001 [16:24:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 146 22.09.2024 16:24 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115428 ФПД: 268265380319483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T162423&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115428&fm=268265380319483&tin=02508201610067®Number=0000000000091831&sum=13000 0 [16:24:22]StoreToDocumentArchive [16:24:22]shift 471 fd 115428 [16:24:22]save to /storage/0471/doc_00115428 [16:24:22]save last doc name /storage/0471/doc_00115428 to /storage/kkm_last_doc_name [16:24:22]save OK [16:24:22]Clear old archive folders... [16:24:22]ProcessDocumentItem done err = 0, tmpTLVsize=272 [16:24:22]tlvbuf is 01C1A990 [16:24:22]SAM_PROTO_ClearQueue [16:24:22]wFMCommunicate request_size=4 [16:24:22]MH_SAM_APDU [16:24:22]CAPDU: 80 09 00 00 [16:24:22]Write to MH i2c: E2 08 00 C4 18 80 09 00 00 00 00 00 00 4E [16:24:22]Write i2c OK [16:24:22]MH_I2C_Read... [16:24:22]Read from MH i2c: E2 [16:24:22]MH_I2C_Read... [16:24:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:22]Read from MH i2c: E2 03 00 [16:24:22]MH_I2C_Read... [16:24:22]Read from MH i2c: E2 03 00 C4 18 00 90 00 50 [16:24:22]RAPDU: 90 00 [16:24:22]wFMCommunicate OK [16:24:22]SAM_PROTO_ClearQueue done [16:24:22]KKMCreateOFDPacket [16:24:22]OFDProtocolAddRootSTLVToBuf [16:24:22]FM_MakeSignedData [16:24:22]FM_MakeSignedData [16:24:22]SAM_PROTO_SignData [16:24:22]wFMCommunicate request_size=4 [16:24:22]MH_SAM_APDU [16:24:22]CAPDU: 80 0D 01 02 [16:24:22]Write to MH i2c: E2 08 00 C5 18 80 0D 01 02 00 00 00 00 56 [16:24:22]Write i2c OK [16:24:22]MH_I2C_Read... [16:24:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:22]Read from MH i2c: E2 [16:24:22]MH_I2C_Read... [16:24:22]Read from MH i2c: E2 03 00 [16:24:22]MH_I2C_Read... [16:24:22]Read from MH i2c: E2 03 00 C5 18 00 90 00 51 [16:24:22]RAPDU: 90 00 [16:24:22]wFMCommunicate OK [16:24:22]wFMCommunicate request_size=255 [16:24:22]MH_SAM_APDU [16:24:22]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 B7 44 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [16:24:22]Write to MH i2c: E2 02 01 C6 18 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 B7 44 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 AC [16:24:22]Write i2c OK [16:24:22]MH_I2C_Read... [16:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:22]Read from MH i2c: E2 [16:24:22]MH_I2C_Read... [16:24:22]Read from MH i2c: E2 03 00 [16:24:22]MH_I2C_Read... [16:24:22]Read from MH i2c: E2 03 00 C6 18 00 90 00 52 [16:24:22]RAPDU: 90 00 [16:24:22]wFMCommunicate OK [16:24:22]wFMCommunicate request_size=31 [16:24:22]MH_SAM_APDU [16:24:22]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 33 30 10 04 04 00 E4 C2 01 00 35 04 06 00 F3 FC 66 B3 10 FB [16:24:22]Write to MH i2c: E2 22 00 C7 18 80 0D 02 02 1A 00 30 30 38 37 31 38 33 30 10 04 04 00 E4 C2 01 00 35 04 06 00 F3 FC 66 B3 10 FB 00 00 39 [16:24:22]Write i2c OK [16:24:22]MH_I2C_Read... [16:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:22]Read from MH i2c: E2 [16:24:22]MH_I2C_Read... [16:24:22]Read from MH i2c: E2 03 00 [16:24:22]MH_I2C_Read... [16:24:22]Read from MH i2c: E2 03 00 C7 18 00 90 00 53 [16:24:22]RAPDU: 90 00 [16:24:22]wFMCommunicate OK [16:24:22]wFMCommunicate request_size=4 [16:24:22]MH_SAM_APDU [16:24:22]CAPDU: 80 0D 03 02 [16:24:22]Write to MH i2c: E2 08 00 C8 18 80 0D 03 02 00 00 00 00 5B [16:24:22]Write i2c OK [16:24:22]MH_I2C_Read... [16:24:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:22]Read from MH i2c: E2 [16:24:22]MH_I2C_Read... [16:24:22]Read from MH i2c: E2 0B 00 [16:24:22]MH_I2C_Read... [16:24:22]Read from MH i2c: E2 0B 00 C8 18 00 44 5E 2C 3C 55 92 5B CA 90 00 72 [16:24:22]RAPDU: 44 5E 2C 3C 55 92 5B CA 90 00 [16:24:22]wFMCommunicate OK [16:24:22]SAM_PROTO_SignData done [16:24:22]FM_MakeSignedData done [16:24:22]CreateOFDProtocolMessage [16:24:22]wFMCommunicate request_size=4 [16:24:22]MH_SAM_APDU [16:24:22]CAPDU: 80 11 00 00 [16:24:22]Write to MH i2c: E2 08 00 C9 18 80 11 00 00 00 00 00 00 5B [16:24:22]Write i2c OK [16:24:22]MH_I2C_Read... [16:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:22]Read from MH i2c: E2 [16:24:22]MH_I2C_Read... [16:24:22]Read from MH i2c: E2 17 00 [16:24:22]MH_I2C_Read... [16:24:22]Read from MH i2c: E2 17 00 C9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A9 [16:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:24:22]wFMCommunicate OK [16:24:22]CreateOFDProtocolMessage done [16:24:22]OFDSenderStorePacket 115428 [16:24:22]StoreOFDPacket docnum=115428 [16:24:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 7A B0 1C 01 79 3F 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 B7 44 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E4 C2 01 00 35 04 06 00 F3 FC 66 B3 10 FB 44 5E 2C 3C 55 92 5B CA [16:24:22]CheckFolder [16:24:22]dirname=/storage/ofd_packets [16:24:22]CheckFolder done [16:24:22]ProducePacketName [16:24:22]name=ofd_packets/00115428 [16:24:22]NVStorageSaveData ofd_packets/00115428 [16:24:22]File name is /storage/ofd_packets/00115428 [16:24:22]Write 322 bytes [16:24:22]NVStorageSaveData done [16:24:22]OFDSenderStorePacket done [16:24:22]KKMCreateOFDPacket done [16:24:22]NVStorageSaveData kkm_last_timestamp [16:24:22]File name is /storage/kkm_last_timestamp [16:24:22]Write 4 bytes [16:24:22]NVStorageSaveData done [16:24:22]ExternCall_PrintAddStr [16:24:22]wPrintStart [16:24:22]Write to MH i2c: 01 00 00 CA 18 E2 [16:24:22]Write i2c OK [16:24:22]MH_I2C_Read... [16:24:22]Read from MH i2c: 01 [16:24:22]MH_I2C_Read... [16:24:22]Read from MH i2c: 01 07 00 [16:24:22]MH_I2C_Read... [16:24:22]Read from MH i2c: 01 07 00 CA 18 00 00 00 00 00 FF 0F F7 [16:24:22]RasterBufferAndPrint [16:24:22]line Счет N : (3)343868 [16:24:22]line ИНН: 02508201610067 [16:24:22]line Контрольно-Кассовый Чек [16:24:22]line ПРОДАЖА [16:24:22]line Товар: 47011656 [16:24:22]line Водка Пшеничная 0,1л [16:24:22]line 2.000 * 65.00 [16:24:22]line = 130.00 [16:24:22]line НДС 12% НСП 1% [16:24:22]line > о реализуемом товаре [16:24:22]line ИТОГО: 130.00 [16:24:22]line НСП 1% : 1.15 [16:24:22]line НДС 12% : 13.80 [16:24:22]line Наличными: 130.00 [16:24:22]line Безнал.: 0.00 [16:24:22]line Место: АЗС № 90 "Партнер Нефть" [16:24:22]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:24:22]line СНО: Общий режим [16:24:22]line Чек 146 22.09.2024 16:24 [16:24:22]line Смена: 471 ФФД: 1.0 [16:24:22]line ЗНМ: 0300000120 [16:24:22]line РНМ: 0000000000091831 [16:24:22]line Версия ККМ: 001 [16:24:22]line ФМ: 0000000000871830 [16:24:22]line ФД: 115428 [16:24:22]line ФПД: 268265380319483 [16:24:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T162423&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115428&fm=268265380319483&tin=02508201610067®Number=0000000000091831&sum=13000 [16:24:23]line 0 [16:24:23]OFD Sender: Processing packet 115428 [packets to send 481, broken 480] [16:24:23]ProducePacketName [16:24:23]name=ofd_packets/00115428 [16:24:23]OFD Sender: To server: pG, [16:24:23]CommunicateWithHost lk.salyk.kg:30040 [16:24:23]ConnectInit lk.salyk.kg [16:24:23]written 0, free lines is 4095 [16:24:23]Connected sock=10 [16:24:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 7A B0 1C 01 79 3F 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 B7 44 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E4 C2 01 00 35 04 06 00 F3 FC 66 B3 10 FB 44 5E 2C 3C 55 92 5B CA [16:24:23]Write to MH i2c: 01 00 00 F1 18 09 [16:24:23]Write i2c OK [16:24:23]MH_I2C_Read... [16:24:23]Read from MH i2c: 01 [16:24:23]MH_I2C_Read... [16:24:23]Read from MH i2c: 01 07 00 [16:24:23]MH_I2C_Read... [16:24:23]Read from MH i2c: 01 07 00 F1 18 00 00 00 00 00 A2 0C BE [16:24:23]RasterBufferAndPrint [16:24:23]line [16:24:23]line [16:24:23]line [16:24:23]line [16:24:23]line [16:24:23]written 0, free lines is 3238 [16:24:23]MH_Cut [16:24:23]Write to MH i2c: D1 01 00 F8 18 01 E2 [16:24:23]Write i2c OK [16:24:23]MH_I2C_Read... [16:24:23]Read from MH i2c: D1 [16:24:23]MH_I2C_Read... [16:24:23]Read from MH i2c: D1 01 00 [16:24:23]MH_I2C_Read... [16:24:23]Read from MH i2c: D1 01 00 F8 18 00 E1 [16:24:23]Write to MH i2c: 01 00 00 F9 18 11 [16:24:23]Write i2c OK [16:24:23]MH_I2C_Read... [16:24:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 7D 4B 47 00 56 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 31 38 33 30 10 04 04 00 E4 C2 01 00 F4 03 04 00 FC E9 EF 66 B6 04 01 00 00 C5 E9 D3 CB BB 5C 9B 46 [16:24:23]CommunicateWithHost err = 0 [16:24:23]CheckOFDResponse [16:24:23]1017 (14) - 77093643461234 [16:24:23]1041 (16) - 0000000000871830 [16:24:23]1040 (4) - 115428 [16:24:23]1012 (4) - 22.09.2024 09:57 [16:24:23]1206 (1) - 0 [16:24:23]OFD Sender: Remove packet 115428 [16:24:23]ProducePacketName [16:24:23]name=ofd_packets/00115428 [16:24:23]NVStorageDeleteData [16:24:24]OFD Sender: No OFD packet to send [16:24:24]*** Cut start [16:24:24]*** Partial cut [16:24:24]*** CUTSNS_PIN = 1 [16:24:24]*** CUTSNS_PIN = 0 [16:24:25]*** Brake cut motor [16:24:25]Read from MH i2c: 01 [16:24:25]MH_I2C_Read... [16:24:25]*** Stop cut motor [16:24:25]*** Cut end [16:24:25]Read from MH i2c: 01 07 00 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: 01 07 00 F9 18 00 00 00 00 00 FF 0F 26 [16:24:25]process_action close_receipt done [16:24:25]requested_data is exist [16:24:25]produce_requested_data [16:24:25]requested_item fm.sn is exist - process it [16:24:25]wFMCommunicate request_size=4 [16:24:25]MH_SAM_APDU [16:24:25]CAPDU: 80 11 00 00 [16:24:25]Write to MH i2c: E2 08 00 FA 18 80 11 00 00 00 00 00 00 8C [16:24:25]Write i2c OK [16:24:25]MH_I2C_Read... [16:24:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:25]Read from MH i2c: E2 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 17 00 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 17 00 FA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 DA [16:24:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:24:25]wFMCommunicate OK [16:24:25]requested_item fd.num is exist - process it [16:24:25]SAM_PROTO_GetFieldsCounters [16:24:25]wFMCommunicate request_size=4 [16:24:25]MH_SAM_APDU [16:24:25]CAPDU: 80 13 00 00 [16:24:25]Write to MH i2c: E2 08 00 FB 18 80 13 00 00 00 00 00 00 8F [16:24:25]Write i2c OK [16:24:25]MH_I2C_Read... [16:24:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:25]Read from MH i2c: E2 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 62 00 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 62 00 FB 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E4 C2 01 00 0E 04 04 00 D7 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 DD [16:24:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E4 C2 01 00 0E 04 04 00 D7 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 [16:24:25]wFMCommunicate OK [16:24:25]SAM_PROTO_GetFieldsCounters done [16:24:25]requested_item shift.num is exist - process it [16:24:25]requested_item shift.opened is exist - process it [16:24:25]req_shift_opened [16:24:25]FM_GetShiftState [16:24:25]SAM_PROTO_GetShiftState [16:24:25]wFMCommunicate request_size=4 [16:24:25]MH_SAM_APDU [16:24:25]CAPDU: 80 13 01 00 [16:24:25]Write to MH i2c: E2 08 00 FC 18 80 13 01 00 00 00 00 00 91 [16:24:25]Write i2c OK [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 [16:24:25]MH_I2C_Read... [16:24:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:25]Read from MH i2c: E2 0E 00 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 0E 00 FC 18 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 AA [16:24:25]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:24:25]wFMCommunicate OK [16:24:25]SAM_PROTO_GetShiftState done [16:24:25]FM_GetShiftState done [16:24:25]req_shift_opened done [16:24:25]requested_item shift.open_date is exist - process it [16:24:25]req_shift_open_date [16:24:25]req_shift_open_date done [16:24:25]produce_requested_data done [16:24:25]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115428,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:24:25]process_action_free close_receipt [16:24:25]json_value_free [16:24:25]json_value_free done [16:24:25]process_json_proto returns [16:24:25]Send response to host [16:24:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115428,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:24:25]free response buf [16:24:25]execute_script done [16:24:25]execute_script returns [16:24:25]free content buf [16:24:25]Sock 8.Close socket [16:24:25]Sock 8.Thread stoped [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]accept exits with 9 [16:25:09]New connection [16:25:09]New thread 3066826084 created [16:25:09]Thread 3066682724 joined [16:25:09]Waiting for new connection... [16:25:09] Sock 9.Parse request [16:25:09]Sock 9.Check first char [16:25:09]Sock 9.First char is OK [16:25:09]request: POST /json_proto HTTP/1.0 [16:25:09]Method: POST [16:25:09]URL: /json_proto [16:25:09]Method is POST - this is cgi request [16:25:09]url: /json_proto [16:25:09]query_string will be loaded in cgi processing [16:25:09]execute_cgi json_proto POST (null) [16:25:09]execute_cgi path=json_proto method=POST [16:25:09]POST find Content-Length [16:25:09]Host: 172.17.41.136:8080 [16:25:09]Content-Length: 785 [16:25:09]Content-Type: application/json [16:25:09] [16:25:09]POST finish read [16:25:09]Found Content-Length = 785 [16:25:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343869", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.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" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:09]execute_script... [16:25:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343869", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.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" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:09]POST & json_proto [16:25:09]process_json_proto [16:25:09]json parsed OK: [16:25:09]protocol is kg_v1.0 [16:25:09]action value=close_receipt [16:25:09]process_action close_receipt [16:25:09]cmd_close_receipt [16:25:09]MH_GetDate [16:25:09]Write to MH i2c: F0 00 00 FD 18 04 [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: F0 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: F0 09 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: F0 09 00 FD 18 00 E7 44 F0 66 1B D0 5A 64 37 [16:25:09]GetLastDocTimeStamp 1727022263 [16:25:09]current date 1727022311 [16:25:09]FM_GetShiftState [16:25:09]SAM_PROTO_GetShiftState [16:25:09]wFMCommunicate request_size=4 [16:25:09]MH_SAM_APDU [16:25:09]CAPDU: 80 13 01 00 [16:25:09]Write to MH i2c: E2 08 00 FE 18 80 13 01 00 00 00 00 00 93 [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:09]Read from MH i2c: E2 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 0E 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 0E 00 FE 18 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 AC [16:25:09]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:25:09]wFMCommunicate OK [16:25:09]SAM_PROTO_GetShiftState done [16:25:09]FM_GetShiftState done [16:25:09]opened in 1726965840 [16:25:09]opened+sec_in_day 1727052240 [16:25:09]quantity*price = 15600 [16:25:09]sum+1 = 15601 [16:25:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 156.00 НСП 1% : 1.38 НДС 12% : 16.57 Наличными: 0.00 Безнал.: 156.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 147 22.09.2024 16:25 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115429 ФПД: 198075080159332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T162511&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115429&fm=198075080159332&tin=02508201610067®Number=0000000000091831&sum=15600 0 [16:25:10]StoreToDocumentArchive [16:25:10]shift 471 fd 115429 [16:25:10]save to /storage/0471/doc_00115429 [16:25:10]save last doc name /storage/0471/doc_00115429 to /storage/kkm_last_doc_name [16:25:10]save OK [16:25:10]Clear old archive folders... [16:25:10]ProcessDocumentItem done err = 0, tmpTLVsize=276 [16:25:10]tlvbuf is 01C2FF40 [16:25:10]SAM_PROTO_ClearQueue [16:25:10]wFMCommunicate request_size=4 [16:25:10]MH_SAM_APDU [16:25:10]CAPDU: 80 09 00 00 [16:25:10]Write to MH i2c: E2 08 00 0B 19 80 09 00 00 00 00 00 00 96 [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:10]Read from MH i2c: E2 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 03 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 03 00 0B 19 00 90 00 98 [16:25:10]RAPDU: 90 00 [16:25:10]wFMCommunicate OK [16:25:10]SAM_PROTO_ClearQueue done [16:25:10]KKMCreateOFDPacket [16:25:10]OFDProtocolAddRootSTLVToBuf [16:25:10]FM_MakeSignedData [16:25:10]FM_MakeSignedData [16:25:10]SAM_PROTO_SignData [16:25:10]wFMCommunicate request_size=4 [16:25:10]MH_SAM_APDU [16:25:10]CAPDU: 80 0D 01 02 [16:25:10]Write to MH i2c: E2 08 00 0C 19 80 0D 01 02 00 00 00 00 9E [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:10]Read from MH i2c: E2 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 03 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 03 00 0C 19 00 90 00 99 [16:25:10]RAPDU: 90 00 [16:25:10]wFMCommunicate OK [16:25:10]wFMCommunicate request_size=255 [16:25:10]MH_SAM_APDU [16:25:10]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 E7 44 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 [16:25:10]Write to MH i2c: E2 02 01 0D 19 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 E7 44 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 00 00 EB [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:10]Read from MH i2c: E2 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 03 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 03 00 0D 19 00 90 00 9A [16:25:10]RAPDU: 90 00 [16:25:10]wFMCommunicate OK [16:25:10]wFMCommunicate request_size=35 [16:25:10]MH_SAM_APDU [16:25:10]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E5 C2 01 00 35 04 06 00 B4 25 F2 CA B0 64 [16:25:10]Write to MH i2c: E2 26 00 0E 19 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E5 C2 01 00 35 04 06 00 B4 25 F2 CA B0 64 00 00 E0 [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:10]Read from MH i2c: E2 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 03 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 03 00 0E 19 00 90 00 9B [16:25:10]RAPDU: 90 00 [16:25:10]wFMCommunicate OK [16:25:10]wFMCommunicate request_size=4 [16:25:10]MH_SAM_APDU [16:25:10]CAPDU: 80 0D 03 02 [16:25:10]Write to MH i2c: E2 08 00 0F 19 80 0D 03 02 00 00 00 00 A3 [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:10]Read from MH i2c: E2 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 0B 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 0B 00 0F 19 00 58 00 A5 5F 71 A5 C7 D6 90 00 B3 [16:25:10]RAPDU: 58 00 A5 5F 71 A5 C7 D6 90 00 [16:25:10]wFMCommunicate OK [16:25:10]SAM_PROTO_SignData done [16:25:10]FM_MakeSignedData done [16:25:10]CreateOFDProtocolMessage [16:25:10]wFMCommunicate request_size=4 [16:25:10]MH_SAM_APDU [16:25:10]CAPDU: 80 11 00 00 [16:25:10]Write to MH i2c: E2 08 00 10 19 80 11 00 00 00 00 00 00 A3 [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:10]Read from MH i2c: E2 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 17 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 17 00 10 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F1 [16:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:25:10]wFMCommunicate OK [16:25:10]CreateOFDProtocolMessage done [16:25:10]OFDSenderStorePacket 115429 [16:25:10]StoreOFDPacket docnum=115429 [16:25:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 FB 2C 20 01 13 A7 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 E7 44 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E5 C2 01 00 35 04 06 00 B4 25 F2 CA B0 64 58 00 A5 5F 71 A5 C7 D6 [16:25:10]CheckFolder [16:25:10]dirname=/storage/ofd_packets [16:25:10]CheckFolder done [16:25:10]ProducePacketName [16:25:10]name=ofd_packets/00115429 [16:25:10]NVStorageSaveData ofd_packets/00115429 [16:25:10]File name is /storage/ofd_packets/00115429 [16:25:10]Write 326 bytes [16:25:10]NVStorageSaveData done [16:25:10]OFDSenderStorePacket done [16:25:10]KKMCreateOFDPacket done [16:25:10]NVStorageSaveData kkm_last_timestamp [16:25:10]File name is /storage/kkm_last_timestamp [16:25:10]Write 4 bytes [16:25:10]NVStorageSaveData done [16:25:10]ExternCall_PrintAddStr [16:25:10]wPrintStart [16:25:10]Write to MH i2c: 01 00 00 11 19 2A [16:25:10]OFD Sender: Processing packet 115429 [packets to send 481, broken 480] [16:25:10]ProducePacketName [16:25:10]name=ofd_packets/00115429 [16:25:10]OFD Sender: To server: pG, [16:25:10]CommunicateWithHost lk.salyk.kg:30040 [16:25:10]ConnectInit lk.salyk.kg [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: 01 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: 01 07 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: 01 07 00 11 19 00 00 00 00 00 FF 0F 3F [16:25:10]RasterBufferAndPrint [16:25:10]line Счет N : (3)343869 [16:25:10]line ИНН: 02508201610067 [16:25:10]line Контрольно-Кассовый Чек [16:25:10]line ПРОДАЖА [16:25:10]line Товар: 48742245 [16:25:10]line Сигареты Parliament Silver Blue [16:25:10]line 1.000 * 156.00 [16:25:10]line = 156.00 [16:25:10]line НДС 12% НСП 1% [16:25:10]line > о реализуемом товаре [16:25:10]line ИТОГО: 156.00 [16:25:10]line НСП 1% : 1.38 [16:25:10]line НДС 12% : 16.57 [16:25:10]line Наличными: 0.00 [16:25:10]line Безнал.: 156.00 [16:25:10]line Место: АЗС № 90 "Партнер Нефть" [16:25:10]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:25:10]line СНО: Общий режим [16:25:10]line Чек 147 22.09.2024 16:25 [16:25:10]line Смена: 471 ФФД: 1.0 [16:25:10]line ЗНМ: 0300000120 [16:25:10]line РНМ: 0000000000091831 [16:25:10]line Версия ККМ: 001 [16:25:10]line Платежная система: O! деньги [16:25:10]line ФМ: 0000000000871830 [16:25:10]line ФД: 115429 [16:25:10]line ФПД: 198075080159332 [16:25:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T162511&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115429&fm=198075080159332&tin=02508201610067®Number=0000000000091831&sum=15600 [16:25:10]line 0 [16:25:10]written 0, free lines is 4095 [16:25:11]Connected sock=10 [16:25:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 FB 2C 20 01 13 A7 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 E7 44 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E5 C2 01 00 35 04 06 00 B4 25 F2 CA B0 64 58 00 A5 5F 71 A5 C7 D6 [16:25:11]Write to MH i2c: 01 00 00 3B 19 54 [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: 01 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: 01 07 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: 01 07 00 3B 19 00 00 00 00 00 54 0C BB [16:25:11]RasterBufferAndPrint [16:25:11]line [16:25:11]line [16:25:11]line [16:25:11]line [16:25:11]line [16:25:11]written 0, free lines is 3163 [16:25:11]MH_Cut [16:25:11]Write to MH i2c: D1 01 00 42 19 01 2D [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: D1 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: D1 01 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: D1 01 00 42 19 00 2C [16:25:11]Write to MH i2c: 01 00 00 43 19 5C [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 38 1F 47 00 30 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E5 C2 01 00 F4 03 04 00 2C EA EF 66 B6 04 01 00 00 0F 59 68 AC 01 2B F7 28 [16:25:11]CommunicateWithHost err = 0 [16:25:11]CheckOFDResponse [16:25:11]1017 (14) - 77093643461234 [16:25:11]1041 (16) - 0000000000871830 [16:25:11]1040 (4) - 115429 [16:25:11]1012 (4) - 22.09.2024 09:58 [16:25:11]1206 (1) - 0 [16:25:11]OFD Sender: Remove packet 115429 [16:25:11]ProducePacketName [16:25:11]name=ofd_packets/00115429 [16:25:11]NVStorageDeleteData [16:25:12]OFD Sender: No OFD packet to send [16:25:12]*** Cut start [16:25:12]*** Partial cut [16:25:12]*** CUTSNS_PIN = 1 [16:25:12]*** CUTSNS_PIN = 0 [16:25:12]*** Brake cut motor [16:25:13]Read from MH i2c: 01 [16:25:13]MH_I2C_Read... [16:25:13]*** Stop cut motor [16:25:13]*** Cut end [16:25:13]Read from MH i2c: 01 07 00 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: 01 07 00 43 19 00 00 00 00 00 FF 0F 71 [16:25:13]process_action close_receipt done [16:25:13]requested_data is exist [16:25:13]produce_requested_data [16:25:13]requested_item fm.sn is exist - process it [16:25:13]wFMCommunicate request_size=4 [16:25:13]MH_SAM_APDU [16:25:13]CAPDU: 80 11 00 00 [16:25:13]Write to MH i2c: E2 08 00 44 19 80 11 00 00 00 00 00 00 D7 [16:25:13]Write i2c OK [16:25:13]MH_I2C_Read... [16:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:13]Read from MH i2c: E2 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: E2 17 00 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: E2 17 00 44 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 25 [16:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:25:13]wFMCommunicate OK [16:25:13]requested_item fd.num is exist - process it [16:25:13]SAM_PROTO_GetFieldsCounters [16:25:13]wFMCommunicate request_size=4 [16:25:13]MH_SAM_APDU [16:25:13]CAPDU: 80 13 00 00 [16:25:13]Write to MH i2c: E2 08 00 45 19 80 13 00 00 00 00 00 00 DA [16:25:13]Write i2c OK [16:25:13]MH_I2C_Read... [16:25:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:13]Read from MH i2c: E2 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: E2 62 00 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: E2 62 00 45 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E5 C2 01 00 0E 04 04 00 D7 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 2C [16:25: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E5 C2 01 00 0E 04 04 00 D7 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 [16:25:13]wFMCommunicate OK [16:25:13]SAM_PROTO_GetFieldsCounters done [16:25:13]requested_item shift.num is exist - process it [16:25:13]requested_item shift.opened is exist - process it [16:25:13]req_shift_opened [16:25:13]FM_GetShiftState [16:25:13]SAM_PROTO_GetShiftState [16:25:13]wFMCommunicate request_size=4 [16:25:13]MH_SAM_APDU [16:25:13]CAPDU: 80 13 01 00 [16:25:13]Write to MH i2c: E2 08 00 46 19 80 13 01 00 00 00 00 00 DC [16:25:13]Write i2c OK [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: E2 [16:25:13]MH_I2C_Read... [16:25:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:13]Read from MH i2c: E2 0E 00 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: E2 0E 00 46 19 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F5 [16:25:13]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:25:13]wFMCommunicate OK [16:25:13]SAM_PROTO_GetShiftState done [16:25:13]FM_GetShiftState done [16:25:13]req_shift_opened done [16:25:13]requested_item shift.open_date is exist - process it [16:25:13]req_shift_open_date [16:25:13]req_shift_open_date done [16:25:13]produce_requested_data done [16:25:13]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115429,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:25:13]process_action_free close_receipt [16:25:13]json_value_free [16:25:13]json_value_free done [16:25:13]process_json_proto returns [16:25:13]Send response to host [16:25:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115429,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:25:13]free response buf [16:25:13]execute_script done [16:25:13]execute_script returns [16:25:13]free content buf [16:25:13]Sock 9.Close socket [16:25:13]Sock 9.Thread stoped [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26: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:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:06]accept exits with 8 [16:31:06]New connection [16:31:06]New thread 3066682724 created [16:31:06]Thread 3066826084 joined [16:31:06]Waiting for new connection... [16:31:06] Sock 8.Parse request [16:31:06]Sock 8.Check first char [16:31:06]Sock 8.First char is OK [16:31:06]request: POST /json_proto HTTP/1.0 [16:31:06]Method: POST [16:31:06]URL: /json_proto [16:31:06]Method is POST - this is cgi request [16:31:06]url: /json_proto [16:31:06]query_string will be loaded in cgi processing [16:31:06]execute_cgi json_proto POST (null) [16:31:06]execute_cgi path=json_proto method=POST [16:31:06]POST find Content-Length [16:31:06]Host: 172.17.41.136:8080 [16:31:06]Content-Length: 914 [16:31:06]Content-Type: application/json [16:31:06] [16:31:06]POST finish read [16:31:06]Found Content-Length = 914 [16:31:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343870", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:06]execute_script... [16: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 : (3)343870", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:06]POST & json_proto [16:31:06]process_json_proto [16:31:06]json parsed OK: [16:31:06]protocol is kg_v1.0 [16:31:06]action value=close_receipt [16:31:06]process_action close_receipt [16:31:06]cmd_close_receipt [16:31:06]MH_GetDate [16:31:06]Write to MH i2c: F0 00 00 47 19 4F [16:31:06]Write i2c OK [16:31:06]MH_I2C_Read... [16:31:06]Read from MH i2c: F0 [16:31:06]MH_I2C_Read... [16:31:06]Read from MH i2c: F0 09 00 [16:31:06]MH_I2C_Read... [16:31:06]Read from MH i2c: F0 09 00 47 19 00 4C 46 F0 66 1B D0 5A 64 E9 [16:31:06]GetLastDocTimeStamp 1727022311 [16:31:06]current date 1727022668 [16:31:06]FM_GetShiftState [16:31:06]SAM_PROTO_GetShiftState [16:31:06]wFMCommunicate request_size=4 [16:31:06]MH_SAM_APDU [16:31:06]CAPDU: 80 13 01 00 [16:31:06]Write to MH i2c: E2 08 00 48 19 80 13 01 00 00 00 00 00 DE [16:31:06]Write i2c OK [16:31:06]MH_I2C_Read... [16:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:06]Read from MH i2c: E2 [16:31:06]MH_I2C_Read... [16:31:06]Read from MH i2c: E2 0E 00 [16:31:06]MH_I2C_Read... [16:31:06]Read from MH i2c: E2 0E 00 48 19 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F7 [16:31:06]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:31:06]wFMCommunicate OK [16:31:06]SAM_PROTO_GetShiftState done [16:31:06]FM_GetShiftState done [16:31:06]opened in 1726965840 [16:31:06]opened+sec_in_day 1727052240 [16:31:06]quantity*price = 5000 [16:31:06]sum+1 = 5001 [16:31:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4631150682851 Нап En Dragon Mojito лайм,клуб ж/б 0,45л 2.000 * 95.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 148 22.09.2024 16:31 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115430 ФПД: 120445571799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T163108&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115430&fm=120445571799&tin=02508201610067®Number=0000000000091831&sum=24000 0 [16:31:07]StoreToDocumentArchive [16:31:07]shift 471 fd 115430 [16:31:07]save to /storage/0471/doc_00115430 [16:31:07]save last doc name /storage/0471/doc_00115430 to /storage/kkm_last_doc_name [16:31:07]save OK [16:31:07]Clear old archive folders... [16:31:07]ProcessDocumentItem done err = 0, tmpTLVsize=395 [16:31:07]tlvbuf is B6D89920 [16:31:07]SAM_PROTO_ClearQueue [16:31:07]wFMCommunicate request_size=4 [16:31:07]MH_SAM_APDU [16:31:07]CAPDU: 80 09 00 00 [16:31:07]Write to MH i2c: E2 08 00 55 19 80 09 00 00 00 00 00 00 E0 [16:31:07]Write i2c OK [16:31:07]MH_I2C_Read... [16:31:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:07]Read from MH i2c: E2 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 55 19 00 90 00 E2 [16:31:07]RAPDU: 90 00 [16:31:07]wFMCommunicate OK [16:31:07]SAM_PROTO_ClearQueue done [16:31:07]KKMCreateOFDPacket [16:31:07]OFDProtocolAddRootSTLVToBuf [16:31:07]FM_MakeSignedData [16:31:07]FM_MakeSignedData [16:31:07]SAM_PROTO_SignData [16:31:07]wFMCommunicate request_size=4 [16:31:07]MH_SAM_APDU [16:31:07]CAPDU: 80 0D 01 02 [16:31:07]Write to MH i2c: E2 08 00 56 19 80 0D 01 02 00 00 00 00 E8 [16:31:07]Write i2c OK [16:31:07]MH_I2C_Read... [16:31:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:07]Read from MH i2c: E2 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 56 19 00 90 00 E3 [16:31:07]RAPDU: 90 00 [16:31:07]wFMCommunicate OK [16:31:07]wFMCommunicate request_size=255 [16:31:07]MH_SAM_APDU [16:31:07]CAPDU: 80 0D 02 02 FA 03 00 8B 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 [16:31:07]Write to MH i2c: E2 02 01 57 19 80 0D 02 02 FA 00 03 00 8B 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 00 00 9A [16:31:07]Write i2c OK [16:31:07]MH_I2C_Read... [16:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:07]Read from MH i2c: E2 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 57 19 00 90 00 E4 [16:31:07]RAPDU: 90 00 [16:31:07]wFMCommunicate OK [16:31:07]wFMCommunicate request_size=154 [16:31:07]MH_SAM_APDU [16:31:07]CAPDU: 80 0D 02 02 95 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 4C 46 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E6 C2 01 00 35 04 06 00 00 1C 0B 1D 92 D7 [16:31:07]Write to MH i2c: E2 9D 00 58 19 80 0D 02 02 95 00 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 4C 46 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E6 C2 01 00 35 04 06 00 00 1C 0B 1D 92 D7 00 00 DD [16:31:07]Write i2c OK [16:31:07]MH_I2C_Read... [16:31:07]OFD Sender: No OFD packet to send [16:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:07]Read from MH i2c: E2 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 58 19 00 90 00 E5 [16:31:07]RAPDU: 90 00 [16:31:07]wFMCommunicate OK [16:31:07]wFMCommunicate request_size=4 [16:31:07]MH_SAM_APDU [16:31:07]CAPDU: 80 0D 03 02 [16:31:07]Write to MH i2c: E2 08 00 59 19 80 0D 03 02 00 00 00 00 ED [16:31:07]Write i2c OK [16:31:07]MH_I2C_Read... [16:31:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:07]Read from MH i2c: E2 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 0B 00 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 0B 00 59 19 00 E7 CC 92 A4 C0 9B 2B DC 90 00 39 [16:31:07]RAPDU: E7 CC 92 A4 C0 9B 2B DC 90 00 [16:31:07]wFMCommunicate OK [16:31:07]SAM_PROTO_SignData done [16:31:07]FM_MakeSignedData done [16:31:07]CreateOFDProtocolMessage [16:31:07]wFMCommunicate request_size=4 [16:31:07]MH_SAM_APDU [16:31:07]CAPDU: 80 11 00 00 [16:31:07]Write to MH i2c: E2 08 00 5A 19 80 11 00 00 00 00 00 00 ED [16:31:07]Write i2c OK [16:31:07]MH_I2C_Read... [16:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:08]Read from MH i2c: E2 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: E2 17 00 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: E2 17 00 5A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3B [16:31:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:31:08]wFMCommunicate OK [16:31:08]CreateOFDProtocolMessage done [16:31:08]OFDSenderStorePacket 115430 [16:31:08]StoreOFDPacket docnum=115430 [16:31:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9F 01 00 00 90 A0 97 01 44 FA 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 4C 46 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E6 C2 01 00 35 04 06 00 00 1C 0B 1D 92 D7 E7 CC 92 A4 C0 9B 2B DC [16:31:08]CheckFolder [16:31:08]dirname=/storage/ofd_packets [16:31:08]CheckFolder done [16:31:08]ProducePacketName [16:31:08]name=ofd_packets/00115430 [16:31:08]NVStorageSaveData ofd_packets/00115430 [16:31:08]File name is /storage/ofd_packets/00115430 [16:31:08]Write 445 bytes [16:31:08]NVStorageSaveData done [16:31:08]OFDSenderStorePacket done [16:31:08]KKMCreateOFDPacket done [16:31:08]NVStorageSaveData kkm_last_timestamp [16:31:08]File name is /storage/kkm_last_timestamp [16:31:08]Write 4 bytes [16:31:08]NVStorageSaveData done [16:31:08]ExternCall_PrintAddStr [16:31:08]wPrintStart [16:31:08]Write to MH i2c: 01 00 00 5B 19 74 [16:31:08]Write i2c OK [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: 01 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: 01 07 00 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: 01 07 00 5B 19 00 00 00 00 00 FF 0F 89 [16:31:08]RasterBufferAndPrint [16:31:08]line Счет N : (3)343870 [16:31:08]line ИНН: 02508201610067 [16:31:08]line Контрольно-Кассовый Чек [16:31:08]line ПРОДАЖА [16:31:08]line Товар: 4700000160358 [16:31:08]line Вода Легенда 1л [16:31:08]line 1.000 * 50.00 [16:31:08]line = 50.00 [16:31:08]line НДС 12% НСП 1% [16:31:08]line > о реализуемом товаре [16:31:08]line Товар: 4631150682851 [16:31:08]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [16:31:08]line 2.000 * 95.00 [16:31:08]line = 190.00 [16:31:08]line НДС 12% НСП 1% [16:31:08]line > о реализуемом товаре [16:31:08]line ИТОГО: 240.00 [16:31:08]line НСП 1% : 2.12 [16:31:08]line НДС 12% : 25.49 [16:31:08]line Наличными: 240.00 [16:31:08]line Безнал.: 0.00 [16:31:08]line Место: АЗС № 90 "Партнер Нефть" [16:31:08]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:31:08]line СНО: Общий режим [16:31:08]line Чек 148 22.09.2024 16:31 [16:31:08]line Смена: 471 ФФД: 1.0 [16:31:08]line ЗНМ: 0300000120 [16:31:08]line РНМ: 0000000000091831 [16:31:08]line Версия ККМ: 001 [16:31:08]line ФМ: 0000000000871830 [16:31:08]line ФД: 115430 [16:31:08]line ФПД: 120445571799 [16:31:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T163108&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115430&fm=120445571799&tin=02508201610067®Number=0000000000091831&sum=24000 [16:31:08]line 0 [16:31:08]OFD Sender: Processing packet 115430 [packets to send 481, broken 480] [16:31:08]ProducePacketName [16:31:08]name=ofd_packets/00115430 [16:31:08]OFD Sender: To server: pG, [16:31:08]CommunicateWithHost lk.salyk.kg:30040 [16:31:08]ConnectInit lk.salyk.kg [16:31:08]written 0, free lines is 4095 [16:31:08]Connected sock=10 [16: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 31 38 33 30 9F 01 00 00 90 A0 97 01 44 FA 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 4C 46 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E6 C2 01 00 35 04 06 00 00 1C 0B 1D 92 D7 E7 CC 92 A4 C0 9B 2B DC [16:31:08]Write to MH i2c: 01 00 00 89 19 A2 [16:31:08]Write i2c OK [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: 01 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: 01 07 00 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: 01 07 00 89 19 00 00 00 00 00 07 0C BC [16:31:08]RasterBufferAndPrint [16:31:08]line [16:31:08]line [16:31:08]line [16:31:08]line [16:31:08]line [16:31:08]written 0, free lines is 3083 [16:31:08]MH_Cut [16:31:08]Write to MH i2c: D1 01 00 90 19 01 7B [16:31:08]Write i2c OK [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: D1 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: D1 01 00 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: D1 01 00 90 19 00 7A [16:31:08]Write to MH i2c: 01 00 00 91 19 AA [16:31:08]Write i2c OK [16:31:08]MH_I2C_Read... [16:31:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 92 83 47 00 55 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E6 C2 01 00 F4 03 04 00 92 EB EF 66 B6 04 01 00 00 4C E1 18 AB 59 87 6E A8 [16:31:08]CommunicateWithHost err = 0 [16:31:08]CheckOFDResponse [16:31:08]1017 (14) - 77093643461234 [16:31:08]1041 (16) - 0000000000871830 [16:31:08]1040 (4) - 115430 [16:31:08]1012 (4) - 22.09.2024 10:04 [16:31:08]1206 (1) - 0 [16:31:08]OFD Sender: Remove packet 115430 [16:31:08]ProducePacketName [16:31:08]name=ofd_packets/00115430 [16:31:08]NVStorageDeleteData [16:31:09]OFD Sender: No OFD packet to send [16:31:10]*** Cut start [16:31:10]*** Partial cut [16:31:10]*** CUTSNS_PIN = 1 [16:31:10]*** CUTSNS_PIN = 0 [16:31:10]*** Brake cut motor [16:31:10]Read from MH i2c: 01 [16:31:10]MH_I2C_Read... [16:31:10]*** Stop cut motor [16:31:10]*** Cut end [16:31:10]Read from MH i2c: 01 07 00 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: 01 07 00 91 19 00 00 00 00 00 FF 0F BF [16:31:10]process_action close_receipt done [16:31:10]requested_data is exist [16:31:10]produce_requested_data [16:31:10]requested_item fm.sn is exist - process it [16:31:10]wFMCommunicate request_size=4 [16:31:10]MH_SAM_APDU [16:31:10]CAPDU: 80 11 00 00 [16:31:10]Write to MH i2c: E2 08 00 92 19 80 11 00 00 00 00 00 00 25 [16:31:10]Write i2c OK [16:31:10]MH_I2C_Read... [16:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:10]Read from MH i2c: E2 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: E2 17 00 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: E2 17 00 92 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 73 [16:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:31:10]wFMCommunicate OK [16:31:10]requested_item fd.num is exist - process it [16:31:10]SAM_PROTO_GetFieldsCounters [16:31:10]wFMCommunicate request_size=4 [16:31:10]MH_SAM_APDU [16:31:10]CAPDU: 80 13 00 00 [16:31:10]Write to MH i2c: E2 08 00 93 19 80 13 00 00 00 00 00 00 28 [16:31:10]Write i2c OK [16:31:10]MH_I2C_Read... [16:31:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:11]Read from MH i2c: E2 [16:31:11]MH_I2C_Read... [16:31:11]Read from MH i2c: E2 62 00 [16:31:11]MH_I2C_Read... [16:31:11]Read from MH i2c: E2 62 00 93 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E6 C2 01 00 0E 04 04 00 D7 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 7E [16:31:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E6 C2 01 00 0E 04 04 00 D7 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 [16:31:11]wFMCommunicate OK [16:31:11]SAM_PROTO_GetFieldsCounters done [16:31:11]requested_item shift.num is exist - process it [16:31:11]requested_item shift.opened is exist - process it [16:31:11]req_shift_opened [16:31:11]FM_GetShiftState [16:31:11]SAM_PROTO_GetShiftState [16:31:11]wFMCommunicate request_size=4 [16:31:11]MH_SAM_APDU [16:31:11]CAPDU: 80 13 01 00 [16:31:11]Write to MH i2c: E2 08 00 94 19 80 13 01 00 00 00 00 00 2A [16:31:11]Write i2c OK [16:31:11]MH_I2C_Read... [16:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:11]Read from MH i2c: E2 [16:31:11]MH_I2C_Read... [16:31:11]Read from MH i2c: E2 0E 00 [16:31:11]MH_I2C_Read... [16:31:11]Read from MH i2c: E2 0E 00 94 19 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 43 [16:31:11]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:31:11]wFMCommunicate OK [16:31:11]SAM_PROTO_GetShiftState done [16:31:11]FM_GetShiftState done [16:31:11]req_shift_opened done [16:31:11]requested_item shift.open_date is exist - process it [16:31:11]req_shift_open_date [16:31:11]req_shift_open_date done [16:31:11]produce_requested_data done [16:31:11]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115430,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:31:11]process_action_free close_receipt [16:31:11]json_value_free [16:31:11]json_value_free done [16:31:11]process_json_proto returns [16:31:11]Send response to host [16:31:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115430,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:31:11]free response buf [16:31:11]execute_script done [16:31:11]execute_script returns [16:31:11]free content buf [16:31:11]Sock 8.Close socket [16:31:11]Sock 8.Thread stoped [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:55]OFD Sender: No OFD packet to send [16:35:00]OFD Sender: No OFD packet to send [16:35:05]OFD Sender: No OFD packet to send [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:23]accept exits with 9 [16:36:23]New connection [16:36:23]New thread 3066826084 created [16:36:23]Thread 3066682724 joined [16:36:23]Waiting for new connection... [16:36:23] Sock 9.Parse request [16:36:23]Sock 9.Check first char [16:36:23]Sock 9.First char is OK [16:36:23]request: POST /json_proto HTTP/1.0 [16:36:23]Method: POST [16:36:23]URL: /json_proto [16:36:23]Method is POST - this is cgi request [16:36:23]url: /json_proto [16:36:23]query_string will be loaded in cgi processing [16:36:23]execute_cgi json_proto POST (null) [16:36:23]execute_cgi path=json_proto method=POST [16:36:23]POST find Content-Length [16:36:23]Host: 172.17.41.136:8080 [16:36:23]Content-Length: 2177 [16:36:23]Content-Type: application/json [16:36:23] [16:36:23]POST finish read [16:36:23]Found Content-Length = 2177 [16:36:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343871", "tax_sys" : 0, "items" : [ { "code": "4607084351378", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 6\u0448\u0442", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 970.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:23]execute_script... [16:36:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343871", "tax_sys" : 0, "items" : [ { "code": "4607084351378", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 6\u0448\u0442", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 970.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:23]POST & json_proto [16:36:23]process_json_proto [16:36:23]json parsed OK: [16:36:23]protocol is kg_v1.0 [16:36:23]action value=close_receipt [16:36:23]process_action close_receipt [16:36:23]cmd_close_receipt [16:36:23]MH_GetDate [16:36:23]Write to MH i2c: F0 00 00 95 19 9D [16:36:23]Write i2c OK [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: F0 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: F0 09 00 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: F0 09 00 95 19 00 8A 47 F0 66 1B D0 5A 64 76 [16:36:23]GetLastDocTimeStamp 1727022668 [16:36:23]current date 1727022986 [16:36:23]FM_GetShiftState [16:36:23]SAM_PROTO_GetShiftState [16:36:23]wFMCommunicate request_size=4 [16:36:23]MH_SAM_APDU [16:36:23]CAPDU: 80 13 01 00 [16:36:23]Write to MH i2c: E2 08 00 96 19 80 13 01 00 00 00 00 00 2C [16:36:23]Write i2c OK [16:36:23]MH_I2C_Read... [16:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:23]Read from MH i2c: E2 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: E2 0E 00 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: E2 0E 00 96 19 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 45 [16:36:23]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:36:23]wFMCommunicate OK [16:36:23]SAM_PROTO_GetShiftState done [16:36:23]FM_GetShiftState done [16:36:23]opened in 1726965840 [16:36:23]opened+sec_in_day 1727052240 [16:36:23]quantity*price = 17500 [16:36:23]sum+1 = 17501 [16:36:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000176448 Сок Piko Pulpy апельсин ПЭТ 1л 1.000 * 170.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000273673 Сок Piko Pulpy красный виноград ПЭТ 1л 1.000 * 175.00 = 175.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007400990 Семечки ДЖИНН Великан 100гр 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000034730018 Кофе Американо (GABB TRADE) 2.000 * 105.00 = 210.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 970.00 НСП 1% : 8.58 НДС 12% : 102.99 Наличными: 970.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 149 22.09.2024 16:36 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115431 ФПД: 276156077585431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T163626&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115431&fm=276156077585431&tin=02508201610067®Number=0000000000091831&sum=97000 0 [16:36:25]StoreToDocumentArchive [16:36:25]shift 471 fd 115431 [16:36:25]save to /storage/0471/doc_00115431 [16:36:25]save last doc name /storage/0471/doc_00115431 to /storage/kkm_last_doc_name [16:36:25]save OK [16:36:25]Clear old archive folders... [16:36:25]ProcessDocumentItem done err = 0, tmpTLVsize=892 [16:36:25]tlvbuf is B6EA20E0 [16:36:25]SAM_PROTO_ClearQueue [16:36:25]wFMCommunicate request_size=4 [16:36:25]MH_SAM_APDU [16:36:25]CAPDU: 80 09 00 00 [16:36:25]Write to MH i2c: E2 08 00 A3 19 80 09 00 00 00 00 00 00 2E [16:36:25]Write i2c OK [16:36:25]MH_I2C_Read... [16:36:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:25]Read from MH i2c: E2 [16:36:25]MH_I2C_Read... [16:36:25]Read from MH i2c: E2 03 00 [16:36:25]MH_I2C_Read... [16:36:25]Read from MH i2c: E2 03 00 A3 19 00 90 00 30 [16:36:25]RAPDU: 90 00 [16:36:25]wFMCommunicate OK [16:36:25]SAM_PROTO_ClearQueue done [16:36:25]KKMCreateOFDPacket [16:36:25]OFDProtocolAddRootSTLVToBuf [16:36:25]FM_MakeSignedData [16:36:25]FM_MakeSignedData [16:36:25]SAM_PROTO_SignData [16:36:25]wFMCommunicate request_size=4 [16:36:25]MH_SAM_APDU [16:36:25]CAPDU: 80 0D 01 02 [16:36:25]Write to MH i2c: E2 08 00 A4 19 80 0D 01 02 00 00 00 00 36 [16:36:25]Write i2c OK [16:36:25]MH_I2C_Read... [16:36:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:25]Read from MH i2c: E2 [16:36:25]MH_I2C_Read... [16:36:25]Read from MH i2c: E2 03 00 [16:36:25]MH_I2C_Read... [16:36:25]Read from MH i2c: E2 03 00 A4 19 00 90 00 31 [16:36:25]RAPDU: 90 00 [16:36:25]wFMCommunicate OK [16:36:25]wFMCommunicate request_size=255 [16:36:25]MH_SAM_APDU [16:36:25]CAPDU: 80 0D 02 02 FA 03 00 7C 03 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 [16:36:25]Write to MH i2c: E2 02 01 A5 19 80 0D 02 02 FA 00 03 00 7C 03 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 00 00 4F [16:36:25]Write i2c OK [16:36:25]MH_I2C_Read... [16:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:25]Read from MH i2c: E2 [16:36:25]MH_I2C_Read... [16:36:25]Read from MH i2c: E2 03 00 [16:36:25]MH_I2C_Read... [16:36:25]Read from MH i2c: E2 03 00 A5 19 00 90 00 32 [16:36:25]RAPDU: 90 00 [16:36:25]wFMCommunicate OK [16:36:25]wFMCommunicate request_size=255 [16:36:25]MH_SAM_APDU [16:36:25]CAPDU: 80 0D 02 02 FA 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 [16:36:25]Write to MH i2c: E2 02 01 A6 19 80 0D 02 02 FA 00 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 00 00 65 [16:36:25]Write i2c OK [16:36:25]MH_I2C_Read... [16:36:25]Read from MH i2c: E2 [16:36:26]MH_I2C_Read... [16:36:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:26]Read from MH i2c: E2 03 00 [16:36:26]MH_I2C_Read... [16:36:26]Read from MH i2c: E2 03 00 A6 19 00 90 00 33 [16:36:26]RAPDU: 90 00 [16:36:26]wFMCommunicate OK [16:36:26]wFMCommunicate request_size=255 [16:36:26]MH_SAM_APDU [16:36:26]CAPDU: 80 0D 02 02 FA 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [16:36:26]Write to MH i2c: E2 02 01 A7 19 80 0D 02 02 FA 00 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 D5 [16:36:26]Write i2c OK [16:36:26]MH_I2C_Read... [16:36:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:26]Read from MH i2c: E2 [16:36:26]MH_I2C_Read... [16:36:26]Read from MH i2c: E2 03 00 [16:36:26]MH_I2C_Read... [16:36:26]Read from MH i2c: E2 03 00 A7 19 00 90 00 34 [16:36:26]RAPDU: 90 00 [16:36:26]wFMCommunicate OK [16:36:26]wFMCommunicate request_size=151 [16:36:26]MH_SAM_APDU [16:36:26]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 5A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 28 00 00 00 00 07 04 06 00 E8 7A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 8A 47 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E7 C2 01 00 35 04 06 00 FB 29 98 E8 34 17 [16:36:26]Write to MH i2c: E2 9A 00 A8 19 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 5A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 28 00 00 00 00 07 04 06 00 E8 7A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 8A 47 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E7 C2 01 00 35 04 06 00 FB 29 98 E8 34 17 00 00 D9 [16:36:26]Write i2c OK [16:36:26]MH_I2C_Read... [16:36:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:26]Read from MH i2c: E2 [16:36:26]MH_I2C_Read... [16:36:26]Read from MH i2c: E2 03 00 [16:36:26]MH_I2C_Read... [16:36:26]Read from MH i2c: E2 03 00 A8 19 00 90 00 35 [16:36:26]RAPDU: 90 00 [16:36:26]wFMCommunicate OK [16:36:26]wFMCommunicate request_size=4 [16:36:26]MH_SAM_APDU [16:36:26]CAPDU: 80 0D 03 02 [16:36:26]Write to MH i2c: E2 08 00 A9 19 80 0D 03 02 00 00 00 00 3D [16:36:26]Write i2c OK [16:36:26]MH_I2C_Read... [16:36:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:26]Read from MH i2c: E2 [16:36:26]MH_I2C_Read... [16:36:26]Read from MH i2c: E2 0B 00 [16:36:26]MH_I2C_Read... [16:36:26]Read from MH i2c: E2 0B 00 A9 19 00 18 E8 C2 F2 05 99 CC 66 90 00 C2 [16:36:26]RAPDU: 18 E8 C2 F2 05 99 CC 66 90 00 [16:36:26]wFMCommunicate OK [16:36:26]SAM_PROTO_SignData done [16:36:26]FM_MakeSignedData done [16:36:26]CreateOFDProtocolMessage [16:36:26]wFMCommunicate request_size=4 [16:36:26]MH_SAM_APDU [16:36:26]CAPDU: 80 11 00 00 [16:36:26]Write to MH i2c: E2 08 00 AA 19 80 11 00 00 00 00 00 00 3D [16:36:26]Write i2c OK [16:36:26]MH_I2C_Read... [16:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:26]Read from MH i2c: E2 [16:36:26]MH_I2C_Read... [16:36:26]Read from MH i2c: E2 17 00 [16:36:26]MH_I2C_Read... [16:36:26]Read from MH i2c: E2 17 00 AA 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8B [16:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:36:26]wFMCommunicate OK [16:36:26]CreateOFDProtocolMessage done [16:36:26]OFDSenderStorePacket 115431 [16:36:26]StoreOFDPacket docnum=115431 [16:36:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 03 00 00 0C BC 88 03 05 E3 5A 03 01 00 03 00 7C 03 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 28 00 00 00 00 07 04 06 00 E8 7A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 8A 47 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E7 C2 01 00 35 04 06 00 FB 29 98 E8 34 17 18 E8 C2 F2 05 99 CC 66 [16:36:26]CheckFolder [16:36:26]dirname=/storage/ofd_packets [16:36:26]CheckFolder done [16:36:26]ProducePacketName [16:36:26]name=ofd_packets/00115431 [16:36:26]NVStorageSaveData ofd_packets/00115431 [16:36:26]File name is /storage/ofd_packets/00115431 [16:36:26]Write 942 bytes [16:36:26]NVStorageSaveData done [16:36:26]OFDSenderStorePacket done [16:36:26]KKMCreateOFDPacket done [16:36:26]NVStorageSaveData kkm_last_timestamp [16:36:26]File name is /storage/kkm_last_timestamp [16:36:26]Write 4 bytes [16:36:26]NVStorageSaveData done [16:36:26]ExternCall_PrintAddStr [16:36:26]wPrintStart [16:36:26]Write to MH i2c: 01 00 00 AB 19 C4 [16:36:26]Write i2c OK [16:36:26]MH_I2C_Read... [16:36:26]Read from MH i2c: 01 [16:36:26]MH_I2C_Read... [16:36:26]Read from MH i2c: 01 07 00 [16:36:26]MH_I2C_Read... [16:36:26]Read from MH i2c: 01 07 00 AB 19 00 00 00 00 00 FF 0F D9 [16:36:26]RasterBufferAndPrint [16:36:26]line Счет N : (3)343871 [16:36:26]line ИНН: 02508201610067 [16:36:26]line Контрольно-Кассовый Чек [16:36:26]line ПРОДАЖА [16:36:26]line Товар: 4607084351378 [16:36:26]line Бисквит Чоко пай 6шт [16:36:26]line 1.000 * 175.00 [16:36:26]line = 175.00 [16:36:26]line НДС 12% НСП 1% [16:36:26]line > о реализуемом товаре [16:36:26]line Товар: 5449000176448 [16:36:26]line Сок Piko Pulpy апельсин ПЭТ 1л [16:36:26]line 1.000 * 170.00 [16:36:26]line = 170.00 [16:36:26]line НДС 12% НСП 1% [16:36:26]line > о реализуемом товаре [16:36:26]line Товар: 5449000273673 [16:36:26]line Сок Piko Pulpy красный виноград ПЭТ 1л [16:36:26]line 1.000 * 175.00 [16:36:26]line = 175.00 [16:36:26]line НДС 12% НСП 1% [16:36:26]line > о реализуемом товаре [16:36:26]line Товар: 4630007400990 [16:36:26]line Семечки ДЖИНН Великан 100гр [16:36:26]line 1.000 * 120.00 [16:36:26]line = 120.00 [16:36:26]line НДС 12% НСП 1% [16:36:26]line > о реализуемом товаре [16:36:26]line Товар: 4700000160792 [16:36:26]line Снек Курут классический (круглый) [16:36:26]line 2.000 * 60.00 [16:36:26]line = 120.00 [16:36:26]line НДС 12% НСП 1% [16:36:26]line > о реализуемом товаре [16:36:26]line Товар: 2000034730018 [16:36:26]line Кофе Американо (GABB TRADE) [16:36:26]line 2.000 * 105.00 [16:36:26]line = 210.00 [16:36:26]line НДС 12% НСП 1% [16:36:26]line > о реализуемом товаре [16:36:26]line ИТОГО: 970.00 [16:36:26]line НСП 1% : 8.58 [16:36:26]line НДС 12% : 102.99 [16:36:26]line Наличными: 970.00 [16:36:26]line Безнал.: 0.00 [16:36:26]line Место: АЗС № 90 "Партнер Нефть" [16:36:26]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:36:26]line СНО: Общий режим [16:36:26]line Чек 149 22.09.2024 16:36 [16:36:26]line Смена: 471 ФФД: 1.0 [16:36:26]line ЗНМ: 0300000120 [16:36:26]line РНМ: 0000000000091831 [16:36:26]line Версия ККМ: 001 [16:36:26]line ФМ: 0000000000871830 [16:36:26]line ФД: 115431 [16:36:26]line ФПД: 276156077585431 [16:36:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T163626&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115431&fm=276156077585431&tin=02508201610067®Number=0000000000091831&sum=97000 [16:36:26]OFD Sender: Processing packet 115431 [packets to send 481, broken 480] [16:36:26]ProducePacketName [16:36:26]name=ofd_packets/00115431 [16:36:26]OFD Sender: To server: pG, [16:36:26]CommunicateWithHost lk.salyk.kg:30040 [16:36:26]ConnectInit lk.salyk.kg [16:36:26]line 0 [16:36:26]written 0, free lines is 4095 [16:36:27]Connected sock=10 [16:36:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 03 00 00 0C BC 88 03 05 E3 5A 03 01 00 03 00 7C 03 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 28 00 00 00 00 07 04 06 00 E8 7A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 8A 47 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E7 C2 01 00 35 04 06 00 FB 29 98 E8 34 17 18 E8 C2 F2 05 99 CC 66 [16:36:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 BB 22 47 00 99 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E7 C2 01 00 F4 03 04 00 D0 EC EF 66 B6 04 01 00 00 3A FB 49 88 89 56 7E 98 [16:36:27]CommunicateWithHost err = 0 [16:36:27]CheckOFDResponse [16:36:27]1017 (14) - 77093643461234 [16:36:27]1041 (16) - 0000000000871830 [16:36:27]1040 (4) - 115431 [16:36:27]1012 (4) - 22.09.2024 10:09 [16:36:27]1206 (1) - 0 [16:36:27]OFD Sender: Remove packet 115431 [16:36:27]ProducePacketName [16:36:27]name=ofd_packets/00115431 [16:36:27]NVStorageDeleteData [16:36:27]Write to MH i2c: 01 00 00 F5 19 0E [16:36:27]Write i2c OK [16:36:27]MH_I2C_Read... [16:36:27]Read from MH i2c: 01 [16:36:27]MH_I2C_Read... [16:36:27]Read from MH i2c: 01 07 00 [16:36:27]MH_I2C_Read... [16:36:27]Read from MH i2c: 01 07 00 F5 19 00 00 00 00 00 B3 09 D1 [16:36:27]RasterBufferAndPrint [16:36:27]line [16:36:27]line [16:36:27]line [16:36:27]line [16:36:27]line [16:36:27]written 0, free lines is 2489 [16:36:27]MH_Cut [16:36:27]Write to MH i2c: D1 01 00 FC 19 01 E7 [16:36:27]Write i2c OK [16:36:27]MH_I2C_Read... [16:36:27]Read from MH i2c: D1 [16:36:27]MH_I2C_Read... [16:36:27]Read from MH i2c: D1 01 00 [16:36:27]MH_I2C_Read... [16:36:27]Read from MH i2c: D1 01 00 FC 19 00 E6 [16:36:27]Write to MH i2c: 01 00 00 FD 19 16 [16:36:27]Write i2c OK [16:36:27]MH_I2C_Read... [16:36:28]OFD Sender: No OFD packet to send [16:36:29]*** Cut start [16:36:29]*** Partial cut [16:36:29]*** CUTSNS_PIN = 1 [16:36:29]*** CUTSNS_PIN = 0 [16:36:30]*** Brake cut motor [16:36:30]Read from MH i2c: 01 [16:36:30]MH_I2C_Read... [16:36:30]*** Stop cut motor [16:36:30]*** Cut end [16:36:30]Read from MH i2c: 01 07 00 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: 01 07 00 FD 19 00 00 00 00 00 FF 0F 2B [16:36:30]process_action close_receipt done [16:36:30]requested_data is exist [16:36:30]produce_requested_data [16:36:30]requested_item fm.sn is exist - process it [16:36:30]wFMCommunicate request_size=4 [16:36:30]MH_SAM_APDU [16:36:30]CAPDU: 80 11 00 00 [16:36:30]Write to MH i2c: E2 08 00 FE 19 80 11 00 00 00 00 00 00 91 [16:36:30]Write i2c OK [16:36:30]MH_I2C_Read... [16:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:30]Read from MH i2c: E2 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: E2 17 00 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: E2 17 00 FE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 DF [16:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:36:30]wFMCommunicate OK [16:36:30]requested_item fd.num is exist - process it [16:36:30]SAM_PROTO_GetFieldsCounters [16:36:30]wFMCommunicate request_size=4 [16:36:30]MH_SAM_APDU [16:36:30]CAPDU: 80 13 00 00 [16:36:30]Write to MH i2c: E2 08 00 FF 19 80 13 00 00 00 00 00 00 94 [16:36:30]Write i2c OK [16:36:30]MH_I2C_Read... [16:36:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:30]Read from MH i2c: E2 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: E2 62 00 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: E2 62 00 FF 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E7 C2 01 00 0E 04 04 00 D7 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 EE [16:36:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E7 C2 01 00 0E 04 04 00 D7 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 [16:36:30]wFMCommunicate OK [16:36:30]SAM_PROTO_GetFieldsCounters done [16:36:30]requested_item shift.num is exist - process it [16:36:30]requested_item shift.opened is exist - process it [16:36:30]req_shift_opened [16:36:30]FM_GetShiftState [16:36:30]SAM_PROTO_GetShiftState [16:36:30]wFMCommunicate request_size=4 [16:36:30]MH_SAM_APDU [16:36:30]CAPDU: 80 13 01 00 [16:36:30]Write to MH i2c: E2 08 00 00 1A 80 13 01 00 00 00 00 00 97 [16:36:30]Write i2c OK [16:36:30]MH_I2C_Read... [16:36:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:30]Read from MH i2c: E2 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: E2 0E 00 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: E2 0E 00 00 1A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B0 [16:36:30]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:36:30]wFMCommunicate OK [16:36:30]SAM_PROTO_GetShiftState done [16:36:30]FM_GetShiftState done [16:36:30]req_shift_opened done [16:36:30]requested_item shift.open_date is exist - process it [16:36:30]req_shift_open_date [16:36:30]req_shift_open_date done [16:36:30]produce_requested_data done [16:36:30]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115431,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:36:30]process_action_free close_receipt [16:36:30]json_value_free [16:36:30]json_value_free done [16:36:30]process_json_proto returns [16:36:30]Send response to host [16:36:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115431,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:36:30]free response buf [16:36:30]execute_script done [16:36:30]execute_script returns [16:36:30]free content buf [16:36:30]Sock 9.Close socket [16:36:30]Sock 9.Thread stoped [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:26]accept exits with 8 [16:37:26]New connection [16:37:26]New thread 3066682724 created [16:37:26]Thread 3066826084 joined [16:37:26]Waiting for new connection... [16:37:26] Sock 8.Parse request [16:37:26]Sock 8.Check first char [16:37:26]Sock 8.First char is OK [16:37:26]request: POST /json_proto HTTP/1.0 [16:37:26]Method: POST [16:37:26]URL: /json_proto [16:37:26]Method is POST - this is cgi request [16:37:26]url: /json_proto [16:37:26]query_string will be loaded in cgi processing [16:37:26]execute_cgi json_proto POST (null) [16:37:26]execute_cgi path=json_proto method=POST [16:37:26]POST find Content-Length [16:37:26]Host: 172.17.41.136:8080 [16:37:26]Content-Length: 836 [16:37:26]Content-Type: application/json [16:37:26] [16:37:26]POST finish read [16:37:26]Found Content-Length = 836 [16:37:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343872", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:26]execute_script... [16:37:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343872", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:26]POST & json_proto [16:37:26]process_json_proto [16:37:26]json parsed OK: [16:37:26]protocol is kg_v1.0 [16:37:26]action value=close_receipt [16:37:26]process_action close_receipt [16:37:26]cmd_close_receipt [16:37:26]MH_GetDate [16:37:26]Write to MH i2c: F0 00 00 01 1A 0A [16:37:26]Write i2c OK [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: F0 [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: F0 09 00 [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: F0 09 00 01 1A 00 C8 47 F0 66 1B D0 5A 64 21 [16:37:26]GetLastDocTimeStamp 1727022986 [16:37:26]current date 1727023048 [16:37:26]FM_GetShiftState [16:37:26]SAM_PROTO_GetShiftState [16:37:26]wFMCommunicate request_size=4 [16:37:26]MH_SAM_APDU [16:37:26]CAPDU: 80 13 01 00 [16:37:26]Write to MH i2c: E2 08 00 02 1A 80 13 01 00 00 00 00 00 99 [16:37:26]Write i2c OK [16:37:26]MH_I2C_Read... [16:37:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:26]Read from MH i2c: E2 [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: E2 0E 00 [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: E2 0E 00 02 1A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B2 [16:37:26]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:37:26]wFMCommunicate OK [16:37:26]SAM_PROTO_GetShiftState done [16:37:26]FM_GetShiftState done [16:37:26]opened in 1726965840 [16:37:26]opened+sec_in_day 1727052240 [16:37:26]quantity*price = 10500 [16:37:26]sum+1 = 10501 [16:37:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 0.00 Безнал.: 105.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 150 22.09.2024 16:37 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115432 ФПД: 46198097441689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T163728&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115432&fm=46198097441689&tin=02508201610067®Number=0000000000091831&sum=10500 0 [16:37:27]StoreToDocumentArchive [16:37:27]shift 471 fd 115432 [16:37:27]save to /storage/0471/doc_00115432 [16:37:27]save last doc name /storage/0471/doc_00115432 to /storage/kkm_last_doc_name [16:37:27]save OK [16:37:27]Clear old archive folders... [16:37:27]ProcessDocumentItem done err = 0, tmpTLVsize=287 [16:37:27]tlvbuf is 01BF42A0 [16:37:27]SAM_PROTO_ClearQueue [16:37:27]wFMCommunicate request_size=4 [16:37:27]MH_SAM_APDU [16:37:27]CAPDU: 80 09 00 00 [16:37:27]Write to MH i2c: E2 08 00 0F 1A 80 09 00 00 00 00 00 00 9B [16:37:27]Write i2c OK [16:37:27]MH_I2C_Read... [16:37:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:27]Read from MH i2c: E2 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: E2 03 00 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: E2 03 00 0F 1A 00 90 00 9D [16:37:27]RAPDU: 90 00 [16:37:27]wFMCommunicate OK [16:37:27]SAM_PROTO_ClearQueue done [16:37:27]KKMCreateOFDPacket [16:37:27]OFDProtocolAddRootSTLVToBuf [16:37:27]FM_MakeSignedData [16:37:27]FM_MakeSignedData [16:37:27]SAM_PROTO_SignData [16:37:27]wFMCommunicate request_size=4 [16:37:27]MH_SAM_APDU [16:37:27]CAPDU: 80 0D 01 02 [16:37:27]Write to MH i2c: E2 08 00 10 1A 80 0D 01 02 00 00 00 00 A3 [16:37:27]Write i2c OK [16:37:27]MH_I2C_Read... [16:37:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:27]Read from MH i2c: E2 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: E2 03 00 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: E2 03 00 10 1A 00 90 00 9E [16:37:27]RAPDU: 90 00 [16:37:27]wFMCommunicate OK [16:37:27]wFMCommunicate request_size=255 [16:37:27]MH_SAM_APDU [16:37:27]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C8 47 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [16:37:27]Write to MH i2c: E2 02 01 11 1A 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C8 47 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 4A [16:37:27]Write i2c OK [16:37:27]MH_I2C_Read... [16:37:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:27]Read from MH i2c: E2 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: E2 03 00 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: E2 03 00 11 1A 00 90 00 9F [16:37:27]RAPDU: 90 00 [16:37:27]wFMCommunicate OK [16:37:27]wFMCommunicate request_size=46 [16:37:27]MH_SAM_APDU [16:37:27]CAPDU: 80 0D 02 02 29 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E8 C2 01 00 35 04 06 00 2A 04 55 2F F3 99 [16:37:27]Write to MH i2c: E2 31 00 12 1A 80 0D 02 02 29 00 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E8 C2 01 00 35 04 06 00 2A 04 55 2F F3 99 00 00 14 [16:37:27]Write i2c OK [16:37:27]MH_I2C_Read... [16:37:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:27]Read from MH i2c: E2 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: E2 03 00 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: E2 03 00 12 1A 00 90 00 A0 [16:37:27]RAPDU: 90 00 [16:37:27]wFMCommunicate OK [16:37:27]wFMCommunicate request_size=4 [16:37:27]MH_SAM_APDU [16:37:27]CAPDU: 80 0D 03 02 [16:37:27]Write to MH i2c: E2 08 00 13 1A 80 0D 03 02 00 00 00 00 A8 [16:37:27]Write i2c OK [16:37:27]MH_I2C_Read... [16:37:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:27]Read from MH i2c: E2 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: E2 0B 00 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: E2 0B 00 13 1A 00 7C 24 35 8B C0 43 8B F9 90 00 90 [16:37:27]RAPDU: 7C 24 35 8B C0 43 8B F9 90 00 [16:37:27]wFMCommunicate OK [16:37:27]SAM_PROTO_SignData done [16:37:27]FM_MakeSignedData done [16:37:27]CreateOFDProtocolMessage [16:37:27]wFMCommunicate request_size=4 [16:37:27]MH_SAM_APDU [16:37:27]CAPDU: 80 11 00 00 [16:37:27]Write to MH i2c: E2 08 00 14 1A 80 11 00 00 00 00 00 00 A8 [16:37:27]Write i2c OK [16:37:27]MH_I2C_Read... [16:37:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:27]Read from MH i2c: E2 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: E2 17 00 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: E2 17 00 14 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F6 [16:37:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:37:27]wFMCommunicate OK [16:37:27]CreateOFDProtocolMessage done [16:37:27]OFDSenderStorePacket 115432 [16:37:27]StoreOFDPacket docnum=115432 [16:37:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 33 01 00 00 B0 19 2B 01 2A 56 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C8 47 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E8 C2 01 00 35 04 06 00 2A 04 55 2F F3 99 7C 24 35 8B C0 43 8B F9 [16:37:27]CheckFolder [16:37:27]dirname=/storage/ofd_packets [16:37:27]CheckFolder done [16:37:27]ProducePacketName [16:37:27]name=ofd_packets/00115432 [16:37:27]NVStorageSaveData ofd_packets/00115432 [16:37:27]File name is /storage/ofd_packets/00115432 [16:37:27]Write 337 bytes [16:37:27]NVStorageSaveData done [16:37:27]OFDSenderStorePacket done [16:37:27]KKMCreateOFDPacket done [16:37:27]NVStorageSaveData kkm_last_timestamp [16:37:27]File name is /storage/kkm_last_timestamp [16:37:27]Write 4 bytes [16:37:27]NVStorageSaveData done [16:37:27]ExternCall_PrintAddStr [16:37:27]wPrintStart [16:37:27]Write to MH i2c: 01 00 00 15 1A 2F [16:37:27]Write i2c OK [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: 01 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: 01 07 00 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: 01 07 00 15 1A 00 00 00 00 00 FF 0F 44 [16:37:27]RasterBufferAndPrint [16:37:27]line Счет N : (3)343872 [16:37:27]line ИНН: 02508201610067 [16:37:27]line Контрольно-Кассовый Чек [16:37:27]line ПРОДАЖА [16:37:27]line Товар: 5449000189332 [16:37:27]line Холодный чай Fuse персик 1л [16:37:27]line 1.000 * 105.00 [16:37:27]line = 105.00 [16:37:27]line НДС 12% НСП 1% [16:37:27]line > о реализуемом товаре [16:37:27]line ИТОГО: 105.00 [16:37:27]line НСП 1% : 0.93 [16:37:27]line НДС 12% : 11.15 [16:37:27]line Наличными: 0.00 [16:37:27]line Безнал.: 105.00 [16:37:27]line Место: АЗС № 90 "Партнер Нефть" [16:37:27]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:37:27]line СНО: Общий режим [16:37:27]line Чек 150 22.09.2024 16:37 [16:37:27]line Смена: 471 ФФД: 1.0 [16:37:27]line ЗНМ: 0300000120 [16:37:27]line РНМ: 0000000000091831 [16:37:27]line Версия ККМ: 001 [16:37:27]line Платежная система: O! деньги [16:37:27]line ФМ: 0000000000871830 [16:37:27]line ФД: 115432 [16:37:27]line ФПД: 46198097441689 [16:37:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T163728&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115432&fm=46198097441689&tin=02508201610067®Number=0000000000091831&sum=10500 [16:37:28]OFD Sender: Processing packet 115432 [packets to send 481, broken 480] [16:37:28]ProducePacketName [16:37:28]name=ofd_packets/00115432 [16:37:28]OFD Sender: To server: pG, [16:37:28]CommunicateWithHost lk.salyk.kg:30040 [16:37:28]ConnectInit lk.salyk.kg [16:37:28]line 0 [16:37:28]written 0, free lines is 4095 [16:37:28]Connected sock=10 [16:37:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 33 01 00 00 B0 19 2B 01 2A 56 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C8 47 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E8 C2 01 00 35 04 06 00 2A 04 55 2F F3 99 7C 24 35 8B C0 43 8B F9 [16:37:28]Write to MH i2c: 01 00 00 3E 1A 58 [16:37:28]Write i2c OK [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: 01 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: 01 07 00 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: 01 07 00 3E 1A 00 00 00 00 00 57 0C C2 [16:37:28]RasterBufferAndPrint [16:37:28]line [16:37:28]line [16:37:28]line [16:37:28]line [16:37:28]line [16:37:28]written 0, free lines is 3166 [16:37:28]MH_Cut [16:37:28]Write to MH i2c: D1 01 00 45 1A 01 31 [16:37:28]Write i2c OK [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: D1 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: D1 01 00 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: D1 01 00 45 1A 00 30 [16:37:28]Write to MH i2c: 01 00 00 46 1A 60 [16:37:28]Write i2c OK [16:37:28]MH_I2C_Read... [16:37:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 06 72 47 00 CD FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E8 C2 01 00 F4 03 04 00 0D ED EF 66 B6 04 01 00 00 79 57 B6 DF 33 3A B1 92 [16:37:28]CommunicateWithHost err = 0 [16:37:28]CheckOFDResponse [16:37:28]1017 (14) - 77093643461234 [16:37:28]1041 (16) - 0000000000871830 [16:37:28]1040 (4) - 115432 [16:37:28]1012 (4) - 22.09.2024 10:10 [16:37:28]1206 (1) - 0 [16:37:28]OFD Sender: Remove packet 115432 [16:37:28]ProducePacketName [16:37:28]name=ofd_packets/00115432 [16:37:28]NVStorageDeleteData [16:37:29]OFD Sender: No OFD packet to send [16:37:29]*** Cut start [16:37:29]*** Partial cut [16:37:29]*** CUTSNS_PIN = 1 [16:37:29]*** CUTSNS_PIN = 0 [16:37:30]*** Brake cut motor [16:37:30]Read from MH i2c: 01 [16:37:30]MH_I2C_Read... [16:37:30]*** Stop cut motor [16:37:30]*** Cut end [16:37:30]Read from MH i2c: 01 07 00 [16:37:30]MH_I2C_Read... [16:37:30]Read from MH i2c: 01 07 00 46 1A 00 00 00 00 00 FF 0F 75 [16:37:30]process_action close_receipt done [16:37:30]requested_data is exist [16:37:30]produce_requested_data [16:37:30]requested_item fm.sn is exist - process it [16:37:30]wFMCommunicate request_size=4 [16:37:30]MH_SAM_APDU [16:37:30]CAPDU: 80 11 00 00 [16:37:30]Write to MH i2c: E2 08 00 47 1A 80 11 00 00 00 00 00 00 DB [16:37:30]Write i2c OK [16:37:30]MH_I2C_Read... [16:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:30]Read from MH i2c: E2 [16:37:30]MH_I2C_Read... [16:37:30]Read from MH i2c: E2 17 00 [16:37:30]MH_I2C_Read... [16:37:30]Read from MH i2c: E2 17 00 47 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 29 [16:37:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:37:30]wFMCommunicate OK [16:37:30]requested_item fd.num is exist - process it [16:37:30]SAM_PROTO_GetFieldsCounters [16:37:30]wFMCommunicate request_size=4 [16:37:30]MH_SAM_APDU [16:37:30]CAPDU: 80 13 00 00 [16:37:30]Write to MH i2c: E2 08 00 48 1A 80 13 00 00 00 00 00 00 DE [16:37:30]Write i2c OK [16:37:30]MH_I2C_Read... [16:37:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:30]Read from MH i2c: E2 [16:37:30]MH_I2C_Read... [16:37:30]Read from MH i2c: E2 62 00 [16:37:30]MH_I2C_Read... [16:37:30]Read from MH i2c: E2 62 00 48 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E8 C2 01 00 0E 04 04 00 D7 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 3C [16:37:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E8 C2 01 00 0E 04 04 00 D7 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 [16:37:30]wFMCommunicate OK [16:37:30]SAM_PROTO_GetFieldsCounters done [16:37:30]requested_item shift.num is exist - process it [16:37:30]requested_item shift.opened is exist - process it [16:37:30]req_shift_opened [16:37:30]FM_GetShiftState [16:37:30]SAM_PROTO_GetShiftState [16:37:30]wFMCommunicate request_size=4 [16:37:30]MH_SAM_APDU [16:37:30]CAPDU: 80 13 01 00 [16:37:30]Write to MH i2c: E2 08 00 49 1A 80 13 01 00 00 00 00 00 E0 [16:37:30]Write i2c OK [16:37:30]MH_I2C_Read... [16:37:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:30]Read from MH i2c: E2 [16:37:30]MH_I2C_Read... [16:37:30]Read from MH i2c: E2 0E 00 [16:37:30]MH_I2C_Read... [16:37:30]Read from MH i2c: E2 0E 00 49 1A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F9 [16:37:30]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:37:30]wFMCommunicate OK [16:37:30]SAM_PROTO_GetShiftState done [16:37:30]FM_GetShiftState done [16:37:30]req_shift_opened done [16:37:30]requested_item shift.open_date is exist - process it [16:37:30]req_shift_open_date [16:37:30]req_shift_open_date done [16:37:30]produce_requested_data done [16:37:30]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115432,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:37:30]process_action_free close_receipt [16:37:30]json_value_free [16:37:30]json_value_free done [16:37:30]process_json_proto returns [16:37:30]Send response to host [16:37:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115432,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:37:30]free response buf [16:37:30]execute_script done [16:37:30]execute_script returns [16:37:30]free content buf [16:37:30]Sock 8.Close socket [16:37:30]Sock 8.Thread stoped [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:17]accept exits with 9 [16:40:17]New connection [16:40:17]New thread 3066826084 created [16:40:17]Thread 3066682724 joined [16:40:17]Waiting for new connection... [16:40:17] Sock 9.Parse request [16:40:17]Sock 9.Check first char [16:40:17]Sock 9.First char is OK [16:40:17]request: POST /json_proto HTTP/1.0 [16:40:17]Method: POST [16:40:17]URL: /json_proto [16:40:17]Method is POST - this is cgi request [16:40:17]url: /json_proto [16:40:17]query_string will be loaded in cgi processing [16:40:17]execute_cgi json_proto POST (null) [16:40:17]execute_cgi path=json_proto method=POST [16:40:17]POST find Content-Length [16:40:17]Host: 172.17.41.136:8080 [16:40:17]Content-Length: 1127 [16:40:17]Content-Type: application/json [16:40:17] [16:40:17]POST finish read [16:40:17]Found Content-Length = 1127 [16:40:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343873", "tax_sys" : 0, "items" : [ { "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 299.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:17]execute_script... [16:40:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343873", "tax_sys" : 0, "items" : [ { "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 299.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:17]POST & json_proto [16:40:17]process_json_proto [16:40:17]json parsed OK: [16:40:17]protocol is kg_v1.0 [16:40:17]action value=close_receipt [16:40:17]process_action close_receipt [16:40:17]cmd_close_receipt [16:40:17]MH_GetDate [16:40:17]Write to MH i2c: F0 00 00 4A 1A 53 [16:40:17]Write i2c OK [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: F0 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: F0 09 00 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: F0 09 00 4A 1A 00 73 48 F0 66 1B D0 5A 64 16 [16:40:17]GetLastDocTimeStamp 1727023048 [16:40:17]current date 1727023219 [16:40:17]FM_GetShiftState [16:40:17]SAM_PROTO_GetShiftState [16:40:17]wFMCommunicate request_size=4 [16:40:17]MH_SAM_APDU [16:40:17]CAPDU: 80 13 01 00 [16:40:17]Write to MH i2c: E2 08 00 4B 1A 80 13 01 00 00 00 00 00 E2 [16:40:17]Write i2c OK [16:40:17]MH_I2C_Read... [16:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:17]Read from MH i2c: E2 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: E2 0E 00 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: E2 0E 00 4B 1A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 FB [16:40:17]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:40:17]wFMCommunicate OK [16:40:17]SAM_PROTO_GetShiftState done [16:40:17]FM_GetShiftState done [16:40:17]opened in 1726965840 [16:40:17]opened+sec_in_day 1727052240 [16:40:17]quantity*price = 7500 [16:40:17]sum+1 = 7501 [16:40:17]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 299.00 НСП 1% : 2.64 НДС 12% : 31.75 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 151 22.09.2024 16:40 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115433 ФПД: 16998230599952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T164019&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115433&fm=16998230599952&tin=02508201610067®Number=0000000000091831&sum=29900 0 [16:40:18]StoreToDocumentArchive [16:40:18]shift 471 fd 115433 [16:40:18]save to /storage/0471/doc_00115433 [16:40:18]save last doc name /storage/0471/doc_00115433 to /storage/kkm_last_doc_name [16:40:18]save OK [16:40:18]Clear old archive folders... [16:40:18]ProcessDocumentItem done err = 0, tmpTLVsize=491 [16:40:18]tlvbuf is 01BE7E70 [16:40:18]SAM_PROTO_ClearQueue [16:40:18]wFMCommunicate request_size=4 [16:40:18]MH_SAM_APDU [16:40:18]CAPDU: 80 09 00 00 [16:40:18]Write to MH i2c: E2 08 00 58 1A 80 09 00 00 00 00 00 00 E4 [16:40:18]Write i2c OK [16:40:18]MH_I2C_Read... [16:40:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:18]Read from MH i2c: E2 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 03 00 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 03 00 58 1A 00 90 00 E6 [16:40:18]RAPDU: 90 00 [16:40:18]wFMCommunicate OK [16:40:18]SAM_PROTO_ClearQueue done [16:40:18]KKMCreateOFDPacket [16:40:18]OFDProtocolAddRootSTLVToBuf [16:40:18]FM_MakeSignedData [16:40:18]FM_MakeSignedData [16:40:18]SAM_PROTO_SignData [16:40:18]wFMCommunicate request_size=4 [16:40:18]MH_SAM_APDU [16:40:18]CAPDU: 80 0D 01 02 [16:40:18]Write to MH i2c: E2 08 00 59 1A 80 0D 01 02 00 00 00 00 EC [16:40:18]Write i2c OK [16:40:18]MH_I2C_Read... [16:40:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:18]Read from MH i2c: E2 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 03 00 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 03 00 59 1A 00 90 00 E7 [16:40:18]RAPDU: 90 00 [16:40:18]wFMCommunicate OK [16:40:18]wFMCommunicate request_size=255 [16:40:18]MH_SAM_APDU [16:40:18]CAPDU: 80 0D 02 02 FA 03 00 EB 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 [16:40:18]Write to MH i2c: E2 02 01 5A 1A 80 0D 02 02 FA 00 03 00 EB 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 00 00 74 [16:40:19]Write i2c OK [16:40:19]MH_I2C_Read... [16:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:19]Read from MH i2c: E2 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 03 00 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 03 00 5A 1A 00 90 00 E8 [16:40:19]RAPDU: 90 00 [16:40:19]wFMCommunicate OK [16:40:19]wFMCommunicate request_size=250 [16:40:19]MH_SAM_APDU [16:40:19]CAPDU: 80 0D 02 02 F5 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 73 48 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E9 C2 01 00 35 04 06 00 0F 75 B5 7F 29 10 [16:40:19]Write to MH i2c: E2 FD 00 5B 1A 80 0D 02 02 F5 00 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 73 48 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E9 C2 01 00 35 04 06 00 0F 75 B5 7F 29 10 00 00 80 [16:40:19]Write i2c OK [16:40:19]MH_I2C_Read... [16:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:19]OFD Sender: No OFD packet to send [16:40:19]Read from MH i2c: E2 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 03 00 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 03 00 5B 1A 00 90 00 E9 [16:40:19]RAPDU: 90 00 [16:40:19]wFMCommunicate OK [16:40:19]wFMCommunicate request_size=4 [16:40:19]MH_SAM_APDU [16:40:19]CAPDU: 80 0D 03 02 [16:40:19]Write to MH i2c: E2 08 00 5C 1A 80 0D 03 02 00 00 00 00 F1 [16:40:19]Write i2c OK [16:40:19]MH_I2C_Read... [16:40:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:19]Read from MH i2c: E2 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 0B 00 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 0B 00 5C 1A 00 1F 45 36 03 BA DF 57 3D 90 00 BC [16:40:19]RAPDU: 1F 45 36 03 BA DF 57 3D 90 00 [16:40:19]wFMCommunicate OK [16:40:19]SAM_PROTO_SignData done [16:40:19]FM_MakeSignedData done [16:40:19]CreateOFDProtocolMessage [16:40:19]wFMCommunicate request_size=4 [16:40:19]MH_SAM_APDU [16:40:19]CAPDU: 80 11 00 00 [16:40:19]Write to MH i2c: E2 08 00 5D 1A 80 11 00 00 00 00 00 00 F1 [16:40:19]Write i2c OK [16:40:19]MH_I2C_Read... [16:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:19]Read from MH i2c: E2 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 17 00 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 17 00 5D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3F [16:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:40:19]wFMCommunicate OK [16:40:19]CreateOFDProtocolMessage done [16:40:19]OFDSenderStorePacket 115433 [16:40:19]StoreOFDPacket docnum=115433 [16:40:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 FF 01 00 00 00 2E F7 01 6B 90 5A 03 01 00 03 00 EB 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 73 48 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E9 C2 01 00 35 04 06 00 0F 75 B5 7F 29 10 1F 45 36 03 BA DF 57 3D [16:40:19]CheckFolder [16:40:19]dirname=/storage/ofd_packets [16:40:19]CheckFolder done [16:40:19]ProducePacketName [16:40:19]name=ofd_packets/00115433 [16:40:19]NVStorageSaveData ofd_packets/00115433 [16:40:19]File name is /storage/ofd_packets/00115433 [16:40:19]Write 541 bytes [16:40:19]NVStorageSaveData done [16:40:19]OFDSenderStorePacket done [16:40:19]KKMCreateOFDPacket done [16:40:19]NVStorageSaveData kkm_last_timestamp [16:40:19]File name is /storage/kkm_last_timestamp [16:40:19]Write 4 bytes [16:40:19]NVStorageSaveData done [16:40:19]ExternCall_PrintAddStr [16:40:19]wPrintStart [16:40:19]Write to MH i2c: 01 00 00 5E 1A 78 [16:40:19]Write i2c OK [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: 01 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: 01 07 00 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: 01 07 00 5E 1A 00 00 00 00 00 FF 0F 8D [16:40:19]RasterBufferAndPrint [16:40:19]line Счет N : (3)343873 [16:40:19]line ИНН: 02508201610067 [16:40:19]line Контрольно-Кассовый Чек [16:40:19]line ПРОДАЖА [16:40:19]line Товар: 4870001154059 [16:40:19]line Напиток Lipton IceTea 0,5л зел чай [16:40:19]line 1.000 * 75.00 [16:40:19]line = 75.00 [16:40:19]line НДС 12% НСП 1% [16:40:19]line > о реализуемом товаре [16:40:19]line Товар: 48743570 [16:40:19]line Сигареты Winston XStyle Blue [16:40:19]line 1.000 * 144.00 [16:40:19]line = 144.00 [16:40:19]line НДС 12% НСП 1% [16:40:19]line > о реализуемом товаре [16:40:19]line Товар: 4870001570057 [16:40:19]line Напиток Pepsi 0,5л [16:40:19]line 1.000 * 80.00 [16:40:19]line = 80.00 [16:40:19]line НДС 12% НСП 1% [16:40:19]line > о реализуемом товаре [16:40:19]line ИТОГО: 299.00 [16:40:19]line НСП 1% : 2.64 [16:40:19]line НДС 12% : 31.75 [16:40:19]line Наличными: 299.00 [16:40:19]line Безнал.: 0.00 [16:40:19]line Место: АЗС № 90 "Партнер Нефть" [16:40:19]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:40:19]line СНО: Общий режим [16:40:19]line Чек 151 22.09.2024 16:40 [16:40:19]line Смена: 471 ФФД: 1.0 [16:40:19]line ЗНМ: 0300000120 [16:40:19]line РНМ: 0000000000091831 [16:40:19]line Версия ККМ: 001 [16:40:19]line ФМ: 0000000000871830 [16:40:19]line ФД: 115433 [16:40:19]line ФПД: 16998230599952 [16:40:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T164019&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115433&fm=16998230599952&tin=02508201610067®Number=0000000000091831&sum=29900 [16:40:19]line 0 [16:40:19]written 0, free lines is 4095 [16:40:19]OFD Sender: Processing packet 115433 [packets to send 481, broken 480] [16:40:19]ProducePacketName [16:40:19]name=ofd_packets/00115433 [16:40:19]OFD Sender: To server: pG, [16:40:19]CommunicateWithHost lk.salyk.kg:30040 [16:40:19]ConnectInit lk.salyk.kg [16:40:20]Write to MH i2c: 01 00 00 92 1A AC [16:40:20]Connected sock=10 [16:40:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 FF 01 00 00 00 2E F7 01 6B 90 5A 03 01 00 03 00 EB 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 73 48 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E9 C2 01 00 35 04 06 00 0F 75 B5 7F 29 10 1F 45 36 03 BA DF 57 3D [16:40:20]Write i2c OK [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: 01 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: 01 07 00 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: 01 07 00 92 1A 00 00 00 00 00 82 0B 40 [16:40:20]RasterBufferAndPrint [16:40:20]line [16:40:20]line [16:40:20]line [16:40:20]line [16:40:20]line [16:40:20]written 0, free lines is 2998 [16:40:20]MH_Cut [16:40:20]Write to MH i2c: D1 01 00 99 1A 01 85 [16:40:20]Write i2c OK [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: D1 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: D1 01 00 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: D1 01 00 99 1A 00 84 [16:40:20]Write to MH i2c: 01 00 00 9A 1A B4 [16:40:20]Write i2c OK [16:40:20]MH_I2C_Read... [16:40:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 4A DC 47 00 DA 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E9 C2 01 00 F4 03 04 00 B9 ED EF 66 B6 04 01 00 00 94 43 83 3B B0 B3 4A A2 [16:40:20]CommunicateWithHost err = 0 [16:40:20]CheckOFDResponse [16:40:20]1017 (14) - 77093643461234 [16:40:20]1041 (16) - 0000000000871830 [16:40:20]1040 (4) - 115433 [16:40:20]1012 (4) - 22.09.2024 10:13 [16:40:20]1206 (1) - 0 [16:40:20]OFD Sender: Remove packet 115433 [16:40:20]ProducePacketName [16:40:20]name=ofd_packets/00115433 [16:40:20]NVStorageDeleteData [16:40:21]OFD Sender: No OFD packet to send [16:40:21]*** Cut start [16:40:21]*** Partial cut [16:40:21]*** CUTSNS_PIN = 1 [16:40:21]*** CUTSNS_PIN = 0 [16:40:22]*** Brake cut motor [16:40:22]Read from MH i2c: 01 [16:40:22]MH_I2C_Read... [16:40:22]*** Stop cut motor [16:40:22]*** Cut end [16:40:22]Read from MH i2c: 01 07 00 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: 01 07 00 9A 1A 00 00 00 00 00 FF 0F C9 [16:40:22]process_action close_receipt done [16:40:22]requested_data is exist [16:40:22]produce_requested_data [16:40:22]requested_item fm.sn is exist - process it [16:40:22]wFMCommunicate request_size=4 [16:40:22]MH_SAM_APDU [16:40:22]CAPDU: 80 11 00 00 [16:40:22]Write to MH i2c: E2 08 00 9B 1A 80 11 00 00 00 00 00 00 2F [16:40:22]Write i2c OK [16:40:22]MH_I2C_Read... [16:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:22]Read from MH i2c: E2 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 17 00 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 17 00 9B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7D [16:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:40:22]wFMCommunicate OK [16:40:22]requested_item fd.num is exist - process it [16:40:22]SAM_PROTO_GetFieldsCounters [16:40:22]wFMCommunicate request_size=4 [16:40:22]MH_SAM_APDU [16:40:22]CAPDU: 80 13 00 00 [16:40:22]Write to MH i2c: E2 08 00 9C 1A 80 13 00 00 00 00 00 00 32 [16:40:22]Write i2c OK [16:40:22]MH_I2C_Read... [16:40:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:22]Read from MH i2c: E2 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 62 00 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 62 00 9C 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E9 C2 01 00 0E 04 04 00 D7 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 94 [16:40:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E9 C2 01 00 0E 04 04 00 D7 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 [16:40:22]wFMCommunicate OK [16:40:22]SAM_PROTO_GetFieldsCounters done [16:40:22]requested_item shift.num is exist - process it [16:40:22]requested_item shift.opened is exist - process it [16:40:22]req_shift_opened [16:40:22]FM_GetShiftState [16:40:22]SAM_PROTO_GetShiftState [16:40:22]wFMCommunicate request_size=4 [16:40:22]MH_SAM_APDU [16:40:22]CAPDU: 80 13 01 00 [16:40:22]Write to MH i2c: E2 08 00 9D 1A 80 13 01 00 00 00 00 00 34 [16:40:22]Write i2c OK [16:40:22]MH_I2C_Read... [16:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:22]Read from MH i2c: E2 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 0E 00 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 0E 00 9D 1A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 4D [16:40:22]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:40:22]wFMCommunicate OK [16:40:22]SAM_PROTO_GetShiftState done [16:40:22]FM_GetShiftState done [16:40:22]req_shift_opened done [16:40:22]requested_item shift.open_date is exist - process it [16:40:22]req_shift_open_date [16:40:22]req_shift_open_date done [16:40:22]produce_requested_data done [16:40:22]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115433,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:40:22]process_action_free close_receipt [16:40:22]json_value_free [16:40:22]json_value_free done [16:40:22]process_json_proto returns [16:40:22]Send response to host [16:40:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115433,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:40:22]free response buf [16:40:22]execute_script done [16:40:22]execute_script returns [16:40:22]free content buf [16:40:22]Sock 9.Close socket [16:40:22]Sock 9.Thread stoped [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:49]accept exits with 8 [16:43:49]New connection [16:43:49]New thread 3066682724 created [16:43:49]Thread 3066826084 joined [16:43:49]Waiting for new connection... [16:43:49] Sock 8.Parse request [16:43:49]Sock 8.Check first char [16:43:49]Sock 8.First char is OK [16:43:49]request: POST /json_proto HTTP/1.0 [16:43:49]Method: POST [16:43:49]URL: /json_proto [16:43:49]Method is POST - this is cgi request [16:43:49]url: /json_proto [16:43:49]query_string will be loaded in cgi processing [16:43:49]execute_cgi json_proto POST (null) [16:43:49]execute_cgi path=json_proto method=POST [16:43:49]POST find Content-Length [16:43:49]Host: 172.17.41.136:8080 [16:43:49]Content-Length: 987 [16:43:49]Content-Type: application/json [16:43:49] [16:43:49]POST finish read [16:43:49]Found Content-Length = 987 [16:43:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343874", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 269.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:49]execute_script... [16:43:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343874", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 269.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:49]POST & json_proto [16:43:49]process_json_proto [16:43:49]json parsed OK: [16:43:49]protocol is kg_v1.0 [16:43:49]action value=close_receipt [16:43:49]process_action close_receipt [16:43:49]cmd_close_receipt [16:43:49]MH_GetDate [16:43:49]Write to MH i2c: F0 00 00 9E 1A A7 [16:43:49]Write i2c OK [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: F0 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: F0 09 00 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: F0 09 00 9E 1A 00 47 49 F0 66 1B D0 5A 64 3F [16:43:49]GetLastDocTimeStamp 1727023219 [16:43:49]current date 1727023431 [16:43:49]FM_GetShiftState [16:43:49]SAM_PROTO_GetShiftState [16:43:49]wFMCommunicate request_size=4 [16:43:49]MH_SAM_APDU [16:43:49]CAPDU: 80 13 01 00 [16:43:49]Write to MH i2c: E2 08 00 9F 1A 80 13 01 00 00 00 00 00 36 [16:43:49]Write i2c OK [16:43:49]MH_I2C_Read... [16:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:49]Read from MH i2c: E2 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: E2 0E 00 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: E2 0E 00 9F 1A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 4F [16:43:49]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:43:49]wFMCommunicate OK [16:43:49]SAM_PROTO_GetShiftState done [16:43:49]FM_GetShiftState done [16:43:49]opened in 1726965840 [16:43:49]opened+sec_in_day 1727052240 [16:43:49]quantity*price = 14400 [16:43:49]sum+1 = 14401 [16:43:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521254 Чай холодный MAXI черный со вкусом клубн 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 269.00 НСП 1% : 2.38 НДС 12% : 28.56 Наличными: 269.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 152 22.09.2024 16:43 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115434 ФПД: 28632221925515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T164351&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115434&fm=28632221925515&tin=02508201610067®Number=0000000000091831&sum=26900 0 [16:43:50]StoreToDocumentArchive [16:43:50]shift 471 fd 115434 [16:43:50]save to /storage/0471/doc_00115434 [16:43:50]save last doc name /storage/0471/doc_00115434 to /storage/kkm_last_doc_name [16:43:50]save OK [16:43:50]Clear old archive folders... [16:43:50]ProcessDocumentItem done err = 0, tmpTLVsize=417 [16:43:50]tlvbuf is B6EA25E0 [16:43:50]SAM_PROTO_ClearQueue [16:43:50]wFMCommunicate request_size=4 [16:43:50]MH_SAM_APDU [16:43:50]CAPDU: 80 09 00 00 [16:43:50]Write to MH i2c: E2 08 00 AC 1A 80 09 00 00 00 00 00 00 38 [16:43:50]Write i2c OK [16:43:50]MH_I2C_Read... [16:43:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:50]Read from MH i2c: E2 [16:43:50]MH_I2C_Read... [16:43:50]Read from MH i2c: E2 03 00 [16:43:50]MH_I2C_Read... [16:43:50]Read from MH i2c: E2 03 00 AC 1A 00 90 00 3A [16:43:50]RAPDU: 90 00 [16:43:50]wFMCommunicate OK [16:43:50]SAM_PROTO_ClearQueue done [16:43:50]KKMCreateOFDPacket [16:43:50]OFDProtocolAddRootSTLVToBuf [16:43:50]FM_MakeSignedData [16:43:50]FM_MakeSignedData [16:43:50]SAM_PROTO_SignData [16:43:50]wFMCommunicate request_size=4 [16:43:50]MH_SAM_APDU [16:43:50]CAPDU: 80 0D 01 02 [16:43:50]Write to MH i2c: E2 08 00 AD 1A 80 0D 01 02 00 00 00 00 40 [16:43:50]Write i2c OK [16:43:50]MH_I2C_Read... [16:43:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:50]Read from MH i2c: E2 [16:43:50]MH_I2C_Read... [16:43:50]Read from MH i2c: E2 03 00 [16:43:50]MH_I2C_Read... [16:43:50]Read from MH i2c: E2 03 00 AD 1A 00 90 00 3B [16:43:50]RAPDU: 90 00 [16:43:50]wFMCommunicate OK [16:43:50]wFMCommunicate request_size=255 [16:43:50]MH_SAM_APDU [16:43:50]CAPDU: 80 0D 02 02 FA 03 00 A1 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [16:43:50]Write to MH i2c: E2 02 01 AE 1A 80 0D 02 02 FA 00 03 00 A1 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 55 [16:43:50]Write i2c OK [16:43:50]MH_I2C_Read... [16:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:50]Read from MH i2c: E2 [16:43:50]MH_I2C_Read... [16:43:50]Read from MH i2c: E2 03 00 [16:43:50]MH_I2C_Read... [16:43:50]Read from MH i2c: E2 03 00 AE 1A 00 90 00 3C [16:43:50]RAPDU: 90 00 [16:43:50]wFMCommunicate OK [16:43:50]wFMCommunicate request_size=176 [16:43:50]MH_SAM_APDU [16:43:50]CAPDU: 80 0D 02 02 AB 01 BC 04 01 00 01 FC 03 06 00 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 47 49 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EA C2 01 00 35 04 06 00 1A 0A 75 6A C0 8B [16:43:50]Write to MH i2c: E2 B3 00 AF 1A 80 0D 02 02 AB 00 01 BC 04 01 00 01 FC 03 06 00 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 47 49 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EA C2 01 00 35 04 06 00 1A 0A 75 6A C0 8B 00 00 02 [16:43:50]Write i2c OK [16:43:50]MH_I2C_Read... [16:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:51]Read from MH i2c: E2 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: E2 03 00 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: E2 03 00 AF 1A 00 90 00 3D [16:43:51]RAPDU: 90 00 [16:43:51]wFMCommunicate OK [16:43:51]wFMCommunicate request_size=4 [16:43:51]MH_SAM_APDU [16:43:51]CAPDU: 80 0D 03 02 [16:43:51]Write to MH i2c: E2 08 00 B0 1A 80 0D 03 02 00 00 00 00 45 [16:43:51]Write i2c OK [16:43:51]MH_I2C_Read... [16:43:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:51]Read from MH i2c: E2 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: E2 0B 00 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: E2 0B 00 B0 1A 00 FB E2 44 95 0C AB B3 D3 90 00 39 [16:43:51]RAPDU: FB E2 44 95 0C AB B3 D3 90 00 [16:43:51]wFMCommunicate OK [16:43:51]SAM_PROTO_SignData done [16:43:51]FM_MakeSignedData done [16:43:51]CreateOFDProtocolMessage [16:43:51]wFMCommunicate request_size=4 [16:43:51]MH_SAM_APDU [16:43:51]CAPDU: 80 11 00 00 [16:43:51]Write to MH i2c: E2 08 00 B1 1A 80 11 00 00 00 00 00 00 45 [16:43:51]Write i2c OK [16:43:51]MH_I2C_Read... [16:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:51]Read from MH i2c: E2 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: E2 17 00 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: E2 17 00 B1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 93 [16:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:43:51]wFMCommunicate OK [16:43:51]CreateOFDProtocolMessage done [16:43:51]OFDSenderStorePacket 115434 [16:43:51]StoreOFDPacket docnum=115434 [16:43:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B5 01 00 00 35 E6 AD 01 54 CA 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 47 49 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EA C2 01 00 35 04 06 00 1A 0A 75 6A C0 8B FB E2 44 95 0C AB B3 D3 [16:43:51]CheckFolder [16:43:51]dirname=/storage/ofd_packets [16:43:51]CheckFolder done [16:43:51]ProducePacketName [16:43:51]name=ofd_packets/00115434 [16:43:51]NVStorageSaveData ofd_packets/00115434 [16:43:51]File name is /storage/ofd_packets/00115434 [16:43:51]Write 467 bytes [16:43:51]NVStorageSaveData done [16:43:51]OFDSenderStorePacket done [16:43:51]KKMCreateOFDPacket done [16:43:51]NVStorageSaveData kkm_last_timestamp [16:43:51]File name is /storage/kkm_last_timestamp [16:43:51]Write 4 bytes [16:43:51]NVStorageSaveData done [16:43:51]ExternCall_PrintAddStr [16:43:51]wPrintStart [16:43:51]Write to MH i2c: 01 00 00 B2 1A CC [16:43:51]Write i2c OK [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: 01 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: 01 07 00 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: 01 07 00 B2 1A 00 00 00 00 00 FF 0F E1 [16:43:51]RasterBufferAndPrint [16:43:51]line Счет N : (3)343874 [16:43:51]line ИНН: 02508201610067 [16:43:51]line Контрольно-Кассовый Чек [16:43:51]line ПРОДАЖА [16:43:51]line Товар: 48743587 [16:43:51]line Сигареты Winston XStyle Silver [16:43:51]line 1.000 * 144.00 [16:43:51]line = 144.00 [16:43:51]line НДС 12% НСП 1% [16:43:51]line > о реализуемом товаре [16:43:51]line Товар: 4870202521254 [16:43:51]line Чай холодный MAXI черный со вкусом клубн [16:43:51]line 1.000 * 125.00 [16:43:51]line = 125.00 [16:43:51]line НДС 12% НСП 1% [16:43:51]line > о реализуемом товаре [16:43:51]line ИТОГО: 269.00 [16:43:51]line НСП 1% : 2.38 [16:43:51]line НДС 12% : 28.56 [16:43:51]line Наличными: 269.00 [16:43:51]line Безнал.: 0.00 [16:43:51]line Место: АЗС № 90 "Партнер Нефть" [16:43:51]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:43:51]line СНО: Общий режим [16:43:51]line Чек 152 22.09.2024 16:43 [16:43:51]line Смена: 471 ФФД: 1.0 [16:43:51]line ЗНМ: 0300000120 [16:43:51]line РНМ: 0000000000091831 [16:43:51]line Версия ККМ: 001 [16:43:51]line ФМ: 0000000000871830 [16:43:51]line ФД: 115434 [16:43:51]line ФПД: 28632221925515 [16:43:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T164351&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115434&fm=28632221925515&tin=02508201610067®Number=0000000000091831&sum=26900 [16:43:51]line 0 [16:43:51]OFD Sender: Processing packet 115434 [packets to send 481, broken 480] [16:43:51]ProducePacketName [16:43:51]name=ofd_packets/00115434 [16:43:51]OFD Sender: To server: pG, [16:43:51]CommunicateWithHost lk.salyk.kg:30040 [16:43:51]ConnectInit lk.salyk.kg [16:43:51]written 0, free lines is 4095 [16:43:51]Connected sock=10 [16:43:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B5 01 00 00 35 E6 AD 01 54 CA 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 47 49 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EA C2 01 00 35 04 06 00 1A 0A 75 6A C0 8B FB E2 44 95 0C AB B3 D3 [16:43:52]Write to MH i2c: 01 00 00 E1 1A FB [16:43:52]Write i2c OK [16:43:52]MH_I2C_Read... [16:43:52]Read from MH i2c: 01 [16:43:52]MH_I2C_Read... [16:43:52]Read from MH i2c: 01 07 00 [16:43:52]MH_I2C_Read... [16:43:52]Read from MH i2c: 01 07 00 E1 1A 00 00 00 00 00 F5 0B 02 [16:43:52]RasterBufferAndPrint [16:43:52]line [16:43:52]line [16:43:52]line [16:43:52]line [16:43:52]line [16:43:52]written 0, free lines is 3064 [16:43:52]MH_Cut [16:43:52]Write to MH i2c: D1 01 00 E8 1A 01 D4 [16:43:52]Write i2c OK [16:43:52]MH_I2C_Read... [16:43:52]Read from MH i2c: D1 [16:43:52]MH_I2C_Read... [16:43:52]Read from MH i2c: D1 01 00 [16:43:52]MH_I2C_Read... [16:43:52]Read from MH i2c: D1 01 00 E8 1A 00 D3 [16:43:52]Write to MH i2c: 01 00 00 E9 1A 03 [16:43:52]Write i2c OK [16:43:52]MH_I2C_Read... [16:43:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 74 18 47 00 48 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EA C2 01 00 F4 03 04 00 8D EE EF 66 B6 04 01 00 00 A8 FA E3 4E 83 16 F6 65 [16:43:52]CommunicateWithHost err = 0 [16:43:52]CheckOFDResponse [16:43:52]1017 (14) - 77093643461234 [16:43:52]1041 (16) - 0000000000871830 [16:43:52]1040 (4) - 115434 [16:43:52]1012 (4) - 22.09.2024 10:16 [16:43:52]1206 (1) - 0 [16:43:52]OFD Sender: Remove packet 115434 [16:43:52]ProducePacketName [16:43:52]name=ofd_packets/00115434 [16:43:52]NVStorageDeleteData [16:43:52]OFD Sender: No OFD packet to send [16:43:53]*** Cut start [16:43:53]*** Partial cut [16:43:53]*** CUTSNS_PIN = 1 [16:43:53]*** CUTSNS_PIN = 0 [16:43:53]*** Brake cut motor [16:43:54]Read from MH i2c: 01 [16:43:54]MH_I2C_Read... [16:43:54]*** Stop cut motor [16:43:54]*** Cut end [16:43:54]Read from MH i2c: 01 07 00 [16:43:54]MH_I2C_Read... [16:43:54]Read from MH i2c: 01 07 00 E9 1A 00 00 00 00 00 FF 0F 18 [16:43:54]process_action close_receipt done [16:43:54]requested_data is exist [16:43:54]produce_requested_data [16:43:54]requested_item fm.sn is exist - process it [16:43:54]wFMCommunicate request_size=4 [16:43:54]MH_SAM_APDU [16:43:54]CAPDU: 80 11 00 00 [16:43:54]Write to MH i2c: E2 08 00 EA 1A 80 11 00 00 00 00 00 00 7E [16:43:54]Write i2c OK [16:43:54]MH_I2C_Read... [16:43:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:54]Read from MH i2c: E2 [16:43:54]MH_I2C_Read... [16:43:54]Read from MH i2c: E2 17 00 [16:43:54]MH_I2C_Read... [16:43:54]Read from MH i2c: E2 17 00 EA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CC [16:43:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:43:54]wFMCommunicate OK [16:43:54]requested_item fd.num is exist - process it [16:43:54]SAM_PROTO_GetFieldsCounters [16:43:54]wFMCommunicate request_size=4 [16:43:54]MH_SAM_APDU [16:43:54]CAPDU: 80 13 00 00 [16:43:54]Write to MH i2c: E2 08 00 EB 1A 80 13 00 00 00 00 00 00 81 [16:43:54]Write i2c OK [16:43:54]MH_I2C_Read... [16:43:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:54]Read from MH i2c: E2 [16:43:54]MH_I2C_Read... [16:43:54]Read from MH i2c: E2 62 00 [16:43:54]MH_I2C_Read... [16:43:54]Read from MH i2c: E2 62 00 EB 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EA C2 01 00 0E 04 04 00 D7 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 E7 [16: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EA C2 01 00 0E 04 04 00 D7 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 [16:43:54]wFMCommunicate OK [16:43:54]SAM_PROTO_GetFieldsCounters done [16:43:54]requested_item shift.num is exist - process it [16:43:54]requested_item shift.opened is exist - process it [16:43:54]req_shift_opened [16:43:54]FM_GetShiftState [16:43:54]SAM_PROTO_GetShiftState [16:43:54]wFMCommunicate request_size=4 [16:43:54]MH_SAM_APDU [16:43:54]CAPDU: 80 13 01 00 [16:43:54]Write to MH i2c: E2 08 00 EC 1A 80 13 01 00 00 00 00 00 83 [16:43:54]Write i2c OK [16:43:54]MH_I2C_Read... [16:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:54]Read from MH i2c: E2 [16:43:54]MH_I2C_Read... [16:43:54]Read from MH i2c: E2 0E 00 [16:43:54]MH_I2C_Read... [16:43:54]Read from MH i2c: E2 0E 00 EC 1A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 9C [16:43:54]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:43:54]wFMCommunicate OK [16:43:54]SAM_PROTO_GetShiftState done [16:43:54]FM_GetShiftState done [16:43:54]req_shift_opened done [16:43:54]requested_item shift.open_date is exist - process it [16:43:54]req_shift_open_date [16:43:54]req_shift_open_date done [16:43:54]produce_requested_data done [16:43:54]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115434,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:43:54]process_action_free close_receipt [16:43:54]json_value_free [16:43:54]json_value_free done [16:43:54]process_json_proto returns [16:43:54]Send response to host [16:43:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115434,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:43:54]free response buf [16:43:54]execute_script done [16:43:54]execute_script returns [16:43:54]free content buf [16:43:54]Sock 8.Close socket [16:43:54]Sock 8.Thread stoped [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:43]accept exits with 9 [16:44:43]New connection [16:44:43]New thread 3066826084 created [16:44:43]Thread 3066682724 joined [16:44:43]Waiting for new connection... [16:44:43] Sock 9.Parse request [16:44:43]Sock 9.Check first char [16:44:43]Sock 9.First char is OK [16:44:43]request: POST /json_proto HTTP/1.0 [16:44:43]Method: POST [16:44:43]URL: /json_proto [16:44:43]Method is POST - this is cgi request [16:44:43]url: /json_proto [16:44:43]query_string will be loaded in cgi processing [16:44:43]execute_cgi json_proto POST (null) [16:44:43]execute_cgi path=json_proto method=POST [16:44:43]POST find Content-Length [16:44:43]Host: 172.17.41.136:8080 [16:44:43]Content-Length: 952 [16:44:43]Content-Type: application/json [16:44:43] [16:44:43]POST finish read [16:44:43]Found Content-Length = 952 [16:44:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343875", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 50.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 555.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:43]execute_script... [16:44:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343875", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 50.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 555.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:43]POST & json_proto [16:44:43]process_json_proto [16:44:43]json parsed OK: [16:44:43]protocol is kg_v1.0 [16:44:43]action value=close_receipt [16:44:43]process_action close_receipt [16:44:43]cmd_close_receipt [16:44:43]MH_GetDate [16:44:43]Write to MH i2c: F0 00 00 ED 1A F6 [16:44:43]Write i2c OK [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: F0 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: F0 09 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: F0 09 00 ED 1A 00 7D 49 F0 66 1B D0 5A 64 C4 [16:44:43]GetLastDocTimeStamp 1727023431 [16:44:43]current date 1727023485 [16:44:43]FM_GetShiftState [16:44:43]SAM_PROTO_GetShiftState [16:44:43]wFMCommunicate request_size=4 [16:44:43]MH_SAM_APDU [16:44:43]CAPDU: 80 13 01 00 [16:44:43]Write to MH i2c: E2 08 00 EE 1A 80 13 01 00 00 00 00 00 85 [16:44:43]Write i2c OK [16:44:43]MH_I2C_Read... [16:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:43]Read from MH i2c: E2 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 0E 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 0E 00 EE 1A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 9E [16:44:43]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:44:43]wFMCommunicate OK [16:44:43]SAM_PROTO_GetShiftState done [16:44:43]FM_GetShiftState done [16:44:43]opened in 1726965840 [16:44:43]opened+sec_in_day 1727052240 [16:44:43]quantity*price = 20500 [16:44:43]sum+1 = 20501 [16:44:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 50.000 * 7.00 = 350.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 555.00 НСП 1% : 4.91 НДС 12% : 58.94 Наличными: 555.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 153 22.09.2024 16:44 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115435 ФПД: 55582347550807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T164445&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115435&fm=55582347550807&tin=02508201610067®Number=0000000000091831&sum=55500 0 [16:44:44]StoreToDocumentArchive [16:44:44]shift 471 fd 115435 [16:44:44]save to /storage/0471/doc_00115435 [16:44:44]save last doc name /storage/0471/doc_00115435 to /storage/kkm_last_doc_name [16:44:44]save OK [16:44:44]Clear old archive folders... [16:44:44]ProcessDocumentItem done err = 0, tmpTLVsize=395 [16:44:44]tlvbuf is 01C1B1A0 [16:44:44]SAM_PROTO_ClearQueue [16:44:44]wFMCommunicate request_size=4 [16:44:44]MH_SAM_APDU [16:44:44]CAPDU: 80 09 00 00 [16:44:44]Write to MH i2c: E2 08 00 FB 1A 80 09 00 00 00 00 00 00 87 [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:44]Read from MH i2c: E2 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 03 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 03 00 FB 1A 00 90 00 89 [16:44:44]RAPDU: 90 00 [16:44:44]wFMCommunicate OK [16:44:44]SAM_PROTO_ClearQueue done [16:44:44]KKMCreateOFDPacket [16:44:44]OFDProtocolAddRootSTLVToBuf [16:44:44]FM_MakeSignedData [16:44:44]FM_MakeSignedData [16:44:44]SAM_PROTO_SignData [16:44:44]wFMCommunicate request_size=4 [16:44:44]MH_SAM_APDU [16:44:44]CAPDU: 80 0D 01 02 [16:44:44]Write to MH i2c: E2 08 00 FC 1A 80 0D 01 02 00 00 00 00 8F [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:44]Read from MH i2c: E2 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 03 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 03 00 FC 1A 00 90 00 8A [16:44:44]RAPDU: 90 00 [16:44:44]wFMCommunicate OK [16:44:44]wFMCommunicate request_size=255 [16:44:44]MH_SAM_APDU [16:44:44]CAPDU: 80 0D 02 02 FA 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D8 00 00 00 00 EB 03 26 00 EF 03 [16:44:44]Write to MH i2c: E2 02 01 FD 1A 80 0D 02 02 FA 00 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D8 00 00 00 00 EB 03 26 00 EF 03 00 00 1A [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:44]Read from MH i2c: E2 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 03 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 03 00 FD 1A 00 90 00 8B [16:44:44]RAPDU: 90 00 [16:44:44]wFMCommunicate OK [16:44:44]wFMCommunicate request_size=154 [16:44:44]MH_SAM_APDU [16:44:44]CAPDU: 80 0D 02 02 95 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 17 00 00 00 00 07 04 06 00 CC D8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 7D 49 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EB C2 01 00 35 04 06 00 32 8D 46 14 E0 57 [16:44:44]Write to MH i2c: E2 9D 00 FE 1A 80 0D 02 02 95 00 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 17 00 00 00 00 07 04 06 00 CC D8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 7D 49 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EB C2 01 00 35 04 06 00 32 8D 46 14 E0 57 00 00 23 [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:44]Read from MH i2c: E2 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 03 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 03 00 FE 1A 00 90 00 8C [16:44:44]RAPDU: 90 00 [16:44:44]wFMCommunicate OK [16:44:44]wFMCommunicate request_size=4 [16:44:44]MH_SAM_APDU [16:44:44]CAPDU: 80 0D 03 02 [16:44:44]Write to MH i2c: E2 08 00 FF 1A 80 0D 03 02 00 00 00 00 94 [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:44]Read from MH i2c: E2 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 0B 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 0B 00 FF 1A 00 F6 C4 0A A3 B8 AA A0 E0 90 00 DE [16:44:44]RAPDU: F6 C4 0A A3 B8 AA A0 E0 90 00 [16:44:44]wFMCommunicate OK [16:44:44]SAM_PROTO_SignData done [16:44:44]FM_MakeSignedData done [16:44:44]CreateOFDProtocolMessage [16:44:44]wFMCommunicate request_size=4 [16:44:44]MH_SAM_APDU [16:44:44]CAPDU: 80 11 00 00 [16:44:44]Write to MH i2c: E2 08 00 00 1B 80 11 00 00 00 00 00 00 95 [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:44]Read from MH i2c: E2 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 17 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 17 00 00 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E3 [16:44:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:44:44]wFMCommunicate OK [16:44:44]CreateOFDProtocolMessage done [16:44:44]OFDSenderStorePacket 115435 [16:44:44]StoreOFDPacket docnum=115435 [16:44:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9F 01 00 00 8E F6 97 01 2F 1C 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 17 00 00 00 00 07 04 06 00 CC D8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 7D 49 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EB C2 01 00 35 04 06 00 32 8D 46 14 E0 57 F6 C4 0A A3 B8 AA A0 E0 [16:44:44]CheckFolder [16:44:44]dirname=/storage/ofd_packets [16:44:44]CheckFolder done [16:44:44]ProducePacketName [16:44:44]name=ofd_packets/00115435 [16:44:44]NVStorageSaveData ofd_packets/00115435 [16:44:44]File name is /storage/ofd_packets/00115435 [16:44:44]Write 445 bytes [16:44:44]NVStorageSaveData done [16:44:44]OFDSenderStorePacket done [16:44:44]KKMCreateOFDPacket done [16:44:44]NVStorageSaveData kkm_last_timestamp [16:44:44]File name is /storage/kkm_last_timestamp [16:44:44]Write 4 bytes [16:44:44]NVStorageSaveData done [16:44:44]ExternCall_PrintAddStr [16:44:44]wPrintStart [16:44:44]Write to MH i2c: 01 00 00 01 1B 1C [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: 01 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: 01 07 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: 01 07 00 01 1B 00 00 00 00 00 FF 0F 31 [16:44:44]RasterBufferAndPrint [16:44:44]line Счет N : (3)343875 [16:44:44]line ИНН: 02508201610067 [16:44:45]line Контрольно-Кассовый Чек [16:44:45]line ПРОДАЖА [16:44:45]line Товар: 5449000000286 [16:44:45]line Напиток Кока-Кола 2л [16:44:45]line 1.000 * 205.00 [16:44:45]line = 205.00 [16:44:45]line НДС 12% НСП 1% [16:44:45]line > о реализуемом товаре [16:44:45]line Товар: 2000053020015 [16:44:45]line Бумажные стаканы 250мл 1шт [16:44:45]line 50.000 * 7.00 [16:44:45]line = 350.00 [16:44:45]line НДС 12% НСП 1% [16:44:45]line > о реализуемом товаре [16:44:45]line ИТОГО: 555.00 [16:44:45]line НСП 1% : 4.91 [16:44:45]line НДС 12% : 58.94 [16:44:45]line Наличными: 555.00 [16:44:45]line Безнал.: 0.00 [16:44:45]line Место: АЗС № 90 "Партнер Нефть" [16:44:45]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:44:45]line СНО: Общий режим [16:44:45]line Чек 153 22.09.2024 16:44 [16:44:45]line Смена: 471 ФФД: 1.0 [16:44:45]line ЗНМ: 0300000120 [16:44:45]line РНМ: 0000000000091831 [16:44:45]line Версия ККМ: 001 [16:44:45]line ФМ: 0000000000871830 [16:44:45]line ФД: 115435 [16:44:45]line ФПД: 55582347550807 [16:44:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T164445&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115435&fm=55582347550807&tin=02508201610067®Number=0000000000091831&sum=55500 [16:44:45]line 0 [16:44:45]OFD Sender: Processing packet 115435 [packets to send 481, broken 480] [16:44:45]ProducePacketName [16:44:45]name=ofd_packets/00115435 [16:44:45]OFD Sender: To server: pG, [16:44:45]CommunicateWithHost lk.salyk.kg:30040 [16:44:45]ConnectInit lk.salyk.kg [16:44:45]written 0, free lines is 4095 [16:44:45]Connected sock=10 [16:44:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9F 01 00 00 8E F6 97 01 2F 1C 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 17 00 00 00 00 07 04 06 00 CC D8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 7D 49 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EB C2 01 00 35 04 06 00 32 8D 46 14 E0 57 F6 C4 0A A3 B8 AA A0 E0 [16:44:45]Write to MH i2c: 01 00 00 2F 1B 4A [16:44:45]Write i2c OK [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: 01 [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: 01 07 00 [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: 01 07 00 2F 1B 00 00 00 00 00 00 0C 5D [16:44:45]RasterBufferAndPrint [16:44:45]line [16:44:45]line [16:44:45]line [16:44:45]line [16:44:45]line [16:44:45]written 0, free lines is 3075 [16:44:45]MH_Cut [16:44:45]Write to MH i2c: D1 01 00 36 1B 01 23 [16:44:45]Write i2c OK [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: D1 [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: D1 01 00 [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: D1 01 00 36 1B 00 22 [16:44:45]Write to MH i2c: 01 00 00 37 1B 52 [16:44:45]Write i2c OK [16:44:45]MH_I2C_Read... [16:44:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 7D C5 47 00 E9 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 31 38 33 30 10 04 04 00 EB C2 01 00 F4 03 04 00 C2 EE EF 66 B6 04 01 00 00 D0 FB FD 07 50 D8 61 D0 [16:44:45]CommunicateWithHost err = 0 [16:44:45]CheckOFDResponse [16:44:45]1017 (14) - 77093643461234 [16:44:45]1041 (16) - 0000000000871830 [16:44:45]1040 (4) - 115435 [16:44:45]1012 (4) - 22.09.2024 10:17 [16:44:45]1206 (1) - 0 [16:44:45]OFD Sender: Remove packet 115435 [16:44:45]ProducePacketName [16:44:45]name=ofd_packets/00115435 [16:44:45]NVStorageDeleteData [16:44:46]OFD Sender: No OFD packet to send [16:44:47]*** Cut start [16:44:47]*** Partial cut [16:44:47]*** CUTSNS_PIN = 1 [16:44:47]*** CUTSNS_PIN = 0 [16:44:47]*** Brake cut motor [16:44:47]Read from MH i2c: 01 [16:44:47]MH_I2C_Read... [16:44:47]*** Stop cut motor [16:44:47]*** Cut end [16:44:47]Read from MH i2c: 01 07 00 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: 01 07 00 37 1B 00 00 00 00 00 FF 0F 67 [16:44:47]process_action close_receipt done [16:44:47]requested_data is exist [16:44:47]produce_requested_data [16:44:47]requested_item fm.sn is exist - process it [16:44:47]wFMCommunicate request_size=4 [16:44:47]MH_SAM_APDU [16:44:47]CAPDU: 80 11 00 00 [16:44:47]Write to MH i2c: E2 08 00 38 1B 80 11 00 00 00 00 00 00 CD [16:44:47]Write i2c OK [16:44:47]MH_I2C_Read... [16:44:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:47]Read from MH i2c: E2 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: E2 17 00 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: E2 17 00 38 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1B [16:44:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:44:47]wFMCommunicate OK [16:44:47]requested_item fd.num is exist - process it [16:44:47]SAM_PROTO_GetFieldsCounters [16:44:47]wFMCommunicate request_size=4 [16:44:47]MH_SAM_APDU [16:44:47]CAPDU: 80 13 00 00 [16:44:47]Write to MH i2c: E2 08 00 39 1B 80 13 00 00 00 00 00 00 D0 [16:44:47]Write i2c OK [16:44:47]MH_I2C_Read... [16:44:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:47]Read from MH i2c: E2 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: E2 62 00 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: E2 62 00 39 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EB C2 01 00 0E 04 04 00 D7 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 3A [16:44:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EB C2 01 00 0E 04 04 00 D7 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 [16:44:47]wFMCommunicate OK [16:44:47]SAM_PROTO_GetFieldsCounters done [16:44:47]requested_item shift.num is exist - process it [16:44:47]requested_item shift.opened is exist - process it [16:44:47]req_shift_opened [16:44:47]FM_GetShiftState [16:44:47]SAM_PROTO_GetShiftState [16:44:47]wFMCommunicate request_size=4 [16:44:47]MH_SAM_APDU [16:44:47]CAPDU: 80 13 01 00 [16:44:47]Write to MH i2c: E2 08 00 3A 1B 80 13 01 00 00 00 00 00 D2 [16:44:47]Write i2c OK [16:44:47]MH_I2C_Read... [16:44:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:48]Read from MH i2c: E2 [16:44:48]MH_I2C_Read... [16:44:48]Read from MH i2c: E2 0E 00 [16:44:48]MH_I2C_Read... [16:44:48]Read from MH i2c: E2 0E 00 3A 1B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 EB [16:44:48]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:44:48]wFMCommunicate OK [16:44:48]SAM_PROTO_GetShiftState done [16:44:48]FM_GetShiftState done [16:44:48]req_shift_opened done [16:44:48]requested_item shift.open_date is exist - process it [16:44:48]req_shift_open_date [16:44:48]req_shift_open_date done [16:44:48]produce_requested_data done [16:44:48]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115435,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:44:48]process_action_free close_receipt [16:44:48]json_value_free [16:44:48]json_value_free done [16:44:48]process_json_proto returns [16:44:48]Send response to host [16:44:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115435,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:44:48]free response buf [16:44:48]execute_script done [16:44:48]execute_script returns [16:44:48]free content buf [16:44:48]Sock 9.Close socket [16:44:48]Sock 9.Thread stoped [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]OFD Sender: No OFD packet to send [16:46:21]OFD Sender: No OFD packet to send [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:45]accept exits with 8 [16:47:45]New connection [16:47:45]New thread 3066682724 created [16:47:45]Thread 3066826084 joined [16:47:45]Waiting for new connection... [16:47:45] Sock 8.Parse request [16:47:45]Sock 8.Check first char [16:47:45]Sock 8.First char is OK [16:47:45]request: POST /json_proto HTTP/1.0 [16:47:45]Method: POST [16:47:45]URL: /json_proto [16:47:45]Method is POST - this is cgi request [16:47:45]url: /json_proto [16:47:45]query_string will be loaded in cgi processing [16:47:45]execute_cgi json_proto POST (null) [16:47:45]execute_cgi path=json_proto method=POST [16:47:45]POST find Content-Length [16:47:45]Host: 172.17.41.136:8080 [16:47:45]Content-Length: 1668 [16:47:45]Content-Type: application/json [16:47:45] [16:47:45]POST finish read [16:47:45]Found Content-Length = 1668 [16:47:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343876", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:45]execute_script... [16: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 : (3)343876", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:45]POST & json_proto [16:47:45]process_json_proto [16:47:45]json parsed OK: [16:47:45]protocol is kg_v1.0 [16:47:45]action value=close_receipt [16:47:45]process_action close_receipt [16:47:45]cmd_close_receipt [16:47:45]MH_GetDate [16:47:45]Write to MH i2c: F0 00 00 3B 1B 45 [16:47:45]Write i2c OK [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: F0 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: F0 09 00 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: F0 09 00 3B 1B 00 34 4A F0 66 1B D0 5A 64 CB [16:47:45]GetLastDocTimeStamp 1727023485 [16:47:45]current date 1727023668 [16:47:45]FM_GetShiftState [16:47:45]SAM_PROTO_GetShiftState [16:47:45]wFMCommunicate request_size=4 [16:47:45]MH_SAM_APDU [16:47:45]CAPDU: 80 13 01 00 [16:47:45]Write to MH i2c: E2 08 00 3C 1B 80 13 01 00 00 00 00 00 D4 [16:47:45]Write i2c OK [16:47:45]MH_I2C_Read... [16:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:45]Read from MH i2c: E2 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: E2 0E 00 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: E2 0E 00 3C 1B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 ED [16:47:45]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:47:45]wFMCommunicate OK [16:47:45]SAM_PROTO_GetShiftState done [16:47:45]FM_GetShiftState done [16:47:45]opened in 1726965840 [16:47:45]opened+sec_in_day 1727052240 [16:47:45]quantity*price = 8000 [16:47:45]sum+1 = 8001 [16:47:45]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 54491472 Напиток Кока-Кола 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000189356 Холодный чай Fuse манго ананас 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003010018 Чай хол Let`s Go! зел лим ПЭТ 0,5л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 310.00 НСП 1% : 2.74 НДС 12% : 32.92 Наличными: 0.00 Безнал.: 310.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 154 22.09.2024 16:47 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115436 ФПД: 12002283208404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T164748&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115436&fm=12002283208404&tin=02508201610067®Number=0000000000091831&sum=31000 0 [16:47:47]StoreToDocumentArchive [16:47:47]shift 471 fd 115436 [16:47:47]save to /storage/0471/doc_00115436 [16:47:47]save last doc name /storage/0471/doc_00115436 to /storage/kkm_last_doc_name [16:47:47]save OK [16:47:47]Clear old archive folders... [16:47:47]ProcessDocumentItem done err = 0, tmpTLVsize=623 [16:47:47]tlvbuf is B6EA21B0 [16:47:47]SAM_PROTO_ClearQueue [16:47:47]wFMCommunicate request_size=4 [16:47:47]MH_SAM_APDU [16:47:47]CAPDU: 80 09 00 00 [16:47:47]Write to MH i2c: E2 08 00 49 1B 80 09 00 00 00 00 00 00 D6 [16:47:47]Write i2c OK [16:47:47]MH_I2C_Read... [16:47:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:47]Read from MH i2c: E2 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 03 00 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 03 00 49 1B 00 90 00 D8 [16:47:47]RAPDU: 90 00 [16:47:47]wFMCommunicate OK [16:47:47]SAM_PROTO_ClearQueue done [16:47:47]KKMCreateOFDPacket [16:47:47]OFDProtocolAddRootSTLVToBuf [16:47:47]FM_MakeSignedData [16:47:47]FM_MakeSignedData [16:47:47]SAM_PROTO_SignData [16:47:47]wFMCommunicate request_size=4 [16:47:47]MH_SAM_APDU [16:47:47]CAPDU: 80 0D 01 02 [16:47:47]Write to MH i2c: E2 08 00 4A 1B 80 0D 01 02 00 00 00 00 DE [16:47:47]Write i2c OK [16:47:47]MH_I2C_Read... [16:47:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:47]Read from MH i2c: E2 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 03 00 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 03 00 4A 1B 00 90 00 D9 [16:47:47]RAPDU: 90 00 [16:47:47]wFMCommunicate OK [16:47:47]wFMCommunicate request_size=255 [16:47:47]MH_SAM_APDU [16:47:47]CAPDU: 80 0D 02 02 FA 03 00 6F 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 [16:47:47]Write to MH i2c: E2 02 01 4B 1B 80 0D 02 02 FA 00 03 00 6F 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 00 00 D4 [16:47:47]Write i2c OK [16:47:47]MH_I2C_Read... [16:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:47]Read from MH i2c: E2 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 03 00 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 03 00 4B 1B 00 90 00 DA [16:47:47]RAPDU: 90 00 [16:47:47]wFMCommunicate OK [16:47:47]wFMCommunicate request_size=255 [16:47:47]MH_SAM_APDU [16:47:47]CAPDU: 80 0D 02 02 FA 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 [16:47:47]Write to MH i2c: E2 02 01 4C 1B 80 0D 02 02 FA 00 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 00 00 69 [16:47:47]Write i2c OK [16:47:47]MH_I2C_Read... [16:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:47]Read from MH i2c: E2 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 03 00 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 03 00 4C 1B 00 90 00 DB [16:47:47]RAPDU: 90 00 [16:47:47]wFMCommunicate OK [16:47:47]wFMCommunicate request_size=132 [16:47:47]MH_SAM_APDU [16:47:47]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 34 4A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EC C2 01 00 35 04 06 00 0A EA 7F D3 BE D4 [16:47:47]Write to MH i2c: E2 87 00 4D 1B 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 34 4A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EC C2 01 00 35 04 06 00 0A EA 7F D3 BE D4 00 00 59 [16:47:47]Write i2c OK [16:47:47]MH_I2C_Read... [16:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:47]Read from MH i2c: E2 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 03 00 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 03 00 4D 1B 00 90 00 DC [16:47:47]RAPDU: 90 00 [16:47:47]wFMCommunicate OK [16:47:47]wFMCommunicate request_size=4 [16:47:47]MH_SAM_APDU [16:47:47]CAPDU: 80 0D 03 02 [16:47:47]Write to MH i2c: E2 08 00 4E 1B 80 0D 03 02 00 00 00 00 E4 [16:47:47]Write i2c OK [16:47:47]MH_I2C_Read... [16:47:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:47]Read from MH i2c: E2 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 0B 00 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 0B 00 4E 1B 00 16 12 DA 48 DA 2A 7E 6A 90 00 1B [16:47:47]RAPDU: 16 12 DA 48 DA 2A 7E 6A 90 00 [16:47:47]wFMCommunicate OK [16:47:47]SAM_PROTO_SignData done [16:47:47]FM_MakeSignedData done [16:47:47]CreateOFDProtocolMessage [16:47:47]wFMCommunicate request_size=4 [16:47:47]MH_SAM_APDU [16:47:47]CAPDU: 80 11 00 00 [16:47:47]Write to MH i2c: E2 08 00 4F 1B 80 11 00 00 00 00 00 00 E4 [16:47:47]Write i2c OK [16:47:47]MH_I2C_Read... [16:47:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:47]Read from MH i2c: E2 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 17 00 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 17 00 4F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 32 [16:47:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:47:47]wFMCommunicate OK [16:47:47]CreateOFDProtocolMessage done [16:47:47]OFDSenderStorePacket 115436 [16:47:47]StoreOFDPacket docnum=115436 [16:47:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 83 02 00 00 44 76 7B 02 56 1F 5A 03 01 00 03 00 6F 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 34 4A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EC C2 01 00 35 04 06 00 0A EA 7F D3 BE D4 16 12 DA 48 DA 2A 7E 6A [16:47:47]CheckFolder [16:47:47]dirname=/storage/ofd_packets [16:47:47]CheckFolder done [16:47:47]ProducePacketName [16:47:47]name=ofd_packets/00115436 [16:47:47]NVStorageSaveData ofd_packets/00115436 [16:47:47]File name is /storage/ofd_packets/00115436 [16:47:47]Write 673 bytes [16:47:47]NVStorageSaveData done [16:47:47]OFDSenderStorePacket done [16:47:47]KKMCreateOFDPacket done [16:47:47]NVStorageSaveData kkm_last_timestamp [16:47:47]File name is /storage/kkm_last_timestamp [16:47:47]Write 4 bytes [16:47:47]NVStorageSaveData done [16:47:47]ExternCall_PrintAddStr [16:47:47]wPrintStart [16:47:47]Write to MH i2c: 01 00 00 50 1B 6B [16:47:47]Write i2c OK [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: 01 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: 01 07 00 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: 01 07 00 50 1B 00 00 00 00 00 FF 0F 80 [16:47:47]RasterBufferAndPrint [16:47:47]line Счет N : (3)343876 [16:47:47]line ИНН: 02508201610067 [16:47:47]line Контрольно-Кассовый Чек [16:47:47]line ПРОДАЖА [16:47:47]line Товар: 4870001570057 [16:47:47]line Напиток Pepsi 0,5л [16:47:47]line 1.000 * 80.00 [16:47:47]line = 80.00 [16:47:47]line НДС 12% НСП 1% [16:47:47]line > о реализуемом товаре [16:47:47]line Товар: 54491472 [16:47:47]line Напиток Кока-Кола 0,5л [16:47:47]line 1.000 * 75.00 [16:47:47]line = 75.00 [16:47:47]line НДС 12% НСП 1% [16:47:47]line > о реализуемом товаре [16:47:48]line Товар: 5449000189356 [16:47:48]line Холодный чай Fuse манго ананас 1л [16:47:48]line 1.000 * 105.00 [16:47:48]line = 105.00 [16:47:48]line НДС 12% НСП 1% [16:47:48]line > о реализуемом товаре [16:47:48]line Товар: 4700003010018 [16:47:48]line Чай хол Let`s Go! зел лим ПЭТ 0,5л [16:47:48]line 1.000 * 50.00 [16:47:48]line = 50.00 [16:47:48]line НДС 12% НСП 1% [16:47:48]line > о реализуемом товаре [16:47:48]line ИТОГО: 310.00 [16:47:48]line НСП 1% : 2.74 [16:47:48]line НДС 12% : 32.92 [16:47:48]line Наличными: 0.00 [16:47:48]line Безнал.: 310.00 [16:47:48]line Место: АЗС № 90 "Партнер Нефть" [16:47:48]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:47:48]line СНО: Общий режим [16:47:48]line Чек 154 22.09.2024 16:47 [16:47:48]line Смена: 471 ФФД: 1.0 [16:47:48]line ЗНМ: 0300000120 [16:47:48]line РНМ: 0000000000091831 [16:47:48]line Версия ККМ: 001 [16:47:48]line Платежная система: Бакай Банк [16:47:48]line ФМ: 0000000000871830 [16:47:48]line ФД: 115436 [16:47:48]line ФПД: 12002283208404 [16:47:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T164748&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115436&fm=12002283208404&tin=02508201610067®Number=0000000000091831&sum=31000 [16:47:48]line 0 [16:47:48]OFD Sender: Processing packet 115436 [packets to send 481, broken 480] [16:47:48]ProducePacketName [16:47:48]name=ofd_packets/00115436 [16:47:48]OFD Sender: To server: pG, [16:47:48]CommunicateWithHost lk.salyk.kg:30040 [16:47:48]ConnectInit lk.salyk.kg [16:47:48]written 0, free lines is 4095 [16:47:48]Connected sock=10 [16:47:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 83 02 00 00 44 76 7B 02 56 1F 5A 03 01 00 03 00 6F 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 34 4A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EC C2 01 00 35 04 06 00 0A EA 7F D3 BE D4 16 12 DA 48 DA 2A 7E 6A [16:47:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A1 F1 47 00 F4 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 31 38 33 30 10 04 04 00 EC C2 01 00 F4 03 04 00 79 EF EF 66 B6 04 01 00 00 44 F0 B1 A3 C7 16 D0 82 [16:47:48]CommunicateWithHost err = 0 [16:47:48]CheckOFDResponse [16:47:48]1017 (14) - 77093643461234 [16:47:48]1041 (16) - 0000000000871830 [16:47:48]1040 (4) - 115436 [16:47:48]1012 (4) - 22.09.2024 10:20 [16:47:48]1206 (1) - 0 [16:47:48]OFD Sender: Remove packet 115436 [16:47:48]ProducePacketName [16:47:48]name=ofd_packets/00115436 [16:47:48]NVStorageDeleteData [16:47:48]Write to MH i2c: 01 00 00 8D 1B A8 [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: 01 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: 01 07 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: 01 07 00 8D 1B 00 00 00 00 00 D7 0A 90 [16:47:48]RasterBufferAndPrint [16:47:48]line [16:47:48]line [16:47:48]line [16:47:48]line [16:47:48]line [16:47:48]written 0, free lines is 2780 [16:47:48]MH_Cut [16:47:48]Write to MH i2c: D1 01 00 94 1B 01 81 [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: D1 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: D1 01 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: D1 01 00 94 1B 00 80 [16:47:48]Write to MH i2c: 01 00 00 95 1B B0 [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:49]OFD Sender: No OFD packet to send [16:47:50]*** Cut start [16:47:50]*** Partial cut [16:47:50]*** CUTSNS_PIN = 1 [16:47:50]*** CUTSNS_PIN = 0 [16:47:50]*** Brake cut motor [16:47:51]Read from MH i2c: 01 [16:47:51]MH_I2C_Read... [16:47:51]*** Stop cut motor [16:47:51]*** Cut end [16:47:51]Read from MH i2c: 01 07 00 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: 01 07 00 95 1B 00 00 00 00 00 FF 0F C5 [16:47:51]process_action close_receipt done [16:47:51]requested_data is exist [16:47:51]produce_requested_data [16:47:51]requested_item fm.sn is exist - process it [16:47:51]wFMCommunicate request_size=4 [16:47:51]MH_SAM_APDU [16:47:51]CAPDU: 80 11 00 00 [16:47:51]Write to MH i2c: E2 08 00 96 1B 80 11 00 00 00 00 00 00 2B [16:47:51]Write i2c OK [16:47:51]MH_I2C_Read... [16:47:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:51]Read from MH i2c: E2 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 17 00 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 17 00 96 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 79 [16:47:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:47:51]wFMCommunicate OK [16:47:51]requested_item fd.num is exist - process it [16:47:51]SAM_PROTO_GetFieldsCounters [16:47:51]wFMCommunicate request_size=4 [16:47:51]MH_SAM_APDU [16:47:51]CAPDU: 80 13 00 00 [16:47:51]Write to MH i2c: E2 08 00 97 1B 80 13 00 00 00 00 00 00 2E [16:47:51]Write i2c OK [16:47:51]MH_I2C_Read... [16:47:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:51]Read from MH i2c: E2 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 62 00 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 62 00 97 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EC C2 01 00 0E 04 04 00 D7 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 9C [16:47:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EC C2 01 00 0E 04 04 00 D7 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 [16:47:51]wFMCommunicate OK [16:47:51]SAM_PROTO_GetFieldsCounters done [16:47:51]requested_item shift.num is exist - process it [16:47:51]requested_item shift.opened is exist - process it [16:47:51]req_shift_opened [16:47:51]FM_GetShiftState [16:47:51]SAM_PROTO_GetShiftState [16:47:51]wFMCommunicate request_size=4 [16:47:51]MH_SAM_APDU [16:47:51]CAPDU: 80 13 01 00 [16:47:51]Write to MH i2c: E2 08 00 98 1B 80 13 01 00 00 00 00 00 30 [16:47:51]Write i2c OK [16:47:51]MH_I2C_Read... [16:47:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:51]Read from MH i2c: E2 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 0E 00 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 0E 00 98 1B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 49 [16:47:51]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:47:51]wFMCommunicate OK [16:47:51]SAM_PROTO_GetShiftState done [16:47:51]FM_GetShiftState done [16:47:51]req_shift_opened done [16:47:51]requested_item shift.open_date is exist - process it [16:47:51]req_shift_open_date [16:47:51]req_shift_open_date done [16:47:51]produce_requested_data done [16:47:51]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115436,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:47:51]process_action_free close_receipt [16:47:51]json_value_free [16:47:51]json_value_free done [16:47:51]process_json_proto returns [16:47:51]Send response to host [16:47:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115436,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:47:51]free response buf [16:47:51]execute_script done [16:47:51]execute_script returns [16:47:51]free content buf [16:47:51]Sock 8.Close socket [16:47:51]Sock 8.Thread stoped [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:19]accept exits with 9 [16:48:19]New connection [16:48:19]New thread 3066826084 created [16:48:19]Thread 3066682724 joined [16:48:19]Waiting for new connection... [16:48:19] Sock 9.Parse request [16:48:19]Sock 9.Check first char [16:48:19]Sock 9.First char is OK [16:48:19]request: POST /json_proto HTTP/1.0 [16:48:19]Method: POST [16:48:19]URL: /json_proto [16:48:19]Method is POST - this is cgi request [16:48:19]url: /json_proto [16:48:19]query_string will be loaded in cgi processing [16:48:19]execute_cgi json_proto POST (null) [16:48:19]execute_cgi path=json_proto method=POST [16:48:19]POST find Content-Length [16:48:19]Host: 172.17.41.136:8080 [16:48:19]Content-Length: 644 [16:48:19]Content-Type: application/json [16:48:19] [16:48:19]POST finish read [16:48:19]Found Content-Length = 644 [16:48:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343877", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:19]execute_script... [16:48:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343877", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:19]POST & json_proto [16:48:19]process_json_proto [16:48:19]json parsed OK: [16:48:19]protocol is kg_v1.0 [16:48:19]action value=close_receipt [16:48:19]process_action close_receipt [16:48:19]cmd_close_receipt [16:48:19]MH_GetDate [16:48:19]Write to MH i2c: F0 00 00 99 1B A3 [16:48:19]Write i2c OK [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: F0 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: F0 09 00 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: F0 09 00 99 1B 00 55 4A F0 66 1B D0 5A 64 4A [16:48:19]GetLastDocTimeStamp 1727023668 [16:48:19]current date 1727023701 [16:48:19]FM_GetShiftState [16:48:19]SAM_PROTO_GetShiftState [16:48:19]wFMCommunicate request_size=4 [16:48:19]MH_SAM_APDU [16:48:19]CAPDU: 80 13 01 00 [16:48:19]Write to MH i2c: E2 08 00 9A 1B 80 13 01 00 00 00 00 00 32 [16:48:19]Write i2c OK [16:48:19]MH_I2C_Read... [16:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:19]Read from MH i2c: E2 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: E2 0E 00 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: E2 0E 00 9A 1B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 4B [16:48:19]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:48:19]wFMCommunicate OK [16:48:19]SAM_PROTO_GetShiftState done [16:48:19]FM_GetShiftState done [16:48:19]opened in 1726965840 [16:48:19]opened+sec_in_day 1727052240 [16:48:19]quantity*price = 4200 [16:48:19]sum+1 = 4201 [16:48:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 42.00 НСП 1% : 0.37 НДС 12% : 4.46 Наличными: 42.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 155 22.09.2024 16:48 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115437 ФПД: 101355378978424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T164821&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115437&fm=101355378978424&tin=02508201610067®Number=0000000000091831&sum=4200 0 [16:48:20]StoreToDocumentArchive [16:48:20]shift 471 fd 115437 [16:48:20]save to /storage/0471/doc_00115437 [16:48:20]save last doc name /storage/0471/doc_00115437 to /storage/kkm_last_doc_name [16:48:20]save OK [16:48:20]Clear old archive folders... [16:48:20]ProcessDocumentItem done err = 0, tmpTLVsize=275 [16:48:20]tlvbuf is 01C5E280 [16:48:20]SAM_PROTO_ClearQueue [16:48:20]wFMCommunicate request_size=4 [16:48:20]MH_SAM_APDU [16:48:20]CAPDU: 80 09 00 00 [16:48:20]Write to MH i2c: E2 08 00 A7 1B 80 09 00 00 00 00 00 00 34 [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:20]Read from MH i2c: E2 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 03 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 03 00 A7 1B 00 90 00 36 [16:48:20]RAPDU: 90 00 [16:48:20]wFMCommunicate OK [16:48:20]SAM_PROTO_ClearQueue done [16:48:20]KKMCreateOFDPacket [16:48:20]OFDProtocolAddRootSTLVToBuf [16:48:20]FM_MakeSignedData [16:48:20]FM_MakeSignedData [16:48:20]SAM_PROTO_SignData [16:48:20]wFMCommunicate request_size=4 [16:48:20]MH_SAM_APDU [16:48:20]CAPDU: 80 0D 01 02 [16:48:20]Write to MH i2c: E2 08 00 A8 1B 80 0D 01 02 00 00 00 00 3C [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:20]Read from MH i2c: E2 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 03 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 03 00 A8 1B 00 90 00 37 [16:48:20]RAPDU: 90 00 [16:48:20]wFMCommunicate OK [16:48:20]wFMCommunicate request_size=255 [16:48:20]MH_SAM_APDU [16:48:20]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 55 4A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 [16:48:20]Write to MH i2c: E2 02 01 A9 1B 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 55 4A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 00 00 19 [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:20]Read from MH i2c: E2 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 03 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 03 00 A9 1B 00 90 00 38 [16:48:20]RAPDU: 90 00 [16:48:20]wFMCommunicate OK [16:48:20]wFMCommunicate request_size=34 [16:48:20]MH_SAM_APDU [16:48:20]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 ED C2 01 00 35 04 06 00 5C 2E A3 5C 2E 78 [16:48:20]Write to MH i2c: E2 25 00 AA 1B 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 ED C2 01 00 35 04 06 00 5C 2E A3 5C 2E 78 00 00 DA [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:21]Read from MH i2c: E2 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 03 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 03 00 AA 1B 00 90 00 39 [16:48:21]RAPDU: 90 00 [16:48:21]wFMCommunicate OK [16:48:21]wFMCommunicate request_size=4 [16:48:21]MH_SAM_APDU [16:48:21]CAPDU: 80 0D 03 02 [16:48:21]Write to MH i2c: E2 08 00 AB 1B 80 0D 03 02 00 00 00 00 41 [16:48:21]Write i2c OK [16:48:21]MH_I2C_Read... [16:48:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:21]Read from MH i2c: E2 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 0B 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 0B 00 AB 1B 00 C0 96 65 28 ED 9B 63 A8 90 00 B8 [16:48:21]RAPDU: C0 96 65 28 ED 9B 63 A8 90 00 [16:48:21]wFMCommunicate OK [16:48:21]SAM_PROTO_SignData done [16:48:21]FM_MakeSignedData done [16:48:21]CreateOFDProtocolMessage [16:48:21]wFMCommunicate request_size=4 [16:48:21]MH_SAM_APDU [16:48:21]CAPDU: 80 11 00 00 [16:48:21]Write to MH i2c: E2 08 00 AC 1B 80 11 00 00 00 00 00 00 41 [16:48:21]Write i2c OK [16:48:21]MH_I2C_Read... [16:48:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:21]Read from MH i2c: E2 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 17 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 17 00 AC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8F [16:48:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:48:21]wFMCommunicate OK [16:48:21]CreateOFDProtocolMessage done [16:48:21]OFDSenderStorePacket 115437 [16:48:21]StoreOFDPacket docnum=115437 [16:48:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 F7 2C 1F 01 E3 00 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 55 4A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 ED C2 01 00 35 04 06 00 5C 2E A3 5C 2E 78 C0 96 65 28 ED 9B 63 A8 [16:48:21]CheckFolder [16:48:21]dirname=/storage/ofd_packets [16:48:21]CheckFolder done [16:48:21]ProducePacketName [16:48:21]name=ofd_packets/00115437 [16:48:21]NVStorageSaveData ofd_packets/00115437 [16:48:21]File name is /storage/ofd_packets/00115437 [16:48:21]Write 325 bytes [16:48:21]NVStorageSaveData done [16:48:21]OFDSenderStorePacket done [16:48:21]KKMCreateOFDPacket done [16:48:21]NVStorageSaveData kkm_last_timestamp [16:48:21]File name is /storage/kkm_last_timestamp [16:48:21]Write 4 bytes [16:48:21]NVStorageSaveData done [16:48:21]ExternCall_PrintAddStr [16:48:21]wPrintStart [16:48:21]Write to MH i2c: 01 00 00 AD 1B C8 [16:48:21]Write i2c OK [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: 01 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: 01 07 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: 01 07 00 AD 1B 00 00 00 00 00 FF 0F DD [16:48:21]RasterBufferAndPrint [16:48:21]line Счет N : (3)343877 [16:48:21]line ИНН: 02508201610067 [16:48:21]line Контрольно-Кассовый Чек [16:48:21]line ПРОДАЖА [16:48:21]line Товар: 5449000005489 [16:48:21]line Вода Бонаква 1л б/г [16:48:21]line 1.000 * 42.00 [16:48:21]line = 42.00 [16:48:21]line НДС 12% НСП 1% [16:48:21]line > о реализуемом товаре [16:48:21]line ИТОГО: 42.00 [16:48:21]line НСП 1% : 0.37 [16:48:21]line НДС 12% : 4.46 [16:48:21]line Наличными: 42.00 [16:48:21]line Безнал.: 0.00 [16:48:21]line Место: АЗС № 90 "Партнер Нефть" [16:48:21]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:48:21]line СНО: Общий режим [16:48:21]line Чек 155 22.09.2024 16:48 [16:48:21]line Смена: 471 ФФД: 1.0 [16:48:21]line ЗНМ: 0300000120 [16:48:21]line РНМ: 0000000000091831 [16:48:21]line Версия ККМ: 001 [16:48:21]line ФМ: 0000000000871830 [16:48:21]line ФД: 115437 [16:48:21]line ФПД: 101355378978424 [16:48:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T164821&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115437&fm=101355378978424&tin=02508201610067®Number=0000000000091831&sum=4200 [16:48:21]line 0 [16:48:21]OFD Sender: Processing packet 115437 [packets to send 481, broken 480] [16:48:21]ProducePacketName [16:48:21]name=ofd_packets/00115437 [16:48:21]OFD Sender: To server: pG, [16:48:21]CommunicateWithHost lk.salyk.kg:30040 [16:48:21]ConnectInit lk.salyk.kg [16:48:21]written 0, free lines is 4095 [16:48:21]Connected sock=10 [16:48:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 F7 2C 1F 01 E3 00 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 55 4A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 ED C2 01 00 35 04 06 00 5C 2E A3 5C 2E 78 C0 96 65 28 ED 9B 63 A8 [16:48:21]Write to MH i2c: 01 00 00 D4 1B EF [16:48:21]Write i2c OK [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: 01 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: 01 07 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: 01 07 00 D4 1B 00 00 00 00 00 8B 0C 8D [16:48:21]RasterBufferAndPrint [16:48:21]line [16:48:21]line [16:48:21]line [16:48:21]line [16:48:21]line [16:48:21]written 0, free lines is 3217 [16:48:21]MH_Cut [16:48:21]Write to MH i2c: D1 01 00 DB 1B 01 C8 [16:48:21]Write i2c OK [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: D1 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: D1 01 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: D1 01 00 DB 1B 00 C7 [16:48:21]Write to MH i2c: 01 00 00 DC 1B F7 [16:48:21]Write i2c OK [16:48:21]MH_I2C_Read... [16:48:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D7 D7 47 00 56 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 ED C2 01 00 F4 03 04 00 9B EF EF 66 B6 04 01 00 00 C7 A5 0C 78 7E B7 E7 2A [16:48:22]CommunicateWithHost err = 0 [16:48:22]CheckOFDResponse [16:48:22]1017 (14) - 77093643461234 [16:48:22]1041 (16) - 0000000000871830 [16:48:22]1040 (4) - 115437 [16:48:22]1012 (4) - 22.09.2024 10:21 [16:48:22]1206 (1) - 0 [16:48:22]OFD Sender: Remove packet 115437 [16:48:22]ProducePacketName [16:48:22]name=ofd_packets/00115437 [16:48:22]NVStorageDeleteData [16:48:22]OFD Sender: No OFD packet to send [16:48:23]*** Cut start [16:48:23]*** Partial cut [16:48:23]*** CUTSNS_PIN = 1 [16:48:23]*** CUTSNS_PIN = 0 [16:48:23]*** Brake cut motor [16:48:23]Read from MH i2c: 01 [16:48:23]MH_I2C_Read... [16:48:23]*** Stop cut motor [16:48:23]*** Cut end [16:48:23]Read from MH i2c: 01 07 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: 01 07 00 DC 1B 00 00 00 00 00 FF 0F 0C [16:48:23]process_action close_receipt done [16:48:23]requested_data is exist [16:48:23]produce_requested_data [16:48:23]requested_item fm.sn is exist - process it [16:48:23]wFMCommunicate request_size=4 [16:48:23]MH_SAM_APDU [16:48:23]CAPDU: 80 11 00 00 [16:48:23]Write to MH i2c: E2 08 00 DD 1B 80 11 00 00 00 00 00 00 72 [16:48:23]Write i2c OK [16:48:23]MH_I2C_Read... [16:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:23]Read from MH i2c: E2 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 17 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 17 00 DD 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C0 [16:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:48:23]wFMCommunicate OK [16:48:23]requested_item fd.num is exist - process it [16:48:23]SAM_PROTO_GetFieldsCounters [16:48:23]wFMCommunicate request_size=4 [16:48:23]MH_SAM_APDU [16:48:23]CAPDU: 80 13 00 00 [16:48:23]Write to MH i2c: E2 08 00 DE 1B 80 13 00 00 00 00 00 00 75 [16:48:23]Write i2c OK [16:48:23]MH_I2C_Read... [16:48:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:23]Read from MH i2c: E2 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 62 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 62 00 DE 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 ED C2 01 00 0E 04 04 00 D7 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 E7 [16:48:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 ED C2 01 00 0E 04 04 00 D7 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 [16:48:23]wFMCommunicate OK [16:48:23]SAM_PROTO_GetFieldsCounters done [16:48:23]requested_item shift.num is exist - process it [16:48:23]requested_item shift.opened is exist - process it [16:48:23]req_shift_opened [16:48:23]FM_GetShiftState [16:48:23]SAM_PROTO_GetShiftState [16:48:23]wFMCommunicate request_size=4 [16:48:23]MH_SAM_APDU [16:48:23]CAPDU: 80 13 01 00 [16:48:23]Write to MH i2c: E2 08 00 DF 1B 80 13 01 00 00 00 00 00 77 [16:48:23]Write i2c OK [16:48:23]MH_I2C_Read... [16:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:23]Read from MH i2c: E2 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 0E 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 0E 00 DF 1B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 90 [16:48:23]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:48:23]wFMCommunicate OK [16:48:23]SAM_PROTO_GetShiftState done [16:48:23]FM_GetShiftState done [16:48:23]req_shift_opened done [16:48:23]requested_item shift.open_date is exist - process it [16:48:23]req_shift_open_date [16:48:23]req_shift_open_date done [16:48:23]produce_requested_data done [16:48:23]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115437,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:48:23]process_action_free close_receipt [16:48:23]json_value_free [16:48:23]json_value_free done [16:48:23]process_json_proto returns [16:48:23]Send response to host [16:48:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115437,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:48:23]free response buf [16:48:23]execute_script done [16:48:23]execute_script returns [16:48:23]free content buf [16:48:23]Sock 9.Close socket [16:48:23]Sock 9.Thread stoped [16:48:27]OFD Sender: No OFD packet to send [16:48:32]OFD Sender: No OFD packet to send [16:48:37]OFD Sender: No OFD packet to send [16:48:42]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:52]OFD Sender: No OFD packet to send [16:48:57]OFD Sender: No OFD packet to send [16:49:02]OFD Sender: No OFD packet to send [16:49:07]OFD Sender: No OFD packet to send [16:49:12]OFD Sender: No OFD packet to send [16:49:17]OFD Sender: No OFD packet to send [16:49:22]OFD Sender: No OFD packet to send [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:37]OFD Sender: No OFD packet to send [16:49:38]accept exits with 8 [16:49:38]New connection [16:49:38]New thread 3066682724 created [16:49:38]Thread 3066826084 joined [16:49:38]Waiting for new connection... [16:49:38] Sock 8.Parse request [16:49:38]Sock 8.Check first char [16:49:38]Sock 8.First char is OK [16:49:38]request: POST /json_proto HTTP/1.0 [16:49:38]Method: POST [16:49:38]URL: /json_proto [16:49:38]Method is POST - this is cgi request [16:49:38]url: /json_proto [16:49:38]query_string will be loaded in cgi processing [16:49:38]execute_cgi json_proto POST (null) [16:49:38]execute_cgi path=json_proto method=POST [16:49:38]POST find Content-Length [16:49:38]Host: 172.17.41.136:8080 [16:49:38]Content-Length: 1581 [16:49:38]Content-Type: application/json [16:49:38] [16:49:38]POST finish read [16:49:38]Found Content-Length = 1581 [16:49:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343878", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602606017572", "name": "\u041C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 \u0427\u0427 \u041A\u0438\u0441\u043B\u044B\u0435 \u0440\u043E\u043B\u043B\u0441\u044B 30*70\u0433", "price" : 103.00, "quantity" : 1.000, "sum" : 103.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 383.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:38]execute_script... [16:49:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343878", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602606017572", "name": "\u041C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 \u0427\u0427 \u041A\u0438\u0441\u043B\u044B\u0435 \u0440\u043E\u043B\u043B\u0441\u044B 30*70\u0433", "price" : 103.00, "quantity" : 1.000, "sum" : 103.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 383.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:38]POST & json_proto [16:49:38]process_json_proto [16:49:38]json parsed OK: [16:49:38]protocol is kg_v1.0 [16:49:38]action value=close_receipt [16:49:38]process_action close_receipt [16:49:38]cmd_close_receipt [16:49:38]MH_GetDate [16:49:38]Write to MH i2c: F0 00 00 E0 1B EA [16:49:38]Write i2c OK [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: F0 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: F0 09 00 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: F0 09 00 E0 1B 00 A4 4A F0 66 1B D0 5A 64 E0 [16:49:38]GetLastDocTimeStamp 1727023701 [16:49:38]current date 1727023780 [16:49:38]FM_GetShiftState [16:49:38]SAM_PROTO_GetShiftState [16:49:38]wFMCommunicate request_size=4 [16:49:38]MH_SAM_APDU [16:49:38]CAPDU: 80 13 01 00 [16:49:38]Write to MH i2c: E2 08 00 E1 1B 80 13 01 00 00 00 00 00 79 [16:49:38]Write i2c OK [16:49:38]MH_I2C_Read... [16:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:39]Read from MH i2c: E2 [16:49:39]MH_I2C_Read... [16:49:39]Read from MH i2c: E2 0E 00 [16:49:39]MH_I2C_Read... [16:49:39]Read from MH i2c: E2 0E 00 E1 1B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 92 [16:49:39]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:49:39]wFMCommunicate OK [16:49:39]SAM_PROTO_GetShiftState done [16:49:39]FM_GetShiftState done [16:49:39]opened in 1726965840 [16:49:39]opened+sec_in_day 1727052240 [16:49:39]quantity*price = 15000 [16:49:39]sum+1 = 15001 [16:49:39]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4602606017572 Мармелад ЧЧ Кислые роллсы 30*70г 1.000 * 103.00 = 103.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 383.00 НСП 1% : 3.39 НДС 12% : 40.68 Наличными: 0.00 Безнал.: 383.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 156 22.09.2024 16:49 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115438 ФПД: 109239020914074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T164941&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115438&fm=109239020914074&tin=02508201610067®Number=0000000000091831&sum=38300 0 [16:49:40]StoreToDocumentArchive [16:49:40]shift 471 fd 115438 [16:49:40]save to /storage/0471/doc_00115438 [16:49:40]save last doc name /storage/0471/doc_00115438 to /storage/kkm_last_doc_name [16:49:40]save OK [16:49:40]Clear old archive folders... [16:49:40]ProcessDocumentItem done err = 0, tmpTLVsize=598 [16:49:40]tlvbuf is 01C50B80 [16:49:40]SAM_PROTO_ClearQueue [16:49:40]wFMCommunicate request_size=4 [16:49:40]MH_SAM_APDU [16:49:40]CAPDU: 80 09 00 00 [16:49:40]Write to MH i2c: E2 08 00 EE 1B 80 09 00 00 00 00 00 00 7B [16:49:40]Write i2c OK [16:49:40]MH_I2C_Read... [16:49:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:40]Read from MH i2c: E2 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 03 00 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 03 00 EE 1B 00 90 00 7D [16:49:40]RAPDU: 90 00 [16:49:40]wFMCommunicate OK [16:49:40]SAM_PROTO_ClearQueue done [16:49:40]KKMCreateOFDPacket [16:49:40]OFDProtocolAddRootSTLVToBuf [16:49:40]FM_MakeSignedData [16:49:40]FM_MakeSignedData [16:49:40]SAM_PROTO_SignData [16:49:40]wFMCommunicate request_size=4 [16:49:40]MH_SAM_APDU [16:49:40]CAPDU: 80 0D 01 02 [16:49:40]Write to MH i2c: E2 08 00 EF 1B 80 0D 01 02 00 00 00 00 83 [16:49:40]Write i2c OK [16:49:40]MH_I2C_Read... [16:49:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:40]Read from MH i2c: E2 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 03 00 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 03 00 EF 1B 00 90 00 7E [16:49:40]RAPDU: 90 00 [16:49:40]wFMCommunicate OK [16:49:40]wFMCommunicate request_size=255 [16:49:40]MH_SAM_APDU [16:49:40]CAPDU: 80 0D 02 02 FA 03 00 56 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 37 35 37 32 06 04 37 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 [16:49:40]Write to MH i2c: E2 02 01 F0 1B 80 0D 02 02 FA 00 03 00 56 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 37 35 37 32 06 04 37 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 00 00 FB [16:49:40]Write i2c OK [16:49:40]MH_I2C_Read... [16:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:40]Read from MH i2c: E2 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 03 00 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 03 00 F0 1B 00 90 00 7F [16:49:40]RAPDU: 90 00 [16:49:40]wFMCommunicate OK [16:49:40]wFMCommunicate request_size=255 [16:49:40]MH_SAM_APDU [16:49:40]CAPDU: 80 0D 02 02 FA D0 B4 20 D0 A7 D0 A7 20 D0 9A D0 B8 D1 81 D0 BB D1 8B D0 B5 20 D1 80 D0 BE D0 BB D0 BB D1 81 D1 8B 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 95 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 [16:49:40]Write to MH i2c: E2 02 01 F1 1B 80 0D 02 02 FA 00 D0 B4 20 D0 A7 D0 A7 20 D0 9A D0 B8 D1 81 D0 BB D1 8B D0 B5 20 D1 80 D0 BE D0 BB D0 BB D1 81 D1 8B 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 95 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 00 00 64 [16:49:40]Write i2c OK [16:49:40]MH_I2C_Read... [16:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:40]Read from MH i2c: E2 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 03 00 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 03 00 F1 1B 00 90 00 80 [16:49:40]RAPDU: 90 00 [16:49:40]wFMCommunicate OK [16:49:40]wFMCommunicate request_size=107 [16:49:40]MH_SAM_APDU [16:49:40]CAPDU: 80 0D 02 02 66 04 06 00 9C 95 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 A5 4A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EE C2 01 00 35 04 06 00 63 5A 31 09 85 9A [16:49:40]Write to MH i2c: E2 6E 00 F2 1B 80 0D 02 02 66 00 04 06 00 9C 95 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 A5 4A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EE C2 01 00 35 04 06 00 63 5A 31 09 85 9A 00 00 EC [16:49:40]Write i2c OK [16:49:40]MH_I2C_Read... [16:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:40]Read from MH i2c: E2 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 03 00 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 03 00 F2 1B 00 90 00 81 [16:49:40]RAPDU: 90 00 [16:49:40]wFMCommunicate OK [16:49:40]wFMCommunicate request_size=4 [16:49:40]MH_SAM_APDU [16:49:40]CAPDU: 80 0D 03 02 [16:49:40]Write to MH i2c: E2 08 00 F3 1B 80 0D 03 02 00 00 00 00 89 [16:49:40]Write i2c OK [16:49:40]MH_I2C_Read... [16:49:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:40]Read from MH i2c: E2 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 0B 00 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 0B 00 F3 1B 00 69 14 8B 08 8C EA 60 DF 90 00 4F [16:49:40]RAPDU: 69 14 8B 08 8C EA 60 DF 90 00 [16:49:40]wFMCommunicate OK [16:49:40]SAM_PROTO_SignData done [16:49:40]FM_MakeSignedData done [16:49:40]CreateOFDProtocolMessage [16:49:40]wFMCommunicate request_size=4 [16:49:40]MH_SAM_APDU [16:49:40]CAPDU: 80 11 00 00 [16:49:40]Write to MH i2c: E2 08 00 F4 1B 80 11 00 00 00 00 00 00 89 [16:49:40]Write i2c OK [16:49:40]MH_I2C_Read... [16:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:41]Read from MH i2c: E2 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: E2 17 00 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: E2 17 00 F4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D7 [16:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:49:41]wFMCommunicate OK [16:49:41]CreateOFDProtocolMessage done [16:49:41]OFDSenderStorePacket 115438 [16:49:41]StoreOFDPacket docnum=115438 [16:49:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 6A 02 00 00 35 C6 62 02 70 49 5A 03 01 00 03 00 56 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 37 35 37 32 06 04 37 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 A7 D0 A7 20 D0 9A D0 B8 D1 81 D0 BB D1 8B D0 B5 20 D1 80 D0 BE D0 BB D0 BB D1 81 D1 8B 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 95 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 95 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 A5 4A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EE C2 01 00 35 04 06 00 63 5A 31 09 85 9A 69 14 8B 08 8C EA 60 DF [16:49:41]CheckFolder [16:49:41]dirname=/storage/ofd_packets [16:49:41]CheckFolder done [16:49:41]ProducePacketName [16:49:41]name=ofd_packets/00115438 [16:49:41]NVStorageSaveData ofd_packets/00115438 [16:49:41]File name is /storage/ofd_packets/00115438 [16:49:41]Write 648 bytes [16:49:41]NVStorageSaveData done [16:49:41]OFDSenderStorePacket done [16:49:41]KKMCreateOFDPacket done [16:49:41]NVStorageSaveData kkm_last_timestamp [16:49:41]File name is /storage/kkm_last_timestamp [16:49:41]Write 4 bytes [16:49:41]NVStorageSaveData done [16:49:41]ExternCall_PrintAddStr [16:49:41]wPrintStart [16:49:41]Write to MH i2c: 01 00 00 F5 1B 10 [16:49:41]Write i2c OK [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: 01 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: 01 07 00 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: 01 07 00 F5 1B 00 00 00 00 00 FF 0F 25 [16:49:41]RasterBufferAndPrint [16:49:41]line Счет N : (3)343878 [16:49:41]line ИНН: 02508201610067 [16:49:41]line Контрольно-Кассовый Чек [16:49:41]line ПРОДАЖА [16:49:41]line Товар: 4640030091645 [16:49:41]line Сигареты ESSE Exchange M [16:49:41]line 1.000 * 150.00 [16:49:41]line = 150.00 [16:49:41]line НДС 12% НСП 1% [16:49:41]line > о реализуемом товаре [16:49:41]line Товар: 4870001570057 [16:49:41]line Напиток Pepsi 0,5л [16:49:41]line 1.000 * 80.00 [16:49:41]line = 80.00 [16:49:41]line НДС 12% НСП 1% [16:49:41]line > о реализуемом товаре [16:49:41]line Товар: 4602606017572 [16:49:41]line Мармелад ЧЧ Кислые роллсы 30*70г [16:49:41]line 1.000 * 103.00 [16:49:41]line = 103.00 [16:49:41]line НДС 12% НСП 1% [16:49:41]line > о реализуемом товаре [16:49:41]line Товар: 4700000160358 [16:49:41]line Вода Легенда 1л [16:49:41]line 1.000 * 50.00 [16:49:41]line = 50.00 [16:49:41]line НДС 12% НСП 1% [16:49:41]line > о реализуемом товаре [16:49:41]line ИТОГО: 383.00 [16:49:41]line НСП 1% : 3.39 [16:49:41]line НДС 12% : 40.68 [16:49:41]line Наличными: 0.00 [16:49:41]line Безнал.: 383.00 [16:49:41]line Место: АЗС № 90 "Партнер Нефть" [16:49:41]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:49:41]line СНО: Общий режим [16:49:41]line Чек 156 22.09.2024 16:49 [16:49:41]line Смена: 471 ФФД: 1.0 [16:49:41]line ЗНМ: 0300000120 [16:49:41]line РНМ: 0000000000091831 [16:49:41]line Версия ККМ: 001 [16:49:41]line Платежная система: O! деньги [16:49:41]line ФМ: 0000000000871830 [16:49:41]line ФД: 115438 [16:49:41]line ФПД: 109239020914074 [16:49:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T164941&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115438&fm=109239020914074&tin=02508201610067®Number=0000000000091831&sum=38300 [16:49:41]OFD Sender: Processing packet 115438 [packets to send 481, broken 480] [16:49:41]ProducePacketName [16:49:41]name=ofd_packets/00115438 [16:49:41]OFD Sender: To server: pG, [16:49:41]CommunicateWithHost lk.salyk.kg:30040 [16:49:41]ConnectInit lk.salyk.kg [16:49:41]line 0 [16:49:41]written 0, free lines is 4095 [16:49:41]Connected sock=10 [16:49:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 6A 02 00 00 35 C6 62 02 70 49 5A 03 01 00 03 00 56 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 37 35 37 32 06 04 37 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 A7 D0 A7 20 D0 9A D0 B8 D1 81 D0 BB D1 8B D0 B5 20 D1 80 D0 BE D0 BB D0 BB D1 81 D1 8B 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 95 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 95 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 A5 4A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EE C2 01 00 35 04 06 00 63 5A 31 09 85 9A 69 14 8B 08 8C EA 60 DF [16:49:42]Write to MH i2c: 01 00 00 31 1C 4D [16:49:42]Write i2c OK [16:49:42]MH_I2C_Read... [16:49:42]Read from MH i2c: 01 [16:49:42]MH_I2C_Read... [16:49:42]Read from MH i2c: 01 07 00 [16:49:42]MH_I2C_Read... [16:49:42]Read from MH i2c: 01 07 00 31 1C 00 00 00 00 00 E1 0A 3F [16:49:42]RasterBufferAndPrint [16:49:42]line [16:49:42]line [16:49:42]line [16:49:42]line [16:49:42]line [16:49:42]written 0, free lines is 2792 [16:49:42]MH_Cut [16:49:42]Write to MH i2c: D1 01 00 38 1C 01 26 [16:49:42]Write i2c OK [16:49:42]MH_I2C_Read... [16:49:42]Read from MH i2c: D1 [16:49:42]MH_I2C_Read... [16:49:42]Read from MH i2c: D1 01 00 [16:49:42]MH_I2C_Read... [16:49:42]Read from MH i2c: D1 01 00 38 1C 00 25 [16:49:42]Write to MH i2c: 01 00 00 39 1C 55 [16:49:42]Write i2c OK [16:49:42]MH_I2C_Read... [16:49:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 61 9E 47 00 FE 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 31 38 33 30 10 04 04 00 EE C2 01 00 F4 03 04 00 EB EF EF 66 B6 04 01 00 00 B7 65 62 CD CE 90 77 7B [16:49:42]CommunicateWithHost err = 0 [16:49:42]CheckOFDResponse [16:49:42]1017 (14) - 77093643461234 [16:49:42]1041 (16) - 0000000000871830 [16:49:42]1040 (4) - 115438 [16:49:42]1012 (4) - 22.09.2024 10:22 [16:49:42]1206 (1) - 0 [16:49:42]OFD Sender: Remove packet 115438 [16:49:42]ProducePacketName [16:49:42]name=ofd_packets/00115438 [16:49:42]NVStorageDeleteData [16:49:42]OFD Sender: No OFD packet to send [16:49:43]*** Cut start [16:49:43]*** Partial cut [16:49:43]*** CUTSNS_PIN = 1 [16:49:43]*** CUTSNS_PIN = 0 [16:49:43]*** Brake cut motor [16:49:44]Read from MH i2c: 01 [16:49:44]MH_I2C_Read... [16:49:44]*** Stop cut motor [16:49:44]*** Cut end [16:49:44]Read from MH i2c: 01 07 00 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: 01 07 00 39 1C 00 00 00 00 00 FF 0F 6A [16:49:44]process_action close_receipt done [16:49:44]requested_data is exist [16:49:44]produce_requested_data [16:49:44]requested_item fm.sn is exist - process it [16:49:44]wFMCommunicate request_size=4 [16:49:44]MH_SAM_APDU [16:49:44]CAPDU: 80 11 00 00 [16:49:44]Write to MH i2c: E2 08 00 3A 1C 80 11 00 00 00 00 00 00 D0 [16:49:44]Write i2c OK [16:49:44]MH_I2C_Read... [16:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:44]Read from MH i2c: E2 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 17 00 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 17 00 3A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1E [16:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:49:44]wFMCommunicate OK [16:49:44]requested_item fd.num is exist - process it [16:49:44]SAM_PROTO_GetFieldsCounters [16:49:44]wFMCommunicate request_size=4 [16:49:44]MH_SAM_APDU [16:49:44]CAPDU: 80 13 00 00 [16:49:44]Write to MH i2c: E2 08 00 3B 1C 80 13 00 00 00 00 00 00 D3 [16:49:44]Write i2c OK [16:49:44]MH_I2C_Read... [16:49:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:44]Read from MH i2c: E2 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 62 00 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 62 00 3B 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EE C2 01 00 0E 04 04 00 D7 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 49 [16:49:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EE C2 01 00 0E 04 04 00 D7 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 [16:49:44]wFMCommunicate OK [16:49:44]SAM_PROTO_GetFieldsCounters done [16:49:44]requested_item shift.num is exist - process it [16:49:44]requested_item shift.opened is exist - process it [16:49:44]req_shift_opened [16:49:44]FM_GetShiftState [16:49:44]SAM_PROTO_GetShiftState [16:49:44]wFMCommunicate request_size=4 [16:49:44]MH_SAM_APDU [16:49:44]CAPDU: 80 13 01 00 [16:49:44]Write to MH i2c: E2 08 00 3C 1C 80 13 01 00 00 00 00 00 D5 [16:49:44]Write i2c OK [16:49:44]MH_I2C_Read... [16:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:44]Read from MH i2c: E2 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 0E 00 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 0E 00 3C 1C 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 EE [16:49:44]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:49:44]wFMCommunicate OK [16:49:44]SAM_PROTO_GetShiftState done [16:49:44]FM_GetShiftState done [16:49:44]req_shift_opened done [16:49:44]requested_item shift.open_date is exist - process it [16:49:44]req_shift_open_date [16:49:44]req_shift_open_date done [16:49:44]produce_requested_data done [16:49:44]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115438,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:49:44]process_action_free close_receipt [16:49:44]json_value_free [16:49:44]json_value_free done [16:49:44]process_json_proto returns [16:49:44]Send response to host [16:49:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115438,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:49:44]free response buf [16:49:44]execute_script done [16:49:44]execute_script returns [16:49:44]free content buf [16:49:44]Sock 8.Close socket [16:49:44]Sock 8.Thread stoped [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:02]OFD Sender: No OFD packet to send [16:50:07]OFD Sender: No OFD packet to send [16:50:12]OFD Sender: No OFD packet to send [16:50:17]OFD Sender: No OFD packet to send [16:50:22]OFD Sender: No OFD packet to send [16:50:27]OFD Sender: No OFD packet to send [16:50:32]OFD Sender: No OFD packet to send [16:50:37]OFD Sender: No OFD packet to send [16:50:42]OFD Sender: No OFD packet to send [16:50:47]OFD Sender: No OFD packet to send [16:50:52]OFD Sender: No OFD packet to send [16:50:57]OFD Sender: No OFD packet to send [16:51:02]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:05]accept exits with 9 [16:52:05]New connection [16:52:05]New thread 3066826084 created [16:52:05]Thread 3066682724 joined [16:52:05]Waiting for new connection... [16:52:05] Sock 9.Parse request [16:52:05]Sock 9.Check first char [16:52:05]Sock 9.First char is OK [16:52:05]request: POST /json_proto HTTP/1.0 [16:52:05]Method: POST [16:52:05]URL: /json_proto [16:52:05]Method is POST - this is cgi request [16:52:05]url: /json_proto [16:52:05]query_string will be loaded in cgi processing [16:52:05]execute_cgi json_proto POST (null) [16:52:05]execute_cgi path=json_proto method=POST [16:52:05]POST find Content-Length [16:52:05]Host: 172.17.41.136:8080 [16:52:05]Content-Length: 700 [16:52:05]Content-Type: application/json [16:52:05] [16:52:05]POST finish read [16:52:05]Found Content-Length = 700 [16:52:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343879", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:05]execute_script... [16:52:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343879", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:05]POST & json_proto [16:52:05]process_json_proto [16:52:05]json parsed OK: [16:52:05]protocol is kg_v1.0 [16:52:05]action value=close_receipt [16:52:05]process_action close_receipt [16:52:05]cmd_close_receipt [16:52:05]MH_GetDate [16:52:05]Write to MH i2c: F0 00 00 3D 1C 48 [16:52:05]Write i2c OK [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: F0 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: F0 09 00 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: F0 09 00 3D 1C 00 38 4B F0 66 1B D0 5A 64 D3 [16:52:05]GetLastDocTimeStamp 1727023781 [16:52:05]current date 1727023928 [16:52:05]FM_GetShiftState [16:52:05]SAM_PROTO_GetShiftState [16:52:05]wFMCommunicate request_size=4 [16:52:05]MH_SAM_APDU [16:52:05]CAPDU: 80 13 01 00 [16:52:05]Write to MH i2c: E2 08 00 3E 1C 80 13 01 00 00 00 00 00 D7 [16:52:05]Write i2c OK [16:52:05]MH_I2C_Read... [16:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:05]Read from MH i2c: E2 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: E2 0E 00 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: E2 0E 00 3E 1C 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F0 [16:52:05]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:52:05]wFMCommunicate OK [16:52:05]SAM_PROTO_GetShiftState done [16:52:05]FM_GetShiftState done [16:52:05]opened in 1726965840 [16:52:05]opened+sec_in_day 1727052240 [16:52:05]quantity*price = 9000 [16:52:05]sum+1 = 9001 [16:52:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 157 22.09.2024 16:52 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115439 ФПД: 69243806685731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T165208&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115439&fm=69243806685731&tin=02508201610067®Number=0000000000091831&sum=9000 0 [16:52:07]StoreToDocumentArchive [16:52:07]shift 471 fd 115439 [16:52:07]save to /storage/0471/doc_00115439 [16:52:07]save last doc name /storage/0471/doc_00115439 to /storage/kkm_last_doc_name [16:52:07]save OK [16:52:07]Clear old archive folders... [16:52:07]ProcessDocumentItem done err = 0, tmpTLVsize=299 [16:52:07]tlvbuf is 01C115B0 [16:52:07]SAM_PROTO_ClearQueue [16:52:07]wFMCommunicate request_size=4 [16:52:07]MH_SAM_APDU [16:52:07]CAPDU: 80 09 00 00 [16:52:07]Write to MH i2c: E2 08 00 4B 1C 80 09 00 00 00 00 00 00 D9 [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:07]Read from MH i2c: E2 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 4B 1C 00 90 00 DB [16:52:07]RAPDU: 90 00 [16:52:07]wFMCommunicate OK [16:52:07]SAM_PROTO_ClearQueue done [16:52:07]KKMCreateOFDPacket [16:52:07]OFDProtocolAddRootSTLVToBuf [16:52:07]FM_MakeSignedData [16:52:07]FM_MakeSignedData [16:52:07]SAM_PROTO_SignData [16:52:07]wFMCommunicate request_size=4 [16:52:07]MH_SAM_APDU [16:52:07]CAPDU: 80 0D 01 02 [16:52:07]Write to MH i2c: E2 08 00 4C 1C 80 0D 01 02 00 00 00 00 E1 [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:07]Read from MH i2c: E2 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 4C 1C 00 90 00 DC [16:52:07]RAPDU: 90 00 [16:52:07]wFMCommunicate OK [16:52:07]wFMCommunicate request_size=255 [16:52:07]MH_SAM_APDU [16:52:07]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 38 4B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [16:52:07]Write to MH i2c: E2 02 01 4D 1C 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 38 4B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 E6 [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:07]Read from MH i2c: E2 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 4D 1C 00 90 00 DD [16:52:07]RAPDU: 90 00 [16:52:07]wFMCommunicate OK [16:52:07]wFMCommunicate request_size=58 [16:52:07]MH_SAM_APDU [16:52:07]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EF C2 01 00 35 04 06 00 3E FA 14 80 1A 23 [16:52:07]Write to MH i2c: E2 3D 00 4E 1C 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EF C2 01 00 35 04 06 00 3E FA 14 80 1A 23 00 00 86 [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:07]Read from MH i2c: E2 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 4E 1C 00 90 00 DE [16:52:07]RAPDU: 90 00 [16:52:07]wFMCommunicate OK [16:52:07]wFMCommunicate request_size=4 [16:52:07]MH_SAM_APDU [16:52:07]CAPDU: 80 0D 03 02 [16:52:07]Write to MH i2c: E2 08 00 4F 1C 80 0D 03 02 00 00 00 00 E6 [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:07]Read from MH i2c: E2 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 0B 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 0B 00 4F 1C 00 07 19 1D 07 67 35 7C CB 90 00 0E [16:52:07]RAPDU: 07 19 1D 07 67 35 7C CB 90 00 [16:52:07]wFMCommunicate OK [16:52:07]SAM_PROTO_SignData done [16:52:07]FM_MakeSignedData done [16:52:07]CreateOFDProtocolMessage [16:52:07]wFMCommunicate request_size=4 [16:52:07]MH_SAM_APDU [16:52:07]CAPDU: 80 11 00 00 [16:52:07]Write to MH i2c: E2 08 00 50 1C 80 11 00 00 00 00 00 00 E6 [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:07]Read from MH i2c: E2 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 17 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 17 00 50 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 34 [16:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:52:07]wFMCommunicate OK [16:52:07]CreateOFDProtocolMessage done [16:52:07]OFDSenderStorePacket 115439 [16:52:07]StoreOFDPacket docnum=115439 [16:52:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3F 01 00 00 C9 DB 37 01 05 BA 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 38 4B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EF C2 01 00 35 04 06 00 3E FA 14 80 1A 23 07 19 1D 07 67 35 7C CB [16:52:07]CheckFolder [16:52:07]dirname=/storage/ofd_packets [16:52:07]CheckFolder done [16:52:07]ProducePacketName [16:52:07]name=ofd_packets/00115439 [16:52:07]NVStorageSaveData ofd_packets/00115439 [16:52:07]File name is /storage/ofd_packets/00115439 [16:52:07]Write 349 bytes [16:52:07]NVStorageSaveData done [16:52:07]OFDSenderStorePacket done [16:52:07]KKMCreateOFDPacket done [16:52:07]NVStorageSaveData kkm_last_timestamp [16:52:07]File name is /storage/kkm_last_timestamp [16:52:07]Write 4 bytes [16:52:07]NVStorageSaveData done [16:52:07]ExternCall_PrintAddStr [16:52:07]wPrintStart [16:52:07]Write to MH i2c: 01 00 00 51 1C 6D [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: 01 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: 01 07 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: 01 07 00 51 1C 00 00 00 00 00 FF 0F 82 [16:52:07]RasterBufferAndPrint [16:52:07]line Счет N : (3)343879 [16:52:07]line ИНН: 02508201610067 [16:52:07]line Контрольно-Кассовый Чек [16:52:07]line ПРОДАЖА [16:52:07]line Товар: 4870002325113 [16:52:07]line Напиток PEPSI газированный ст 0,25л [16:52:07]line 1.000 * 90.00 [16:52:07]line = 90.00 [16:52:07]line НДС 12% НСП 1% [16:52:07]line > о реализуемом товаре [16:52:07]line ИТОГО: 90.00 [16:52:07]line НСП 1% : 0.80 [16:52:07]line НДС 12% : 9.56 [16:52:07]line Наличными: 90.00 [16:52:07]line Безнал.: 0.00 [16:52:07]line Место: АЗС № 90 "Партнер Нефть" [16:52:07]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:52:07]line СНО: Общий режим [16:52:07]line Чек 157 22.09.2024 16:52 [16:52:07]line Смена: 471 ФФД: 1.0 [16:52:07]line ЗНМ: 0300000120 [16:52:07]line РНМ: 0000000000091831 [16:52:07]line Версия ККМ: 001 [16:52:07]line ФМ: 0000000000871830 [16:52:07]line ФД: 115439 [16:52:07]line ФПД: 69243806685731 [16:52:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T165208&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115439&fm=69243806685731&tin=02508201610067®Number=0000000000091831&sum=9000 [16:52:07]line 0 [16:52:07]written 0, free lines is 4095 [16:52:07]OFD Sender: Processing packet 115439 [packets to send 481, broken 480] [16:52:07]ProducePacketName [16:52:07]name=ofd_packets/00115439 [16:52:07]OFD Sender: To server: pG, [16:52:07]CommunicateWithHost lk.salyk.kg:30040 [16:52:07]ConnectInit lk.salyk.kg [16:52:08]Connected sock=10 [16: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 31 38 33 30 3F 01 00 00 C9 DB 37 01 05 BA 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 38 4B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EF C2 01 00 35 04 06 00 3E FA 14 80 1A 23 07 19 1D 07 67 35 7C CB [16:52:08]Write to MH i2c: 01 00 00 79 1C 95 [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: 01 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: 01 07 00 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: 01 07 00 79 1C 00 00 00 00 00 6B 0C 13 [16:52:08]RasterBufferAndPrint [16:52:08]line [16:52:08]line [16:52:08]line [16:52:08]line [16:52:08]line [16:52:08]written 0, free lines is 3183 [16:52:08]MH_Cut [16:52:08]Write to MH i2c: D1 01 00 80 1C 01 6E [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: D1 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: D1 01 00 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: D1 01 00 80 1C 00 6D [16:52:08]Write to MH i2c: 01 00 00 81 1C 9D [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E2 2D 47 00 E8 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 31 38 33 30 10 04 04 00 EF C2 01 00 F4 03 04 00 7D F0 EF 66 B6 04 01 00 00 6C 9B AD 51 AF 6E 6C 96 [16:52:08]CommunicateWithHost err = 0 [16:52:08]CheckOFDResponse [16:52:08]1017 (14) - 77093643461234 [16:52:08]1041 (16) - 0000000000871830 [16:52:08]1040 (4) - 115439 [16:52:08]1012 (4) - 22.09.2024 10:25 [16:52:08]1206 (1) - 0 [16:52:08]OFD Sender: Remove packet 115439 [16:52:08]ProducePacketName [16:52:08]name=ofd_packets/00115439 [16:52:08]NVStorageDeleteData [16:52:08]OFD Sender: No OFD packet to send [16:52:09]*** Cut start [16:52:09]*** Partial cut [16:52:09]*** CUTSNS_PIN = 1 [16:52:09]*** CUTSNS_PIN = 0 [16:52:09]*** Brake cut motor [16:52:09]Read from MH i2c: 01 [16:52:09]MH_I2C_Read... [16:52:09]*** Stop cut motor [16:52:09]*** Cut end [16:52:09]Read from MH i2c: 01 07 00 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: 01 07 00 81 1C 00 00 00 00 00 FF 0F B2 [16:52:09]process_action close_receipt done [16:52:09]requested_data is exist [16:52:09]produce_requested_data [16:52:09]requested_item fm.sn is exist - process it [16:52:09]wFMCommunicate request_size=4 [16:52:09]MH_SAM_APDU [16:52:09]CAPDU: 80 11 00 00 [16:52:09]Write to MH i2c: E2 08 00 82 1C 80 11 00 00 00 00 00 00 18 [16:52:09]Write i2c OK [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 [16:52:09]MH_I2C_Read... [16:52:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:10]Read from MH i2c: E2 17 00 [16:52:10]MH_I2C_Read... [16:52:10]Read from MH i2c: E2 17 00 82 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 66 [16:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:52:10]wFMCommunicate OK [16:52:10]requested_item fd.num is exist - process it [16:52:10]SAM_PROTO_GetFieldsCounters [16:52:10]wFMCommunicate request_size=4 [16:52:10]MH_SAM_APDU [16:52:10]CAPDU: 80 13 00 00 [16:52:10]Write to MH i2c: E2 08 00 83 1C 80 13 00 00 00 00 00 00 1B [16:52:10]Write i2c OK [16:52:10]MH_I2C_Read... [16:52:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:10]Read from MH i2c: E2 [16:52:10]MH_I2C_Read... [16:52:10]Read from MH i2c: E2 62 00 [16:52:10]MH_I2C_Read... [16:52:10]Read from MH i2c: E2 62 00 83 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EF C2 01 00 0E 04 04 00 D7 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 95 [16: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EF C2 01 00 0E 04 04 00 D7 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 [16:52:10]wFMCommunicate OK [16:52:10]SAM_PROTO_GetFieldsCounters done [16:52:10]requested_item shift.num is exist - process it [16:52:10]requested_item shift.opened is exist - process it [16:52:10]req_shift_opened [16:52:10]FM_GetShiftState [16:52:10]SAM_PROTO_GetShiftState [16:52:10]wFMCommunicate request_size=4 [16:52:10]MH_SAM_APDU [16:52:10]CAPDU: 80 13 01 00 [16:52:10]Write to MH i2c: E2 08 00 84 1C 80 13 01 00 00 00 00 00 1D [16:52:10]Write i2c OK [16:52:10]MH_I2C_Read... [16:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:10]Read from MH i2c: E2 [16:52:10]MH_I2C_Read... [16:52:10]Read from MH i2c: E2 0E 00 [16:52:10]MH_I2C_Read... [16:52:10]Read from MH i2c: E2 0E 00 84 1C 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 36 [16:52:10]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:52:10]wFMCommunicate OK [16:52:10]SAM_PROTO_GetShiftState done [16:52:10]FM_GetShiftState done [16:52:10]req_shift_opened done [16:52:10]requested_item shift.open_date is exist - process it [16:52:10]req_shift_open_date [16:52:10]req_shift_open_date done [16:52:10]produce_requested_data done [16:52:10]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115439,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:52:10]process_action_free close_receipt [16:52:10]json_value_free [16:52:10]json_value_free done [16:52:10]process_json_proto returns [16:52:10]Send response to host [16:52:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115439,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:52:10]free response buf [16:52:10]execute_script done [16:52:10]execute_script returns [16:52:10]free content buf [16:52:10]Sock 9.Close socket [16:52:10]Sock 9.Thread stoped [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]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:33]accept exits with 8 [16:55:33]New connection [16:55:33]New thread 3066682724 created [16:55:33]Thread 3066826084 joined [16:55:33]Waiting for new connection... [16:55:33] Sock 8.Parse request [16:55:33]Sock 8.Check first char [16:55:33]Sock 8.First char is OK [16:55:33]request: POST /json_proto HTTP/1.0 [16:55:33]Method: POST [16:55:33]URL: /json_proto [16:55:33]Method is POST - this is cgi request [16:55:33]url: /json_proto [16:55:33]query_string will be loaded in cgi processing [16:55:33]execute_cgi json_proto POST (null) [16:55:33]execute_cgi path=json_proto method=POST [16:55:33]POST find Content-Length [16:55:33]Host: 172.17.41.136:8080 [16:55:33]Content-Length: 1420 [16:55:33]Content-Type: application/json [16:55:33] [16:55:33]POST finish read [16:55:33]Found Content-Length = 1420 [16:55:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343880", "tax_sys" : 0, "items" : [ { "code": "4823077641312", "name": "\u0412\u0430\u0444\u043B\u0438 ROSHEN WAFERS COCOA MILK 216 \u0433\u0440", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000171351", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Schweppes \u043C\u043E\u0445\u0438\u0442\u043E 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 385.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:33]execute_script... [16:55:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343880", "tax_sys" : 0, "items" : [ { "code": "4823077641312", "name": "\u0412\u0430\u0444\u043B\u0438 ROSHEN WAFERS COCOA MILK 216 \u0433\u0440", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000171351", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Schweppes \u043C\u043E\u0445\u0438\u0442\u043E 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 385.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:33]POST & json_proto [16:55:33]process_json_proto [16:55:33]json parsed OK: [16:55:33]protocol is kg_v1.0 [16:55:33]action value=close_receipt [16:55:33]process_action close_receipt [16:55:33]cmd_close_receipt [16:55:33]MH_GetDate [16:55:33]Write to MH i2c: F0 00 00 85 1C 90 [16:55:33]Write i2c OK [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: F0 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: F0 09 00 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: F0 09 00 85 1C 00 07 4C F0 66 1B D0 5A 64 EB [16:55:33]GetLastDocTimeStamp 1727023928 [16:55:33]current date 1727024135 [16:55:33]FM_GetShiftState [16:55:33]SAM_PROTO_GetShiftState [16:55:33]wFMCommunicate request_size=4 [16:55:33]MH_SAM_APDU [16:55:33]CAPDU: 80 13 01 00 [16:55:33]Write to MH i2c: E2 08 00 86 1C 80 13 01 00 00 00 00 00 1F [16:55:33]Write i2c OK [16:55:33]MH_I2C_Read... [16:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:33]Read from MH i2c: E2 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 0E 00 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 0E 00 86 1C 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 38 [16:55:33]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:55:33]wFMCommunicate OK [16:55:33]SAM_PROTO_GetShiftState done [16:55:33]FM_GetShiftState done [16:55:33]opened in 1726965840 [16:55:33]opened+sec_in_day 1727052240 [16:55:33]quantity*price = 18500 [16:55:33]sum+1 = 18501 [16:55:33]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 54491472 Напиток Кока-Кола 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000171351 Напиток Schweppes мохито 0,33л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 385.00 НСП 1% : 3.40 НДС 12% : 40.89 Наличными: 385.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 158 22.09.2024 16:55 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115440 ФПД: 224046987983820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T165536&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115440&fm=224046987983820&tin=02508201610067®Number=0000000000091831&sum=38500 0 [16:55:35]StoreToDocumentArchive [16:55:35]shift 471 fd 115440 [16:55:35]save to /storage/0471/doc_00115440 [16:55:35]save last doc name /storage/0471/doc_00115440 to /storage/kkm_last_doc_name [16:55:35]save OK [16:55:35]Clear old archive folders... [16:55:35]ProcessDocumentItem done err = 0, tmpTLVsize=608 [16:55:35]tlvbuf is 01C98530 [16:55:35]SAM_PROTO_ClearQueue [16:55:35]wFMCommunicate request_size=4 [16:55:35]MH_SAM_APDU [16:55:35]CAPDU: 80 09 00 00 [16:55:35]Write to MH i2c: E2 08 00 93 1C 80 09 00 00 00 00 00 00 21 [16:55:35]Write i2c OK [16:55:35]MH_I2C_Read... [16:55:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:35]Read from MH i2c: E2 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: E2 03 00 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: E2 03 00 93 1C 00 90 00 23 [16:55:35]RAPDU: 90 00 [16:55:35]wFMCommunicate OK [16:55:35]SAM_PROTO_ClearQueue done [16:55:35]KKMCreateOFDPacket [16:55:35]OFDProtocolAddRootSTLVToBuf [16:55:35]FM_MakeSignedData [16:55:35]FM_MakeSignedData [16:55:35]SAM_PROTO_SignData [16:55:35]wFMCommunicate request_size=4 [16:55:35]MH_SAM_APDU [16:55:35]CAPDU: 80 0D 01 02 [16:55:35]Write to MH i2c: E2 08 00 94 1C 80 0D 01 02 00 00 00 00 29 [16:55:35]Write i2c OK [16:55:35]MH_I2C_Read... [16:55:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:35]Read from MH i2c: E2 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: E2 03 00 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: E2 03 00 94 1C 00 90 00 24 [16:55:35]RAPDU: 90 00 [16:55:35]wFMCommunicate OK [16:55:35]wFMCommunicate request_size=255 [16:55:35]MH_SAM_APDU [16:55:35]CAPDU: 80 0D 02 02 FA 03 00 60 02 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 32 33 30 37 37 36 34 31 33 31 32 06 04 2C 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 52 4F 53 48 45 4E 20 57 41 46 45 52 53 20 43 4F 43 4F 41 20 4D 49 4C 4B 20 32 31 36 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 [16:55:35]Write to MH i2c: E2 02 01 95 1C 80 0D 02 02 FA 00 03 00 60 02 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 32 33 30 37 37 36 34 31 33 31 32 06 04 2C 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 52 4F 53 48 45 4E 20 57 41 46 45 52 53 20 43 4F 43 4F 41 20 4D 49 4C 4B 20 32 31 36 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 00 00 67 [16:55:35]Write i2c OK [16:55:35]MH_I2C_Read... [16:55:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:35]Read from MH i2c: E2 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: E2 03 00 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: E2 03 00 95 1C 00 90 00 25 [16:55:35]RAPDU: 90 00 [16:55:35]wFMCommunicate OK [16:55:35]wFMCommunicate request_size=255 [16:55:35]MH_SAM_APDU [16:55:35]CAPDU: 80 0D 02 02 FA D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 31 33 35 31 06 04 2C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 53 63 68 77 65 70 70 65 73 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0F 00 00 00 00 07 [16:55:35]Write to MH i2c: E2 02 01 96 1C 80 0D 02 02 FA 00 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 31 33 35 31 06 04 2C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 53 63 68 77 65 70 70 65 73 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0F 00 00 00 00 07 00 00 CE [16:55:35]Write i2c OK [16:55:35]MH_I2C_Read... [16:55:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:35]Read from MH i2c: E2 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: E2 03 00 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: E2 03 00 96 1C 00 90 00 26 [16:55:35]RAPDU: 90 00 [16:55:35]wFMCommunicate OK [16:55:35]wFMCommunicate request_size=117 [16:55:35]MH_SAM_APDU [16:55:35]CAPDU: 80 0D 02 02 70 04 06 00 64 96 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 08 4C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F0 C2 01 00 35 04 06 00 CB C5 01 21 BB CC [16:55:35]Write to MH i2c: E2 78 00 97 1C 80 0D 02 02 70 00 04 06 00 64 96 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 08 4C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F0 C2 01 00 35 04 06 00 CB C5 01 21 BB CC 00 00 3E [16:55:35]Write i2c OK [16:55:35]MH_I2C_Read... [16:55:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:35]Read from MH i2c: E2 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: E2 03 00 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: E2 03 00 97 1C 00 90 00 27 [16:55:35]RAPDU: 90 00 [16:55:35]wFMCommunicate OK [16:55:35]wFMCommunicate request_size=4 [16:55:35]MH_SAM_APDU [16:55:35]CAPDU: 80 0D 03 02 [16:55:35]Write to MH i2c: E2 08 00 98 1C 80 0D 03 02 00 00 00 00 2F [16:55:35]Write i2c OK [16:55:35]MH_I2C_Read... [16:55:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:36]Read from MH i2c: E2 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: E2 0B 00 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: E2 0B 00 98 1C 00 2F A8 63 23 34 2E 1D 72 90 00 7E [16:55:36]RAPDU: 2F A8 63 23 34 2E 1D 72 90 00 [16:55:36]wFMCommunicate OK [16:55:36]SAM_PROTO_SignData done [16:55:36]FM_MakeSignedData done [16:55:36]CreateOFDProtocolMessage [16:55:36]wFMCommunicate request_size=4 [16:55:36]MH_SAM_APDU [16:55:36]CAPDU: 80 11 00 00 [16:55:36]Write to MH i2c: E2 08 00 99 1C 80 11 00 00 00 00 00 00 2F [16:55:36]Write i2c OK [16:55:36]MH_I2C_Read... [16:55:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:36]Read from MH i2c: E2 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: E2 17 00 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: E2 17 00 99 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7D [16:55:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:55:36]wFMCommunicate OK [16:55:36]CreateOFDProtocolMessage done [16:55:36]OFDSenderStorePacket 115440 [16:55:36]StoreOFDPacket docnum=115440 [16:55:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 74 02 00 00 E5 FE 6C 02 D0 87 5A 03 01 00 03 00 60 02 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 32 33 30 37 37 36 34 31 33 31 32 06 04 2C 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 52 4F 53 48 45 4E 20 57 41 46 45 52 53 20 43 4F 43 4F 41 20 4D 49 4C 4B 20 32 31 36 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 31 33 35 31 06 04 2C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 53 63 68 77 65 70 70 65 73 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0F 00 00 00 00 07 04 06 00 64 96 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 08 4C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F0 C2 01 00 35 04 06 00 CB C5 01 21 BB CC 2F A8 63 23 34 2E 1D 72 [16:55:36]CheckFolder [16:55:36]dirname=/storage/ofd_packets [16:55:36]CheckFolder done [16:55:36]ProducePacketName [16:55:36]name=ofd_packets/00115440 [16:55:36]NVStorageSaveData ofd_packets/00115440 [16:55:36]File name is /storage/ofd_packets/00115440 [16:55:36]Write 658 bytes [16:55:36]NVStorageSaveData done [16:55:36]OFDSenderStorePacket done [16:55:36]KKMCreateOFDPacket done [16:55:36]NVStorageSaveData kkm_last_timestamp [16:55:36]File name is /storage/kkm_last_timestamp [16:55:36]Write 4 bytes [16:55:36]NVStorageSaveData done [16:55:36]ExternCall_PrintAddStr [16:55:36]wPrintStart [16:55:36]Write to MH i2c: 01 00 00 9A 1C B6 [16:55:36]Write i2c OK [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: 01 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: 01 07 00 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: 01 07 00 9A 1C 00 00 00 00 00 FF 0F CB [16:55:36]RasterBufferAndPrint [16:55:36]line Счет N : (3)343880 [16:55:36]line ИНН: 02508201610067 [16:55:36]line Контрольно-Кассовый Чек [16:55:36]line ПРОДАЖА [16:55:36]line Товар: 4823077641312 [16:55:36]line Вафли ROSHEN WAFERS COCOA MILK 216 гр [16:55:36]line 1.000 * 185.00 [16:55:36]line = 185.00 [16:55:36]line НДС 12% НСП 1% [16:55:36]line > о реализуемом товаре [16:55:36]line Товар: 4700000160211 [16:55:36]line Вода Легенда 0,5л [16:55:36]line 1.000 * 40.00 [16:55:36]line = 40.00 [16:55:36]line НДС 12% НСП 1% [16:55:36]line > о реализуемом товаре [16:55:36]line Товар: 54491472 [16:55:36]line Напиток Кока-Кола 0,5л [16:55:36]line 1.000 * 75.00 [16:55:36]line = 75.00 [16:55:36]line НДС 12% НСП 1% [16:55:36]line > о реализуемом товаре [16:55:36]line Товар: 5449000171351 [16:55:36]line Напиток Schweppes мохито 0,33л [16:55:36]line 1.000 * 85.00 [16:55:36]line = 85.00 [16:55:36]line НДС 12% НСП 1% [16:55:36]line > о реализуемом товаре [16:55:36]line ИТОГО: 385.00 [16:55:36]line НСП 1% : 3.40 [16:55:36]line НДС 12% : 40.89 [16:55:36]line Наличными: 385.00 [16:55:36]line Безнал.: 0.00 [16:55:36]line Место: АЗС № 90 "Партнер Нефть" [16:55:36]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:55:36]line СНО: Общий режим [16:55:36]line Чек 158 22.09.2024 16:55 [16:55:36]line Смена: 471 ФФД: 1.0 [16:55:36]line ЗНМ: 0300000120 [16:55:36]line РНМ: 0000000000091831 [16:55:36]line Версия ККМ: 001 [16:55:36]line ФМ: 0000000000871830 [16:55:36]line ФД: 115440 [16:55:36]line ФПД: 224046987983820 [16:55:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T165536&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115440&fm=224046987983820&tin=02508201610067®Number=0000000000091831&sum=38500 [16:55:36]line 0 [16:55:36]OFD Sender: Processing packet 115440 [packets to send 481, broken 480] [16:55:36]ProducePacketName [16:55:36]name=ofd_packets/00115440 [16:55:36]OFD Sender: To server: pG, [16:55:36]CommunicateWithHost lk.salyk.kg:30040 [16:55:36]ConnectInit lk.salyk.kg [16:55:36]written 0, free lines is 4095 [16:55:36]Connected sock=10 [16:55:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 74 02 00 00 E5 FE 6C 02 D0 87 5A 03 01 00 03 00 60 02 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 32 33 30 37 37 36 34 31 33 31 32 06 04 2C 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 52 4F 53 48 45 4E 20 57 41 46 45 52 53 20 43 4F 43 4F 41 20 4D 49 4C 4B 20 32 31 36 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 31 33 35 31 06 04 2C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 53 63 68 77 65 70 70 65 73 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0F 00 00 00 00 07 04 06 00 64 96 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 08 4C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F0 C2 01 00 35 04 06 00 CB C5 01 21 BB CC 2F A8 63 23 34 2E 1D 72 [16:55:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 7D 77 47 00 21 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F0 C2 01 00 F4 03 04 00 4E F1 EF 66 B6 04 01 00 00 C2 21 F0 0E 9E D7 FC F5 [16:55:37]CommunicateWithHost err = 0 [16:55:37]CheckOFDResponse [16:55:37]1017 (14) - 77093643461234 [16:55:37]1041 (16) - 0000000000871830 [16:55:37]1040 (4) - 115440 [16:55:37]1012 (4) - 22.09.2024 10:28 [16:55:37]1206 (1) - 0 [16:55:37]OFD Sender: Remove packet 115440 [16:55:37]ProducePacketName [16:55:37]name=ofd_packets/00115440 [16:55:37]NVStorageDeleteData [16:55:37]Write to MH i2c: 01 00 00 D5 1C F1 [16:55:37]Write i2c OK [16:55:37]MH_I2C_Read... [16:55:37]Read from MH i2c: 01 [16:55:37]MH_I2C_Read... [16:55:37]Read from MH i2c: 01 07 00 [16:55:37]MH_I2C_Read... [16:55:37]Read from MH i2c: 01 07 00 D5 1C 00 00 00 00 00 E8 0A EA [16:55:37]RasterBufferAndPrint [16:55:37]line [16:55:37]line [16:55:37]line [16:55:37]line [16:55:37]line [16:55:37]written 0, free lines is 2797 [16:55:37]MH_Cut [16:55:37]Write to MH i2c: D1 01 00 DC 1C 01 CA [16:55:37]Write i2c OK [16:55:37]MH_I2C_Read... [16:55:37]Read from MH i2c: D1 [16:55:37]MH_I2C_Read... [16:55:37]Read from MH i2c: D1 01 00 [16:55:37]MH_I2C_Read... [16:55:37]Read from MH i2c: D1 01 00 DC 1C 00 C9 [16:55:37]Write to MH i2c: 01 00 00 DD 1C F9 [16:55:37]Write i2c OK [16:55:37]MH_I2C_Read... [16:55:37]OFD Sender: No OFD packet to send [16:55:38]*** Cut start [16:55:38]*** Partial cut [16:55:38]*** CUTSNS_PIN = 1 [16:55:38]*** CUTSNS_PIN = 0 [16:55:38]*** Brake cut motor [16:55:39]Read from MH i2c: 01 [16:55:39]MH_I2C_Read... [16:55:39]*** Stop cut motor [16:55:39]*** Cut end [16:55:39]Read from MH i2c: 01 07 00 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: 01 07 00 DD 1C 00 00 00 00 00 FF 0F 0E [16:55:39]process_action close_receipt done [16:55:39]requested_data is exist [16:55:39]produce_requested_data [16:55:39]requested_item fm.sn is exist - process it [16:55:39]wFMCommunicate request_size=4 [16:55:39]MH_SAM_APDU [16:55:39]CAPDU: 80 11 00 00 [16:55:39]Write to MH i2c: E2 08 00 DE 1C 80 11 00 00 00 00 00 00 74 [16:55:39]Write i2c OK [16:55:39]MH_I2C_Read... [16:55:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:39]Read from MH i2c: E2 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: E2 17 00 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: E2 17 00 DE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C2 [16:55:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:55:39]wFMCommunicate OK [16:55:39]requested_item fd.num is exist - process it [16:55:39]SAM_PROTO_GetFieldsCounters [16:55:39]wFMCommunicate request_size=4 [16:55:39]MH_SAM_APDU [16:55:39]CAPDU: 80 13 00 00 [16:55:39]Write to MH i2c: E2 08 00 DF 1C 80 13 00 00 00 00 00 00 77 [16:55:39]Write i2c OK [16:55:39]MH_I2C_Read... [16:55:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:39]Read from MH i2c: E2 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: E2 62 00 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: E2 62 00 DF 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F0 C2 01 00 0E 04 04 00 D7 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 F5 [16:55: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F0 C2 01 00 0E 04 04 00 D7 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 [16:55:39]wFMCommunicate OK [16:55:39]SAM_PROTO_GetFieldsCounters done [16:55:39]requested_item shift.num is exist - process it [16:55:39]requested_item shift.opened is exist - process it [16:55:39]req_shift_opened [16:55:39]FM_GetShiftState [16:55:39]SAM_PROTO_GetShiftState [16:55:39]wFMCommunicate request_size=4 [16:55:39]MH_SAM_APDU [16:55:39]CAPDU: 80 13 01 00 [16:55:39]Write to MH i2c: E2 08 00 E0 1C 80 13 01 00 00 00 00 00 79 [16:55:39]Write i2c OK [16:55:39]MH_I2C_Read... [16:55:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:39]Read from MH i2c: E2 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: E2 0E 00 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: E2 0E 00 E0 1C 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 92 [16:55:39]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:55:39]wFMCommunicate OK [16:55:39]SAM_PROTO_GetShiftState done [16:55:39]FM_GetShiftState done [16:55:39]req_shift_opened done [16:55:39]requested_item shift.open_date is exist - process it [16:55:39]req_shift_open_date [16:55:39]req_shift_open_date done [16:55:39]produce_requested_data done [16:55:39]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115440,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:55:39]process_action_free close_receipt [16:55:39]json_value_free [16:55:39]json_value_free done [16:55:39]process_json_proto returns [16:55:39]Send response to host [16:55:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115440,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:55:39]free response buf [16:55:39]execute_script done [16:55:39]execute_script returns [16:55:39]free content buf [16:55:39]Sock 8.Close socket [16:55:39]Sock 8.Thread stoped [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:56:58]accept exits with 9 [16:56:58]New connection [16:56:58]New thread 3066826084 created [16:56:58]Thread 3066682724 joined [16:56:58]Waiting for new connection... [16:56:58] Sock 9.Parse request [16:56:58]Sock 9.Check first char [16:56:58]Sock 9.First char is OK [16:56:58]request: POST /json_proto HTTP/1.0 [16:56:58]Method: POST [16:56:58]URL: /json_proto [16:56:58]Method is POST - this is cgi request [16:56:58]url: /json_proto [16:56:58]query_string will be loaded in cgi processing [16:56:58]execute_cgi json_proto POST (null) [16:56:58]execute_cgi path=json_proto method=POST [16:56:58]POST find Content-Length [16:56:58]Host: 172.17.41.136:8080 [16:56:58]Content-Length: 717 [16:56:58]Content-Type: application/json [16:56:58] [16:56:58]POST finish read [16:56:58]Found Content-Length = 717 [16:56:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343881", "tax_sys" : 0, "items" : [ { "code": "4870202522688", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 0,45 \u041F\u042D", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:58]execute_script... [16:56:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343881", "tax_sys" : 0, "items" : [ { "code": "4870202522688", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 0,45 \u041F\u042D", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:58]POST & json_proto [16:56:58]process_json_proto [16:56:58]json parsed OK: [16:56:58]protocol is kg_v1.0 [16:56:58]action value=close_receipt [16:56:58]process_action close_receipt [16:56:58]cmd_close_receipt [16:56:58]MH_GetDate [16:56:58]Write to MH i2c: F0 00 00 E1 1C EC [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: F0 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: F0 09 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: F0 09 00 E1 1C 00 5C 4C F0 66 1B D0 5A 64 9C [16:56:58]GetLastDocTimeStamp 1727024136 [16:56:58]current date 1727024220 [16:56:58]FM_GetShiftState [16:56:58]SAM_PROTO_GetShiftState [16:56:58]wFMCommunicate request_size=4 [16:56:58]MH_SAM_APDU [16:56:58]CAPDU: 80 13 01 00 [16:56:58]Write to MH i2c: E2 08 00 E2 1C 80 13 01 00 00 00 00 00 7B [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:58]Read from MH i2c: E2 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 0E 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 0E 00 E2 1C 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 94 [16:56:58]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:56:58]wFMCommunicate OK [16:56:58]SAM_PROTO_GetShiftState done [16:56:58]FM_GetShiftState done [16:56:58]opened in 1726965840 [16:56:58]opened+sec_in_day 1727052240 [16:56:58]quantity*price = 14000 [16:56:58]sum+1 = 14001 [16:56:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 159 22.09.2024 16:57 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115441 ФПД: 156551001888219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T165700&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115441&fm=156551001888219&tin=02508201610067®Number=0000000000091831&sum=14000 0 [16:56:59]StoreToDocumentArchive [16:56:59]shift 471 fd 115441 [16:56:59]save to /storage/0471/doc_00115441 [16:56:59]save last doc name /storage/0471/doc_00115441 to /storage/kkm_last_doc_name [16:56:59]save OK [16:56:59]Clear old archive folders... [16:56:59]ProcessDocumentItem done err = 0, tmpTLVsize=306 [16:56:59]tlvbuf is B6EBBA70 [16:56:59]SAM_PROTO_ClearQueue [16:56:59]wFMCommunicate request_size=4 [16:56:59]MH_SAM_APDU [16:56:59]CAPDU: 80 09 00 00 [16:56:59]Write to MH i2c: E2 08 00 EF 1C 80 09 00 00 00 00 00 00 7D [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:59]Read from MH i2c: E2 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 03 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 03 00 EF 1C 00 90 00 7F [16:56:59]RAPDU: 90 00 [16:56:59]wFMCommunicate OK [16:56:59]SAM_PROTO_ClearQueue done [16:56:59]KKMCreateOFDPacket [16:56:59]OFDProtocolAddRootSTLVToBuf [16:56:59]FM_MakeSignedData [16:56:59]FM_MakeSignedData [16:56:59]SAM_PROTO_SignData [16:56:59]wFMCommunicate request_size=4 [16:56:59]MH_SAM_APDU [16:56:59]CAPDU: 80 0D 01 02 [16:56:59]Write to MH i2c: E2 08 00 F0 1C 80 0D 01 02 00 00 00 00 85 [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:59]Read from MH i2c: E2 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 03 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 03 00 F0 1C 00 90 00 80 [16:56:59]RAPDU: 90 00 [16:56:59]wFMCommunicate OK [16:56:59]wFMCommunicate request_size=255 [16:56:59]MH_SAM_APDU [16:56:59]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 5C 4C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 [16:56:59]Write to MH i2c: E2 02 01 F1 1C 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 5C 4C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 00 88 [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:59]Read from MH i2c: E2 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 03 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 03 00 F1 1C 00 90 00 81 [16:56:59]RAPDU: 90 00 [16:56:59]wFMCommunicate OK [16:56:59]wFMCommunicate request_size=65 [16:56:59]MH_SAM_APDU [16:56:59]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F1 C2 01 00 35 04 06 00 8E 61 DE DB 55 DB [16:56:59]Write to MH i2c: E2 44 00 F2 1C 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F1 C2 01 00 35 04 06 00 8E 61 DE DB 55 DB 00 00 5B [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:59]Read from MH i2c: E2 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 03 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 03 00 F2 1C 00 90 00 82 [16:56:59]RAPDU: 90 00 [16:56:59]wFMCommunicate OK [16:56:59]wFMCommunicate request_size=4 [16:56:59]MH_SAM_APDU [16:56:59]CAPDU: 80 0D 03 02 [16:56:59]Write to MH i2c: E2 08 00 F3 1C 80 0D 03 02 00 00 00 00 8A [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:59]Read from MH i2c: E2 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 0B 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 0B 00 F3 1C 00 18 78 6E 47 D3 FB DC 35 90 00 AF [16:56:59]RAPDU: 18 78 6E 47 D3 FB DC 35 90 00 [16:56:59]wFMCommunicate OK [16:56:59]SAM_PROTO_SignData done [16:56:59]FM_MakeSignedData done [16:56:59]CreateOFDProtocolMessage [16:56:59]wFMCommunicate request_size=4 [16:56:59]MH_SAM_APDU [16:56:59]CAPDU: 80 11 00 00 [16:56:59]Write to MH i2c: E2 08 00 F4 1C 80 11 00 00 00 00 00 00 8A [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:59]Read from MH i2c: E2 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 17 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 17 00 F4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D8 [16:56:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:56:59]wFMCommunicate OK [16:56:59]CreateOFDProtocolMessage done [16:56:59]OFDSenderStorePacket 115441 [16:56:59]StoreOFDPacket docnum=115441 [16:56:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 46 01 00 00 2C 2E 3E 01 4C 40 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 5C 4C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F1 C2 01 00 35 04 06 00 8E 61 DE DB 55 DB 18 78 6E 47 D3 FB DC 35 [16:56:59]CheckFolder [16:56:59]dirname=/storage/ofd_packets [16:56:59]CheckFolder done [16:56:59]ProducePacketName [16:56:59]name=ofd_packets/00115441 [16:56:59]NVStorageSaveData ofd_packets/00115441 [16:56:59]File name is /storage/ofd_packets/00115441 [16:56:59]Write 356 bytes [16:56:59]NVStorageSaveData done [16:56:59]OFDSenderStorePacket done [16:56:59]KKMCreateOFDPacket done [16:56:59]NVStorageSaveData kkm_last_timestamp [16:56:59]File name is /storage/kkm_last_timestamp [16:56:59]Write 4 bytes [16:56:59]NVStorageSaveData done [16:56:59]ExternCall_PrintAddStr [16:56:59]wPrintStart [16:56:59]Write to MH i2c: 01 00 00 F5 1C 11 [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: 01 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: 01 07 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: 01 07 00 F5 1C 00 00 00 00 00 FF 0F 26 [16:56:59]RasterBufferAndPrint [16:56:59]line Счет N : (3)343881 [16:56:59]line ИНН: 02508201610067 [16:56:59]line Контрольно-Кассовый Чек [16:56:59]line ПРОДАЖА [16:56:59]line Товар: 4870202522688 [16:56:59]line Garden напиток со вкусом граната 0,45 ПЭ [16:56:59]line 2.000 * 70.00 [16:56:59]line = 140.00 [16:56:59]line НДС 12% НСП 1% [16:56:59]line > о реализуемом товаре [16:56:59]line ИТОГО: 140.00 [16:56:59]line НСП 1% : 1.24 [16:56:59]line НДС 12% : 14.87 [16:56:59]line Наличными: 140.00 [16:56:59]line Безнал.: 0.00 [16:56:59]line Место: АЗС № 90 "Партнер Нефть" [16:56:59]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:56:59]line СНО: Общий режим [16:56:59]line Чек 159 22.09.2024 16:57 [16:56:59]line Смена: 471 ФФД: 1.0 [16:56:59]line ЗНМ: 0300000120 [16:56:59]line РНМ: 0000000000091831 [16:56:59]line Версия ККМ: 001 [16:56:59]line ФМ: 0000000000871830 [16:56:59]line ФД: 115441 [16:56:59]line ФПД: 156551001888219 [16:57:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T165700&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115441&fm=156551001888219&tin=02508201610067®Number=0000000000091831&sum=14000 [16:57:00]line 0 [16:57:00]OFD Sender: Processing packet 115441 [packets to send 481, broken 480] [16:57:00]ProducePacketName [16:57:00]name=ofd_packets/00115441 [16:57:00]OFD Sender: To server: pG, [16:57:00]CommunicateWithHost lk.salyk.kg:30040 [16:57:00]ConnectInit lk.salyk.kg [16:57:00]written 0, free lines is 4095 [16:57:00]Connected sock=10 [16:57:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 46 01 00 00 2C 2E 3E 01 4C 40 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 5C 4C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F1 C2 01 00 35 04 06 00 8E 61 DE DB 55 DB 18 78 6E 47 D3 FB DC 35 [16:57:00]Write to MH i2c: 01 00 00 1D 1D 3A [16:57:00]Write i2c OK [16:57:00]MH_I2C_Read... [16:57:00]Read from MH i2c: 01 [16:57:00]MH_I2C_Read... [16:57:00]Read from MH i2c: 01 07 00 [16:57:00]MH_I2C_Read... [16:57:00]Read from MH i2c: 01 07 00 1D 1D 00 00 00 00 00 68 0C B5 [16:57:00]RasterBufferAndPrint [16:57:00]line [16:57:00]line [16:57:00]line [16:57:00]line [16:57:00]line [16:57:00]written 0, free lines is 3180 [16:57:00]MH_Cut [16:57:00]Write to MH i2c: D1 01 00 24 1D 01 13 [16:57:00]Write i2c OK [16:57:00]MH_I2C_Read... [16:57:00]Read from MH i2c: D1 [16:57:00]MH_I2C_Read... [16:57:00]Read from MH i2c: D1 01 00 [16:57:00]MH_I2C_Read... [16:57:00]Read from MH i2c: D1 01 00 24 1D 00 12 [16:57:00]Write to MH i2c: 01 00 00 25 1D 42 [16:57:00]Write i2c OK [16:57:00]MH_I2C_Read... [16:57:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 CE D6 47 00 C9 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 31 38 33 30 10 04 04 00 F1 C2 01 00 F4 03 04 00 A1 F1 EF 66 B6 04 01 00 00 DD 5D C6 1A 0D 9C EC 9E [16:57:00]CommunicateWithHost err = 0 [16:57:00]CheckOFDResponse [16:57:00]1017 (14) - 77093643461234 [16:57:00]1041 (16) - 0000000000871830 [16:57:00]1040 (4) - 115441 [16:57:00]1012 (4) - 22.09.2024 10:29 [16:57:00]1206 (1) - 0 [16:57:00]OFD Sender: Remove packet 115441 [16:57:00]ProducePacketName [16:57:00]name=ofd_packets/00115441 [16:57:00]NVStorageDeleteData [16:57:01]OFD Sender: No OFD packet to send [16:57:01]*** Cut start [16:57:01]*** Partial cut [16:57:01]*** CUTSNS_PIN = 1 [16:57:01]*** CUTSNS_PIN = 0 [16:57:02]*** Brake cut motor [16:57:02]Read from MH i2c: 01 [16:57:02]MH_I2C_Read... [16:57:02]*** Stop cut motor [16:57:02]*** Cut end [16:57:02]Read from MH i2c: 01 07 00 [16:57:02]MH_I2C_Read... [16:57:02]Read from MH i2c: 01 07 00 25 1D 00 00 00 00 00 FF 0F 57 [16:57:02]process_action close_receipt done [16:57:02]requested_data is exist [16:57:02]produce_requested_data [16:57:02]requested_item fm.sn is exist - process it [16:57:02]wFMCommunicate request_size=4 [16:57:02]MH_SAM_APDU [16:57:02]CAPDU: 80 11 00 00 [16:57:02]Write to MH i2c: E2 08 00 26 1D 80 11 00 00 00 00 00 00 BD [16:57:02]Write i2c OK [16:57:02]MH_I2C_Read... [16:57:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:02]Read from MH i2c: E2 [16:57:02]MH_I2C_Read... [16:57:02]Read from MH i2c: E2 17 00 [16:57:02]MH_I2C_Read... [16:57:02]Read from MH i2c: E2 17 00 26 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0B [16:57:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:57:02]wFMCommunicate OK [16:57:02]requested_item fd.num is exist - process it [16:57:02]SAM_PROTO_GetFieldsCounters [16:57:02]wFMCommunicate request_size=4 [16:57:02]MH_SAM_APDU [16:57:02]CAPDU: 80 13 00 00 [16:57:02]Write to MH i2c: E2 08 00 27 1D 80 13 00 00 00 00 00 00 C0 [16:57:02]Write i2c OK [16:57:02]MH_I2C_Read... [16:57:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:02]Read from MH i2c: E2 [16:57:02]MH_I2C_Read... [16:57:02]Read from MH i2c: E2 62 00 [16:57:02]MH_I2C_Read... [16:57:02]Read from MH i2c: E2 62 00 27 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F1 C2 01 00 0E 04 04 00 D7 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 42 [16:57:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F1 C2 01 00 0E 04 04 00 D7 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 [16:57:02]wFMCommunicate OK [16:57:02]SAM_PROTO_GetFieldsCounters done [16:57:02]requested_item shift.num is exist - process it [16:57:02]requested_item shift.opened is exist - process it [16:57:02]req_shift_opened [16:57:02]FM_GetShiftState [16:57:02]SAM_PROTO_GetShiftState [16:57:02]wFMCommunicate request_size=4 [16:57:02]MH_SAM_APDU [16:57:02]CAPDU: 80 13 01 00 [16:57:02]Write to MH i2c: E2 08 00 28 1D 80 13 01 00 00 00 00 00 C2 [16:57:02]Write i2c OK [16:57:02]MH_I2C_Read... [16:57:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:02]Read from MH i2c: E2 [16:57:02]MH_I2C_Read... [16:57:02]Read from MH i2c: E2 0E 00 [16:57:02]MH_I2C_Read... [16:57:02]Read from MH i2c: E2 0E 00 28 1D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 DB [16:57:02]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:57:02]wFMCommunicate OK [16:57:02]SAM_PROTO_GetShiftState done [16:57:02]FM_GetShiftState done [16:57:02]req_shift_opened done [16:57:02]requested_item shift.open_date is exist - process it [16:57:02]req_shift_open_date [16:57:02]req_shift_open_date done [16:57:02]produce_requested_data done [16:57:02]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115441,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:57:02]process_action_free close_receipt [16:57:02]json_value_free [16:57:02]json_value_free done [16:57:02]process_json_proto returns [16:57:02]Send response to host [16:57:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115441,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:57:02]free response buf [16:57:02]execute_script done [16:57:02]execute_script returns [16:57:02]free content buf [16:57:02]Sock 9.Close socket [16:57:02]Sock 9.Thread stoped [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:57:57]accept exits with 8 [16:57:57]New connection [16:57:57]New thread 3066682724 created [16:57:57]Thread 3066826084 joined [16:57:57]Waiting for new connection... [16:57:57] Sock 8.Parse request [16:57:57]Sock 8.Check first char [16:57:57]Sock 8.First char is OK [16:57:57]request: POST /json_proto HTTP/1.0 [16:57:57]Method: POST [16:57:57]URL: /json_proto [16:57:57]Method is POST - this is cgi request [16:57:57]url: /json_proto [16:57:57]query_string will be loaded in cgi processing [16:57:57]execute_cgi json_proto POST (null) [16:57:57]execute_cgi path=json_proto method=POST [16:57:57]POST find Content-Length [16:57:57]Host: 172.17.41.136:8080 [16:57:57]Content-Length: 779 [16:57:57]Content-Type: application/json [16:57:57] [16:57:57]POST finish read [16:57:57]Found Content-Length = 779 [16:57:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343882", "tax_sys" : 0, "items" : [ { "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 159.00, "quantity" : 1.000, "sum" : 159.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" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:57]execute_script... [16:57:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343882", "tax_sys" : 0, "items" : [ { "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 159.00, "quantity" : 1.000, "sum" : 159.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" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:57]POST & json_proto [16:57:57]process_json_proto [16:57:57]json parsed OK: [16:57:57]protocol is kg_v1.0 [16:57:57]action value=close_receipt [16:57:57]process_action close_receipt [16:57:57]cmd_close_receipt [16:57:57]MH_GetDate [16:57:57]Write to MH i2c: F0 00 00 29 1D 35 [16:57:57]Write i2c OK [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: F0 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: F0 09 00 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: F0 09 00 29 1D 00 97 4C F0 66 1B D0 5A 64 20 [16:57:57]GetLastDocTimeStamp 1727024220 [16:57:57]current date 1727024279 [16:57:57]FM_GetShiftState [16:57:57]SAM_PROTO_GetShiftState [16:57:57]wFMCommunicate request_size=4 [16:57:57]MH_SAM_APDU [16:57:57]CAPDU: 80 13 01 00 [16:57:57]Write to MH i2c: E2 08 00 2A 1D 80 13 01 00 00 00 00 00 C4 [16:57:57]Write i2c OK [16:57:57]MH_I2C_Read... [16:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:57]Read from MH i2c: E2 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: E2 0E 00 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: E2 0E 00 2A 1D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 DD [16:57:57]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:57:57]wFMCommunicate OK [16:57:57]SAM_PROTO_GetShiftState done [16:57:57]FM_GetShiftState done [16:57:57]opened in 1726965840 [16:57:57]opened+sec_in_day 1727052240 [16:57:57]quantity*price = 15900 [16:57:57]sum+1 = 15901 [16:57:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 0.00 Безнал.: 159.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 160 22.09.2024 16:57 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115442 ФПД: 194181852980053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T165759&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115442&fm=194181852980053&tin=02508201610067®Number=0000000000091831&sum=15900 0 [16:57:58]StoreToDocumentArchive [16:57:58]shift 471 fd 115442 [16:57:58]save to /storage/0471/doc_00115442 [16:57:58]save last doc name /storage/0471/doc_00115442 to /storage/kkm_last_doc_name [16:57:58]save OK [16:57:58]Clear old archive folders... [16:57:58]ProcessDocumentItem done err = 0, tmpTLVsize=270 [16:57:58]tlvbuf is 01C11730 [16:57:58]SAM_PROTO_ClearQueue [16:57:58]wFMCommunicate request_size=4 [16:57:58]MH_SAM_APDU [16:57:58]CAPDU: 80 09 00 00 [16:57:58]Write to MH i2c: E2 08 00 37 1D 80 09 00 00 00 00 00 00 C6 [16:57:58]Write i2c OK [16:57:58]MH_I2C_Read... [16:57:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:58]Read from MH i2c: E2 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 03 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 03 00 37 1D 00 90 00 C8 [16:57:58]RAPDU: 90 00 [16:57:58]wFMCommunicate OK [16:57:58]SAM_PROTO_ClearQueue done [16:57:58]KKMCreateOFDPacket [16:57:58]OFDProtocolAddRootSTLVToBuf [16:57:58]FM_MakeSignedData [16:57:58]FM_MakeSignedData [16:57:58]SAM_PROTO_SignData [16:57:58]wFMCommunicate request_size=4 [16:57:58]MH_SAM_APDU [16:57:58]CAPDU: 80 0D 01 02 [16:57:58]Write to MH i2c: E2 08 00 38 1D 80 0D 01 02 00 00 00 00 CE [16:57:58]Write i2c OK [16:57:58]MH_I2C_Read... [16:57:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:58]Read from MH i2c: E2 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 03 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 03 00 38 1D 00 90 00 C9 [16:57:58]RAPDU: 90 00 [16:57:58]wFMCommunicate OK [16:57:58]wFMCommunicate request_size=255 [16:57:58]MH_SAM_APDU [16:57:58]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 97 4C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [16:57:58]Write to MH i2c: E2 02 01 39 1D 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 97 4C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 57 [16:57:58]Write i2c OK [16:57:58]MH_I2C_Read... [16:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:58]Read from MH i2c: E2 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 03 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 03 00 39 1D 00 90 00 CA [16:57:58]RAPDU: 90 00 [16:57:58]wFMCommunicate OK [16:57:58]wFMCommunicate request_size=29 [16:57:58]MH_SAM_APDU [16:57:58]CAPDU: 80 0D 02 02 18 38 37 31 38 33 30 10 04 04 00 F2 C2 01 00 35 04 06 00 B0 9B 7C 5E 63 55 [16:57:58]Write to MH i2c: E2 20 00 3A 1D 80 0D 02 02 18 00 38 37 31 38 33 30 10 04 04 00 F2 C2 01 00 35 04 06 00 B0 9B 7C 5E 63 55 00 00 25 [16:57:58]Write i2c OK [16:57:58]MH_I2C_Read... [16:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:58]Read from MH i2c: E2 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 03 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 03 00 3A 1D 00 90 00 CB [16:57:58]RAPDU: 90 00 [16:57:58]wFMCommunicate OK [16:57:58]wFMCommunicate request_size=4 [16:57:58]MH_SAM_APDU [16:57:58]CAPDU: 80 0D 03 02 [16:57:58]Write to MH i2c: E2 08 00 3B 1D 80 0D 03 02 00 00 00 00 D3 [16:57:58]Write i2c OK [16:57:58]MH_I2C_Read... [16:57:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:58]Read from MH i2c: E2 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 0B 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 0B 00 3B 1D 00 48 22 06 8D CD 0B 4D BE 90 00 B4 [16:57:58]RAPDU: 48 22 06 8D CD 0B 4D BE 90 00 [16:57:58]wFMCommunicate OK [16:57:58]SAM_PROTO_SignData done [16:57:58]FM_MakeSignedData done [16:57:58]CreateOFDProtocolMessage [16:57:58]wFMCommunicate request_size=4 [16:57:58]MH_SAM_APDU [16:57:58]CAPDU: 80 11 00 00 [16:57:58]Write to MH i2c: E2 08 00 3C 1D 80 11 00 00 00 00 00 00 D3 [16:57:58]Write i2c OK [16:57:58]MH_I2C_Read... [16:57:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:58]Read from MH i2c: E2 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 17 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 17 00 3C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 21 [16:57:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:57:58]wFMCommunicate OK [16:57:58]CreateOFDProtocolMessage done [16:57:58]OFDSenderStorePacket 115442 [16:57:58]StoreOFDPacket docnum=115442 [16:57:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 22 01 00 00 76 4F 1A 01 BD DB 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 97 4C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F2 C2 01 00 35 04 06 00 B0 9B 7C 5E 63 55 48 22 06 8D CD 0B 4D BE [16:57:58]CheckFolder [16:57:58]dirname=/storage/ofd_packets [16:57:58]CheckFolder done [16:57:58]ProducePacketName [16:57:58]name=ofd_packets/00115442 [16:57:58]NVStorageSaveData ofd_packets/00115442 [16:57:58]File name is /storage/ofd_packets/00115442 [16:57:58]Write 320 bytes [16:57:58]NVStorageSaveData done [16:57:58]OFDSenderStorePacket done [16:57:58]KKMCreateOFDPacket done [16:57:58]NVStorageSaveData kkm_last_timestamp [16:57:58]File name is /storage/kkm_last_timestamp [16:57:58]Write 4 bytes [16:57:58]NVStorageSaveData done [16:57:58]ExternCall_PrintAddStr [16:57:58]wPrintStart [16:57:58]Write to MH i2c: 01 00 00 3D 1D 5A [16:57:58]Write i2c OK [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: 01 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: 01 07 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: 01 07 00 3D 1D 00 00 00 00 00 FF 0F 6F [16:57:58]RasterBufferAndPrint [16:57:58]line Счет N : (3)343882 [16:57:58]line ИНН: 02508201610067 [16:57:58]line Контрольно-Кассовый Чек [16:57:58]line ПРОДАЖА [16:57:58]line Товар: 48746526 [16:57:58]line Сигареты Mevius Wind Blue [16:57:58]line 1.000 * 159.00 [16:57:58]line = 159.00 [16:57:58]line НДС 12% НСП 1% [16:57:58]line > о реализуемом товаре [16:57:58]line ИТОГО: 159.00 [16:57:58]line НСП 1% : 1.41 [16:57:58]line НДС 12% : 16.88 [16:57:58]line Наличными: 0.00 [16:57:58]line Безнал.: 159.00 [16:57:58]line Место: АЗС № 90 "Партнер Нефть" [16:57:58]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:57:58]line СНО: Общий режим [16:57:58]line Чек 160 22.09.2024 16:57 [16:57:58]line Смена: 471 ФФД: 1.0 [16:57:58]line ЗНМ: 0300000120 [16:57:58]line РНМ: 0000000000091831 [16:57:58]line Версия ККМ: 001 [16:57:58]line Платежная система: O! деньги [16:57:58]line ФМ: 0000000000871830 [16:57:58]line ФД: 115442 [16:57:58]line ФПД: 194181852980053 [16:57:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T165759&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115442&fm=194181852980053&tin=02508201610067®Number=0000000000091831&sum=15900 [16:57:58]line 0 [16:57:58]written 0, free lines is 4095 [16:57:58]OFD Sender: Processing packet 115442 [packets to send 481, broken 480] [16:57:58]ProducePacketName [16:57:58]name=ofd_packets/00115442 [16:57:58]OFD Sender: To server: pG, [16:57:58]CommunicateWithHost lk.salyk.kg:30040 [16:57:58]ConnectInit lk.salyk.kg [16:57:59]Connected sock=10 [16:57:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 22 01 00 00 76 4F 1A 01 BD DB 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 97 4C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F2 C2 01 00 35 04 06 00 B0 9B 7C 5E 63 55 48 22 06 8D CD 0B 4D BE [16:57:59]Write to MH i2c: 01 00 00 66 1D 83 [16:57:59]Write i2c OK [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: 01 [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: 01 07 00 [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: 01 07 00 66 1D 00 00 00 00 00 60 0C F6 [16:57:59]RasterBufferAndPrint [16:57:59]line [16:57:59]line [16:57:59]line [16:57:59]line [16:57:59]line [16:57:59]written 0, free lines is 3174 [16:57:59]MH_Cut [16:57:59]Write to MH i2c: D1 01 00 6D 1D 01 5C [16:57:59]Write i2c OK [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: D1 [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: D1 01 00 [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: D1 01 00 6D 1D 00 5B [16:57:59]Write to MH i2c: 01 00 00 6E 1D 8B [16:57:59]Write i2c OK [16:57:59]MH_I2C_Read... [16:57:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 5E 4F 47 00 14 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 31 38 33 30 10 04 04 00 F2 C2 01 00 F4 03 04 00 DC F1 EF 66 B6 04 01 00 00 A1 85 47 05 CB 17 5B D1 [16:57:59]CommunicateWithHost err = 0 [16:57:59]CheckOFDResponse [16:57:59]1017 (14) - 77093643461234 [16:57:59]1041 (16) - 0000000000871830 [16:57:59]1040 (4) - 115442 [16:57:59]1012 (4) - 22.09.2024 10:30 [16:57:59]1206 (1) - 0 [16:57:59]OFD Sender: Remove packet 115442 [16:57:59]ProducePacketName [16:57:59]name=ofd_packets/00115442 [16:57:59]NVStorageDeleteData [16:57:59]OFD Sender: No OFD packet to send [16:58:00]*** Cut start [16:58:00]*** Partial cut [16:58:00]*** CUTSNS_PIN = 1 [16:58:00]*** CUTSNS_PIN = 0 [16:58:00]*** Brake cut motor [16:58:01]Read from MH i2c: 01 [16:58:01]MH_I2C_Read... [16:58:01]*** Stop cut motor [16:58:01]*** Cut end [16:58:01]Read from MH i2c: 01 07 00 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: 01 07 00 6E 1D 00 00 00 00 00 FF 0F A0 [16:58:01]process_action close_receipt done [16:58:01]requested_data is exist [16:58:01]produce_requested_data [16:58:01]requested_item fm.sn is exist - process it [16:58:01]wFMCommunicate request_size=4 [16:58:01]MH_SAM_APDU [16:58:01]CAPDU: 80 11 00 00 [16:58:01]Write to MH i2c: E2 08 00 6F 1D 80 11 00 00 00 00 00 00 06 [16:58:01]Write i2c OK [16:58:01]MH_I2C_Read... [16:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:01]Read from MH i2c: E2 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: E2 17 00 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: E2 17 00 6F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 54 [16:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:58:01]wFMCommunicate OK [16:58:01]requested_item fd.num is exist - process it [16:58:01]SAM_PROTO_GetFieldsCounters [16:58:01]wFMCommunicate request_size=4 [16:58:01]MH_SAM_APDU [16:58:01]CAPDU: 80 13 00 00 [16:58:01]Write to MH i2c: E2 08 00 70 1D 80 13 00 00 00 00 00 00 09 [16:58:01]Write i2c OK [16:58:01]MH_I2C_Read... [16:58:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:01]Read from MH i2c: E2 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: E2 62 00 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: E2 62 00 70 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F2 C2 01 00 0E 04 04 00 D7 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 8F [16:58:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F2 C2 01 00 0E 04 04 00 D7 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 [16:58:01]wFMCommunicate OK [16:58:01]SAM_PROTO_GetFieldsCounters done [16:58:01]requested_item shift.num is exist - process it [16:58:01]requested_item shift.opened is exist - process it [16:58:01]req_shift_opened [16:58:01]FM_GetShiftState [16:58:01]SAM_PROTO_GetShiftState [16:58:01]wFMCommunicate request_size=4 [16:58:01]MH_SAM_APDU [16:58:01]CAPDU: 80 13 01 00 [16:58:01]Write to MH i2c: E2 08 00 71 1D 80 13 01 00 00 00 00 00 0B [16:58:01]Write i2c OK [16:58:01]MH_I2C_Read... [16:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:01]Read from MH i2c: E2 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: E2 0E 00 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: E2 0E 00 71 1D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 24 [16:58:01]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:58:01]wFMCommunicate OK [16:58:01]SAM_PROTO_GetShiftState done [16:58:01]FM_GetShiftState done [16:58:01]req_shift_opened done [16:58:01]requested_item shift.open_date is exist - process it [16:58:01]req_shift_open_date [16:58:01]req_shift_open_date done [16:58:01]produce_requested_data done [16:58:01]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115442,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:58:01]process_action_free close_receipt [16:58:01]json_value_free [16:58:01]json_value_free done [16:58:01]process_json_proto returns [16:58:01]Send response to host [16:58:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115442,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:58:01]free response buf [16:58:01]execute_script done [16:58:01]execute_script returns [16:58:01]free content buf [16:58:01]Sock 8.Close socket [16:58:01]Sock 8.Thread stoped [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:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:46]accept exits with 9 [16:59:46]New connection [16:59:46]New thread 3066826084 created [16:59:46]Thread 3066682724 joined [16:59:46]Waiting for new connection... [16:59:46] Sock 9.Parse request [16:59:46]Sock 9.Check first char [16:59:46]Sock 9.First char is OK [16:59:46]request: POST /json_proto HTTP/1.0 [16:59:46]Method: POST [16:59:46]URL: /json_proto [16:59:46]Method is POST - this is cgi request [16:59:46]url: /json_proto [16:59:46]query_string will be loaded in cgi processing [16:59:46]execute_cgi json_proto POST (null) [16:59:46]execute_cgi path=json_proto method=POST [16:59:46]POST find Content-Length [16:59:46]Host: 172.17.41.136:8080 [16:59:46]Content-Length: 679 [16:59:46]Content-Type: application/json [16:59:46] [16:59:46]POST finish read [16:59:46]Found Content-Length = 679 [16:59:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:59:46]execute_script... [16:59: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)24616997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:59:46]POST & json_proto [16:59:46]process_json_proto [16:59:46]json parsed OK: [16:59:46]protocol is kg_v1.0 [16:59:46]action value=close_receipt [16:59:46]process_action close_receipt [16:59:46]cmd_close_receipt [16:59:46]MH_GetDate [16:59:46]Write to MH i2c: F0 00 00 72 1D 7E [16:59:46]Write i2c OK [16:59:46]MH_I2C_Read... [16:59:46]Read from MH i2c: F0 [16:59:46]MH_I2C_Read... [16:59:46]Read from MH i2c: F0 09 00 [16:59:46]MH_I2C_Read... [16:59:46]Read from MH i2c: F0 09 00 72 1D 00 04 4D F0 66 1B D0 5A 64 D7 [16:59:46]GetLastDocTimeStamp 1727024279 [16:59:46]current date 1727024388 [16:59:46]FM_GetShiftState [16:59:46]SAM_PROTO_GetShiftState [16:59:46]wFMCommunicate request_size=4 [16:59:46]MH_SAM_APDU [16:59:46]CAPDU: 80 13 01 00 [16:59:46]Write to MH i2c: E2 08 00 73 1D 80 13 01 00 00 00 00 00 0D [16:59:46]Write i2c OK [16:59:46]MH_I2C_Read... [16:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:46]Read from MH i2c: E2 [16:59:46]MH_I2C_Read... [16:59:46]Read from MH i2c: E2 0E 00 [16:59:46]MH_I2C_Read... [16:59:46]Read from MH i2c: E2 0E 00 73 1D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 26 [16:59:46]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:59:46]wFMCommunicate OK [16:59:46]SAM_PROTO_GetShiftState done [16:59:46]FM_GetShiftState done [16:59:46]opened in 1726965840 [16:59:46]opened+sec_in_day 1727052240 [16:59:46]quantity*price = 50036 [16:59:46]sum+1 = 50037 [16:59:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 161 22.09.2024 16:59 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115443 ФПД: 76126146417513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T165948&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115443&fm=76126146417513&tin=02508201610067®Number=0000000000091831&sum=50000 [16:59:47]StoreToDocumentArchive [16:59:47]shift 471 fd 115443 [16:59:47]save to /storage/0471/doc_00115443 [16:59:47]save last doc name /storage/0471/doc_00115443 to /storage/kkm_last_doc_name [16:59:47]save OK [16:59:47]Clear old archive folders... [16:59:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:59:47]tlvbuf is 01C11330 [16:59:47]SAM_PROTO_ClearQueue [16:59:47]wFMCommunicate request_size=4 [16:59:47]MH_SAM_APDU [16:59:47]CAPDU: 80 09 00 00 [16:59:47]Write to MH i2c: E2 08 00 80 1D 80 09 00 00 00 00 00 00 0F [16:59:47]Write i2c OK [16:59:47]MH_I2C_Read... [16:59:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:47]Read from MH i2c: E2 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 03 00 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 03 00 80 1D 00 90 00 11 [16:59:47]RAPDU: 90 00 [16:59:47]wFMCommunicate OK [16:59:47]SAM_PROTO_ClearQueue done [16:59:47]KKMCreateOFDPacket [16:59:47]OFDProtocolAddRootSTLVToBuf [16:59:47]FM_MakeSignedData [16:59:47]FM_MakeSignedData [16:59:47]SAM_PROTO_SignData [16:59:47]wFMCommunicate request_size=4 [16:59:47]MH_SAM_APDU [16:59:47]CAPDU: 80 0D 01 02 [16:59:47]Write to MH i2c: E2 08 00 81 1D 80 0D 01 02 00 00 00 00 17 [16:59:47]Write i2c OK [16:59:47]MH_I2C_Read... [16:59:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:47]Read from MH i2c: E2 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 03 00 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 03 00 81 1D 00 90 00 12 [16:59:47]RAPDU: 90 00 [16:59:47]wFMCommunicate OK [16:59:47]wFMCommunicate request_size=255 [16:59:47]MH_SAM_APDU [16:59:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A1 00 00 00 F4 03 04 00 04 4D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F3 C2 01 00 35 04 06 00 45 [16:59:47]Write to MH i2c: E2 02 01 82 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A1 00 00 00 F4 03 04 00 04 4D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F3 C2 01 00 35 04 06 00 45 00 00 A9 [16:59:47]Write i2c OK [16:59:47]MH_I2C_Read... [16:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:48]Read from MH i2c: E2 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 03 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 03 00 82 1D 00 90 00 13 [16:59:48]RAPDU: 90 00 [16:59:48]wFMCommunicate OK [16:59:48]wFMCommunicate request_size=10 [16:59:48]MH_SAM_APDU [16:59:48]CAPDU: 80 0D 02 02 05 3C 7F EA 53 69 [16:59:48]Write to MH i2c: E2 0D 00 83 1D 80 0D 02 02 05 00 3C 7F EA 53 69 00 00 85 [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:48]Read from MH i2c: E2 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 03 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 03 00 83 1D 00 90 00 14 [16:59:48]RAPDU: 90 00 [16:59:48]wFMCommunicate OK [16:59:48]wFMCommunicate request_size=4 [16:59:48]MH_SAM_APDU [16:59:48]CAPDU: 80 0D 03 02 [16:59:48]Write to MH i2c: E2 08 00 84 1D 80 0D 03 02 00 00 00 00 1C [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:48]Read from MH i2c: E2 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 0B 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 0B 00 84 1D 00 E0 F4 47 C6 4C C1 F3 81 90 00 7F [16:59:48]RAPDU: E0 F4 47 C6 4C C1 F3 81 90 00 [16:59:48]wFMCommunicate OK [16:59:48]SAM_PROTO_SignData done [16:59:48]FM_MakeSignedData done [16:59:48]CreateOFDProtocolMessage [16:59:48]wFMCommunicate request_size=4 [16:59:48]MH_SAM_APDU [16:59:48]CAPDU: 80 11 00 00 [16:59:48]Write to MH i2c: E2 08 00 85 1D 80 11 00 00 00 00 00 00 1C [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:48]Read from MH i2c: E2 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 17 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 17 00 85 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6A [16:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:59:48]wFMCommunicate OK [16:59:48]CreateOFDProtocolMessage done [16:59:48]OFDSenderStorePacket 115443 [16:59:48]StoreOFDPacket docnum=115443 [16:59:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 52 2F 07 01 7D 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A1 00 00 00 F4 03 04 00 04 4D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F3 C2 01 00 35 04 06 00 45 3C 7F EA 53 69 E0 F4 47 C6 4C C1 F3 81 [16:59:48]CheckFolder [16:59:48]dirname=/storage/ofd_packets [16:59:48]CheckFolder done [16:59:48]ProducePacketName [16:59:48]name=ofd_packets/00115443 [16:59:48]NVStorageSaveData ofd_packets/00115443 [16:59:48]File name is /storage/ofd_packets/00115443 [16:59:48]Write 301 bytes [16:59:48]NVStorageSaveData done [16:59:48]OFDSenderStorePacket done [16:59:48]KKMCreateOFDPacket done [16:59:48]NVStorageSaveData kkm_last_timestamp [16:59:48]File name is /storage/kkm_last_timestamp [16:59:48]Write 4 bytes [16:59:48]NVStorageSaveData done [16:59:48]ExternCall_PrintAddStr [16:59:48]wPrintStart [16:59:48]Write to MH i2c: 01 00 00 86 1D A3 [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: 01 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: 01 07 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: 01 07 00 86 1D 00 00 00 00 00 FF 0F B8 [16:59:48]RasterBufferAndPrint [16:59:48]line Счет N : (1)24616997 [16:59:48]line ИНН: 02508201610067 [16:59:48]line Контрольно-Кассовый Чек [16:59:48]line ПРОДАЖА [16:59:48]line ТРК (МРК, ГНК) : 33 [16:59:48]line Товар: 2710124130 [16:59:48]line Аи-92-К-5 [16:59:48]line 7.380 * 67.80 [16:59:48]line = 500.36 [16:59:48]line НДС 12% НСП 1% [16:59:48]line > о реализуемом товаре [16:59:48]line ОКРУГЛЕНИЕ: -0.36 [16:59:48]line ИТОГО: 500.00 [16:59:48]line Внесено: 500.00 [16:59:48]line СДАЧА: 0.00 [16:59:48]line НСП 1% : 4.43 [16:59:48]line НДС 12% : 53.14 [16:59:48]line Наличными: 500.00 [16:59:48]line Безнал.: 0.00 [16:59:48]line Место: АЗС № 90 "Партнер Нефть" [16:59:48]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:59:48]line СНО: Общий режим [16:59:48]line Чек 161 22.09.2024 16:59 [16:59:48]line Смена: 471 ФФД: 1.0 [16:59:48]line ЗНМ: 0300000120 [16:59:48]line РНМ: 0000000000091831 [16:59:48]line Версия ККМ: 001 [16:59:48]line ФМ: 0000000000871830 [16:59:48]line ФД: 115443 [16:59:48]line ФПД: 76126146417513 [16:59:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T165948&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115443&fm=76126146417513&tin=02508201610067®Number=0000000000091831&sum=50000 [16:59:48]written 0, free lines is 4095 [16:59:48]OFD Sender: Processing packet 115443 [packets to send 481, broken 480] [16:59:48]ProducePacketName [16:59:48]name=ofd_packets/00115443 [16:59:48]OFD Sender: To server: pG, [16:59:48]CommunicateWithHost lk.salyk.kg:30040 [16:59:48]ConnectInit lk.salyk.kg [16:59:48]Write to MH i2c: 01 00 00 B0 1D CD [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: 01 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: 01 07 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: 01 07 00 B0 1D 00 00 00 00 00 62 0C 42 [16:59:48]RasterBufferAndPrint [16:59:48]line [16:59:48]line [16:59:48]line [16:59:48]line [16:59:48]line [16:59:48]written 0, free lines is 3176 [16:59:48]Connected sock=8 [16:59:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 52 2F 07 01 7D 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A1 00 00 00 F4 03 04 00 04 4D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F3 C2 01 00 35 04 06 00 45 3C 7F EA 53 69 E0 F4 47 C6 4C C1 F3 81 [16:59:48]MH_Cut [16:59:48]Write to MH i2c: D1 01 00 B7 1D 01 A6 [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: D1 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: D1 01 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: D1 01 00 B7 1D 00 A5 [16:59:48]Write to MH i2c: 01 00 00 B8 1D D5 [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 40 2A 47 00 37 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F3 C2 01 00 F4 03 04 00 4A F2 EF 66 B6 04 01 00 00 CA 88 AB 35 07 0B E6 E0 [16:59:48]CommunicateWithHost err = 0 [16:59:48]CheckOFDResponse [16:59:48]1017 (14) - 77093643461234 [16:59:48]1041 (16) - 0000000000871830 [16:59:48]1040 (4) - 115443 [16:59:48]1012 (4) - 22.09.2024 10:32 [16:59:48]1206 (1) - 0 [16:59:48]OFD Sender: Remove packet 115443 [16:59:48]ProducePacketName [16:59:48]name=ofd_packets/00115443 [16:59:48]NVStorageDeleteData [16:59:49]OFD Sender: No OFD packet to send [16:59:49]*** Cut start [16:59:49]*** Partial cut [16:59:49]*** CUTSNS_PIN = 1 [16:59:49]*** CUTSNS_PIN = 0 [16:59:50]*** Brake cut motor [16:59:50]Read from MH i2c: 01 [16:59:50]MH_I2C_Read... [16:59:50]*** Stop cut motor [16:59:50]*** Cut end [16:59:50]Read from MH i2c: 01 07 00 [16:59:50]MH_I2C_Read... [16:59:50]Read from MH i2c: 01 07 00 B8 1D 00 00 00 00 00 FF 0F EA [16:59:50]process_action close_receipt done [16:59:50]requested_data is exist [16:59:50]produce_requested_data [16:59:50]requested_item fm.sn is exist - process it [16:59:50]wFMCommunicate request_size=4 [16:59:50]MH_SAM_APDU [16:59:50]CAPDU: 80 11 00 00 [16:59:50]Write to MH i2c: E2 08 00 B9 1D 80 11 00 00 00 00 00 00 50 [16:59:50]Write i2c OK [16:59:50]MH_I2C_Read... [16:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:50]Read from MH i2c: E2 [16:59:50]MH_I2C_Read... [16:59:50]Read from MH i2c: E2 17 00 [16:59:50]MH_I2C_Read... [16:59:50]Read from MH i2c: E2 17 00 B9 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9E [16:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:59:50]wFMCommunicate OK [16:59:50]requested_item fd.num is exist - process it [16:59:50]SAM_PROTO_GetFieldsCounters [16:59:50]wFMCommunicate request_size=4 [16:59:50]MH_SAM_APDU [16:59:50]CAPDU: 80 13 00 00 [16:59:50]Write to MH i2c: E2 08 00 BA 1D 80 13 00 00 00 00 00 00 53 [16:59:50]Write i2c OK [16:59:50]MH_I2C_Read... [16:59:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:50]Read from MH i2c: E2 [16:59:50]MH_I2C_Read... [16:59:50]Read from MH i2c: E2 62 00 [16:59:50]MH_I2C_Read... [16:59:50]Read from MH i2c: E2 62 00 BA 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F3 C2 01 00 0E 04 04 00 D7 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 DD [16:59:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F3 C2 01 00 0E 04 04 00 D7 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 [16:59:50]wFMCommunicate OK [16:59:50]SAM_PROTO_GetFieldsCounters done [16:59:50]requested_item shift.num is exist - process it [16:59:50]requested_item shift.opened is exist - process it [16:59:50]req_shift_opened [16:59:50]FM_GetShiftState [16:59:50]SAM_PROTO_GetShiftState [16:59:50]wFMCommunicate request_size=4 [16:59:50]MH_SAM_APDU [16:59:50]CAPDU: 80 13 01 00 [16:59:50]Write to MH i2c: E2 08 00 BB 1D 80 13 01 00 00 00 00 00 55 [16:59:50]Write i2c OK [16:59:50]MH_I2C_Read... [16:59:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:50]Read from MH i2c: E2 [16:59:50]MH_I2C_Read... [16:59:50]Read from MH i2c: E2 0E 00 [16:59:50]MH_I2C_Read... [16:59:50]Read from MH i2c: E2 0E 00 BB 1D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 6E [16:59:50]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [16:59:50]wFMCommunicate OK [16:59:50]SAM_PROTO_GetShiftState done [16:59:50]FM_GetShiftState done [16:59:50]req_shift_opened done [16:59:50]requested_item shift.open_date is exist - process it [16:59:50]req_shift_open_date [16:59:50]req_shift_open_date done [16:59:50]produce_requested_data done [16:59:50]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115443,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [16:59:50]process_action_free close_receipt [16:59:50]json_value_free [16:59:50]json_value_free done [16:59:50]process_json_proto returns [16:59:50]Send response to host [16:59:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115443,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [16:59:50]free response buf [16:59:50]execute_script done [16:59:50]execute_script returns [16:59:50]free content buf [16:59:50]Sock 9.Close socket [16:59:50]Sock 9.Thread stoped [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:03]accept exits with 10 [17:00:03]New connection [17:00:03]New thread 3066682724 created [17:00:03]Thread 3066826084 joined [17:00:03]Waiting for new connection... [17:00:03] Sock 10.Parse request [17:00:03]Sock 10.Check first char [17:00:03]Sock 10.First char is OK [17:00:03]request: POST /json_proto HTTP/1.0 [17:00:03]Method: POST [17:00:03]URL: /json_proto [17:00:03]Method is POST - this is cgi request [17:00:03]url: /json_proto [17:00:03]query_string will be loaded in cgi processing [17:00:03]execute_cgi json_proto POST (null) [17:00:03]execute_cgi path=json_proto method=POST [17:00:03]POST find Content-Length [17:00:03]Host: 172.17.41.136:8080 [17:00:03]Content-Length: 215 [17:00:03]Content-Type: application/json [17:00:03] [17:00:03]POST finish read [17:00:03]Found Content-Length = 215 [17:00:03]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" ] } } [17:00:03]execute_script... [17:00:03]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" ] } } [17:00:03]POST & json_proto [17:00:03]process_json_proto [17:00:03]json parsed OK: [17:00:03]protocol is kg_v1.0 [17:00:03]action value=get_value [17:00:03]process_action get_value [17:00:03]cmd_get_value [17:00:03]process_action get_value done [17:00:03]requested_data is exist [17:00:03]produce_requested_data [17:00:03]requested_item kkm.sn is exist - process it [17:00:03]requested_item kkm.ver is exist - process it [17:00:03]requested_item fm.sn is exist - process it [17:00:03]wFMCommunicate request_size=4 [17:00:03]MH_SAM_APDU [17:00:03]CAPDU: 80 11 00 00 [17:00:03]Write to MH i2c: E2 08 00 BC 1D 80 11 00 00 00 00 00 00 53 [17:00:03]Write i2c OK [17:00:03]MH_I2C_Read... [17:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:03]Read from MH i2c: E2 [17:00:03]MH_I2C_Read... [17:00:03]Read from MH i2c: E2 17 00 [17:00:03]MH_I2C_Read... [17:00:03]Read from MH i2c: E2 17 00 BC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A1 [17:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:00:03]wFMCommunicate OK [17:00:03]requested_item fd.num is exist - process it [17:00:03]SAM_PROTO_GetFieldsCounters [17:00:03]wFMCommunicate request_size=4 [17:00:03]MH_SAM_APDU [17:00:03]CAPDU: 80 13 00 00 [17:00:03]Write to MH i2c: E2 08 00 BD 1D 80 13 00 00 00 00 00 00 56 [17:00:03]Write i2c OK [17:00:03]MH_I2C_Read... [17:00:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:03]Read from MH i2c: E2 [17:00:03]MH_I2C_Read... [17:00:03]Read from MH i2c: E2 62 00 [17:00:03]MH_I2C_Read... [17:00:03]Read from MH i2c: E2 62 00 BD 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F3 C2 01 00 0E 04 04 00 D7 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 E0 [17:00:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F3 C2 01 00 0E 04 04 00 D7 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 [17:00:03]wFMCommunicate OK [17:00:03]SAM_PROTO_GetFieldsCounters done [17:00:03]requested_item shift.num is exist - process it [17:00:03]requested_item shift.opened is exist - process it [17:00:03]req_shift_opened [17:00:03]FM_GetShiftState [17:00:03]SAM_PROTO_GetShiftState [17:00:03]wFMCommunicate request_size=4 [17:00:03]MH_SAM_APDU [17:00:03]CAPDU: 80 13 01 00 [17:00:03]Write to MH i2c: E2 08 00 BE 1D 80 13 01 00 00 00 00 00 58 [17:00:03]Write i2c OK [17:00:03]MH_I2C_Read... [17:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:03]Read from MH i2c: E2 [17:00:03]MH_I2C_Read... [17:00:03]Read from MH i2c: E2 0E 00 [17:00:03]MH_I2C_Read... [17:00:03]Read from MH i2c: E2 0E 00 BE 1D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 71 [17:00:03]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:00:03]wFMCommunicate OK [17:00:03]SAM_PROTO_GetShiftState done [17:00:03]FM_GetShiftState done [17:00:03]req_shift_opened done [17:00:03]requested_item shift.open_date is exist - process it [17:00:03]req_shift_open_date [17:00:03]req_shift_open_date done [17:00:03]produce_requested_data done [17:00:03]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115443,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [17:00:03]process_action_free get_value [17:00:03]json_value_free [17:00:03]json_value_free done [17:00:03]process_json_proto returns [17:00:03]Send response to host [17:00:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115443,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [17:00:03]free response buf [17:00:03]execute_script done [17:00:03]execute_script returns [17:00:03]free content buf [17:00:03]Sock 10.Close socket [17:00:03]Sock 10.Thread stoped [17:00:03]accept exits with 9 [17:00:03]New connection [17:00:03]New thread 3066826084 created [17:00:03]Thread 3066682724 joined [17:00:03]Waiting for new connection... [17:00:03] Sock 9.Parse request [17:00:03]Sock 9.Check first char [17:00:03]Sock 9.First char is OK [17:00:03]request: POST /json_proto HTTP/1.0 [17:00:03]Method: POST [17:00:03]URL: /json_proto [17:00:03]Method is POST - this is cgi request [17:00:03]url: /json_proto [17:00:03]query_string will be loaded in cgi processing [17:00:03]execute_cgi json_proto POST (null) [17:00:03]execute_cgi path=json_proto method=POST [17:00:03]POST find Content-Length [17:00:03]Host: 172.17.41.136:8080 [17:00:03]Content-Length: 331 [17:00:03]Content-Type: application/json [17:00:03] [17:00:03]POST finish read [17:00:03]Found Content-Length = 331 [17:00:03]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" ] } } [17:00:03]execute_script... [17:00:03]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" ] } } [17:00:03]POST & json_proto [17:00:03]process_json_proto [17:00:03]json parsed OK: [17:00:03]protocol is kg_v1.0 [17:00:03]action value=get_value [17:00:03]process_action get_value [17:00:03]cmd_get_value [17:00:03]process_action get_value done [17:00:03]requested_data is exist [17:00:03]produce_requested_data [17:00:03]requested_item fm.sale.total is exist - process it [17:00:03]SAM_PROTO_GetFMData [17:00:03]wFMCommunicate request_size=4 [17:00:03]MH_SAM_APDU [17:00:03]CAPDU: 80 13 03 00 [17:00:03]Write to MH i2c: E2 08 00 BF 1D 80 13 03 00 00 00 00 00 5B [17:00:03]Write i2c OK [17:00:03]MH_I2C_Read... [17:00:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:00:04]Read from MH i2c: E2 [17:00:04]MH_I2C_Read... [17:00:04]Read from MH i2c: E2 FD 00 [17:00:04]MH_I2C_Read... [17:00:04]Read from MH i2c: E2 FD 00 BF 1D 00 C5 04 85 04 C1 04 6E 04 04 00 44 BF 01 00 69 04 A3 00 6F 04 04 00 C7 BD 01 00 B1 04 05 00 DD BD C1 80 01 70 04 05 00 39 2B 27 47 01 72 04 04 00 A4 92 9A 39 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 C8 D1 DD 28 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 38 9B 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 62 [17:00:04]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 44 BF 01 00 69 04 A3 00 6F 04 04 00 C7 BD 01 00 B1 04 05 00 DD BD C1 80 01 70 04 05 00 39 2B 27 47 01 72 04 04 00 A4 92 9A 39 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 C8 D1 DD 28 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 38 9B 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 [17:00:04]wFMCommunicate OK [17:00:04]wFMCommunicate request_size=4 [17:00:04]MH_SAM_APDU [17:00:04]CAPDU: 80 17 00 00 [17:00:04]Write to MH i2c: E2 08 00 C0 1D 80 17 00 00 00 00 00 00 5D [17:00:04]Write i2c OK [17:00:04]MH_I2C_Read... [17:00:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:00:04]Read from MH i2c: E2 [17:00:04]MH_I2C_Read... [17:00:04]Read from MH i2c: E2 FD 00 [17:00:04]MH_I2C_Read... [17:00:04]Read from MH i2c: E2 FD 00 C0 1D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4A [17:00:04]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:00:04]wFMCommunicate OK [17:00:04]wFMCommunicate request_size=4 [17:00:04]MH_SAM_APDU [17:00:04]CAPDU: 80 17 00 00 [17:00:04]Write to MH i2c: E2 08 00 C1 1D 80 17 00 00 00 00 00 00 5E [17:00:04]Write i2c OK [17:00:04]MH_I2C_Read... [17:00:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:00:04]Read from MH i2c: E2 [17:00:04]MH_I2C_Read... [17:00:04]Read from MH i2c: E2 FD 00 [17:00:04]MH_I2C_Read... [17:00:04]Read from MH i2c: E2 FD 00 C1 1D 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 70 [17:00:04]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 [17:00:04]wFMCommunicate OK [17:00:04]wFMCommunicate request_size=4 [17:00:04]MH_SAM_APDU [17:00:04]CAPDU: 80 17 00 00 [17:00:04]Write to MH i2c: E2 08 00 C2 1D 80 17 00 00 00 00 00 00 5F [17:00:04]OFD Sender: No OFD packet to send [17:00:04]Write i2c OK [17:00:04]MH_I2C_Read... [17:00:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:00:04]Read from MH i2c: E2 [17:00:04]MH_I2C_Read... [17:00:04]Read from MH i2c: E2 FD 00 [17:00:04]MH_I2C_Read... [17:00:04]Read from MH i2c: E2 FD 00 C2 1D 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 EB [17:00:04]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 [17:00:04]wFMCommunicate OK [17:00:04]wFMCommunicate request_size=4 [17:00:04]MH_SAM_APDU [17:00:04]CAPDU: 80 17 00 00 [17:00:04]Write to MH i2c: E2 08 00 C3 1D 80 17 00 00 00 00 00 00 60 [17:00:04]Write i2c OK [17:00:04]MH_I2C_Read... [17:00:05]Read from MH i2c: E2 [17:00:05]MH_I2C_Read... [17:00:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:00:05]Read from MH i2c: E2 E2 00 [17:00:05]MH_I2C_Read... [17:00:05]Read from MH i2c: E2 E2 00 C3 1D 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3E [17:00:05]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 [17:00:05]wFMCommunicate OK [17:00:05]SAM_PROTO_GetFMData done [17:00:05]requested_item fm.sale_refund.total is exist - process it [17:00:05]requested_item fm.buy.total is exist - process it [17:00:05]requested_item shift.sale.total is exist - process it [17:00:05]SAM_PROTO_GetShiftData [17:00:05]wFMCommunicate request_size=4 [17:00:05]MH_SAM_APDU [17:00:05]CAPDU: 80 13 02 00 [17:00:05]Write to MH i2c: E2 08 00 C4 1D 80 13 02 00 00 00 00 00 5F [17:00:05]Write i2c OK [17:00:05]MH_I2C_Read... [17:00:05]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:00:05]Read from MH i2c: E2 [17:00:05]MH_I2C_Read... [17:00:05]Read from MH i2c: E2 FD 00 [17:00:05]MH_I2C_Read... [17:00:05]Read from MH i2c: E2 FD 00 C4 1D 00 AE 04 AA 04 AA 04 6E 04 04 00 A1 00 00 00 69 04 9B 00 6F 04 04 00 A1 00 00 00 B1 04 03 00 21 91 53 70 04 03 00 28 64 3C 72 04 03 00 F9 2C 17 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 FB DF 08 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 3B BD EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 45 [17:00:05]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A1 00 00 00 69 04 9B 00 6F 04 04 00 A1 00 00 00 B1 04 03 00 21 91 53 70 04 03 00 28 64 3C 72 04 03 00 F9 2C 17 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 FB DF 08 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 3B BD EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:00:05]wFMCommunicate OK [17:00:05]wFMCommunicate request_size=4 [17:00:05]MH_SAM_APDU [17:00:05]CAPDU: 80 17 00 00 [17:00:05]Write to MH i2c: E2 08 00 C5 1D 80 17 00 00 00 00 00 00 62 [17:00:05]Write i2c OK [17:00:05]MH_I2C_Read... [17:00:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:00:05]Read from MH i2c: E2 [17:00:05]MH_I2C_Read... [17:00:05]Read from MH i2c: E2 FD 00 [17:00:05]MH_I2C_Read... [17:00:05]Read from MH i2c: E2 FD 00 C5 1D 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 84 [17:00:05]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:00:05]wFMCommunicate OK [17:00:05]wFMCommunicate request_size=4 [17:00:05]MH_SAM_APDU [17:00:05]CAPDU: 80 17 00 00 [17:00:05]Write to MH i2c: E2 08 00 C6 1D 80 17 00 00 00 00 00 00 63 [17:00:05]Write i2c OK [17:00:05]MH_I2C_Read... [17:00:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:00:06]Read from MH i2c: E2 [17:00:06]MH_I2C_Read... [17:00:06]Read from MH i2c: E2 FD 00 [17:00:06]MH_I2C_Read... [17:00:06]Read from MH i2c: E2 FD 00 C6 1D 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1A [17:00:06]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:00:06]wFMCommunicate OK [17:00:06]wFMCommunicate request_size=4 [17:00:06]MH_SAM_APDU [17:00:06]CAPDU: 80 17 00 00 [17:00:06]Write to MH i2c: E2 08 00 C7 1D 80 17 00 00 00 00 00 00 64 [17:00:06]Write i2c OK [17:00:06]MH_I2C_Read... [17:00:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:00:06]Read from MH i2c: E2 [17:00:06]MH_I2C_Read... [17:00:06]Read from MH i2c: E2 FD 00 [17:00:06]MH_I2C_Read... [17:00:06]Read from MH i2c: E2 FD 00 C7 1D 00 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 90 00 D6 [17:00:06]RAPDU: 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 90 00 [17:00:06]wFMCommunicate OK [17:00:06]wFMCommunicate request_size=4 [17:00:06]MH_SAM_APDU [17:00:06]CAPDU: 80 17 00 00 [17:00:06]Write to MH i2c: E2 08 00 C8 1D 80 17 00 00 00 00 00 00 65 [17:00:06]Write i2c OK [17:00:06]MH_I2C_Read... [17:00:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:00:06]Read from MH i2c: E2 [17:00:06]MH_I2C_Read... [17:00:06]Read from MH i2c: E2 CB 00 [17:00:06]MH_I2C_Read... [17:00:06]Read from MH i2c: E2 CB 00 C8 1D 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4E [17:00:06]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:00:06]wFMCommunicate OK [17:00:06]SAM_PROTO_GetShiftData done [17:00:06]requested_item shift.sale.total_cash is exist - process it [17:00:06]requested_item shift.sale_refund.total is exist - process it [17:00:06]requested_item shift.sale_refund.total_cash is exist - process it [17:00:06]requested_item shift.buy.total is exist - process it [17:00:06]requested_item shift.buy.total_cash is exist - process it [17:00:06]produce_requested_data done [17:00:06]produce_requested_data return {"fm.sale.total":64551479.97,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":54766.41,"shift.sale.total_cash":39578.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} [17:00:06]process_action_free get_value [17:00:06]json_value_free [17:00:06]json_value_free done [17:00:06]process_json_proto returns [17:00:06]Send response to host [17:00:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64551479.97,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":54766.41,"shift.sale.total_cash":39578.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}}} [17:00:06]free response buf [17:00:06]execute_script done [17:00:06]execute_script returns [17:00:06]free content buf [17:00:06]Sock 9.Close socket [17:00:06]Sock 9.Thread stoped [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]accept exits with 10 [17:01:59]New connection [17:01:59]New thread 3066682724 created [17:01:59]Thread 3066826084 joined [17:01:59]Waiting for new connection... [17:01:59] Sock 10.Parse request [17:01:59]Sock 10.Check first char [17:01:59]Sock 10.First char is OK [17:01:59]request: POST /json_proto HTTP/1.0 [17:01:59]Method: POST [17:01:59]URL: /json_proto [17:01:59]Method is POST - this is cgi request [17:01:59]url: /json_proto [17:01:59]query_string will be loaded in cgi processing [17:01:59]execute_cgi json_proto POST (null) [17:01:59]execute_cgi path=json_proto method=POST [17:01:59]POST find Content-Length [17:01:59]Host: 172.17.41.136:8080 [17:01:59]Content-Length: 683 [17:01:59]Content-Type: application/json [17:01:59] [17:01:59]POST finish read [17:01:59]Found Content-Length = 683 [17:01:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24616998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 24.070, "sum" : 900.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:59]execute_script... [17:01: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)24616998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 24.070, "sum" : 900.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:59]POST & json_proto [17:01:59]process_json_proto [17:01:59]json parsed OK: [17:01:59]protocol is kg_v1.0 [17:01:59]action value=close_receipt [17:01:59]process_action close_receipt [17:01:59]cmd_close_receipt [17:01:59]MH_GetDate [17:01:59]Write to MH i2c: F0 00 00 C9 1D D5 [17:01:59]Write i2c OK [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: F0 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: F0 09 00 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: F0 09 00 C9 1D 00 89 4D F0 66 1B D0 5A 64 B3 [17:01:59]GetLastDocTimeStamp 1727024388 [17:01:59]current date 1727024521 [17:01:59]FM_GetShiftState [17:01:59]SAM_PROTO_GetShiftState [17:01:59]wFMCommunicate request_size=4 [17:01:59]MH_SAM_APDU [17:01:59]CAPDU: 80 13 01 00 [17:01:59]Write to MH i2c: E2 08 00 CA 1D 80 13 01 00 00 00 00 00 64 [17:01:59]Write i2c OK [17:01:59]MH_I2C_Read... [17:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:59]Read from MH i2c: E2 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: E2 0E 00 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: E2 0E 00 CA 1D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 7D [17:01:59]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:01:59]wFMCommunicate OK [17:01:59]SAM_PROTO_GetShiftState done [17:01:59]FM_GetShiftState done [17:01:59]opened in 1726965840 [17:01:59]opened+sec_in_day 1727052240 [17:01:59]quantity*price = 90021 [17:01:59]sum+1 = 90023 [17:01:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.60 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 162 22.09.2024 17:02 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115444 ФПД: 209272113577629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T170201&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115444&fm=209272113577629&tin=02508201610067®Number=0000000000091831&sum=90000 [17:02:00]StoreToDocumentArchive [17:02:00]shift 471 fd 115444 [17:02:00]save to /storage/0471/doc_00115444 [17:02:00]save last doc name /storage/0471/doc_00115444 to /storage/kkm_last_doc_name [17:02:00]save OK [17:02:00]Clear old archive folders... [17:02:00]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:02:00]tlvbuf is 01BE7F50 [17:02:00]SAM_PROTO_ClearQueue [17:02:00]wFMCommunicate request_size=4 [17:02:00]MH_SAM_APDU [17:02:00]CAPDU: 80 09 00 00 [17:02:00]Write to MH i2c: E2 08 00 D7 1D 80 09 00 00 00 00 00 00 66 [17:02:00]Write i2c OK [17:02:00]MH_I2C_Read... [17:02:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:00]Read from MH i2c: E2 [17:02:00]MH_I2C_Read... [17:02:00]Read from MH i2c: E2 03 00 [17:02:00]MH_I2C_Read... [17:02:00]Read from MH i2c: E2 03 00 D7 1D 00 90 00 68 [17:02:00]RAPDU: 90 00 [17:02:00]wFMCommunicate OK [17:02:00]SAM_PROTO_ClearQueue done [17:02:00]KKMCreateOFDPacket [17:02:00]OFDProtocolAddRootSTLVToBuf [17:02:00]FM_MakeSignedData [17:02:00]FM_MakeSignedData [17:02:00]SAM_PROTO_SignData [17:02:00]wFMCommunicate request_size=4 [17:02:00]MH_SAM_APDU [17:02:00]CAPDU: 80 0D 01 02 [17:02:00]Write to MH i2c: E2 08 00 D8 1D 80 0D 01 02 00 00 00 00 6E [17:02:00]Write i2c OK [17:02:00]MH_I2C_Read... [17:02:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:00]Read from MH i2c: E2 [17:02:00]MH_I2C_Read... [17:02:00]Read from MH i2c: E2 03 00 [17:02:00]MH_I2C_Read... [17:02:00]Read from MH i2c: E2 03 00 D8 1D 00 90 00 69 [17:02:00]RAPDU: 90 00 [17:02:00]wFMCommunicate OK [17:02:00]wFMCommunicate request_size=255 [17:02:00]MH_SAM_APDU [17:02:00]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 06 5E 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A6 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 58 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 A2 00 00 00 F4 03 04 00 89 4D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F4 C2 01 00 35 04 06 00 BE 54 [17:02:00]Write to MH i2c: E2 02 01 D9 1D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 06 5E 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A6 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 58 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 A2 00 00 00 F4 03 04 00 89 4D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F4 C2 01 00 35 04 06 00 BE 54 00 00 17 [17:02:00]Write i2c OK [17:02:00]MH_I2C_Read... [17:02:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:01]Read from MH i2c: E2 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 03 00 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 03 00 D9 1D 00 90 00 6A [17:02:01]RAPDU: 90 00 [17:02:01]wFMCommunicate OK [17:02:01]wFMCommunicate request_size=9 [17:02:01]MH_SAM_APDU [17:02:01]CAPDU: 80 0D 02 02 04 F5 FD BE 9D [17:02:01]Write to MH i2c: E2 0C 00 DA 1D 80 0D 02 02 04 00 F5 FD BE 9D 00 00 C6 [17:02:01]Write i2c OK [17:02:01]MH_I2C_Read... [17:02:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:01]Read from MH i2c: E2 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 03 00 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 03 00 DA 1D 00 90 00 6B [17:02:01]RAPDU: 90 00 [17:02:01]wFMCommunicate OK [17:02:01]wFMCommunicate request_size=4 [17:02:01]MH_SAM_APDU [17:02:01]CAPDU: 80 0D 03 02 [17:02:01]Write to MH i2c: E2 08 00 DB 1D 80 0D 03 02 00 00 00 00 73 [17:02:01]Write i2c OK [17:02:01]MH_I2C_Read... [17:02:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:01]Read from MH i2c: E2 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 0B 00 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 0B 00 DB 1D 00 E3 48 D4 50 CE C1 9B A8 90 00 95 [17:02:01]RAPDU: E3 48 D4 50 CE C1 9B A8 90 00 [17:02:01]wFMCommunicate OK [17:02:01]SAM_PROTO_SignData done [17:02:01]FM_MakeSignedData done [17:02:01]CreateOFDProtocolMessage [17:02:01]wFMCommunicate request_size=4 [17:02:01]MH_SAM_APDU [17:02:01]CAPDU: 80 11 00 00 [17:02:01]Write to MH i2c: E2 08 00 DC 1D 80 11 00 00 00 00 00 00 73 [17:02:01]Write i2c OK [17:02:01]MH_I2C_Read... [17:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:01]Read from MH i2c: E2 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 17 00 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 17 00 DC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C1 [17:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:02:01]wFMCommunicate OK [17:02:01]CreateOFDProtocolMessage done [17:02:01]OFDSenderStorePacket 115444 [17:02:01]StoreOFDPacket docnum=115444 [17:02:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0E 01 00 00 43 C9 06 01 6F BF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 06 5E 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A6 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 58 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 A2 00 00 00 F4 03 04 00 89 4D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F4 C2 01 00 35 04 06 00 BE 54 F5 FD BE 9D E3 48 D4 50 CE C1 9B A8 [17:02:01]CheckFolder [17:02:01]dirname=/storage/ofd_packets [17:02:01]CheckFolder done [17:02:01]ProducePacketName [17:02:01]name=ofd_packets/00115444 [17:02:01]NVStorageSaveData ofd_packets/00115444 [17:02:01]File name is /storage/ofd_packets/00115444 [17:02:01]Write 300 bytes [17:02:01]NVStorageSaveData done [17:02:01]OFDSenderStorePacket done [17:02:01]KKMCreateOFDPacket done [17:02:01]NVStorageSaveData kkm_last_timestamp [17:02:01]File name is /storage/kkm_last_timestamp [17:02:01]Write 4 bytes [17:02:01]NVStorageSaveData done [17:02:01]ExternCall_PrintAddStr [17:02:01]wPrintStart [17:02:01]Write to MH i2c: 01 00 00 DD 1D FA [17:02:01]Write i2c OK [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: 01 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: 01 07 00 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: 01 07 00 DD 1D 00 00 00 00 00 FF 0F 0F [17:02:01]RasterBufferAndPrint [17:02:01]line Счет N : (1)24616998 [17:02:01]line ИНН: 02508201610067 [17:02:01]line Контрольно-Кассовый Чек [17:02:01]line ПРОДАЖА [17:02:01]line ТРК (МРК, ГНК) : 71 [17:02:01]line Товар: 2711190000 [17:02:01]line ГАЗ-К-5 [17:02:01]line 24.070 * 37.40 [17:02:01]line = 900.22 [17:02:01]line НДС 12% НСП 1% [17:02:01]line > о реализуемом товаре [17:02:01]line ОКРУГЛЕНИЕ: -0.22 [17:02:01]line ИТОГО: 900.00 [17:02:01]line Внесено: 900.00 [17:02:01]line СДАЧА: 0.00 [17:02:01]line НСП 1% : 7.97 [17:02:01]line НДС 12% : 95.60 [17:02:01]line Наличными: 900.00 [17:02:01]line Безнал.: 0.00 [17:02:01]line Место: АЗС № 90 "Партнер Нефть" [17:02:01]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:02:01]line СНО: Общий режим [17:02:01]line Чек 162 22.09.2024 17:02 [17:02:01]line Смена: 471 ФФД: 1.0 [17:02:01]line ЗНМ: 0300000120 [17:02:01]line РНМ: 0000000000091831 [17:02:01]line Версия ККМ: 001 [17:02:01]line ФМ: 0000000000871830 [17:02:01]line ФД: 115444 [17:02:01]line ФПД: 209272113577629 [17:02:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T170201&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115444&fm=209272113577629&tin=02508201610067®Number=0000000000091831&sum=90000 [17:02:01]written 0, free lines is 4095 [17:02:01]OFD Sender: Processing packet 115444 [packets to send 481, broken 480] [17:02:01]ProducePacketName [17:02:01]name=ofd_packets/00115444 [17:02:01]OFD Sender: To server: pG, [17:02:01]CommunicateWithHost lk.salyk.kg:30040 [17:02:01]ConnectInit lk.salyk.kg [17:02:01]Connected sock=8 [17:02:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0E 01 00 00 43 C9 06 01 6F BF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 06 5E 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A6 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 58 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 A2 00 00 00 F4 03 04 00 89 4D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F4 C2 01 00 35 04 06 00 BE 54 F5 FD BE 9D E3 48 D4 50 CE C1 9B A8 [17:02:01]Write to MH i2c: 01 00 00 07 1E 25 [17:02:01]Write i2c OK [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: 01 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: 01 07 00 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: 01 07 00 07 1E 00 00 00 00 00 5F 0C 97 [17:02:01]RasterBufferAndPrint [17:02:01]line [17:02:01]line [17:02:01]line [17:02:01]line [17:02:01]line [17:02:01]written 0, free lines is 3173 [17:02:01]MH_Cut [17:02:01]Write to MH i2c: D1 01 00 0E 1E 01 FE [17:02:01]Write i2c OK [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: D1 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: D1 01 00 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: D1 01 00 0E 1E 00 FD [17:02:01]Write to MH i2c: 01 00 00 0F 1E 2D [17:02:01]Write i2c OK [17:02:01]MH_I2C_Read... [17:02:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 3D AB 47 00 DF B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F4 C2 01 00 F4 03 04 00 CE F2 EF 66 B6 04 01 00 00 C0 13 7A EB EC E7 A0 4F [17:02:01]CommunicateWithHost err = 0 [17:02:01]CheckOFDResponse [17:02:01]1017 (14) - 77093643461234 [17:02:01]1041 (16) - 0000000000871830 [17:02:01]1040 (4) - 115444 [17:02:01]1012 (4) - 22.09.2024 10:34 [17:02:01]1206 (1) - 0 [17:02:01]OFD Sender: Remove packet 115444 [17:02:01]ProducePacketName [17:02:01]name=ofd_packets/00115444 [17:02:01]NVStorageDeleteData [17:02:02]OFD Sender: No OFD packet to send [17:02:02]*** Cut start [17:02:02]*** Partial cut [17:02:02]*** CUTSNS_PIN = 1 [17:02:02]*** CUTSNS_PIN = 0 [17:02:03]*** Brake cut motor [17:02:03]Read from MH i2c: 01 [17:02:03]MH_I2C_Read... [17:02:03]*** Stop cut motor [17:02:03]*** Cut end [17:02:03]Read from MH i2c: 01 07 00 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: 01 07 00 0F 1E 00 00 00 00 00 FF 0F 42 [17:02:03]process_action close_receipt done [17:02:03]requested_data is exist [17:02:03]produce_requested_data [17:02:03]requested_item fm.sn is exist - process it [17:02:03]wFMCommunicate request_size=4 [17:02:03]MH_SAM_APDU [17:02:03]CAPDU: 80 11 00 00 [17:02:03]Write to MH i2c: E2 08 00 10 1E 80 11 00 00 00 00 00 00 A8 [17:02:03]Write i2c OK [17:02:03]MH_I2C_Read... [17:02:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:03]Read from MH i2c: E2 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: E2 17 00 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: E2 17 00 10 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F6 [17:02:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:02:03]wFMCommunicate OK [17:02:03]requested_item fd.num is exist - process it [17:02:03]SAM_PROTO_GetFieldsCounters [17:02:03]wFMCommunicate request_size=4 [17:02:03]MH_SAM_APDU [17:02:03]CAPDU: 80 13 00 00 [17:02:03]Write to MH i2c: E2 08 00 11 1E 80 13 00 00 00 00 00 00 AB [17:02:03]Write i2c OK [17:02:03]MH_I2C_Read... [17:02:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:03]Read from MH i2c: E2 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: E2 62 00 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: E2 62 00 11 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F4 C2 01 00 0E 04 04 00 D7 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 39 [17: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F4 C2 01 00 0E 04 04 00 D7 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 [17:02:03]wFMCommunicate OK [17:02:03]SAM_PROTO_GetFieldsCounters done [17:02:03]requested_item shift.num is exist - process it [17:02:03]requested_item shift.opened is exist - process it [17:02:03]req_shift_opened [17:02:03]FM_GetShiftState [17:02:03]SAM_PROTO_GetShiftState [17:02:03]wFMCommunicate request_size=4 [17:02:03]MH_SAM_APDU [17:02:03]CAPDU: 80 13 01 00 [17:02:03]Write to MH i2c: E2 08 00 12 1E 80 13 01 00 00 00 00 00 AD [17:02:03]Write i2c OK [17:02:03]MH_I2C_Read... [17:02:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:03]Read from MH i2c: E2 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: E2 0E 00 [17:02:03]MH_I2C_Read... [17:02:03]Read from MH i2c: E2 0E 00 12 1E 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C6 [17:02:03]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:02:03]wFMCommunicate OK [17:02:03]SAM_PROTO_GetShiftState done [17:02:03]FM_GetShiftState done [17:02:03]req_shift_opened done [17:02:03]requested_item shift.open_date is exist - process it [17:02:03]req_shift_open_date [17:02:03]req_shift_open_date done [17:02:03]produce_requested_data done [17:02:03]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115444,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [17:02:03]process_action_free close_receipt [17:02:03]json_value_free [17:02:03]json_value_free done [17:02:03]process_json_proto returns [17:02:03]Send response to host [17:02:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115444,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [17:02:03]free response buf [17:02:03]execute_script done [17:02:03]execute_script returns [17:02:03]free content buf [17:02:03]Sock 10.Close socket [17:02:03]Sock 10.Thread stoped [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:15]accept exits with 9 [17:09:15]New connection [17:09:15]New thread 3066826084 created [17:09:15]Thread 3066682724 joined [17:09:15]Waiting for new connection... [17:09:15] Sock 9.Parse request [17:09:15]Sock 9.Check first char [17:09:15]Sock 9.First char is OK [17:09:15]request: POST /json_proto HTTP/1.0 [17:09:15]Method: POST [17:09:15]URL: /json_proto [17:09:15]Method is POST - this is cgi request [17:09:15]url: /json_proto [17:09:15]query_string will be loaded in cgi processing [17:09:15]execute_cgi json_proto POST (null) [17:09:15]execute_cgi path=json_proto method=POST [17:09:15]POST find Content-Length [17:09:15]Host: 172.17.41.136:8080 [17:09:15]Content-Length: 695 [17:09:15]Content-Type: application/json [17:09:15] [17:09:15]POST finish read [17:09:15]Found Content-Length = 695 [17:09:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343883", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:15]execute_script... [17:09: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 : (3)343883", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:15]POST & json_proto [17:09:15]process_json_proto [17:09:15]json parsed OK: [17:09:15]protocol is kg_v1.0 [17:09:15]action value=close_receipt [17:09:15]process_action close_receipt [17:09:15]cmd_close_receipt [17:09:15]MH_GetDate [17:09:15]Write to MH i2c: F0 00 00 13 1E 20 [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: F0 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: F0 09 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: F0 09 00 13 1E 00 3D 4F F0 66 1B D0 5A 64 B4 [17:09:15]GetLastDocTimeStamp 1727024521 [17:09:15]current date 1727024957 [17:09:15]FM_GetShiftState [17:09:15]SAM_PROTO_GetShiftState [17:09:15]wFMCommunicate request_size=4 [17:09:15]MH_SAM_APDU [17:09:15]CAPDU: 80 13 01 00 [17:09:15]Write to MH i2c: E2 08 00 14 1E 80 13 01 00 00 00 00 00 AF [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:15]Read from MH i2c: E2 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 0E 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 0E 00 14 1E 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C8 [17:09:15]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:09:15]wFMCommunicate OK [17:09:15]SAM_PROTO_GetShiftState done [17:09:15]FM_GetShiftState done [17:09:15]opened in 1726965840 [17:09:15]opened+sec_in_day 1727052240 [17:09:15]quantity*price = 9500 [17:09:15]sum+1 = 9501 [17:09:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 163 22.09.2024 17:09 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115445 ФПД: 104734863758524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T170917&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115445&fm=104734863758524&tin=02508201610067®Number=0000000000091831&sum=9500 0 [17:09:16]StoreToDocumentArchive [17:09:16]shift 471 fd 115445 [17:09:16]save to /storage/0471/doc_00115445 [17:09:16]save last doc name /storage/0471/doc_00115445 to /storage/kkm_last_doc_name [17:09:16]save OK [17:09:16]Clear old archive folders... [17:09:16]ProcessDocumentItem done err = 0, tmpTLVsize=302 [17:09:16]tlvbuf is 01C455D0 [17:09:16]SAM_PROTO_ClearQueue [17:09:16]wFMCommunicate request_size=4 [17:09:16]MH_SAM_APDU [17:09:16]CAPDU: 80 09 00 00 [17:09:16]Write to MH i2c: E2 08 00 21 1E 80 09 00 00 00 00 00 00 B1 [17:09:16]Write i2c OK [17:09:16]MH_I2C_Read... [17:09:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:16]Read from MH i2c: E2 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: E2 03 00 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: E2 03 00 21 1E 00 90 00 B3 [17:09:16]RAPDU: 90 00 [17:09:16]wFMCommunicate OK [17:09:16]SAM_PROTO_ClearQueue done [17:09:16]KKMCreateOFDPacket [17:09:16]OFDProtocolAddRootSTLVToBuf [17:09:16]FM_MakeSignedData [17:09:16]FM_MakeSignedData [17:09:16]SAM_PROTO_SignData [17:09:16]wFMCommunicate request_size=4 [17:09:16]MH_SAM_APDU [17:09:16]CAPDU: 80 0D 01 02 [17:09:16]Write to MH i2c: E2 08 00 22 1E 80 0D 01 02 00 00 00 00 B9 [17:09:16]Write i2c OK [17:09:16]MH_I2C_Read... [17:09:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:16]Read from MH i2c: E2 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: E2 03 00 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: E2 03 00 22 1E 00 90 00 B4 [17:09:16]RAPDU: 90 00 [17:09:16]wFMCommunicate OK [17:09:16]wFMCommunicate request_size=255 [17:09:16]MH_SAM_APDU [17:09:16]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 3D 4F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 [17:09:16]Write to MH i2c: E2 02 01 23 1E 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 3D 4F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 00 00 F5 [17:09:16]Write i2c OK [17:09:16]MH_I2C_Read... [17:09:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:16]Read from MH i2c: E2 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: E2 03 00 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: E2 03 00 23 1E 00 90 00 B5 [17:09:16]RAPDU: 90 00 [17:09:16]wFMCommunicate OK [17:09:16]wFMCommunicate request_size=61 [17:09:16]MH_SAM_APDU [17:09:16]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F5 C2 01 00 35 04 06 00 5F 41 7C 59 94 BC [17:09:16]Write to MH i2c: E2 40 00 24 1E 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F5 C2 01 00 35 04 06 00 5F 41 7C 59 94 BC 00 00 66 [17:09:16]Write i2c OK [17:09:16]MH_I2C_Read... [17:09:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:16]Read from MH i2c: E2 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: E2 03 00 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: E2 03 00 24 1E 00 90 00 B6 [17:09:16]RAPDU: 90 00 [17:09:16]wFMCommunicate OK [17:09:16]wFMCommunicate request_size=4 [17:09:16]MH_SAM_APDU [17:09:16]CAPDU: 80 0D 03 02 [17:09:16]Write to MH i2c: E2 08 00 25 1E 80 0D 03 02 00 00 00 00 BE [17:09:16]Write i2c OK [17:09:16]MH_I2C_Read... [17:09:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:16]Read from MH i2c: E2 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: E2 0B 00 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: E2 0B 00 25 1E 00 FA 6F 8C E6 71 3B D8 9C 90 00 BA [17:09:16]RAPDU: FA 6F 8C E6 71 3B D8 9C 90 00 [17:09:16]wFMCommunicate OK [17:09:16]SAM_PROTO_SignData done [17:09:16]FM_MakeSignedData done [17:09:16]CreateOFDProtocolMessage [17:09:16]wFMCommunicate request_size=4 [17:09:16]MH_SAM_APDU [17:09:16]CAPDU: 80 11 00 00 [17:09:16]Write to MH i2c: E2 08 00 26 1E 80 11 00 00 00 00 00 00 BE [17:09:16]Write i2c OK [17:09:16]MH_I2C_Read... [17:09:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:16]Read from MH i2c: E2 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: E2 17 00 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: E2 17 00 26 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0C [17:09:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:09:16]wFMCommunicate OK [17:09:16]CreateOFDProtocolMessage done [17:09:16]OFDSenderStorePacket 115445 [17:09:16]StoreOFDPacket docnum=115445 [17:09:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 42 01 00 00 79 7F 3A 01 05 EB 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 3D 4F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F5 C2 01 00 35 04 06 00 5F 41 7C 59 94 BC FA 6F 8C E6 71 3B D8 9C [17:09:16]CheckFolder [17:09:16]dirname=/storage/ofd_packets [17:09:16]CheckFolder done [17:09:16]ProducePacketName [17:09:16]name=ofd_packets/00115445 [17:09:16]NVStorageSaveData ofd_packets/00115445 [17:09:16]File name is /storage/ofd_packets/00115445 [17:09:16]Write 352 bytes [17:09:16]NVStorageSaveData done [17:09:16]OFDSenderStorePacket done [17:09:16]KKMCreateOFDPacket done [17:09:16]NVStorageSaveData kkm_last_timestamp [17:09:16]File name is /storage/kkm_last_timestamp [17:09:16]Write 4 bytes [17:09:16]NVStorageSaveData done [17:09:16]ExternCall_PrintAddStr [17:09:16]wPrintStart [17:09:16]Write to MH i2c: 01 00 00 27 1E 45 [17:09:16]Write i2c OK [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: 01 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: 01 07 00 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: 01 07 00 27 1E 00 00 00 00 00 FF 0F 5A [17:09:16]RasterBufferAndPrint [17:09:16]line Счет N : (3)343883 [17:09:16]line ИНН: 02508201610067 [17:09:16]line Контрольно-Кассовый Чек [17:09:16]line ПРОДАЖА [17:09:16]line Товар: 4631162227163 [17:09:16]line Напиток газированный Mojito LEMON LIME ж [17:09:16]line 1.000 * 95.00 [17:09:16]line = 95.00 [17:09:16]line НДС 12% НСП 1% [17:09:16]line > о реализуемом товаре [17:09:16]line ИТОГО: 95.00 [17:09:16]line НСП 1% : 0.84 [17:09:16]line НДС 12% : 10.09 [17:09:16]line Наличными: 95.00 [17:09:16]line Безнал.: 0.00 [17:09:16]line Место: АЗС № 90 "Партнер Нефть" [17:09:16]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:09:16]line СНО: Общий режим [17:09:16]line Чек 163 22.09.2024 17:09 [17:09:16]line Смена: 471 ФФД: 1.0 [17:09:16]line ЗНМ: 0300000120 [17:09:16]line РНМ: 0000000000091831 [17:09:17]line Версия ККМ: 001 [17:09:17]line ФМ: 0000000000871830 [17:09:17]line ФД: 115445 [17:09:17]line ФПД: 104734863758524 [17:09:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T170917&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115445&fm=104734863758524&tin=02508201610067®Number=0000000000091831&sum=9500 [17:09:17]line 0 [17:09:17]OFD Sender: Processing packet 115445 [packets to send 481, broken 480] [17:09:17]ProducePacketName [17:09:17]name=ofd_packets/00115445 [17:09:17]OFD Sender: To server: pG, [17:09:17]CommunicateWithHost lk.salyk.kg:30040 [17:09:17]ConnectInit lk.salyk.kg [17:09:17]written 0, free lines is 4095 [17:09:17]Connected sock=10 [17:09:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 42 01 00 00 79 7F 3A 01 05 EB 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 3D 4F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F5 C2 01 00 35 04 06 00 5F 41 7C 59 94 BC FA 6F 8C E6 71 3B D8 9C [17:09:17]Write to MH i2c: 01 00 00 4F 1E 6D [17:09:17]Write i2c OK [17:09:17]MH_I2C_Read... [17:09:17]Read from MH i2c: 01 [17:09:17]MH_I2C_Read... [17:09:17]Read from MH i2c: 01 07 00 [17:09:17]MH_I2C_Read... [17:09:17]Read from MH i2c: 01 07 00 4F 1E 00 00 00 00 00 69 0C E9 [17:09:17]RasterBufferAndPrint [17:09:17]line [17:09:17]line [17:09:17]line [17:09:17]line [17:09:17]line [17:09:17]written 0, free lines is 3180 [17:09:17]MH_Cut [17:09:17]Write to MH i2c: D1 01 00 56 1E 01 46 [17:09:17]Write i2c OK [17:09:17]MH_I2C_Read... [17:09:17]Read from MH i2c: D1 [17:09:17]MH_I2C_Read... [17:09:17]Read from MH i2c: D1 01 00 [17:09:17]MH_I2C_Read... [17:09:17]Read from MH i2c: D1 01 00 56 1E 00 45 [17:09:17]Write to MH i2c: 01 00 00 57 1E 75 [17:09:17]Write i2c OK [17:09:17]MH_I2C_Read... [17:09:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B9 6B 47 00 AC A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F5 C2 01 00 F4 03 04 00 82 F4 EF 66 B6 04 01 00 00 19 10 17 0D 3B DE 02 54 [17:09:17]CommunicateWithHost err = 0 [17:09:17]CheckOFDResponse [17:09:17]1017 (14) - 77093643461234 [17:09:17]1041 (16) - 0000000000871830 [17:09:17]1040 (4) - 115445 [17:09:17]1012 (4) - 22.09.2024 10:42 [17:09:17]1206 (1) - 0 [17:09:17]OFD Sender: Remove packet 115445 [17:09:17]ProducePacketName [17:09:17]name=ofd_packets/00115445 [17:09:17]NVStorageDeleteData [17:09:18]OFD Sender: No OFD packet to send [17:09:18]*** Cut start [17:09:18]*** Partial cut [17:09:18]*** CUTSNS_PIN = 1 [17:09:18]*** CUTSNS_PIN = 0 [17:09:19]*** Brake cut motor [17:09:19]Read from MH i2c: 01 [17:09:19]MH_I2C_Read... [17:09:19]*** Stop cut motor [17:09:19]*** Cut end [17:09:19]Read from MH i2c: 01 07 00 [17:09:19]MH_I2C_Read... [17:09:19]Read from MH i2c: 01 07 00 57 1E 00 00 00 00 00 FF 0F 8A [17:09:19]process_action close_receipt done [17:09:19]requested_data is exist [17:09:19]produce_requested_data [17:09:19]requested_item fm.sn is exist - process it [17:09:19]wFMCommunicate request_size=4 [17:09:19]MH_SAM_APDU [17:09:19]CAPDU: 80 11 00 00 [17:09:19]Write to MH i2c: E2 08 00 58 1E 80 11 00 00 00 00 00 00 F0 [17:09:19]Write i2c OK [17:09:19]MH_I2C_Read... [17:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:19]Read from MH i2c: E2 [17:09:19]MH_I2C_Read... [17:09:19]Read from MH i2c: E2 17 00 [17:09:19]MH_I2C_Read... [17:09:19]Read from MH i2c: E2 17 00 58 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3E [17:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:09:19]wFMCommunicate OK [17:09:19]requested_item fd.num is exist - process it [17:09:19]SAM_PROTO_GetFieldsCounters [17:09:19]wFMCommunicate request_size=4 [17:09:19]MH_SAM_APDU [17:09:19]CAPDU: 80 13 00 00 [17:09:19]Write to MH i2c: E2 08 00 59 1E 80 13 00 00 00 00 00 00 F3 [17:09:19]Write i2c OK [17:09:19]MH_I2C_Read... [17:09:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:19]Read from MH i2c: E2 [17:09:19]MH_I2C_Read... [17:09:19]Read from MH i2c: E2 62 00 [17:09:19]MH_I2C_Read... [17:09:19]Read from MH i2c: E2 62 00 59 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F5 C2 01 00 0E 04 04 00 D7 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 85 [17:09: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F5 C2 01 00 0E 04 04 00 D7 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 [17:09:19]wFMCommunicate OK [17:09:19]SAM_PROTO_GetFieldsCounters done [17:09:19]requested_item shift.num is exist - process it [17:09:19]requested_item shift.opened is exist - process it [17:09:19]req_shift_opened [17:09:19]FM_GetShiftState [17:09:19]SAM_PROTO_GetShiftState [17:09:19]wFMCommunicate request_size=4 [17:09:19]MH_SAM_APDU [17:09:19]CAPDU: 80 13 01 00 [17:09:19]Write to MH i2c: E2 08 00 5A 1E 80 13 01 00 00 00 00 00 F5 [17:09:19]Write i2c OK [17:09:19]MH_I2C_Read... [17:09:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:19]Read from MH i2c: E2 [17:09:19]MH_I2C_Read... [17:09:19]Read from MH i2c: E2 0E 00 [17:09:19]MH_I2C_Read... [17:09:19]Read from MH i2c: E2 0E 00 5A 1E 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 0E [17:09:19]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:09:19]wFMCommunicate OK [17:09:19]SAM_PROTO_GetShiftState done [17:09:19]FM_GetShiftState done [17:09:19]req_shift_opened done [17:09:19]requested_item shift.open_date is exist - process it [17:09:19]req_shift_open_date [17:09:19]req_shift_open_date done [17:09:19]produce_requested_data done [17:09:19]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115445,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [17:09:19]process_action_free close_receipt [17:09:19]json_value_free [17:09:19]json_value_free done [17:09:19]process_json_proto returns [17:09:19]Send response to host [17:09:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115445,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [17:09:19]free response buf [17:09:19]execute_script done [17:09:19]execute_script returns [17:09:19]free content buf [17:09:19]Sock 9.Close socket [17:09:19]Sock 9.Thread stoped [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:02]accept exits with 8 [17:10:02]New connection [17:10:02]New thread 3066682724 created [17:10:02]Thread 3066826084 joined [17:10:02]Waiting for new connection... [17:10:02] Sock 8.Parse request [17:10:02]Sock 8.Check first char [17:10:02]Sock 8.First char is OK [17:10:02]request: POST /json_proto HTTP/1.0 [17:10:02]Method: POST [17:10:02]URL: /json_proto [17:10:02]Method is POST - this is cgi request [17:10:02]url: /json_proto [17:10:02]query_string will be loaded in cgi processing [17:10:02]execute_cgi json_proto POST (null) [17:10:02]execute_cgi path=json_proto method=POST [17:10:02]POST find Content-Length [17:10:02]Host: 172.17.41.136:8080 [17:10:02]Content-Length: 639 [17:10:02]Content-Type: application/json [17:10:02] [17:10:02]POST finish read [17:10:02]Found Content-Length = 639 [17:10:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343884", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:02]execute_script... [17: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 : (3)343884", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:02]POST & json_proto [17:10:02]process_json_proto [17:10:02]json parsed OK: [17:10:02]protocol is kg_v1.0 [17:10:02]action value=close_receipt [17:10:02]process_action close_receipt [17:10:02]cmd_close_receipt [17:10:02]MH_GetDate [17:10:02]Write to MH i2c: F0 00 00 5B 1E 68 [17:10:02]Write i2c OK [17:10:02]MH_I2C_Read... [17:10:02]Read from MH i2c: F0 [17:10:02]MH_I2C_Read... [17:10:02]Read from MH i2c: F0 09 00 [17:10:02]MH_I2C_Read... [17:10:02]Read from MH i2c: F0 09 00 5B 1E 00 6D 4F F0 66 1B D0 5A 64 2C [17:10:02]GetLastDocTimeStamp 1727024957 [17:10:02]current date 1727025005 [17:10:02]FM_GetShiftState [17:10:02]SAM_PROTO_GetShiftState [17:10:02]wFMCommunicate request_size=4 [17:10:02]MH_SAM_APDU [17:10:02]CAPDU: 80 13 01 00 [17:10:02]Write to MH i2c: E2 08 00 5C 1E 80 13 01 00 00 00 00 00 F7 [17:10:02]Write i2c OK [17:10:02]MH_I2C_Read... [17:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:03]Read from MH i2c: E2 [17:10:03]MH_I2C_Read... [17:10:03]Read from MH i2c: E2 0E 00 [17:10:03]MH_I2C_Read... [17:10:03]Read from MH i2c: E2 0E 00 5C 1E 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 10 [17:10:03]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:10:03]wFMCommunicate OK [17:10:03]SAM_PROTO_GetShiftState done [17:10:03]FM_GetShiftState done [17:10:03]opened in 1726965840 [17:10:03]opened+sec_in_day 1727052240 [17:10:03]quantity*price = 10500 [17:10:03]sum+1 = 10501 [17:10:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 164 22.09.2024 17:10 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115446 ФПД: 46654806072436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T171005&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115446&fm=46654806072436&tin=02508201610067®Number=0000000000091831&sum=10500 0 [17:10:04]StoreToDocumentArchive [17:10:04]shift 471 fd 115446 [17:10:04]save to /storage/0471/doc_00115446 [17:10:04]save last doc name /storage/0471/doc_00115446 to /storage/kkm_last_doc_name [17:10:04]save OK [17:10:04]Clear old archive folders... [17:10:04]ProcessDocumentItem done err = 0, tmpTLVsize=271 [17:10:04]tlvbuf is 01C510F0 [17:10:04]SAM_PROTO_ClearQueue [17:10:04]wFMCommunicate request_size=4 [17:10:04]MH_SAM_APDU [17:10:04]CAPDU: 80 09 00 00 [17:10:04]Write to MH i2c: E2 08 00 69 1E 80 09 00 00 00 00 00 00 F9 [17:10:04]Write i2c OK [17:10:04]MH_I2C_Read... [17:10:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:04]Read from MH i2c: E2 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 03 00 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 03 00 69 1E 00 90 00 FB [17:10:04]RAPDU: 90 00 [17:10:04]wFMCommunicate OK [17:10:04]SAM_PROTO_ClearQueue done [17:10:04]KKMCreateOFDPacket [17:10:04]OFDProtocolAddRootSTLVToBuf [17:10:04]FM_MakeSignedData [17:10:04]FM_MakeSignedData [17:10:04]SAM_PROTO_SignData [17:10:04]wFMCommunicate request_size=4 [17:10:04]MH_SAM_APDU [17:10:04]CAPDU: 80 0D 01 02 [17:10:04]Write to MH i2c: E2 08 00 6A 1E 80 0D 01 02 00 00 00 00 01 [17:10:04]Write i2c OK [17:10:04]MH_I2C_Read... [17:10:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:04]Read from MH i2c: E2 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 03 00 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 03 00 6A 1E 00 90 00 FC [17:10:04]RAPDU: 90 00 [17:10:04]wFMCommunicate OK [17:10:04]wFMCommunicate request_size=255 [17:10:04]MH_SAM_APDU [17:10:04]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 6D 4F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 [17:10:04]Write to MH i2c: E2 02 01 6B 1E 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 6D 4F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 4E [17:10:04]Write i2c OK [17:10:04]MH_I2C_Read... [17:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:04]Read from MH i2c: E2 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 03 00 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 03 00 6B 1E 00 90 00 FD [17:10:04]RAPDU: 90 00 [17:10:04]wFMCommunicate OK [17:10:04]wFMCommunicate request_size=30 [17:10:04]MH_SAM_APDU [17:10:04]CAPDU: 80 0D 02 02 19 30 38 37 31 38 33 30 10 04 04 00 F6 C2 01 00 35 04 06 00 2A 6E AB 24 9C 74 [17:10:04]Write to MH i2c: E2 21 00 6C 1E 80 0D 02 02 19 00 30 38 37 31 38 33 30 10 04 04 00 F6 C2 01 00 35 04 06 00 2A 6E AB 24 9C 74 00 00 28 [17:10:04]Write i2c OK [17:10:04]MH_I2C_Read... [17:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:04]Read from MH i2c: E2 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 03 00 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 03 00 6C 1E 00 90 00 FE [17:10:04]RAPDU: 90 00 [17:10:04]wFMCommunicate OK [17:10:04]wFMCommunicate request_size=4 [17:10:04]MH_SAM_APDU [17:10:04]CAPDU: 80 0D 03 02 [17:10:04]Write to MH i2c: E2 08 00 6D 1E 80 0D 03 02 00 00 00 00 06 [17:10:04]Write i2c OK [17:10:04]MH_I2C_Read... [17:10:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:04]Read from MH i2c: E2 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 0B 00 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 0B 00 6D 1E 00 C3 41 44 0E 4D AE 4C 7E 90 00 22 [17:10:04]RAPDU: C3 41 44 0E 4D AE 4C 7E 90 00 [17:10:04]wFMCommunicate OK [17:10:04]SAM_PROTO_SignData done [17:10:04]FM_MakeSignedData done [17:10:04]CreateOFDProtocolMessage [17:10:04]wFMCommunicate request_size=4 [17:10:04]MH_SAM_APDU [17:10:04]CAPDU: 80 11 00 00 [17:10:04]Write to MH i2c: E2 08 00 6E 1E 80 11 00 00 00 00 00 00 06 [17:10:04]Write i2c OK [17:10:04]MH_I2C_Read... [17:10:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:04]Read from MH i2c: E2 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 17 00 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 17 00 6E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 54 [17:10:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:10:04]wFMCommunicate OK [17:10:04]CreateOFDProtocolMessage done [17:10:04]OFDSenderStorePacket 115446 [17:10:04]StoreOFDPacket docnum=115446 [17:10:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 23 01 00 00 C4 D1 1B 01 46 D0 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 6D 4F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F6 C2 01 00 35 04 06 00 2A 6E AB 24 9C 74 C3 41 44 0E 4D AE 4C 7E [17:10:04]CheckFolder [17:10:04]dirname=/storage/ofd_packets [17:10:04]CheckFolder done [17:10:04]ProducePacketName [17:10:04]name=ofd_packets/00115446 [17:10:04]NVStorageSaveData ofd_packets/00115446 [17:10:04]File name is /storage/ofd_packets/00115446 [17:10:04]Write 321 bytes [17:10:04]NVStorageSaveData done [17:10:04]OFDSenderStorePacket done [17:10:04]KKMCreateOFDPacket done [17:10:04]NVStorageSaveData kkm_last_timestamp [17:10:04]File name is /storage/kkm_last_timestamp [17:10:04]Write 4 bytes [17:10:04]NVStorageSaveData done [17:10:04]ExternCall_PrintAddStr [17:10:04]wPrintStart [17:10:04]Write to MH i2c: 01 00 00 6F 1E 8D [17:10:04]Write i2c OK [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: 01 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: 01 07 00 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: 01 07 00 6F 1E 00 00 00 00 00 FF 0F A2 [17:10:04]RasterBufferAndPrint [17:10:04]line Счет N : (3)343884 [17:10:04]line ИНН: 02508201610067 [17:10:04]line Контрольно-Кассовый Чек [17:10:04]line ПРОДАЖА [17:10:04]line Товар: 5449000006271 [17:10:04]line Напиток Фанта 1л [17:10:04]line 1.000 * 105.00 [17:10:04]line = 105.00 [17:10:04]line НДС 12% НСП 1% [17:10:04]line > о реализуемом товаре [17:10:04]line ИТОГО: 105.00 [17:10:04]line НСП 1% : 0.93 [17:10:04]line НДС 12% : 11.15 [17:10:04]line Наличными: 105.00 [17:10:04]line Безнал.: 0.00 [17:10:04]line Место: АЗС № 90 "Партнер Нефть" [17:10:04]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:10:04]line СНО: Общий режим [17:10:04]line Чек 164 22.09.2024 17:10 [17:10:04]line Смена: 471 ФФД: 1.0 [17:10:04]line ЗНМ: 0300000120 [17:10:04]line РНМ: 0000000000091831 [17:10:04]line Версия ККМ: 001 [17:10:04]line ФМ: 0000000000871830 [17:10:04]line ФД: 115446 [17:10:04]line ФПД: 46654806072436 [17:10:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T171005&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115446&fm=46654806072436&tin=02508201610067®Number=0000000000091831&sum=10500 [17:10:04]line 0 [17:10:04]written 0, free lines is 4095 [17:10:04]OFD Sender: Processing packet 115446 [packets to send 481, broken 480] [17:10:04]ProducePacketName [17:10:04]name=ofd_packets/00115446 [17:10:04]OFD Sender: To server: pG, [17:10:04]CommunicateWithHost lk.salyk.kg:30040 [17:10:04]ConnectInit lk.salyk.kg [17:10:04]Connected sock=10 [17: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 31 38 33 30 23 01 00 00 C4 D1 1B 01 46 D0 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 6D 4F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F6 C2 01 00 35 04 06 00 2A 6E AB 24 9C 74 C3 41 44 0E 4D AE 4C 7E [17:10:05]Write to MH i2c: 01 00 00 96 1E B4 [17:10:05]Write i2c OK [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: 01 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: 01 07 00 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: 01 07 00 96 1E 00 00 00 00 00 92 0C 59 [17:10:05]RasterBufferAndPrint [17:10:05]line [17:10:05]line [17:10:05]line [17:10:05]line [17:10:05]line [17:10:05]written 0, free lines is 3224 [17:10:05]MH_Cut [17:10:05]Write to MH i2c: D1 01 00 9D 1E 01 8D [17:10:05]Write i2c OK [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: D1 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: D1 01 00 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: D1 01 00 9D 1E 00 8C [17:10:05]Write to MH i2c: 01 00 00 9E 1E BC [17:10:05]Write i2c OK [17:10:05]MH_I2C_Read... [17:10:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C6 F3 47 00 83 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F6 C2 01 00 F4 03 04 00 B2 F4 EF 66 B6 04 01 00 00 29 86 75 05 09 EE 09 76 [17:10:05]CommunicateWithHost err = 0 [17:10:05]CheckOFDResponse [17:10:05]1017 (14) - 77093643461234 [17:10:05]1041 (16) - 0000000000871830 [17:10:05]1040 (4) - 115446 [17:10:05]1012 (4) - 22.09.2024 10:42 [17:10:05]1206 (1) - 0 [17:10:05]OFD Sender: Remove packet 115446 [17:10:05]ProducePacketName [17:10:05]name=ofd_packets/00115446 [17:10:05]NVStorageDeleteData [17:10:05]OFD Sender: No OFD packet to send [17:10:06]*** Cut start [17:10:06]*** Partial cut [17:10:06]*** CUTSNS_PIN = 1 [17:10:06]*** CUTSNS_PIN = 0 [17:10:06]*** Brake cut motor [17:10:06]Read from MH i2c: 01 [17:10:06]MH_I2C_Read... [17:10:06]*** Stop cut motor [17:10:06]*** Cut end [17:10:06]Read from MH i2c: 01 07 00 [17:10:06]MH_I2C_Read... [17:10:06]Read from MH i2c: 01 07 00 9E 1E 00 00 00 00 00 FF 0F D1 [17:10:06]process_action close_receipt done [17:10:06]requested_data is exist [17:10:06]produce_requested_data [17:10:06]requested_item fm.sn is exist - process it [17:10:06]wFMCommunicate request_size=4 [17:10:06]MH_SAM_APDU [17:10:06]CAPDU: 80 11 00 00 [17:10:06]Write to MH i2c: E2 08 00 9F 1E 80 11 00 00 00 00 00 00 37 [17:10:06]Write i2c OK [17:10:06]MH_I2C_Read... [17:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:06]Read from MH i2c: E2 [17:10:06]MH_I2C_Read... [17:10:06]Read from MH i2c: E2 17 00 [17:10:06]MH_I2C_Read... [17:10:06]Read from MH i2c: E2 17 00 9F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 85 [17:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:10:06]wFMCommunicate OK [17:10:06]requested_item fd.num is exist - process it [17:10:06]SAM_PROTO_GetFieldsCounters [17:10:06]wFMCommunicate request_size=4 [17:10:06]MH_SAM_APDU [17:10:06]CAPDU: 80 13 00 00 [17:10:06]Write to MH i2c: E2 08 00 A0 1E 80 13 00 00 00 00 00 00 3A [17:10:06]Write i2c OK [17:10:06]MH_I2C_Read... [17:10:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:07]Read from MH i2c: E2 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: E2 62 00 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: E2 62 00 A0 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F6 C2 01 00 0E 04 04 00 D7 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 D0 [17:10:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F6 C2 01 00 0E 04 04 00 D7 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 [17:10:07]wFMCommunicate OK [17:10:07]SAM_PROTO_GetFieldsCounters done [17:10:07]requested_item shift.num is exist - process it [17:10:07]requested_item shift.opened is exist - process it [17:10:07]req_shift_opened [17:10:07]FM_GetShiftState [17:10:07]SAM_PROTO_GetShiftState [17:10:07]wFMCommunicate request_size=4 [17:10:07]MH_SAM_APDU [17:10:07]CAPDU: 80 13 01 00 [17:10:07]Write to MH i2c: E2 08 00 A1 1E 80 13 01 00 00 00 00 00 3C [17:10:07]Write i2c OK [17:10:07]MH_I2C_Read... [17:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:07]Read from MH i2c: E2 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: E2 0E 00 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: E2 0E 00 A1 1E 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 55 [17:10:07]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:10:07]wFMCommunicate OK [17:10:07]SAM_PROTO_GetShiftState done [17:10:07]FM_GetShiftState done [17:10:07]req_shift_opened done [17:10:07]requested_item shift.open_date is exist - process it [17:10:07]req_shift_open_date [17:10:07]req_shift_open_date done [17:10:07]produce_requested_data done [17:10:07]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115446,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [17:10:07]process_action_free close_receipt [17:10:07]json_value_free [17:10:07]json_value_free done [17:10:07]process_json_proto returns [17:10:07]Send response to host [17:10:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115446,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [17:10:07]free response buf [17:10:07]execute_script done [17:10:07]execute_script returns [17:10:07]free content buf [17:10:07]Sock 8.Close socket [17:10:07]Sock 8.Thread stoped [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:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:30]accept exits with 9 [17:11:30]New connection [17:11:30]New thread 3066826084 created [17:11:30]Thread 3066682724 joined [17:11:30]Waiting for new connection... [17:11:30] Sock 9.Parse request [17:11:30]Sock 9.Check first char [17:11:30]Sock 9.First char is OK [17:11:30]request: POST /json_proto HTTP/1.0 [17:11:30]Method: POST [17:11:30]URL: /json_proto [17:11:30]Method is POST - this is cgi request [17:11:30]url: /json_proto [17:11:30]query_string will be loaded in cgi processing [17:11:30]execute_cgi json_proto POST (null) [17:11:30]execute_cgi path=json_proto method=POST [17:11:30]POST find Content-Length [17:11:30]Host: 172.17.41.136:8080 [17:11:30]Content-Length: 1623 [17:11:30]Content-Type: application/json [17:11:30] [17:11:30]POST finish read [17:11:30]Found Content-Length = 1623 [17:11:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343885", "tax_sys" : 0, "items" : [ { "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 299.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:30]execute_script... [17:11: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 : (3)343885", "tax_sys" : 0, "items" : [ { "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 299.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:30]POST & json_proto [17:11:30]process_json_proto [17:11:30]json parsed OK: [17:11:30]protocol is kg_v1.0 [17:11:30]action value=close_receipt [17:11:30]process_action close_receipt [17:11:30]cmd_close_receipt [17:11:31]MH_GetDate [17:11:31]Write to MH i2c: F0 00 00 A2 1E AF [17:11:31]OFD Sender: No OFD packet to send [17:11:31]Write i2c OK [17:11:31]MH_I2C_Read... [17:11:31]Read from MH i2c: F0 [17:11:31]MH_I2C_Read... [17:11:31]Read from MH i2c: F0 09 00 [17:11:31]MH_I2C_Read... [17:11:31]Read from MH i2c: F0 09 00 A2 1E 00 C5 4F F0 66 1B D0 5A 64 CB [17:11:31]GetLastDocTimeStamp 1727025005 [17:11:31]current date 1727025093 [17:11:31]FM_GetShiftState [17:11:31]SAM_PROTO_GetShiftState [17:11:31]wFMCommunicate request_size=4 [17:11:31]MH_SAM_APDU [17:11:31]CAPDU: 80 13 01 00 [17:11:31]Write to MH i2c: E2 08 00 A3 1E 80 13 01 00 00 00 00 00 3E [17:11:31]Write i2c OK [17:11:31]MH_I2C_Read... [17:11:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:31]Read from MH i2c: E2 [17:11:31]MH_I2C_Read... [17:11:31]Read from MH i2c: E2 0E 00 [17:11:31]MH_I2C_Read... [17:11:31]Read from MH i2c: E2 0E 00 A3 1E 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 57 [17:11:31]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:11:31]wFMCommunicate OK [17:11:31]SAM_PROTO_GetShiftState done [17:11:31]FM_GetShiftState done [17:11:31]opened in 1726965840 [17:11:31]opened+sec_in_day 1727052240 [17:11:31]quantity*price = 13000 [17:11:31]sum+1 = 13001 [17:11:31]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001157913 Вода ASU 0,5л c без газа 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173976 Жев Orbit Winterfresh под 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 299.00 НСП 1% : 2.64 НДС 12% : 31.75 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 165 22.09.2024 17:11 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115447 ФПД: 143398014789751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T171133&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115447&fm=143398014789751&tin=02508201610067®Number=0000000000091831&sum=29900 0 [17:11:32]StoreToDocumentArchive [17:11:32]shift 471 fd 115447 [17:11:32]save to /storage/0471/doc_00115447 [17:11:32]save last doc name /storage/0471/doc_00115447 to /storage/kkm_last_doc_name [17:11:32]save OK [17:11:32]Clear old archive folders... [17:11:32]ProcessDocumentItem done err = 0, tmpTLVsize=685 [17:11:32]tlvbuf is 01C297D0 [17:11:32]SAM_PROTO_ClearQueue [17:11:32]wFMCommunicate request_size=4 [17:11:32]MH_SAM_APDU [17:11:32]CAPDU: 80 09 00 00 [17:11:32]Write to MH i2c: E2 08 00 B0 1E 80 09 00 00 00 00 00 00 40 [17:11:32]Write i2c OK [17:11:32]MH_I2C_Read... [17:11:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:32]Read from MH i2c: E2 [17:11:32]MH_I2C_Read... [17:11:32]Read from MH i2c: E2 03 00 [17:11:32]MH_I2C_Read... [17:11:32]Read from MH i2c: E2 03 00 B0 1E 00 90 00 42 [17:11:32]RAPDU: 90 00 [17:11:32]wFMCommunicate OK [17:11:32]SAM_PROTO_ClearQueue done [17:11:32]KKMCreateOFDPacket [17:11:32]OFDProtocolAddRootSTLVToBuf [17:11:32]FM_MakeSignedData [17:11:32]FM_MakeSignedData [17:11:32]SAM_PROTO_SignData [17:11:32]wFMCommunicate request_size=4 [17:11:32]MH_SAM_APDU [17:11:32]CAPDU: 80 0D 01 02 [17:11:32]Write to MH i2c: E2 08 00 B1 1E 80 0D 01 02 00 00 00 00 48 [17:11:32]Write i2c OK [17:11:32]MH_I2C_Read... [17:11:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:32]Read from MH i2c: E2 [17:11:32]MH_I2C_Read... [17:11:32]Read from MH i2c: E2 03 00 [17:11:32]MH_I2C_Read... [17:11:32]Read from MH i2c: E2 03 00 B1 1E 00 90 00 43 [17:11:32]RAPDU: 90 00 [17:11:32]wFMCommunicate OK [17:11:32]wFMCommunicate request_size=255 [17:11:32]MH_SAM_APDU [17:11:32]CAPDU: 80 0D 02 02 FA 03 00 AD 02 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 [17:11:32]Write to MH i2c: E2 02 01 B2 1E 80 0D 02 02 FA 00 03 00 AD 02 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 00 00 5D [17:11:32]Write i2c OK [17:11:32]MH_I2C_Read... [17:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:32]Read from MH i2c: E2 [17:11:32]MH_I2C_Read... [17:11:32]Read from MH i2c: E2 03 00 [17:11:32]MH_I2C_Read... [17:11:32]Read from MH i2c: E2 03 00 B2 1E 00 90 00 44 [17:11:32]RAPDU: 90 00 [17:11:32]wFMCommunicate OK [17:11:32]wFMCommunicate request_size=255 [17:11:32]MH_SAM_APDU [17:11:32]CAPDU: 80 0D 02 02 FA 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 [17:11:32]Write to MH i2c: E2 02 01 B3 1E 80 0D 02 02 FA 00 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 00 00 96 [17:11:32]Write i2c OK [17:11:32]MH_I2C_Read... [17:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:32]Read from MH i2c: E2 [17:11:32]MH_I2C_Read... [17:11:32]Read from MH i2c: E2 03 00 [17:11:32]MH_I2C_Read... [17:11:32]Read from MH i2c: E2 03 00 B3 1E 00 90 00 45 [17:11:32]RAPDU: 90 00 [17:11:32]wFMCommunicate OK [17:11:32]wFMCommunicate request_size=194 [17:11:32]MH_SAM_APDU [17:11:32]CAPDU: 80 0D 02 02 BD 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 CC 74 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 C5 4F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F7 C2 01 00 35 04 06 00 82 6B 73 BB A8 77 [17:11:32]Write to MH i2c: E2 C5 00 B4 1E 80 0D 02 02 BD 00 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 CC 74 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 C5 4F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F7 C2 01 00 35 04 06 00 82 6B 73 BB A8 77 00 00 26 [17:11:32]Write i2c OK [17:11:32]MH_I2C_Read... [17:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:33]Read from MH i2c: E2 [17:11:33]MH_I2C_Read... [17:11:33]Read from MH i2c: E2 03 00 [17:11:33]MH_I2C_Read... [17:11:33]Read from MH i2c: E2 03 00 B4 1E 00 90 00 46 [17:11:33]RAPDU: 90 00 [17:11:33]wFMCommunicate OK [17:11:33]wFMCommunicate request_size=4 [17:11:33]MH_SAM_APDU [17:11:33]CAPDU: 80 0D 03 02 [17:11:33]Write to MH i2c: E2 08 00 B5 1E 80 0D 03 02 00 00 00 00 4E [17:11:33]Write i2c OK [17:11:33]MH_I2C_Read... [17:11:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:33]Read from MH i2c: E2 [17:11:33]MH_I2C_Read... [17:11:33]Read from MH i2c: E2 0B 00 [17:11:33]MH_I2C_Read... [17:11:33]Read from MH i2c: E2 0B 00 B5 1E 00 CD 6E 46 3A 25 9B D8 5F 90 00 01 [17:11:33]RAPDU: CD 6E 46 3A 25 9B D8 5F 90 00 [17:11:33]wFMCommunicate OK [17:11:33]SAM_PROTO_SignData done [17:11:33]FM_MakeSignedData done [17:11:33]CreateOFDProtocolMessage [17:11:33]wFMCommunicate request_size=4 [17:11:33]MH_SAM_APDU [17:11:33]CAPDU: 80 11 00 00 [17:11:33]Write to MH i2c: E2 08 00 B6 1E 80 11 00 00 00 00 00 00 4E [17:11:33]Write i2c OK [17:11:33]MH_I2C_Read... [17:11:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:33]Read from MH i2c: E2 [17:11:33]MH_I2C_Read... [17:11:33]Read from MH i2c: E2 17 00 [17:11:33]MH_I2C_Read... [17:11:33]Read from MH i2c: E2 17 00 B6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9C [17:11:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:11:33]wFMCommunicate OK [17:11:33]CreateOFDProtocolMessage done [17:11:33]OFDSenderStorePacket 115447 [17:11:33]StoreOFDPacket docnum=115447 [17:11:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 C1 02 00 00 78 BA B9 02 59 C3 5A 03 01 00 03 00 AD 02 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 CC 74 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 C5 4F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F7 C2 01 00 35 04 06 00 82 6B 73 BB A8 77 CD 6E 46 3A 25 9B D8 5F [17:11:33]CheckFolder [17:11:33]dirname=/storage/ofd_packets [17:11:33]CheckFolder done [17:11:33]ProducePacketName [17:11:33]name=ofd_packets/00115447 [17:11:33]NVStorageSaveData ofd_packets/00115447 [17:11:33]File name is /storage/ofd_packets/00115447 [17:11:33]Write 735 bytes [17:11:33]NVStorageSaveData done [17:11:33]OFDSenderStorePacket done [17:11:33]KKMCreateOFDPacket done [17:11:33]NVStorageSaveData kkm_last_timestamp [17:11:33]File name is /storage/kkm_last_timestamp [17:11:33]Write 4 bytes [17:11:33]NVStorageSaveData done [17:11:33]ExternCall_PrintAddStr [17:11:33]wPrintStart [17:11:33]Write to MH i2c: 01 00 00 B7 1E D5 [17:11:33]Write i2c OK [17:11:33]MH_I2C_Read... [17:11:33]Read from MH i2c: 01 [17:11:33]MH_I2C_Read... [17:11:33]Read from MH i2c: 01 07 00 [17:11:33]MH_I2C_Read... [17:11:33]Read from MH i2c: 01 07 00 B7 1E 00 00 00 00 00 FF 0F EA [17:11:33]RasterBufferAndPrint [17:11:33]line Счет N : (3)343885 [17:11:33]line ИНН: 02508201610067 [17:11:33]line Контрольно-Кассовый Чек [17:11:33]line ПРОДАЖА [17:11:33]line Товар: 4630007400389 [17:11:33]line Семечки ДЖИНН 140г [17:11:33]line 1.000 * 130.00 [17:11:33]line = 130.00 [17:11:33]line НДС 12% НСП 1% [17:11:33]line > о реализуемом товаре [17:11:33]line Товар: 4870001157913 [17:11:33]line Вода ASU 0,5л c без газа [17:11:33]line 1.000 * 40.00 [17:11:33]line = 40.00 [17:11:33]line НДС 12% НСП 1% [17:11:33]line > о реализуемом товаре [17:11:33]line Товар: 50173976 [17:11:33]line Жев Orbit Winterfresh под [17:11:33]line 1.000 * 45.00 [17:11:33]line = 45.00 [17:11:33]line НДС 12% НСП 1% [17:11:33]line > о реализуемом товаре [17:11:33]line Товар: 4870001570057 [17:11:33]line Напиток Pepsi 0,5л [17:11:33]line 1.000 * 80.00 [17:11:33]line = 80.00 [17:11:33]line НДС 12% НСП 1% [17:11:33]line > о реализуемом товаре [17:11:33]line Товар: 2000031750019 [17:11:33]line Пакет Партнер Нефть [17:11:33]line 1.000 * 4.00 [17:11:33]line = 4.00 [17:11:33]line НДС 12% НСП 1% [17:11:33]line > о реализуемом товаре [17:11:33]line ИТОГО: 299.00 [17:11:33]line НСП 1% : 2.64 [17:11:33]line НДС 12% : 31.75 [17:11:33]line Наличными: 299.00 [17:11:33]line Безнал.: 0.00 [17:11:33]line Место: АЗС № 90 "Партнер Нефть" [17:11:33]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:11:33]line СНО: Общий режим [17:11:33]line Чек 165 22.09.2024 17:11 [17:11:33]line Смена: 471 ФФД: 1.0 [17:11:33]line ЗНМ: 0300000120 [17:11:33]line РНМ: 0000000000091831 [17:11:33]line Версия ККМ: 001 [17:11:33]line ФМ: 0000000000871830 [17:11:33]line ФД: 115447 [17:11:33]line ФПД: 143398014789751 [17:11:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T171133&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115447&fm=143398014789751&tin=02508201610067®Number=0000000000091831&sum=29900 [17:11:33]line 0 [17:11:33]written 0, free lines is 4095 [17:11:33]OFD Sender: Processing packet 115447 [packets to send 481, broken 480] [17:11:33]ProducePacketName [17:11:33]name=ofd_packets/00115447 [17:11:33]OFD Sender: To server: pG, [17:11:33]CommunicateWithHost lk.salyk.kg:30040 [17:11:33]ConnectInit lk.salyk.kg [17:11:33]Connected sock=10 [17:11:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 C1 02 00 00 78 BA B9 02 59 C3 5A 03 01 00 03 00 AD 02 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 CC 74 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 C5 4F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F7 C2 01 00 35 04 06 00 82 6B 73 BB A8 77 CD 6E 46 3A 25 9B D8 5F [17:11:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A4 DF 47 00 EC 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 31 38 33 30 10 04 04 00 F7 C2 01 00 F4 03 04 00 0B F5 EF 66 B6 04 01 00 00 AE 86 1F 04 1A BE D7 19 [17:11:34]CommunicateWithHost err = 0 [17:11:34]CheckOFDResponse [17:11:34]1017 (14) - 77093643461234 [17:11:34]1041 (16) - 0000000000871830 [17:11:34]1040 (4) - 115447 [17:11:34]1012 (4) - 22.09.2024 10:44 [17:11:34]1206 (1) - 0 [17:11:34]OFD Sender: Remove packet 115447 [17:11:34]ProducePacketName [17:11:34]name=ofd_packets/00115447 [17:11:34]NVStorageDeleteData [17:11:34]Write to MH i2c: 01 00 00 F6 1E 14 [17:11:34]Write i2c OK [17:11:34]MH_I2C_Read... [17:11:34]Read from MH i2c: 01 [17:11:34]MH_I2C_Read... [17:11:34]Read from MH i2c: 01 07 00 [17:11:34]MH_I2C_Read... [17:11:34]Read from MH i2c: 01 07 00 F6 1E 00 00 00 00 00 B1 0A D6 [17:11:34]RasterBufferAndPrint [17:11:34]line [17:11:34]line [17:11:34]line [17:11:34]line [17:11:34]line [17:11:34]written 0, free lines is 2742 [17:11:34]MH_Cut [17:11:34]Write to MH i2c: D1 01 00 FD 1E 01 ED [17:11:34]Write i2c OK [17:11:34]MH_I2C_Read... [17:11:34]Read from MH i2c: D1 [17:11:34]MH_I2C_Read... [17:11:34]Read from MH i2c: D1 01 00 [17:11:34]MH_I2C_Read... [17:11:34]Read from MH i2c: D1 01 00 FD 1E 00 EC [17:11:34]Write to MH i2c: 01 00 00 FE 1E 1C [17:11:34]Write i2c OK [17:11:34]MH_I2C_Read... [17:11:34]OFD Sender: No OFD packet to send [17:11:36]*** Cut start [17:11:36]*** Partial cut [17:11:36]*** CUTSNS_PIN = 1 [17:11:36]*** CUTSNS_PIN = 0 [17:11:36]*** Brake cut motor [17:11:36]Read from MH i2c: 01 [17:11:36]MH_I2C_Read... [17:11:36]*** Stop cut motor [17:11:36]*** Cut end [17:11:36]Read from MH i2c: 01 07 00 [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: 01 07 00 FE 1E 00 00 00 00 00 FF 0F 31 [17:11:36]process_action close_receipt done [17:11:36]requested_data is exist [17:11:36]produce_requested_data [17:11:36]requested_item fm.sn is exist - process it [17:11:36]wFMCommunicate request_size=4 [17:11:36]MH_SAM_APDU [17:11:36]CAPDU: 80 11 00 00 [17:11:36]Write to MH i2c: E2 08 00 FF 1E 80 11 00 00 00 00 00 00 97 [17:11:36]Write i2c OK [17:11:36]MH_I2C_Read... [17:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:36]Read from MH i2c: E2 [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: E2 17 00 [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: E2 17 00 FF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E5 [17:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:11:36]wFMCommunicate OK [17:11:36]requested_item fd.num is exist - process it [17:11:36]SAM_PROTO_GetFieldsCounters [17:11:36]wFMCommunicate request_size=4 [17:11:36]MH_SAM_APDU [17:11:36]CAPDU: 80 13 00 00 [17:11:36]Write to MH i2c: E2 08 00 00 1F 80 13 00 00 00 00 00 00 9B [17:11:36]Write i2c OK [17:11:36]MH_I2C_Read... [17:11:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:36]Read from MH i2c: E2 [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: E2 62 00 [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: E2 62 00 00 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F7 C2 01 00 0E 04 04 00 D7 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 35 [17:11:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F7 C2 01 00 0E 04 04 00 D7 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 [17:11:36]wFMCommunicate OK [17:11:36]SAM_PROTO_GetFieldsCounters done [17:11:36]requested_item shift.num is exist - process it [17:11:36]requested_item shift.opened is exist - process it [17:11:36]req_shift_opened [17:11:36]FM_GetShiftState [17:11:36]SAM_PROTO_GetShiftState [17:11:36]wFMCommunicate request_size=4 [17:11:36]MH_SAM_APDU [17:11:36]CAPDU: 80 13 01 00 [17:11:36]Write to MH i2c: E2 08 00 01 1F 80 13 01 00 00 00 00 00 9D [17:11:36]Write i2c OK [17:11:36]MH_I2C_Read... [17:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:36]Read from MH i2c: E2 [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: E2 0E 00 [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: E2 0E 00 01 1F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B6 [17:11:36]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:11:36]wFMCommunicate OK [17:11:36]SAM_PROTO_GetShiftState done [17:11:36]FM_GetShiftState done [17:11:36]req_shift_opened done [17:11:36]requested_item shift.open_date is exist - process it [17:11:36]req_shift_open_date [17:11:36]req_shift_open_date done [17:11:36]produce_requested_data done [17:11:36]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115447,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [17:11:36]process_action_free close_receipt [17:11:36]json_value_free [17:11:36]json_value_free done [17:11:36]process_json_proto returns [17:11:36]Send response to host [17:11:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115447,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [17:11:36]free response buf [17:11:36]execute_script done [17:11:36]execute_script returns [17:11:36]free content buf [17:11:36]Sock 9.Close socket [17:11:36]Sock 9.Thread stoped [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:36]accept exits with 8 [17:12:36]New connection [17:12:36]New thread 3066682724 created [17:12:36]Thread 3066826084 joined [17:12:36]Waiting for new connection... [17:12:36] Sock 8.Parse request [17:12:36]Sock 8.Check first char [17:12:36]Sock 8.First char is OK [17:12:36]request: POST /json_proto HTTP/1.0 [17:12:36]Method: POST [17:12:36]URL: /json_proto [17:12:36]Method is POST - this is cgi request [17:12:36]url: /json_proto [17:12:36]query_string will be loaded in cgi processing [17:12:36]execute_cgi json_proto POST (null) [17:12:36]execute_cgi path=json_proto method=POST [17:12:36]POST find Content-Length [17:12:36]Host: 172.17.41.136:8080 [17:12:36]Content-Length: 575 [17:12:36]Content-Type: application/json [17:12:36] [17:12:36]POST finish read [17:12:36]Found Content-Length = 575 [17:12:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343886", "tax_sys" : 0, "items" : [ { "code": "46233820", "name": "LD Compact 100s Silver", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:36]execute_script... [17:12:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343886", "tax_sys" : 0, "items" : [ { "code": "46233820", "name": "LD Compact 100s Silver", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:36]POST & json_proto [17:12:36]process_json_proto [17:12:36]json parsed OK: [17:12:36]protocol is kg_v1.0 [17:12:36]action value=close_receipt [17:12:36]process_action close_receipt [17:12:36]cmd_close_receipt [17:12:36]MH_GetDate [17:12:36]Write to MH i2c: F0 00 00 02 1F 10 [17:12:36]Write i2c OK [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: F0 [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: F0 09 00 [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: F0 09 00 02 1F 00 07 50 F0 66 1B D0 5A 64 6F [17:12:36]GetLastDocTimeStamp 1727025093 [17:12:36]current date 1727025159 [17:12:36]FM_GetShiftState [17:12:36]SAM_PROTO_GetShiftState [17:12:36]wFMCommunicate request_size=4 [17:12:36]MH_SAM_APDU [17:12:36]CAPDU: 80 13 01 00 [17:12:36]Write to MH i2c: E2 08 00 03 1F 80 13 01 00 00 00 00 00 9F [17:12:36]Write i2c OK [17:12:36]MH_I2C_Read... [17:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:37]Read from MH i2c: E2 [17:12:37]MH_I2C_Read... [17:12:37]Read from MH i2c: E2 0E 00 [17:12:37]MH_I2C_Read... [17:12:37]Read from MH i2c: E2 0E 00 03 1F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B8 [17:12:37]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:12:37]wFMCommunicate OK [17:12:37]SAM_PROTO_GetShiftState done [17:12:37]FM_GetShiftState done [17:12:37]opened in 1726965840 [17:12:37]opened+sec_in_day 1727052240 [17:12:37]quantity*price = 13400 [17:12:37]sum+1 = 13401 [17:12:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 166 22.09.2024 17:12 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115448 ФПД: 166418782617689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T171239&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115448&fm=166418782617689&tin=02508201610067®Number=0000000000091831&sum=13400 0 [17:12:38]StoreToDocumentArchive [17:12:38]shift 471 fd 115448 [17:12:38]save to /storage/0471/doc_00115448 [17:12:38]save last doc name /storage/0471/doc_00115448 to /storage/kkm_last_doc_name [17:12:38]save OK [17:12:38]Clear old archive folders... [17:12:38]ProcessDocumentItem done err = 0, tmpTLVsize=259 [17:12:38]tlvbuf is 01C5D7D0 [17:12:38]SAM_PROTO_ClearQueue [17:12:38]wFMCommunicate request_size=4 [17:12:38]MH_SAM_APDU [17:12:38]CAPDU: 80 09 00 00 [17:12:38]Write to MH i2c: E2 08 00 10 1F 80 09 00 00 00 00 00 00 A1 [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:38]Read from MH i2c: E2 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 03 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 03 00 10 1F 00 90 00 A3 [17:12:38]RAPDU: 90 00 [17:12:38]wFMCommunicate OK [17:12:38]SAM_PROTO_ClearQueue done [17:12:38]KKMCreateOFDPacket [17:12:38]OFDProtocolAddRootSTLVToBuf [17:12:38]FM_MakeSignedData [17:12:38]FM_MakeSignedData [17:12:38]SAM_PROTO_SignData [17:12:38]wFMCommunicate request_size=4 [17:12:38]MH_SAM_APDU [17:12:38]CAPDU: 80 0D 01 02 [17:12:38]Write to MH i2c: E2 08 00 11 1F 80 0D 01 02 00 00 00 00 A9 [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:38]Read from MH i2c: E2 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 03 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 03 00 11 1F 00 90 00 A4 [17:12:38]RAPDU: 90 00 [17:12:38]wFMCommunicate OK [17:12:38]wFMCommunicate request_size=255 [17:12:38]MH_SAM_APDU [17:12:38]CAPDU: 80 0D 02 02 FA 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 07 50 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F8 [17:12:38]Write to MH i2c: E2 02 01 12 1F 80 0D 02 02 FA 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 07 50 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F8 00 00 2C [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:38]Read from MH i2c: E2 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 03 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 03 00 12 1F 00 90 00 A5 [17:12:38]RAPDU: 90 00 [17:12:38]wFMCommunicate OK [17:12:38]wFMCommunicate request_size=18 [17:12:38]MH_SAM_APDU [17:12:38]CAPDU: 80 0D 02 02 0D C2 01 00 35 04 06 00 97 5B 64 6C 00 59 [17:12:38]Write to MH i2c: E2 15 00 13 1F 80 0D 02 02 0D 00 C2 01 00 35 04 06 00 97 5B 64 6C 00 59 00 00 E3 [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:38]Read from MH i2c: E2 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 03 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 03 00 13 1F 00 90 00 A6 [17:12:38]RAPDU: 90 00 [17:12:38]wFMCommunicate OK [17:12:38]wFMCommunicate request_size=4 [17:12:38]MH_SAM_APDU [17:12:38]CAPDU: 80 0D 03 02 [17:12:38]Write to MH i2c: E2 08 00 14 1F 80 0D 03 02 00 00 00 00 AE [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:38]Read from MH i2c: E2 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 0B 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 0B 00 14 1F 00 9D 59 B4 50 5B 3E 43 86 90 00 0B [17:12:38]RAPDU: 9D 59 B4 50 5B 3E 43 86 90 00 [17:12:38]wFMCommunicate OK [17:12:38]SAM_PROTO_SignData done [17:12:38]FM_MakeSignedData done [17:12:38]CreateOFDProtocolMessage [17:12:38]wFMCommunicate request_size=4 [17:12:38]MH_SAM_APDU [17:12:38]CAPDU: 80 11 00 00 [17:12:38]Write to MH i2c: E2 08 00 15 1F 80 11 00 00 00 00 00 00 AE [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:38]Read from MH i2c: E2 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 17 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 17 00 15 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FC [17:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:12:38]wFMCommunicate OK [17:12:38]CreateOFDProtocolMessage done [17:12:38]OFDSenderStorePacket 115448 [17:12:38]StoreOFDPacket docnum=115448 [17:12:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 17 01 00 00 C4 D0 0F 01 29 D5 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 07 50 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F8 C2 01 00 35 04 06 00 97 5B 64 6C 00 59 9D 59 B4 50 5B 3E 43 86 [17:12:38]CheckFolder [17:12:38]dirname=/storage/ofd_packets [17:12:38]CheckFolder done [17:12:38]ProducePacketName [17:12:38]name=ofd_packets/00115448 [17:12:38]NVStorageSaveData ofd_packets/00115448 [17:12:38]File name is /storage/ofd_packets/00115448 [17:12:38]Write 309 bytes [17:12:38]NVStorageSaveData done [17:12:38]OFDSenderStorePacket done [17:12:38]KKMCreateOFDPacket done [17:12:38]NVStorageSaveData kkm_last_timestamp [17:12:38]File name is /storage/kkm_last_timestamp [17:12:38]Write 4 bytes [17:12:38]NVStorageSaveData done [17:12:38]ExternCall_PrintAddStr [17:12:38]wPrintStart [17:12:38]Write to MH i2c: 01 00 00 16 1F 35 [17:12:38]OFD Sender: Processing packet 115448 [packets to send 481, broken 480] [17:12:38]ProducePacketName [17:12:38]name=ofd_packets/00115448 [17:12:38]OFD Sender: To server: pG, [17:12:38]CommunicateWithHost lk.salyk.kg:30040 [17:12:38]ConnectInit lk.salyk.kg [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: 01 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: 01 07 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: 01 07 00 16 1F 00 00 00 00 00 FF 0F 4A [17:12:38]RasterBufferAndPrint [17:12:38]line Счет N : (3)343886 [17:12:38]line ИНН: 02508201610067 [17:12:38]line Контрольно-Кассовый Чек [17:12:38]line ПРОДАЖА [17:12:38]line Товар: 46233820 [17:12:38]line LD Compact 100s Silver [17:12:38]line 1.000 * 134.00 [17:12:38]line = 134.00 [17:12:38]line НДС 12% НСП 1% [17:12:38]line > о реализуемом товаре [17:12:38]line ИТОГО: 134.00 [17:12:38]line НСП 1% : 1.19 [17:12:38]line НДС 12% : 14.23 [17:12:38]line Наличными: 134.00 [17:12:38]line Безнал.: 0.00 [17:12:38]line Место: АЗС № 90 "Партнер Нефть" [17:12:38]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:12:38]line СНО: Общий режим [17:12:38]line Чек 166 22.09.2024 17:12 [17:12:38]line Смена: 471 ФФД: 1.0 [17:12:38]line ЗНМ: 0300000120 [17:12:38]line РНМ: 0000000000091831 [17:12:38]line Версия ККМ: 001 [17:12:38]line ФМ: 0000000000871830 [17:12:38]line ФД: 115448 [17:12:38]line ФПД: 166418782617689 [17:12:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T171239&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115448&fm=166418782617689&tin=02508201610067®Number=0000000000091831&sum=13400 [17:12:38]line 0 [17:12:38]written 0, free lines is 4095 [17:12:39]Connected sock=9 [17:12:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 17 01 00 00 C4 D0 0F 01 29 D5 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 07 50 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F8 C2 01 00 35 04 06 00 97 5B 64 6C 00 59 9D 59 B4 50 5B 3E 43 86 [17:12:39]Write to MH i2c: 01 00 00 3D 1F 5C [17:12:39]Write i2c OK [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: 01 [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: 01 07 00 [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: 01 07 00 3D 1F 00 00 00 00 00 A8 0C 17 [17:12:39]RasterBufferAndPrint [17:12:39]line [17:12:39]line [17:12:39]line [17:12:39]line [17:12:39]line [17:12:39]written 0, free lines is 3245 [17:12:39]MH_Cut [17:12:39]Write to MH i2c: D1 01 00 44 1F 01 35 [17:12:39]Write i2c OK [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: D1 [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: D1 01 00 [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: D1 01 00 44 1F 00 34 [17:12:39]Write to MH i2c: 01 00 00 45 1F 64 [17:12:39]Write i2c OK [17:12:39]MH_I2C_Read... [17:12:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 3D A7 47 00 C4 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 31 38 33 30 10 04 04 00 F8 C2 01 00 F4 03 04 00 4C F5 EF 66 B6 04 01 00 00 5E 83 70 97 4E 70 3B 3C [17:12:39]CommunicateWithHost err = 0 [17:12:39]CheckOFDResponse [17:12:39]1017 (14) - 77093643461234 [17:12:39]1041 (16) - 0000000000871830 [17:12:39]1040 (4) - 115448 [17:12:39]1012 (4) - 22.09.2024 10:45 [17:12:39]1206 (1) - 0 [17:12:39]OFD Sender: Remove packet 115448 [17:12:39]ProducePacketName [17:12:39]name=ofd_packets/00115448 [17:12:39]NVStorageDeleteData [17:12:39]OFD Sender: No OFD packet to send [17:12:40]*** Cut start [17:12:40]*** Partial cut [17:12:40]*** CUTSNS_PIN = 1 [17:12:40]*** CUTSNS_PIN = 0 [17:12:40]*** Brake cut motor [17:12:40]Read from MH i2c: 01 [17:12:40]MH_I2C_Read... [17:12:40]*** Stop cut motor [17:12:40]*** Cut end [17:12:40]Read from MH i2c: 01 07 00 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: 01 07 00 45 1F 00 00 00 00 00 FF 0F 79 [17:12:40]process_action close_receipt done [17:12:40]requested_data is exist [17:12:40]produce_requested_data [17:12:40]requested_item fm.sn is exist - process it [17:12:40]wFMCommunicate request_size=4 [17:12:40]MH_SAM_APDU [17:12:40]CAPDU: 80 11 00 00 [17:12:40]Write to MH i2c: E2 08 00 46 1F 80 11 00 00 00 00 00 00 DF [17:12:40]Write i2c OK [17:12:40]MH_I2C_Read... [17:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:40]Read from MH i2c: E2 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 17 00 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 17 00 46 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2D [17:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:12:40]wFMCommunicate OK [17:12:40]requested_item fd.num is exist - process it [17:12:40]SAM_PROTO_GetFieldsCounters [17:12:40]wFMCommunicate request_size=4 [17:12:40]MH_SAM_APDU [17:12:40]CAPDU: 80 13 00 00 [17:12:40]Write to MH i2c: E2 08 00 47 1F 80 13 00 00 00 00 00 00 E2 [17:12:40]Write i2c OK [17:12:40]MH_I2C_Read... [17:12:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:41]Read from MH i2c: E2 [17:12:41]MH_I2C_Read... [17:12:41]Read from MH i2c: E2 62 00 [17:12:41]MH_I2C_Read... [17:12:41]Read from MH i2c: E2 62 00 47 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F8 C2 01 00 0E 04 04 00 D7 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 80 [17:12:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F8 C2 01 00 0E 04 04 00 D7 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 [17:12:41]wFMCommunicate OK [17:12:41]SAM_PROTO_GetFieldsCounters done [17:12:41]requested_item shift.num is exist - process it [17:12:41]requested_item shift.opened is exist - process it [17:12:41]req_shift_opened [17:12:41]FM_GetShiftState [17:12:41]SAM_PROTO_GetShiftState [17:12:41]wFMCommunicate request_size=4 [17:12:41]MH_SAM_APDU [17:12:41]CAPDU: 80 13 01 00 [17:12:41]Write to MH i2c: E2 08 00 48 1F 80 13 01 00 00 00 00 00 E4 [17:12:41]Write i2c OK [17:12:41]MH_I2C_Read... [17:12:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:41]Read from MH i2c: E2 [17:12:41]MH_I2C_Read... [17:12:41]Read from MH i2c: E2 0E 00 [17:12:41]MH_I2C_Read... [17:12:41]Read from MH i2c: E2 0E 00 48 1F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 FD [17:12:41]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:12:41]wFMCommunicate OK [17:12:41]SAM_PROTO_GetShiftState done [17:12:41]FM_GetShiftState done [17:12:41]req_shift_opened done [17:12:41]requested_item shift.open_date is exist - process it [17:12:41]req_shift_open_date [17:12:41]req_shift_open_date done [17:12:41]produce_requested_data done [17:12:41]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115448,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [17:12:41]process_action_free close_receipt [17:12:41]json_value_free [17:12:41]json_value_free done [17:12:41]process_json_proto returns [17:12:41]Send response to host [17:12:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115448,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [17:12:41]free response buf [17:12:41]execute_script done [17:12:41]execute_script returns [17:12:41]free content buf [17:12:41]Sock 8.Close socket [17:12:41]Sock 8.Thread stoped [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:54]OFD Sender: No OFD packet to send [17:12:59]OFD Sender: No OFD packet to send [17:13:04]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:01]accept exits with 10 [17:14:01]New connection [17:14:01]New thread 3066826084 created [17:14:01]Thread 3066682724 joined [17:14:01]Waiting for new connection... [17:14:01] Sock 10.Parse request [17:14:01]Sock 10.Check first char [17:14:01]Sock 10.First char is OK [17:14:01]request: POST /json_proto HTTP/1.0 [17:14:01]Method: POST [17:14:01]URL: /json_proto [17:14:01]Method is POST - this is cgi request [17:14:01]url: /json_proto [17:14:01]query_string will be loaded in cgi processing [17:14:01]execute_cgi json_proto POST (null) [17:14:01]execute_cgi path=json_proto method=POST [17:14:01]POST find Content-Length [17:14:01]Host: 172.17.41.136:8080 [17:14:01]Content-Length: 624 [17:14:01]Content-Type: application/json [17:14:01] [17:14:01]POST finish read [17:14:01]Found Content-Length = 624 [17:14:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343887", "tax_sys" : 0, "items" : [ { "code": "46227751", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 54\u0433", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:01]execute_script... [17:14:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343887", "tax_sys" : 0, "items" : [ { "code": "46227751", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 54\u0433", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:01]POST & json_proto [17:14:01]process_json_proto [17:14:01]json parsed OK: [17:14:01]protocol is kg_v1.0 [17:14:01]action value=close_receipt [17:14:01]process_action close_receipt [17:14:01]cmd_close_receipt [17:14:01]MH_GetDate [17:14:01]Write to MH i2c: F0 00 00 49 1F 57 [17:14:01]Write i2c OK [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: F0 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: F0 09 00 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: F0 09 00 49 1F 00 5B 50 F0 66 1B D0 5A 64 0A [17:14:01]GetLastDocTimeStamp 1727025159 [17:14:01]current date 1727025243 [17:14:01]FM_GetShiftState [17:14:01]SAM_PROTO_GetShiftState [17:14:01]wFMCommunicate request_size=4 [17:14:01]MH_SAM_APDU [17:14:01]CAPDU: 80 13 01 00 [17:14:01]Write to MH i2c: E2 08 00 4A 1F 80 13 01 00 00 00 00 00 E6 [17:14:01]Write i2c OK [17:14:01]MH_I2C_Read... [17:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:01]Read from MH i2c: E2 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: E2 0E 00 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: E2 0E 00 4A 1F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 FF [17:14:01]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:14:01]wFMCommunicate OK [17:14:01]SAM_PROTO_GetShiftState done [17:14:01]FM_GetShiftState done [17:14:01]opened in 1726965840 [17:14:01]opened+sec_in_day 1727052240 [17:14:01]quantity*price = 20500 [17:14:01]sum+1 = 20501 [17:14:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 167 22.09.2024 17:14 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115449 ФПД: 140728615552049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T171403&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115449&fm=140728615552049&tin=02508201610067®Number=0000000000091831&sum=20500 0 [17:14:02]StoreToDocumentArchive [17:14:02]shift 471 fd 115449 [17:14:02]save to /storage/0471/doc_00115449 [17:14:02]save last doc name /storage/0471/doc_00115449 to /storage/kkm_last_doc_name [17:14:02]save OK [17:14:02]Clear old archive folders... [17:14:02]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:14:02]tlvbuf is 01C94290 [17:14:02]SAM_PROTO_ClearQueue [17:14:02]wFMCommunicate request_size=4 [17:14:02]MH_SAM_APDU [17:14:02]CAPDU: 80 09 00 00 [17:14:02]Write to MH i2c: E2 08 00 57 1F 80 09 00 00 00 00 00 00 E8 [17:14:02]Write i2c OK [17:14:02]MH_I2C_Read... [17:14:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:02]Read from MH i2c: E2 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: E2 03 00 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: E2 03 00 57 1F 00 90 00 EA [17:14:02]RAPDU: 90 00 [17:14:02]wFMCommunicate OK [17:14:02]SAM_PROTO_ClearQueue done [17:14:02]KKMCreateOFDPacket [17:14:02]OFDProtocolAddRootSTLVToBuf [17:14:02]FM_MakeSignedData [17:14:02]FM_MakeSignedData [17:14:02]SAM_PROTO_SignData [17:14:02]wFMCommunicate request_size=4 [17:14:02]MH_SAM_APDU [17:14:02]CAPDU: 80 0D 01 02 [17:14:02]Write to MH i2c: E2 08 00 58 1F 80 0D 01 02 00 00 00 00 F0 [17:14:02]Write i2c OK [17:14:02]MH_I2C_Read... [17:14:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:02]Read from MH i2c: E2 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: E2 03 00 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: E2 03 00 58 1F 00 90 00 EB [17:14:02]RAPDU: 90 00 [17:14:02]wFMCommunicate OK [17:14:02]wFMCommunicate request_size=255 [17:14:02]MH_SAM_APDU [17:14:02]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 32 32 37 37 35 31 06 04 27 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 5B 50 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 [17:14:02]Write to MH i2c: E2 02 01 59 1F 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 32 32 37 37 35 31 06 04 27 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 5B 50 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 00 00 41 [17:14:02]Write i2c OK [17:14:02]MH_I2C_Read... [17:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:02]Read from MH i2c: E2 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: E2 03 00 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: E2 03 00 59 1F 00 90 00 EC [17:14:02]RAPDU: 90 00 [17:14:02]wFMCommunicate OK [17:14:02]wFMCommunicate request_size=35 [17:14:02]MH_SAM_APDU [17:14:02]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F9 C2 01 00 35 04 06 00 7F FD EF 23 C4 31 [17:14:02]Write to MH i2c: E2 26 00 5A 1F 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F9 C2 01 00 35 04 06 00 7F FD EF 23 C4 31 00 00 20 [17:14:02]Write i2c OK [17:14:02]MH_I2C_Read... [17:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:02]Read from MH i2c: E2 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: E2 03 00 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: E2 03 00 5A 1F 00 90 00 ED [17:14:02]RAPDU: 90 00 [17:14:02]wFMCommunicate OK [17:14:02]wFMCommunicate request_size=4 [17:14:02]MH_SAM_APDU [17:14:02]CAPDU: 80 0D 03 02 [17:14:02]Write to MH i2c: E2 08 00 5B 1F 80 0D 03 02 00 00 00 00 F5 [17:14:02]Write i2c OK [17:14:02]MH_I2C_Read... [17:14:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:02]Read from MH i2c: E2 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: E2 0B 00 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: E2 0B 00 5B 1F 00 12 8D B4 BC 18 22 14 E6 90 00 39 [17:14:02]RAPDU: 12 8D B4 BC 18 22 14 E6 90 00 [17:14:02]wFMCommunicate OK [17:14:02]SAM_PROTO_SignData done [17:14:02]FM_MakeSignedData done [17:14:02]CreateOFDProtocolMessage [17:14:02]wFMCommunicate request_size=4 [17:14:02]MH_SAM_APDU [17:14:02]CAPDU: 80 11 00 00 [17:14:02]Write to MH i2c: E2 08 00 5C 1F 80 11 00 00 00 00 00 00 F5 [17:14:02]Write i2c OK [17:14:02]MH_I2C_Read... [17:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:02]Read from MH i2c: E2 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: E2 17 00 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: E2 17 00 5C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 43 [17:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:14:02]wFMCommunicate OK [17:14:02]CreateOFDProtocolMessage done [17:14:02]OFDSenderStorePacket 115449 [17:14:02]StoreOFDPacket docnum=115449 [17:14:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 3A C0 20 01 D9 B1 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 32 32 37 37 35 31 06 04 27 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 5B 50 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F9 C2 01 00 35 04 06 00 7F FD EF 23 C4 31 12 8D B4 BC 18 22 14 E6 [17:14:02]CheckFolder [17:14:02]dirname=/storage/ofd_packets [17:14:02]CheckFolder done [17:14:02]ProducePacketName [17:14:02]name=ofd_packets/00115449 [17:14:02]NVStorageSaveData ofd_packets/00115449 [17:14:02]File name is /storage/ofd_packets/00115449 [17:14:02]Write 326 bytes [17:14:02]NVStorageSaveData done [17:14:02]OFDSenderStorePacket done [17:14:02]KKMCreateOFDPacket done [17:14:02]NVStorageSaveData kkm_last_timestamp [17:14:02]File name is /storage/kkm_last_timestamp [17:14:02]Write 4 bytes [17:14:02]NVStorageSaveData done [17:14:02]ExternCall_PrintAddStr [17:14:02]wPrintStart [17:14:02]Write to MH i2c: 01 00 00 5D 1F 7C [17:14:02]Write i2c OK [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: 01 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: 01 07 00 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: 01 07 00 5D 1F 00 00 00 00 00 FF 0F 91 [17:14:02]RasterBufferAndPrint [17:14:02]line Счет N : (3)343887 [17:14:02]line ИНН: 02508201610067 [17:14:02]line Контрольно-Кассовый Чек [17:14:02]line ПРОДАЖА [17:14:02]line Товар: 46227751 [17:14:02]line Р/ж mentos pure fresh арбуз 54г [17:14:02]line 1.000 * 205.00 [17:14:02]line = 205.00 [17:14:02]line НДС 12% НСП 1% [17:14:02]line > о реализуемом товаре [17:14:02]line ИТОГО: 205.00 [17:14:02]line НСП 1% : 1.81 [17:14:02]line НДС 12% : 21.77 [17:14:02]line Наличными: 205.00 [17:14:02]line Безнал.: 0.00 [17:14:02]line Место: АЗС № 90 "Партнер Нефть" [17:14:02]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:14:02]line СНО: Общий режим [17:14:02]line Чек 167 22.09.2024 17:14 [17:14:02]line Смена: 471 ФФД: 1.0 [17:14:02]line ЗНМ: 0300000120 [17:14:02]line РНМ: 0000000000091831 [17:14:02]line Версия ККМ: 001 [17:14:02]line ФМ: 0000000000871830 [17:14:02]line ФД: 115449 [17:14:02]line ФПД: 140728615552049 [17:14:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T171403&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115449&fm=140728615552049&tin=02508201610067®Number=0000000000091831&sum=20500 [17:14:02]line 0 [17:14:02]written 0, free lines is 4095 [17:14:02]OFD Sender: Processing packet 115449 [packets to send 481, broken 480] [17:14:02]ProducePacketName [17:14:02]name=ofd_packets/00115449 [17:14:02]OFD Sender: To server: pG, [17:14:02]CommunicateWithHost lk.salyk.kg:30040 [17:14:02]ConnectInit lk.salyk.kg [17:14:03]Connected sock=9 [17:14:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 3A C0 20 01 D9 B1 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 32 32 37 37 35 31 06 04 27 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 5B 50 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F9 C2 01 00 35 04 06 00 7F FD EF 23 C4 31 12 8D B4 BC 18 22 14 E6 [17:14:03]Write to MH i2c: 01 00 00 85 1F A4 [17:14:03]Write i2c OK [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: 01 [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: 01 07 00 [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: 01 07 00 85 1F 00 00 00 00 00 85 0C 3C [17:14:03]RasterBufferAndPrint [17:14:03]line [17:14:03]line [17:14:03]line [17:14:03]line [17:14:03]line [17:14:03]written 0, free lines is 3211 [17:14:03]MH_Cut [17:14:03]Write to MH i2c: D1 01 00 8C 1F 01 7D [17:14:03]Write i2c OK [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: D1 [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: D1 01 00 [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: D1 01 00 8C 1F 00 7C [17:14:03]Write to MH i2c: 01 00 00 8D 1F AC [17:14:03]Write i2c OK [17:14:03]MH_I2C_Read... [17:14:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 5B 0E 47 00 7D 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 31 38 33 30 10 04 04 00 F9 C2 01 00 F4 03 04 00 A0 F5 EF 66 B6 04 01 00 00 EA 48 98 11 3D CE 27 2A [17:14:03]CommunicateWithHost err = 0 [17:14:03]CheckOFDResponse [17:14:03]1017 (14) - 77093643461234 [17:14:03]1041 (16) - 0000000000871830 [17:14:03]1040 (4) - 115449 [17:14:03]1012 (4) - 22.09.2024 10:46 [17:14:03]1206 (1) - 0 [17:14:03]OFD Sender: Remove packet 115449 [17:14:03]ProducePacketName [17:14:03]name=ofd_packets/00115449 [17:14:03]NVStorageDeleteData [17:14:03]OFD Sender: No OFD packet to send [17:14:04]*** Cut start [17:14:04]*** Partial cut [17:14:04]*** CUTSNS_PIN = 1 [17:14:04]*** CUTSNS_PIN = 0 [17:14:04]*** Brake cut motor [17:14:04]Read from MH i2c: 01 [17:14:04]MH_I2C_Read... [17:14:04]*** Stop cut motor [17:14:04]*** Cut end [17:14:04]Read from MH i2c: 01 07 00 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: 01 07 00 8D 1F 00 00 00 00 00 FF 0F C1 [17:14:04]process_action close_receipt done [17:14:04]requested_data is exist [17:14:04]produce_requested_data [17:14:04]requested_item fm.sn is exist - process it [17:14:04]wFMCommunicate request_size=4 [17:14:04]MH_SAM_APDU [17:14:04]CAPDU: 80 11 00 00 [17:14:04]Write to MH i2c: E2 08 00 8E 1F 80 11 00 00 00 00 00 00 27 [17:14:04]Write i2c OK [17:14:04]MH_I2C_Read... [17:14:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:05]Read from MH i2c: E2 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: E2 17 00 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: E2 17 00 8E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 75 [17:14:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:14:05]wFMCommunicate OK [17:14:05]requested_item fd.num is exist - process it [17:14:05]SAM_PROTO_GetFieldsCounters [17:14:05]wFMCommunicate request_size=4 [17:14:05]MH_SAM_APDU [17:14:05]CAPDU: 80 13 00 00 [17:14:05]Write to MH i2c: E2 08 00 8F 1F 80 13 00 00 00 00 00 00 2A [17:14:05]Write i2c OK [17:14:05]MH_I2C_Read... [17:14:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:05]Read from MH i2c: E2 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: E2 62 00 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: E2 62 00 8F 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F9 C2 01 00 0E 04 04 00 D7 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 CC [17:14:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F9 C2 01 00 0E 04 04 00 D7 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 [17:14:05]wFMCommunicate OK [17:14:05]SAM_PROTO_GetFieldsCounters done [17:14:05]requested_item shift.num is exist - process it [17:14:05]requested_item shift.opened is exist - process it [17:14:05]req_shift_opened [17:14:05]FM_GetShiftState [17:14:05]SAM_PROTO_GetShiftState [17:14:05]wFMCommunicate request_size=4 [17:14:05]MH_SAM_APDU [17:14:05]CAPDU: 80 13 01 00 [17:14:05]Write to MH i2c: E2 08 00 90 1F 80 13 01 00 00 00 00 00 2C [17:14:05]Write i2c OK [17:14:05]MH_I2C_Read... [17:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:05]Read from MH i2c: E2 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: E2 0E 00 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: E2 0E 00 90 1F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 45 [17:14:05]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:14:05]wFMCommunicate OK [17:14:05]SAM_PROTO_GetShiftState done [17:14:05]FM_GetShiftState done [17:14:05]req_shift_opened done [17:14:05]requested_item shift.open_date is exist - process it [17:14:05]req_shift_open_date [17:14:05]req_shift_open_date done [17:14:05]produce_requested_data done [17:14:05]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115449,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [17:14:05]process_action_free close_receipt [17:14:05]json_value_free [17:14:05]json_value_free done [17:14:05]process_json_proto returns [17:14:05]Send response to host [17:14:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115449,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [17:14:05]free response buf [17:14:05]execute_script done [17:14:05]execute_script returns [17:14:05]free content buf [17:14:05]Sock 10.Close socket [17:14:05]Sock 10.Thread stoped [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:39]OFD Sender: No OFD packet to send [17:14:44]OFD Sender: No OFD packet to send [17:14:49]OFD Sender: No OFD packet to send [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:54]OFD Sender: No OFD packet to send [17:16:59]OFD Sender: No OFD packet to send [17:17:04]OFD Sender: No OFD packet to send [17:17:09]OFD Sender: No OFD packet to send [17:17:14]OFD Sender: No OFD packet to send [17:17:19]OFD Sender: No OFD packet to send [17:17:24]OFD Sender: No OFD packet to send [17:17:29]OFD Sender: No OFD packet to send [17:17:34]OFD Sender: No OFD packet to send [17:17:39]OFD Sender: No OFD packet to send [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:35]accept exits with 8 [17:20:35]New connection [17:20:35]New thread 3066682724 created [17:20:35]Thread 3066826084 joined [17:20:35]Waiting for new connection... [17:20:35] Sock 8.Parse request [17:20:35]Sock 8.Check first char [17:20:35]Sock 8.First char is OK [17:20:35]request: POST /json_proto HTTP/1.0 [17:20:35]Method: POST [17:20:35]URL: /json_proto [17:20:35]Method is POST - this is cgi request [17:20:35]url: /json_proto [17:20:35]query_string will be loaded in cgi processing [17:20:35]execute_cgi json_proto POST (null) [17:20:35]execute_cgi path=json_proto method=POST [17:20:35]POST find Content-Length [17:20:35]Host: 172.17.41.136:8080 [17:20:35]Content-Length: 646 [17:20:35]Content-Type: application/json [17:20:35] [17:20:35]POST finish read [17:20:35]Found Content-Length = 646 [17:20:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343888", "tax_sys" : 0, "items" : [ { "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 87.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:35]execute_script... [17:20:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343888", "tax_sys" : 0, "items" : [ { "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 87.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:35]POST & json_proto [17:20:35]process_json_proto [17:20:35]json parsed OK: [17:20:35]protocol is kg_v1.0 [17:20:35]action value=close_receipt [17:20:35]process_action close_receipt [17:20:35]cmd_close_receipt [17:20:35]MH_GetDate [17:20:35]Write to MH i2c: F0 00 00 91 1F 9F [17:20:35]Write i2c OK [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: F0 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: F0 09 00 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: F0 09 00 91 1F 00 E6 51 F0 66 1B D0 5A 64 DE [17:20:35]GetLastDocTimeStamp 1727025243 [17:20:35]current date 1727025638 [17:20:35]FM_GetShiftState [17:20:35]SAM_PROTO_GetShiftState [17:20:35]wFMCommunicate request_size=4 [17:20:35]MH_SAM_APDU [17:20:35]CAPDU: 80 13 01 00 [17:20:35]Write to MH i2c: E2 08 00 92 1F 80 13 01 00 00 00 00 00 2E [17:20:35]Write i2c OK [17:20:35]MH_I2C_Read... [17:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:35]Read from MH i2c: E2 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 0E 00 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 0E 00 92 1F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 47 [17:20:35]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:20:35]wFMCommunicate OK [17:20:35]SAM_PROTO_GetShiftState done [17:20:35]FM_GetShiftState done [17:20:35]opened in 1726965840 [17:20:35]opened+sec_in_day 1727052240 [17:20:35]quantity*price = 8700 [17:20:35]sum+1 = 8701 [17:20:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 87.00 НСП 1% : 0.77 НДС 12% : 9.24 Наличными: 87.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 168 22.09.2024 17:20 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115450 ФПД: 179534837627998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T172038&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115450&fm=179534837627998&tin=02508201610067®Number=0000000000091831&sum=8700 0 [17:20:37]StoreToDocumentArchive [17:20:37]shift 471 fd 115450 [17:20:37]save to /storage/0471/doc_00115450 [17:20:37]save last doc name /storage/0471/doc_00115450 to /storage/kkm_last_doc_name [17:20:37]save OK [17:20:37]Clear old archive folders... [17:20:37]ProcessDocumentItem done err = 0, tmpTLVsize=277 [17:20:37]tlvbuf is 01C93E90 [17:20:37]SAM_PROTO_ClearQueue [17:20:37]wFMCommunicate request_size=4 [17:20:37]MH_SAM_APDU [17:20:37]CAPDU: 80 09 00 00 [17:20:37]Write to MH i2c: E2 08 00 9F 1F 80 09 00 00 00 00 00 00 30 [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:37]Read from MH i2c: E2 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 03 00 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 03 00 9F 1F 00 90 00 32 [17:20:37]RAPDU: 90 00 [17:20:37]wFMCommunicate OK [17:20:37]SAM_PROTO_ClearQueue done [17:20:37]KKMCreateOFDPacket [17:20:37]OFDProtocolAddRootSTLVToBuf [17:20:37]FM_MakeSignedData [17:20:37]FM_MakeSignedData [17:20:37]SAM_PROTO_SignData [17:20:37]wFMCommunicate request_size=4 [17:20:37]MH_SAM_APDU [17:20:37]CAPDU: 80 0D 01 02 [17:20:37]Write to MH i2c: E2 08 00 A0 1F 80 0D 01 02 00 00 00 00 38 [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:37]Read from MH i2c: E2 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 03 00 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 03 00 A0 1F 00 90 00 33 [17:20:37]RAPDU: 90 00 [17:20:37]wFMCommunicate OK [17:20:37]wFMCommunicate request_size=255 [17:20:37]MH_SAM_APDU [17:20:37]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 E6 51 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 [17:20:37]Write to MH i2c: E2 02 01 A1 1F 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 E6 51 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 00 00 DB [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:37]Read from MH i2c: E2 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 03 00 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 03 00 A1 1F 00 90 00 34 [17:20:37]RAPDU: 90 00 [17:20:37]wFMCommunicate OK [17:20:37]wFMCommunicate request_size=36 [17:20:37]MH_SAM_APDU [17:20:37]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FA C2 01 00 35 04 06 00 A3 49 36 38 BC 5E [17:20:37]Write to MH i2c: E2 27 00 A2 1F 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FA C2 01 00 35 04 06 00 A3 49 36 38 BC 5E 00 00 8C [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:37]Read from MH i2c: E2 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 03 00 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 03 00 A2 1F 00 90 00 35 [17:20:37]RAPDU: 90 00 [17:20:37]wFMCommunicate OK [17:20:37]wFMCommunicate request_size=4 [17:20:37]MH_SAM_APDU [17:20:37]CAPDU: 80 0D 03 02 [17:20:37]Write to MH i2c: E2 08 00 A3 1F 80 0D 03 02 00 00 00 00 3D [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:37]Read from MH i2c: E2 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 0B 00 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 0B 00 A3 1F 00 90 95 47 88 C0 DF 19 CA 90 00 B4 [17:20:37]RAPDU: 90 95 47 88 C0 DF 19 CA 90 00 [17:20:37]wFMCommunicate OK [17:20:37]SAM_PROTO_SignData done [17:20:37]FM_MakeSignedData done [17:20:37]CreateOFDProtocolMessage [17:20:37]wFMCommunicate request_size=4 [17:20:37]MH_SAM_APDU [17:20:37]CAPDU: 80 11 00 00 [17:20:37]Write to MH i2c: E2 08 00 A4 1F 80 11 00 00 00 00 00 00 3D [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:37]Read from MH i2c: E2 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 17 00 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 17 00 A4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8B [17:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:20:37]wFMCommunicate OK [17:20:37]CreateOFDProtocolMessage done [17:20:37]OFDSenderStorePacket 115450 [17:20:37]StoreOFDPacket docnum=115450 [17:20:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 29 01 00 00 DE 97 21 01 A5 7B 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 E6 51 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FA C2 01 00 35 04 06 00 A3 49 36 38 BC 5E 90 95 47 88 C0 DF 19 CA [17:20:37]CheckFolder [17:20:37]dirname=/storage/ofd_packets [17:20:37]CheckFolder done [17:20:37]ProducePacketName [17:20:37]name=ofd_packets/00115450 [17:20:37]NVStorageSaveData ofd_packets/00115450 [17:20:37]File name is /storage/ofd_packets/00115450 [17:20:37]Write 327 bytes [17:20:37]NVStorageSaveData done [17:20:37]OFDSenderStorePacket done [17:20:37]KKMCreateOFDPacket done [17:20:37]NVStorageSaveData kkm_last_timestamp [17:20:37]File name is /storage/kkm_last_timestamp [17:20:37]Write 4 bytes [17:20:37]NVStorageSaveData done [17:20:37]ExternCall_PrintAddStr [17:20:37]wPrintStart [17:20:37]Write to MH i2c: 01 00 00 A5 1F C4 [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: 01 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: 01 07 00 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: 01 07 00 A5 1F 00 00 00 00 00 FF 0F D9 [17:20:37]RasterBufferAndPrint [17:20:37]line Счет N : (3)343888 [17:20:37]line ИНН: 02508201610067 [17:20:37]line Контрольно-Кассовый Чек [17:20:37]line ПРОДАЖА [17:20:37]line Товар: 4860019001339 [17:20:37]line Вода Боржоми 0,33л ст [17:20:37]line 1.000 * 87.00 [17:20:37]line = 87.00 [17:20:37]line НДС 12% НСП 1% [17:20:37]line > о реализуемом товаре [17:20:37]line ИТОГО: 87.00 [17:20:37]line НСП 1% : 0.77 [17:20:37]line НДС 12% : 9.24 [17:20:37]line Наличными: 87.00 [17:20:37]line Безнал.: 0.00 [17:20:37]line Место: АЗС № 90 "Партнер Нефть" [17:20:37]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:20:37]line СНО: Общий режим [17:20:37]line Чек 168 22.09.2024 17:20 [17:20:37]line Смена: 471 ФФД: 1.0 [17:20:37]line ЗНМ: 0300000120 [17:20:37]line РНМ: 0000000000091831 [17:20:37]line Версия ККМ: 001 [17:20:37]line ФМ: 0000000000871830 [17:20:37]line ФД: 115450 [17:20:37]line ФПД: 179534837627998 [17:20:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T172038&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115450&fm=179534837627998&tin=02508201610067®Number=0000000000091831&sum=8700 [17:20:37]line 0 [17:20:37]OFD Sender: Processing packet 115450 [packets to send 481, broken 480] [17:20:37]ProducePacketName [17:20:37]name=ofd_packets/00115450 [17:20:37]OFD Sender: To server: pG, [17:20:37]CommunicateWithHost lk.salyk.kg:30040 [17:20:37]ConnectInit lk.salyk.kg [17:20:37]written 0, free lines is 4095 [17:20:38]Connected sock=10 [17:20:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 29 01 00 00 DE 97 21 01 A5 7B 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 E6 51 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FA C2 01 00 35 04 06 00 A3 49 36 38 BC 5E 90 95 47 88 C0 DF 19 CA [17:20:38]Write to MH i2c: 01 00 00 CC 1F EB [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: 01 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: 01 07 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: 01 07 00 CC 1F 00 00 00 00 00 8D 0C 8B [17:20:38]RasterBufferAndPrint [17:20:38]line [17:20:38]line [17:20:38]line [17:20:38]line [17:20:38]line [17:20:38]written 0, free lines is 3217 [17:20:38]MH_Cut [17:20:38]Write to MH i2c: D1 01 00 D3 1F 01 C4 [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: D1 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: D1 01 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: D1 01 00 D3 1F 00 C3 [17:20:38]Write to MH i2c: 01 00 00 D4 1F F3 [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 8F 64 47 00 76 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FA C2 01 00 F4 03 04 00 2B F7 EF 66 B6 04 01 00 00 1D 18 13 B5 99 D1 72 72 [17:20:38]CommunicateWithHost err = 0 [17:20:38]CheckOFDResponse [17:20:38]1017 (14) - 77093643461234 [17:20:38]1041 (16) - 0000000000871830 [17:20:38]1040 (4) - 115450 [17:20:38]1012 (4) - 22.09.2024 10:53 [17:20:38]1206 (1) - 0 [17:20:38]OFD Sender: Remove packet 115450 [17:20:38]ProducePacketName [17:20:38]name=ofd_packets/00115450 [17:20:38]NVStorageDeleteData [17:20:39]OFD Sender: No OFD packet to send [17:20:39]*** Cut start [17:20:39]*** Partial cut [17:20:39]*** CUTSNS_PIN = 1 [17:20:39]*** CUTSNS_PIN = 0 [17:20:39]*** Brake cut motor [17:20:40]Read from MH i2c: 01 [17:20:40]MH_I2C_Read... [17:20:40]*** Stop cut motor [17:20:40]*** Cut end [17:20:40]Read from MH i2c: 01 07 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: 01 07 00 D4 1F 00 00 00 00 00 FF 0F 08 [17:20:40]process_action close_receipt done [17:20:40]requested_data is exist [17:20:40]produce_requested_data [17:20:40]requested_item fm.sn is exist - process it [17:20:40]wFMCommunicate request_size=4 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 11 00 00 [17:20:40]Write to MH i2c: E2 08 00 D5 1F 80 11 00 00 00 00 00 00 6E [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 17 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 17 00 D5 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BC [17:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:20:40]wFMCommunicate OK [17:20:40]requested_item fd.num is exist - process it [17:20:40]SAM_PROTO_GetFieldsCounters [17:20:40]wFMCommunicate request_size=4 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 13 00 00 [17:20:40]Write to MH i2c: E2 08 00 D6 1F 80 13 00 00 00 00 00 00 71 [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 62 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 62 00 D6 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FA C2 01 00 0E 04 04 00 D7 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 17 [17:20:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FA C2 01 00 0E 04 04 00 D7 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 [17:20:40]wFMCommunicate OK [17:20:40]SAM_PROTO_GetFieldsCounters done [17:20:40]requested_item shift.num is exist - process it [17:20:40]requested_item shift.opened is exist - process it [17:20:40]req_shift_opened [17:20:40]FM_GetShiftState [17:20:40]SAM_PROTO_GetShiftState [17:20:40]wFMCommunicate request_size=4 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 13 01 00 [17:20:40]Write to MH i2c: E2 08 00 D7 1F 80 13 01 00 00 00 00 00 73 [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 0E 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 0E 00 D7 1F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 8C [17:20:40]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:20:40]wFMCommunicate OK [17:20:40]SAM_PROTO_GetShiftState done [17:20:40]FM_GetShiftState done [17:20:40]req_shift_opened done [17:20:40]requested_item shift.open_date is exist - process it [17:20:40]req_shift_open_date [17:20:40]req_shift_open_date done [17:20:40]produce_requested_data done [17:20:40]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115450,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [17:20:40]process_action_free close_receipt [17:20:40]json_value_free [17:20:40]json_value_free done [17:20:40]process_json_proto returns [17:20:40]Send response to host [17:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115450,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [17:20:40]free response buf [17:20:40]execute_script done [17:20:40]execute_script returns [17:20:40]free content buf [17:20:40]Sock 8.Close socket [17:20:40]Sock 8.Thread stoped [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:23]accept exits with 9 [17:21:23]New connection [17:21:23]New thread 3066826084 created [17:21:23]Thread 3066682724 joined [17:21:23]Waiting for new connection... [17:21:23] Sock 9.Parse request [17:21:23]Sock 9.Check first char [17:21:23]Sock 9.First char is OK [17:21:23]request: POST /json_proto HTTP/1.0 [17:21:23]Method: POST [17:21:23]URL: /json_proto [17:21:23]Method is POST - this is cgi request [17:21:23]url: /json_proto [17:21:23]query_string will be loaded in cgi processing [17:21:23]execute_cgi json_proto POST (null) [17:21:23]execute_cgi path=json_proto method=POST [17:21:23]POST find Content-Length [17:21:23]Host: 172.17.41.136:8080 [17:21:23]Content-Length: 622 [17:21:23]Content-Type: application/json [17:21:23] [17:21:23]POST finish read [17:21:23]Found Content-Length = 622 [17:21:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343889", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:23]execute_script... [17: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 : (3)343889", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:23]POST & json_proto [17:21:23]process_json_proto [17:21:23]json parsed OK: [17:21:23]protocol is kg_v1.0 [17:21:23]action value=close_receipt [17:21:23]process_action close_receipt [17:21:23]cmd_close_receipt [17:21:23]MH_GetDate [17:21:23]Write to MH i2c: F0 00 00 D8 1F E6 [17:21:23]Write i2c OK [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: F0 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: F0 09 00 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: F0 09 00 D8 1F 00 16 52 F0 66 1B D0 5A 64 56 [17:21:23]GetLastDocTimeStamp 1727025638 [17:21:23]current date 1727025686 [17:21:23]FM_GetShiftState [17:21:23]SAM_PROTO_GetShiftState [17:21:23]wFMCommunicate request_size=4 [17:21:23]MH_SAM_APDU [17:21:23]CAPDU: 80 13 01 00 [17:21:23]Write to MH i2c: E2 08 00 D9 1F 80 13 01 00 00 00 00 00 75 [17:21:23]Write i2c OK [17:21:23]MH_I2C_Read... [17:21:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:24]Read from MH i2c: E2 [17:21:24]MH_I2C_Read... [17:21:24]Read from MH i2c: E2 0E 00 [17:21:24]MH_I2C_Read... [17:21:24]Read from MH i2c: E2 0E 00 D9 1F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 8E [17:21:24]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:21:24]wFMCommunicate OK [17:21:24]SAM_PROTO_GetShiftState done [17:21:24]FM_GetShiftState done [17:21:24]opened in 1726965840 [17:21:24]opened+sec_in_day 1727052240 [17:21:24]quantity*price = 15000 [17:21:24]sum+1 = 15001 [17:21:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 169 22.09.2024 17:21 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115451 ФПД: 56874327910925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T172126&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115451&fm=56874327910925&tin=02508201610067®Number=0000000000091831&sum=15000 0 [17:21:25]StoreToDocumentArchive [17:21:25]shift 471 fd 115451 [17:21:25]save to /storage/0471/doc_00115451 [17:21:25]save last doc name /storage/0471/doc_00115451 to /storage/kkm_last_doc_name [17:21:25]save OK [17:21:25]Clear old archive folders... [17:21:25]ProcessDocumentItem done err = 0, tmpTLVsize=274 [17:21:25]tlvbuf is 01C113B0 [17:21:25]SAM_PROTO_ClearQueue [17:21:25]wFMCommunicate request_size=4 [17:21:25]MH_SAM_APDU [17:21:25]CAPDU: 80 09 00 00 [17:21:25]Write to MH i2c: E2 08 00 E6 1F 80 09 00 00 00 00 00 00 77 [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:25]Read from MH i2c: E2 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 03 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 03 00 E6 1F 00 90 00 79 [17:21:25]RAPDU: 90 00 [17:21:25]wFMCommunicate OK [17:21:25]SAM_PROTO_ClearQueue done [17:21:25]KKMCreateOFDPacket [17:21:25]OFDProtocolAddRootSTLVToBuf [17:21:25]FM_MakeSignedData [17:21:25]FM_MakeSignedData [17:21:25]SAM_PROTO_SignData [17:21:25]wFMCommunicate request_size=4 [17:21:25]MH_SAM_APDU [17:21:25]CAPDU: 80 0D 01 02 [17:21:25]Write to MH i2c: E2 08 00 E7 1F 80 0D 01 02 00 00 00 00 7F [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:25]Read from MH i2c: E2 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 03 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 03 00 E7 1F 00 90 00 7A [17:21:25]RAPDU: 90 00 [17:21:25]wFMCommunicate OK [17:21:25]wFMCommunicate request_size=255 [17:21:25]MH_SAM_APDU [17:21:25]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 16 52 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 [17:21:25]Write to MH i2c: E2 02 01 E8 1F 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 16 52 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 00 00 58 [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:25]Read from MH i2c: E2 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 03 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 03 00 E8 1F 00 90 00 7B [17:21:25]RAPDU: 90 00 [17:21:25]wFMCommunicate OK [17:21:25]wFMCommunicate request_size=33 [17:21:25]MH_SAM_APDU [17:21:25]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FB C2 01 00 35 04 06 00 33 BA 16 1C AA 0D [17:21:25]Write to MH i2c: E2 24 00 E9 1F 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FB C2 01 00 35 04 06 00 33 BA 16 1C AA 0D 00 00 A0 [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:25]Read from MH i2c: E2 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 03 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 03 00 E9 1F 00 90 00 7C [17:21:25]RAPDU: 90 00 [17:21:25]wFMCommunicate OK [17:21:25]wFMCommunicate request_size=4 [17:21:25]MH_SAM_APDU [17:21:25]CAPDU: 80 0D 03 02 [17:21:25]Write to MH i2c: E2 08 00 EA 1F 80 0D 03 02 00 00 00 00 84 [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:25]Read from MH i2c: E2 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 0B 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 0B 00 EA 1F 00 A1 BE 76 E8 4D C5 42 5D 90 00 F3 [17:21:25]RAPDU: A1 BE 76 E8 4D C5 42 5D 90 00 [17:21:25]wFMCommunicate OK [17:21:25]SAM_PROTO_SignData done [17:21:25]FM_MakeSignedData done [17:21:25]CreateOFDProtocolMessage [17:21:25]wFMCommunicate request_size=4 [17:21:25]MH_SAM_APDU [17:21:25]CAPDU: 80 11 00 00 [17:21:25]Write to MH i2c: E2 08 00 EB 1F 80 11 00 00 00 00 00 00 84 [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:25]Read from MH i2c: E2 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 17 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 17 00 EB 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [17:21:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:21:25]wFMCommunicate OK [17:21:25]CreateOFDProtocolMessage done [17:21:25]OFDSenderStorePacket 115451 [17:21:25]StoreOFDPacket docnum=115451 [17:21:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 26 01 00 00 90 4C 1E 01 7B F3 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 16 52 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FB C2 01 00 35 04 06 00 33 BA 16 1C AA 0D A1 BE 76 E8 4D C5 42 5D [17:21:25]CheckFolder [17:21:25]dirname=/storage/ofd_packets [17:21:25]CheckFolder done [17:21:25]ProducePacketName [17:21:25]name=ofd_packets/00115451 [17:21:25]NVStorageSaveData ofd_packets/00115451 [17:21:25]File name is /storage/ofd_packets/00115451 [17:21:25]Write 324 bytes [17:21:25]NVStorageSaveData done [17:21:25]OFDSenderStorePacket done [17:21:25]KKMCreateOFDPacket done [17:21:25]NVStorageSaveData kkm_last_timestamp [17:21:25]File name is /storage/kkm_last_timestamp [17:21:25]Write 4 bytes [17:21:25]NVStorageSaveData done [17:21:25]ExternCall_PrintAddStr [17:21:25]wPrintStart [17:21:25]Write to MH i2c: 01 00 00 EC 1F 0B [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: 01 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: 01 07 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: 01 07 00 EC 1F 00 00 00 00 00 FF 0F 20 [17:21:25]RasterBufferAndPrint [17:21:25]line Счет N : (3)343889 [17:21:25]line ИНН: 02508201610067 [17:21:25]line Контрольно-Кассовый Чек [17:21:25]line ПРОДАЖА [17:21:25]line Товар: 4640030091645 [17:21:25]line Сигареты ESSE Exchange M [17:21:25]line 1.000 * 150.00 [17:21:25]line = 150.00 [17:21:25]line НДС 12% НСП 1% [17:21:25]line > о реализуемом товаре [17:21:25]line ИТОГО: 150.00 [17:21:25]line НСП 1% : 1.33 [17:21:25]line НДС 12% : 15.93 [17:21:25]line Наличными: 150.00 [17:21:25]line Безнал.: 0.00 [17:21:25]line Место: АЗС № 90 "Партнер Нефть" [17:21:25]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:21:25]line СНО: Общий режим [17:21:25]line Чек 169 22.09.2024 17:21 [17:21:25]line Смена: 471 ФФД: 1.0 [17:21:25]line ЗНМ: 0300000120 [17:21:25]line РНМ: 0000000000091831 [17:21:25]line Версия ККМ: 001 [17:21:25]line ФМ: 0000000000871830 [17:21:25]line ФД: 115451 [17:21:25]line ФПД: 56874327910925 [17:21:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T172126&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115451&fm=56874327910925&tin=02508201610067®Number=0000000000091831&sum=15000 [17:21:25]line 0 [17:21:25]written 0, free lines is 4095 [17:21:25]OFD Sender: Processing packet 115451 [packets to send 481, broken 480] [17:21:25]ProducePacketName [17:21:25]name=ofd_packets/00115451 [17:21:25]OFD Sender: To server: pG, [17:21:26]CommunicateWithHost lk.salyk.kg:30040 [17:21:26]ConnectInit lk.salyk.kg [17:21:26]Write to MH i2c: 01 00 00 13 20 33 [17:21:26]Write i2c OK [17:21:26]MH_I2C_Read... [17:21:26]Read from MH i2c: 01 [17:21:26]MH_I2C_Read... [17:21:26]Read from MH i2c: 01 07 00 [17:21:26]MH_I2C_Read... [17:21:26]Read from MH i2c: 01 07 00 13 20 00 00 00 00 00 7E 0C C4 [17:21:26]RasterBufferAndPrint [17:21:26]line [17:21:26]line [17:21:26]line [17:21:26]line [17:21:26]line [17:21:26]written 0, free lines is 3203 [17:21:26]MH_Cut [17:21:26]Write to MH i2c: D1 01 00 1A 20 01 0C [17:21:26]Write i2c OK [17:21:26]MH_I2C_Read... [17:21:26]Read from MH i2c: D1 [17:21:26]MH_I2C_Read... [17:21:26]Read from MH i2c: D1 01 00 [17:21:26]MH_I2C_Read... [17:21:26]Read from MH i2c: D1 01 00 1A 20 00 0B [17:21:26]Write to MH i2c: 01 00 00 1B 20 3B [17:21:26]Write i2c OK [17:21:26]MH_I2C_Read... [17:21:26]Connected sock=10 [17:21:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 26 01 00 00 90 4C 1E 01 7B F3 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 16 52 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FB C2 01 00 35 04 06 00 33 BA 16 1C AA 0D A1 BE 76 E8 4D C5 42 5D [17:21:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 4D 4E 47 00 52 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 31 38 33 30 10 04 04 00 FB C2 01 00 F4 03 04 00 5B F7 EF 66 B6 04 01 00 00 15 6A 3E F8 6F D5 00 E2 [17:21:26]CommunicateWithHost err = 0 [17:21:26]CheckOFDResponse [17:21:26]1017 (14) - 77093643461234 [17:21:26]1041 (16) - 0000000000871830 [17:21:26]1040 (4) - 115451 [17:21:26]1012 (4) - 22.09.2024 10:54 [17:21:26]1206 (1) - 0 [17:21:26]OFD Sender: Remove packet 115451 [17:21:26]ProducePacketName [17:21:26]name=ofd_packets/00115451 [17:21:26]NVStorageDeleteData [17:21:27]OFD Sender: No OFD packet to send [17:21:27]*** Cut start [17:21:27]*** Partial cut [17:21:27]*** CUTSNS_PIN = 1 [17:21:27]*** CUTSNS_PIN = 0 [17:21:27]*** Brake cut motor [17:21:27]Read from MH i2c: 01 [17:21:27]MH_I2C_Read... [17:21:27]*** Stop cut motor [17:21:27]*** Cut end [17:21:27]Read from MH i2c: 01 07 00 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: 01 07 00 1B 20 00 00 00 00 00 FF 0F 50 [17:21:27]process_action close_receipt done [17:21:27]requested_data is exist [17:21:27]produce_requested_data [17:21:27]requested_item fm.sn is exist - process it [17:21:27]wFMCommunicate request_size=4 [17:21:27]MH_SAM_APDU [17:21:27]CAPDU: 80 11 00 00 [17:21:27]Write to MH i2c: E2 08 00 1C 20 80 11 00 00 00 00 00 00 B6 [17:21:27]Write i2c OK [17:21:27]MH_I2C_Read... [17:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:28]Read from MH i2c: E2 [17:21:28]MH_I2C_Read... [17:21:28]Read from MH i2c: E2 17 00 [17:21:28]MH_I2C_Read... [17:21:28]Read from MH i2c: E2 17 00 1C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 04 [17:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:21:28]wFMCommunicate OK [17:21:28]requested_item fd.num is exist - process it [17:21:28]SAM_PROTO_GetFieldsCounters [17:21:28]wFMCommunicate request_size=4 [17:21:28]MH_SAM_APDU [17:21:28]CAPDU: 80 13 00 00 [17:21:28]Write to MH i2c: E2 08 00 1D 20 80 13 00 00 00 00 00 00 B9 [17:21:28]Write i2c OK [17:21:28]MH_I2C_Read... [17:21:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:28]Read from MH i2c: E2 [17:21:28]MH_I2C_Read... [17:21:28]Read from MH i2c: E2 62 00 [17:21:28]MH_I2C_Read... [17:21:28]Read from MH i2c: E2 62 00 1D 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FB C2 01 00 0E 04 04 00 D7 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 63 [17:21:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FB C2 01 00 0E 04 04 00 D7 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 [17:21:28]wFMCommunicate OK [17:21:28]SAM_PROTO_GetFieldsCounters done [17:21:28]requested_item shift.num is exist - process it [17:21:28]requested_item shift.opened is exist - process it [17:21:28]req_shift_opened [17:21:28]FM_GetShiftState [17:21:28]SAM_PROTO_GetShiftState [17:21:28]wFMCommunicate request_size=4 [17:21:28]MH_SAM_APDU [17:21:28]CAPDU: 80 13 01 00 [17:21:28]Write to MH i2c: E2 08 00 1E 20 80 13 01 00 00 00 00 00 BB [17:21:28]Write i2c OK [17:21:28]MH_I2C_Read... [17:21:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:28]Read from MH i2c: E2 [17:21:28]MH_I2C_Read... [17:21:28]Read from MH i2c: E2 0E 00 [17:21:28]MH_I2C_Read... [17:21:28]Read from MH i2c: E2 0E 00 1E 20 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D4 [17:21:28]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:21:28]wFMCommunicate OK [17:21:28]SAM_PROTO_GetShiftState done [17:21:28]FM_GetShiftState done [17:21:28]req_shift_opened done [17:21:28]requested_item shift.open_date is exist - process it [17:21:28]req_shift_open_date [17:21:28]req_shift_open_date done [17:21:28]produce_requested_data done [17:21:28]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115451,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [17:21:28]process_action_free close_receipt [17:21:28]json_value_free [17:21:28]json_value_free done [17:21:28]process_json_proto returns [17:21:28]Send response to host [17:21:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115451,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [17:21:28]free response buf [17:21:28]execute_script done [17:21:28]execute_script returns [17:21:28]free content buf [17:21:28]Sock 9.Close socket [17:21:28]Sock 9.Thread stoped [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:13]accept exits with 8 [17:24:13]New connection [17:24:13]New thread 3066682724 created [17:24:13]Thread 3066826084 joined [17:24:13]Waiting for new connection... [17:24:13] Sock 8.Parse request [17:24:13]Sock 8.Check first char [17:24:13]Sock 8.First char is OK [17:24:13]request: POST /json_proto HTTP/1.0 [17:24:13]Method: POST [17:24:13]URL: /json_proto [17:24:13]Method is POST - this is cgi request [17:24:13]url: /json_proto [17:24:13]query_string will be loaded in cgi processing [17:24:13]execute_cgi json_proto POST (null) [17:24:13]execute_cgi path=json_proto method=POST [17:24:13]POST find Content-Length [17:24:13]Host: 172.17.41.136:8080 [17:24:13]Content-Length: 934 [17:24:13]Content-Type: application/json [17:24:13] [17:24:13]POST finish read [17:24:13]Found Content-Length = 934 [17:24:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343890", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 87.00, "quantity" : 2.000, "sum" : 174.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 239.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:13]execute_script... [17:24:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343890", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 87.00, "quantity" : 2.000, "sum" : 174.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 239.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:13]POST & json_proto [17:24:13]process_json_proto [17:24:13]json parsed OK: [17:24:13]protocol is kg_v1.0 [17:24:13]action value=close_receipt [17:24:13]process_action close_receipt [17:24:13]cmd_close_receipt [17:24:13]MH_GetDate [17:24:13]Write to MH i2c: F0 00 00 1F 20 2E [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: F0 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: F0 09 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: F0 09 00 1F 20 00 BF 52 F0 66 1B D0 5A 64 47 [17:24:13]GetLastDocTimeStamp 1727025686 [17:24:13]current date 1727025855 [17:24:13]FM_GetShiftState [17:24:13]SAM_PROTO_GetShiftState [17:24:13]wFMCommunicate request_size=4 [17:24:13]MH_SAM_APDU [17:24:13]CAPDU: 80 13 01 00 [17:24:13]Write to MH i2c: E2 08 00 20 20 80 13 01 00 00 00 00 00 BD [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:13]Read from MH i2c: E2 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 0E 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 0E 00 20 20 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D6 [17:24:13]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:24:13]wFMCommunicate OK [17:24:13]SAM_PROTO_GetShiftState done [17:24:13]FM_GetShiftState done [17:24:13]opened in 1726965840 [17:24:13]opened+sec_in_day 1727052240 [17:24:13]quantity*price = 6500 [17:24:13]sum+1 = 6501 [17:24:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001339 Вода Боржоми 0,33л ст 2.000 * 87.00 = 174.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 239.00 НСП 1% : 2.11 НДС 12% : 25.38 Наличными: 239.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 170 22.09.2024 17:24 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115452 ФПД: 183825124945970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T172415&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115452&fm=183825124945970&tin=02508201610067®Number=0000000000091831&sum=23900 0 [17:24:14]StoreToDocumentArchive [17:24:14]shift 471 fd 115452 [17:24:14]save to /storage/0471/doc_00115452 [17:24:14]save last doc name /storage/0471/doc_00115452 to /storage/kkm_last_doc_name [17:24:14]save OK [17:24:14]Clear old archive folders... [17:24:14]ProcessDocumentItem done err = 0, tmpTLVsize=391 [17:24:14]tlvbuf is 01C10FE0 [17:24:14]SAM_PROTO_ClearQueue [17:24:14]wFMCommunicate request_size=4 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 09 00 00 [17:24:14]Write to MH i2c: E2 08 00 2D 20 80 09 00 00 00 00 00 00 BF [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 2D 20 00 90 00 C1 [17:24:14]RAPDU: 90 00 [17:24:14]wFMCommunicate OK [17:24:14]SAM_PROTO_ClearQueue done [17:24:14]KKMCreateOFDPacket [17:24:14]OFDProtocolAddRootSTLVToBuf [17:24:14]FM_MakeSignedData [17:24:14]FM_MakeSignedData [17:24:14]SAM_PROTO_SignData [17:24:14]wFMCommunicate request_size=4 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 0D 01 02 [17:24:14]Write to MH i2c: E2 08 00 2E 20 80 0D 01 02 00 00 00 00 C7 [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 2E 20 00 90 00 C2 [17:24:14]RAPDU: 90 00 [17:24:14]wFMCommunicate OK [17:24:14]wFMCommunicate request_size=255 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 F8 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [17:24:14]Write to MH i2c: E2 02 01 2F 20 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 F8 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 EB [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 2F 20 00 90 00 C3 [17:24:14]RAPDU: 90 00 [17:24:14]wFMCommunicate OK [17:24:14]wFMCommunicate request_size=150 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 BF 52 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FC C2 01 00 35 04 06 00 A7 30 1F 45 F0 32 [17:24:14]Write to MH i2c: E2 99 00 30 20 80 0D 02 02 91 00 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 BF 52 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FC C2 01 00 35 04 06 00 A7 30 1F 45 F0 32 00 00 97 [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 30 20 00 90 00 C4 [17:24:14]RAPDU: 90 00 [17:24:14]wFMCommunicate OK [17:24:14]wFMCommunicate request_size=4 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 0D 03 02 [17:24:14]Write to MH i2c: E2 08 00 31 20 80 0D 03 02 00 00 00 00 CC [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 0B 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 0B 00 31 20 00 CE EC 24 F4 56 91 9C 4F 90 00 71 [17:24:14]RAPDU: CE EC 24 F4 56 91 9C 4F 90 00 [17:24:14]wFMCommunicate OK [17:24:14]SAM_PROTO_SignData done [17:24:14]FM_MakeSignedData done [17:24:14]CreateOFDProtocolMessage [17:24:14]wFMCommunicate request_size=4 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 11 00 00 [17:24:14]Write to MH i2c: E2 08 00 32 20 80 11 00 00 00 00 00 00 CC [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 17 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 17 00 32 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1A [17:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:24:14]wFMCommunicate OK [17:24:14]CreateOFDProtocolMessage done [17:24:14]OFDSenderStorePacket 115452 [17:24:14]StoreOFDPacket docnum=115452 [17:24:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9B 01 00 00 85 0A 93 01 70 19 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 F8 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 BF 52 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FC C2 01 00 35 04 06 00 A7 30 1F 45 F0 32 CE EC 24 F4 56 91 9C 4F [17:24:14]CheckFolder [17:24:14]dirname=/storage/ofd_packets [17:24:14]CheckFolder done [17:24:14]ProducePacketName [17:24:14]name=ofd_packets/00115452 [17:24:14]NVStorageSaveData ofd_packets/00115452 [17:24:14]File name is /storage/ofd_packets/00115452 [17:24:14]Write 441 bytes [17:24:14]NVStorageSaveData done [17:24:14]OFDSenderStorePacket done [17:24:14]KKMCreateOFDPacket done [17:24:14]NVStorageSaveData kkm_last_timestamp [17:24:14]File name is /storage/kkm_last_timestamp [17:24:14]Write 4 bytes [17:24:14]NVStorageSaveData done [17:24:14]ExternCall_PrintAddStr [17:24:14]wPrintStart [17:24:14]Write to MH i2c: 01 00 00 33 20 53 [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: 01 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: 01 07 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: 01 07 00 33 20 00 00 00 00 00 FF 0F 68 [17:24:14]RasterBufferAndPrint [17:24:15]line Счет N : (3)343890 [17:24:15]line ИНН: 02508201610067 [17:24:15]line Контрольно-Кассовый Чек [17:24:15]line ПРОДАЖА [17:24:15]line Товар: 4700040114137 [17:24:15]line Султан чай 1л. зел лимон [17:24:15]line 1.000 * 65.00 [17:24:15]line = 65.00 [17:24:15]line НДС 12% НСП 1% [17:24:15]line > о реализуемом товаре [17:24:15]line Товар: 4860019001339 [17:24:15]line Вода Боржоми 0,33л ст [17:24:15]line 2.000 * 87.00 [17:24:15]line = 174.00 [17:24:15]line НДС 12% НСП 1% [17:24:15]line > о реализуемом товаре [17:24:15]line ИТОГО: 239.00 [17:24:15]line НСП 1% : 2.11 [17:24:15]line НДС 12% : 25.38 [17:24:15]line Наличными: 239.00 [17:24:15]line Безнал.: 0.00 [17:24:15]line Место: АЗС № 90 "Партнер Нефть" [17:24:15]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:24:15]line СНО: Общий режим [17:24:15]line Чек 170 22.09.2024 17:24 [17:24:15]line Смена: 471 ФФД: 1.0 [17:24:15]line ЗНМ: 0300000120 [17:24:15]line РНМ: 0000000000091831 [17:24:15]line Версия ККМ: 001 [17:24:15]line ФМ: 0000000000871830 [17:24:15]line ФД: 115452 [17:24:15]line ФПД: 183825124945970 [17:24:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T172415&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115452&fm=183825124945970&tin=02508201610067®Number=0000000000091831&sum=23900 [17:24:15]line 0 [17:24:15]OFD Sender: Processing packet 115452 [packets to send 481, broken 480] [17:24:15]ProducePacketName [17:24:15]name=ofd_packets/00115452 [17:24:15]OFD Sender: To server: pG, [17:24:15]CommunicateWithHost lk.salyk.kg:30040 [17:24:15]ConnectInit lk.salyk.kg [17:24:15]written 0, free lines is 4095 [17:24:15]Connected sock=10 [17:24:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9B 01 00 00 85 0A 93 01 70 19 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 F8 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 BF 52 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FC C2 01 00 35 04 06 00 A7 30 1F 45 F0 32 CE EC 24 F4 56 91 9C 4F [17:24:15]Write to MH i2c: 01 00 00 60 20 80 [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: 01 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: 01 07 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: 01 07 00 60 20 00 00 00 00 00 1C 0C AF [17:24:15]RasterBufferAndPrint [17:24:15]line [17:24:15]line [17:24:15]line [17:24:15]line [17:24:15]line [17:24:15]written 0, free lines is 3102 [17:24:15]MH_Cut [17:24:15]Write to MH i2c: D1 01 00 67 20 01 59 [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: D1 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: D1 01 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: D1 01 00 67 20 00 58 [17:24:15]Write to MH i2c: 01 00 00 68 20 88 [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6C 0F 47 00 1D E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FC C2 01 00 F4 03 04 00 04 F8 EF 66 B6 04 01 00 00 3F D9 CE 76 AC D3 00 76 [17:24:15]CommunicateWithHost err = 0 [17:24:15]CheckOFDResponse [17:24:15]1017 (14) - 77093643461234 [17:24:15]1041 (16) - 0000000000871830 [17:24:15]1040 (4) - 115452 [17:24:15]1012 (4) - 22.09.2024 10:57 [17:24:15]1206 (1) - 0 [17:24:15]OFD Sender: Remove packet 115452 [17:24:15]ProducePacketName [17:24:15]name=ofd_packets/00115452 [17:24:15]NVStorageDeleteData [17:24:16]OFD Sender: No OFD packet to send [17:24:17]*** Cut start [17:24:17]*** Partial cut [17:24:17]*** CUTSNS_PIN = 1 [17:24:17]*** CUTSNS_PIN = 0 [17:24:17]*** Brake cut motor [17:24:17]Read from MH i2c: 01 [17:24:17]MH_I2C_Read... [17:24:17]*** Stop cut motor [17:24:17]*** Cut end [17:24:17]Read from MH i2c: 01 07 00 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: 01 07 00 68 20 00 00 00 00 00 FF 0F 9D [17:24:17]process_action close_receipt done [17:24:17]requested_data is exist [17:24:17]produce_requested_data [17:24:17]requested_item fm.sn is exist - process it [17:24:17]wFMCommunicate request_size=4 [17:24:17]MH_SAM_APDU [17:24:17]CAPDU: 80 11 00 00 [17:24:17]Write to MH i2c: E2 08 00 69 20 80 11 00 00 00 00 00 00 03 [17:24:17]Write i2c OK [17:24:17]MH_I2C_Read... [17:24:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:17]Read from MH i2c: E2 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 17 00 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 17 00 69 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 51 [17:24:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:24:17]wFMCommunicate OK [17:24:17]requested_item fd.num is exist - process it [17:24:17]SAM_PROTO_GetFieldsCounters [17:24:17]wFMCommunicate request_size=4 [17:24:17]MH_SAM_APDU [17:24:17]CAPDU: 80 13 00 00 [17:24:17]Write to MH i2c: E2 08 00 6A 20 80 13 00 00 00 00 00 00 06 [17:24:17]Write i2c OK [17:24:17]MH_I2C_Read... [17:24:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:17]Read from MH i2c: E2 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 62 00 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 62 00 6A 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FC C2 01 00 0E 04 04 00 D7 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 B4 [17:24:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FC C2 01 00 0E 04 04 00 D7 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 [17:24:17]wFMCommunicate OK [17:24:17]SAM_PROTO_GetFieldsCounters done [17:24:17]requested_item shift.num is exist - process it [17:24:17]requested_item shift.opened is exist - process it [17:24:17]req_shift_opened [17:24:17]FM_GetShiftState [17:24:17]SAM_PROTO_GetShiftState [17:24:17]wFMCommunicate request_size=4 [17:24:17]MH_SAM_APDU [17:24:17]CAPDU: 80 13 01 00 [17:24:17]Write to MH i2c: E2 08 00 6B 20 80 13 01 00 00 00 00 00 08 [17:24:17]Write i2c OK [17:24:17]MH_I2C_Read... [17:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:17]Read from MH i2c: E2 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 0E 00 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 0E 00 6B 20 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 21 [17:24:17]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:24:17]wFMCommunicate OK [17:24:17]SAM_PROTO_GetShiftState done [17:24:17]FM_GetShiftState done [17:24:17]req_shift_opened done [17:24:17]requested_item shift.open_date is exist - process it [17:24:17]req_shift_open_date [17:24:17]req_shift_open_date done [17:24:17]produce_requested_data done [17:24:17]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115452,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [17:24:17]process_action_free close_receipt [17:24:17]json_value_free [17:24:17]json_value_free done [17:24:17]process_json_proto returns [17:24:17]Send response to host [17:24:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115452,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [17:24:17]free response buf [17:24:17]execute_script done [17:24:17]execute_script returns [17:24:17]free content buf [17:24:17]Sock 8.Close socket [17:24:17]Sock 8.Thread stoped [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]accept exits with 9 [17:26:41]New connection [17:26:41]New thread 3066826084 created [17:26:41]Thread 3066682724 joined [17:26:41]Waiting for new connection... [17:26:41] Sock 9.Parse request [17:26:41]Sock 9.Check first char [17:26:41]Sock 9.First char is OK [17:26:41]request: POST /json_proto HTTP/1.0 [17:26:41]Method: POST [17:26:41]URL: /json_proto [17:26:41]Method is POST - this is cgi request [17:26:41]url: /json_proto [17:26:41]query_string will be loaded in cgi processing [17:26:41]execute_cgi json_proto POST (null) [17:26:41]execute_cgi path=json_proto method=POST [17:26:41]POST find Content-Length [17:26:41]Host: 172.17.41.136:8080 [17:26:41]Content-Length: 1366 [17:26:41]Content-Type: application/json [17:26:41] [17:26:41]POST finish read [17:26:41]Found Content-Length = 1366 [17:26:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343891", "tax_sys" : 0, "items" : [ { "code": "8904103304060", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 ITEX \u0436\u0435\u0432 \u0440\u0435\u0437\u0438\u043D\u043A\u0430 3 \u0448\u0442", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 295.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:41]execute_script... [17:26:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343891", "tax_sys" : 0, "items" : [ { "code": "8904103304060", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 ITEX \u0436\u0435\u0432 \u0440\u0435\u0437\u0438\u043D\u043A\u0430 3 \u0448\u0442", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 295.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:41]POST & json_proto [17:26:41]process_json_proto [17:26:41]json parsed OK: [17:26:41]protocol is kg_v1.0 [17:26:41]action value=close_receipt [17:26:41]process_action close_receipt [17:26:41]cmd_close_receipt [17:26:41]MH_GetDate [17:26:41]Write to MH i2c: F0 00 00 6C 20 7B [17:26:41]Write i2c OK [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: F0 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: F0 09 00 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: F0 09 00 6C 20 00 53 53 F0 66 1B D0 5A 64 29 [17:26:41]GetLastDocTimeStamp 1727025855 [17:26:41]current date 1727026003 [17:26:41]FM_GetShiftState [17:26:41]SAM_PROTO_GetShiftState [17:26:41]wFMCommunicate request_size=4 [17:26:41]MH_SAM_APDU [17:26:41]CAPDU: 80 13 01 00 [17:26:41]Write to MH i2c: E2 08 00 6D 20 80 13 01 00 00 00 00 00 0A [17:26:41]Write i2c OK [17:26:41]MH_I2C_Read... [17:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:41]Read from MH i2c: E2 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: E2 0E 00 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: E2 0E 00 6D 20 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 23 [17:26:41]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:26:41]wFMCommunicate OK [17:26:41]SAM_PROTO_GetShiftState done [17:26:41]FM_GetShiftState done [17:26:41]opened in 1726965840 [17:26:41]opened+sec_in_day 1727052240 [17:26:41]quantity*price = 14000 [17:26:41]sum+1 = 14001 [17:26:41]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 54491472 Напиток Кока-Кола 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 295.00 НСП 1% : 2.61 НДС 12% : 31.33 Наличными: 0.00 Безнал.: 295.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 171 22.09.2024 17:26 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115453 ФПД: 70438792001534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T172643&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115453&fm=70438792001534&tin=02508201610067®Number=0000000000091831&sum=29500 0 [17:26:42]StoreToDocumentArchive [17:26:42]shift 471 fd 115453 [17:26:42]save to /storage/0471/doc_00115453 [17:26:42]save last doc name /storage/0471/doc_00115453 to /storage/kkm_last_doc_name [17:26:42]save OK [17:26:42]Clear old archive folders... [17:26:42]ProcessDocumentItem done err = 0, tmpTLVsize=501 [17:26:42]tlvbuf is 01C89770 [17:26:42]SAM_PROTO_ClearQueue [17:26:42]wFMCommunicate request_size=4 [17:26:42]MH_SAM_APDU [17:26:42]CAPDU: 80 09 00 00 [17:26:42]Write to MH i2c: E2 08 00 7A 20 80 09 00 00 00 00 00 00 0C [17:26:42]Write i2c OK [17:26:42]MH_I2C_Read... [17:26:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:42]Read from MH i2c: E2 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: E2 03 00 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: E2 03 00 7A 20 00 90 00 0E [17:26:42]RAPDU: 90 00 [17:26:42]wFMCommunicate OK [17:26:42]SAM_PROTO_ClearQueue done [17:26:42]KKMCreateOFDPacket [17:26:42]OFDProtocolAddRootSTLVToBuf [17:26:42]FM_MakeSignedData [17:26:42]FM_MakeSignedData [17:26:42]SAM_PROTO_SignData [17:26:42]wFMCommunicate request_size=4 [17:26:42]MH_SAM_APDU [17:26:42]CAPDU: 80 0D 01 02 [17:26:42]Write to MH i2c: E2 08 00 7B 20 80 0D 01 02 00 00 00 00 14 [17:26:42]Write i2c OK [17:26:42]MH_I2C_Read... [17:26:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:42]Read from MH i2c: E2 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: E2 03 00 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: E2 03 00 7B 20 00 90 00 0F [17:26:42]RAPDU: 90 00 [17:26:42]wFMCommunicate OK [17:26:42]wFMCommunicate request_size=255 [17:26:42]MH_SAM_APDU [17:26:42]CAPDU: 80 0D 02 02 FA 03 00 F5 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 [17:26:42]Write to MH i2c: E2 02 01 7C 20 80 0D 02 02 FA 00 03 00 F5 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 00 00 C6 [17:26:42]Write i2c OK [17:26:42]MH_I2C_Read... [17:26:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:43]Read from MH i2c: E2 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 03 00 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 03 00 7C 20 00 90 00 10 [17:26:43]RAPDU: 90 00 [17:26:43]wFMCommunicate OK [17:26:43]wFMCommunicate request_size=255 [17:26:43]MH_SAM_APDU [17:26:43]CAPDU: 80 0D 02 02 FA 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 73 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 53 53 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FD C2 01 00 35 04 06 00 40 [17:26:43]Write to MH i2c: E2 02 01 7D 20 80 0D 02 02 FA 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 73 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 53 53 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FD C2 01 00 35 04 06 00 40 00 00 C6 [17:26:43]Write i2c OK [17:26:43]MH_I2C_Read... [17:26:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:43]Read from MH i2c: E2 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 03 00 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 03 00 7D 20 00 90 00 11 [17:26:43]RAPDU: 90 00 [17:26:43]wFMCommunicate OK [17:26:43]wFMCommunicate request_size=10 [17:26:43]MH_SAM_APDU [17:26:43]CAPDU: 80 0D 02 02 05 10 4F 2C F7 FE [17:26:43]Write to MH i2c: E2 0D 00 7E 20 80 0D 02 02 05 00 10 4F 2C F7 FE 00 00 A2 [17:26:43]Write i2c OK [17:26:43]MH_I2C_Read... [17:26:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:43]Read from MH i2c: E2 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 03 00 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 03 00 7E 20 00 90 00 12 [17:26:43]RAPDU: 90 00 [17:26:43]wFMCommunicate OK [17:26:43]wFMCommunicate request_size=4 [17:26:43]MH_SAM_APDU [17:26:43]CAPDU: 80 0D 03 02 [17:26:43]Write to MH i2c: E2 08 00 7F 20 80 0D 03 02 00 00 00 00 1A [17:26:43]Write i2c OK [17:26:43]MH_I2C_Read... [17:26:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:43]Read from MH i2c: E2 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 0B 00 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 0B 00 7F 20 00 46 11 F1 90 0D AE 4C 64 90 00 5E [17:26:43]RAPDU: 46 11 F1 90 0D AE 4C 64 90 00 [17:26:43]wFMCommunicate OK [17:26:43]SAM_PROTO_SignData done [17:26:43]FM_MakeSignedData done [17:26:43]CreateOFDProtocolMessage [17:26:43]wFMCommunicate request_size=4 [17:26:43]MH_SAM_APDU [17:26:43]CAPDU: 80 11 00 00 [17:26:43]Write to MH i2c: E2 08 00 80 20 80 11 00 00 00 00 00 00 1A [17:26:43]Write i2c OK [17:26:43]MH_I2C_Read... [17:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:43]Read from MH i2c: E2 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 17 00 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 17 00 80 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 68 [17:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:26:43]wFMCommunicate OK [17:26:43]CreateOFDProtocolMessage done [17:26:43]OFDSenderStorePacket 115453 [17:26:43]StoreOFDPacket docnum=115453 [17:26:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 09 02 00 00 5C 66 01 02 91 22 5A 03 01 00 03 00 F5 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 73 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 53 53 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FD C2 01 00 35 04 06 00 40 10 4F 2C F7 FE 46 11 F1 90 0D AE 4C 64 [17:26:43]CheckFolder [17:26:43]dirname=/storage/ofd_packets [17:26:43]CheckFolder done [17:26:43]ProducePacketName [17:26:43]name=ofd_packets/00115453 [17:26:43]NVStorageSaveData ofd_packets/00115453 [17:26:43]File name is /storage/ofd_packets/00115453 [17:26:43]Write 551 bytes [17:26:43]NVStorageSaveData done [17:26:43]OFDSenderStorePacket done [17:26:43]KKMCreateOFDPacket done [17:26:43]NVStorageSaveData kkm_last_timestamp [17:26:43]File name is /storage/kkm_last_timestamp [17:26:43]Write 4 bytes [17:26:43]NVStorageSaveData done [17:26:43]ExternCall_PrintAddStr [17:26:43]wPrintStart [17:26:43]Write to MH i2c: 01 00 00 81 20 A1 [17:26:43]OFD Sender: Processing packet 115453 [packets to send 481, broken 480] [17:26:43]ProducePacketName [17:26:43]name=ofd_packets/00115453 [17:26:43]Write i2c OK [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: 01 [17:26:43]MH_I2C_Read... [17:26:43]OFD Sender: To server: pG, [17:26:43]CommunicateWithHost lk.salyk.kg:30040 [17:26:43]ConnectInit lk.salyk.kg [17:26:43]Read from MH i2c: 01 07 00 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: 01 07 00 81 20 00 00 00 00 00 FF 0F B6 [17:26:43]RasterBufferAndPrint [17:26:43]line Счет N : (3)343891 [17:26:43]line ИНН: 02508201610067 [17:26:43]line Контрольно-Кассовый Чек [17:26:43]line ПРОДАЖА [17:26:43]line Товар: 8904103304060 [17:26:43]line Презерватив ITEX жев резинка 3 шт [17:26:43]line 1.000 * 140.00 [17:26:43]line = 140.00 [17:26:43]line НДС 12% НСП 1% [17:26:43]line > о реализуемом товаре [17:26:43]line Товар: 54491472 [17:26:43]line Напиток Кока-Кола 0,5л [17:26:43]line 1.000 * 75.00 [17:26:43]line = 75.00 [17:26:43]line НДС 12% НСП 1% [17:26:43]line > о реализуемом товаре [17:26:43]line Товар: 4870001570057 [17:26:43]line Напиток Pepsi 0,5л [17:26:43]line 1.000 * 80.00 [17:26:43]line = 80.00 [17:26:43]line НДС 12% НСП 1% [17:26:43]line > о реализуемом товаре [17:26:43]line ИТОГО: 295.00 [17:26:43]line НСП 1% : 2.61 [17:26:43]line НДС 12% : 31.33 [17:26:43]line Наличными: 0.00 [17:26:43]line Безнал.: 295.00 [17:26:43]line Место: АЗС № 90 "Партнер Нефть" [17:26:43]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:26:43]line СНО: Общий режим [17:26:43]line Чек 171 22.09.2024 17:26 [17:26:43]line Смена: 471 ФФД: 1.0 [17:26:43]line ЗНМ: 0300000120 [17:26:43]line РНМ: 0000000000091831 [17:26:43]line Версия ККМ: 001 [17:26:43]line Платежная система: O! деньги [17:26:43]line ФМ: 0000000000871830 [17:26:43]line ФД: 115453 [17:26:43]line ФПД: 70438792001534 [17:26:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T172643&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115453&fm=70438792001534&tin=02508201610067®Number=0000000000091831&sum=29500 [17:26:43]line 0 [17:26:43]written 0, free lines is 4095 [17:26:43]Connected sock=10 [17:26:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 09 02 00 00 5C 66 01 02 91 22 5A 03 01 00 03 00 F5 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 73 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 53 53 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FD C2 01 00 35 04 06 00 40 10 4F 2C F7 FE 46 11 F1 90 0D AE 4C 64 [17:26:44]Write to MH i2c: 01 00 00 B7 20 D7 [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: 01 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: 01 07 00 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: 01 07 00 B7 20 00 00 00 00 00 57 0B 40 [17:26:44]RasterBufferAndPrint [17:26:44]line [17:26:44]line [17:26:44]line [17:26:44]line [17:26:44]line [17:26:44]written 0, free lines is 2909 [17:26:44]MH_Cut [17:26:44]Write to MH i2c: D1 01 00 BE 20 01 B0 [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: D1 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: D1 01 00 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: D1 01 00 BE 20 00 AF [17:26:44]Write to MH i2c: 01 00 00 BF 20 DF [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 9D 9D 47 00 DB 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FD C2 01 00 F4 03 04 00 99 F8 EF 66 B6 04 01 00 00 80 81 7F 31 88 B2 18 1A [17:26:44]CommunicateWithHost err = 0 [17:26:44]CheckOFDResponse [17:26:44]1017 (14) - 77093643461234 [17:26:44]1041 (16) - 0000000000871830 [17:26:44]1040 (4) - 115453 [17:26:44]1012 (4) - 22.09.2024 10:59 [17:26:44]1206 (1) - 0 [17:26:44]OFD Sender: Remove packet 115453 [17:26:44]ProducePacketName [17:26:44]name=ofd_packets/00115453 [17:26:44]NVStorageDeleteData [17:26:44]OFD Sender: No OFD packet to send [17:26:45]*** Cut start [17:26:45]*** Partial cut [17:26:45]*** CUTSNS_PIN = 1 [17:26:45]*** CUTSNS_PIN = 0 [17:26:46]*** Brake cut motor [17:26:46]Read from MH i2c: 01 [17:26:46]MH_I2C_Read... [17:26:46]*** Stop cut motor [17:26:46]*** Cut end [17:26:46]Read from MH i2c: 01 07 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: 01 07 00 BF 20 00 00 00 00 00 FF 0F F4 [17:26:46]process_action close_receipt done [17:26:46]requested_data is exist [17:26:46]produce_requested_data [17:26:46]requested_item fm.sn is exist - process it [17:26:46]wFMCommunicate request_size=4 [17:26:46]MH_SAM_APDU [17:26:46]CAPDU: 80 11 00 00 [17:26:46]Write to MH i2c: E2 08 00 C0 20 80 11 00 00 00 00 00 00 5A [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:46]Read from MH i2c: E2 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 17 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 17 00 C0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A8 [17:26:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:26:46]wFMCommunicate OK [17:26:46]requested_item fd.num is exist - process it [17:26:46]SAM_PROTO_GetFieldsCounters [17:26:46]wFMCommunicate request_size=4 [17:26:46]MH_SAM_APDU [17:26:46]CAPDU: 80 13 00 00 [17:26:46]Write to MH i2c: E2 08 00 C1 20 80 13 00 00 00 00 00 00 5D [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:46]Read from MH i2c: E2 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 62 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 62 00 C1 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FD C2 01 00 0E 04 04 00 D7 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 0F [17:26:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FD C2 01 00 0E 04 04 00 D7 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 [17:26:46]wFMCommunicate OK [17:26:46]SAM_PROTO_GetFieldsCounters done [17:26:46]requested_item shift.num is exist - process it [17:26:46]requested_item shift.opened is exist - process it [17:26:46]req_shift_opened [17:26:46]FM_GetShiftState [17:26:46]SAM_PROTO_GetShiftState [17:26:46]wFMCommunicate request_size=4 [17:26:46]MH_SAM_APDU [17:26:46]CAPDU: 80 13 01 00 [17:26:46]Write to MH i2c: E2 08 00 C2 20 80 13 01 00 00 00 00 00 5F [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:46]Read from MH i2c: E2 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 0E 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 0E 00 C2 20 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 78 [17:26:46]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:26:46]wFMCommunicate OK [17:26:46]SAM_PROTO_GetShiftState done [17:26:46]FM_GetShiftState done [17:26:46]req_shift_opened done [17:26:46]requested_item shift.open_date is exist - process it [17:26:46]req_shift_open_date [17:26:46]req_shift_open_date done [17:26:46]produce_requested_data done [17:26:46]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115453,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [17:26:46]process_action_free close_receipt [17:26:46]json_value_free [17:26:46]json_value_free done [17:26:46]process_json_proto returns [17:26:46]Send response to host [17:26:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115453,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [17:26:46]free response buf [17:26:46]execute_script done [17:26:46]execute_script returns [17:26:46]free content buf [17:26:46]Sock 9.Close socket [17:26:46]Sock 9.Thread stoped [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [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:08]accept exits with 8 [17:28:08]New connection [17:28:08]New thread 3066682724 created [17:28:08]Thread 3066826084 joined [17:28:08]Waiting for new connection... [17:28:08] Sock 8.Parse request [17:28:08]Sock 8.Check first char [17:28:08]Sock 8.First char is OK [17:28:08]request: POST /json_proto HTTP/1.0 [17:28:08]Method: POST [17:28:08]URL: /json_proto [17:28:08]Method is POST - this is cgi request [17:28:08]url: /json_proto [17:28:08]query_string will be loaded in cgi processing [17:28:08]execute_cgi json_proto POST (null) [17:28:08]execute_cgi path=json_proto method=POST [17:28:08]POST find Content-Length [17:28:08]Host: 172.17.41.136:8080 [17:28:08]Content-Length: 883 [17:28:08]Content-Type: application/json [17:28:08] [17:28:08]POST finish read [17:28:08]Found Content-Length = 883 [17:28:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343892", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 204.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:08]execute_script... [17:28:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343892", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 204.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:08]POST & json_proto [17:28:08]process_json_proto [17:28:08]json parsed OK: [17:28:08]protocol is kg_v1.0 [17:28:08]action value=close_receipt [17:28:08]process_action close_receipt [17:28:08]cmd_close_receipt [17:28:08]MH_GetDate [17:28:08]Write to MH i2c: F0 00 00 C3 20 D2 [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: F0 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: F0 09 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: F0 09 00 C3 20 00 AA 53 F0 66 1B D0 5A 64 D7 [17:28:08]GetLastDocTimeStamp 1727026003 [17:28:08]current date 1727026090 [17:28:08]FM_GetShiftState [17:28:08]SAM_PROTO_GetShiftState [17:28:08]wFMCommunicate request_size=4 [17:28:08]MH_SAM_APDU [17:28:08]CAPDU: 80 13 01 00 [17:28:08]Write to MH i2c: E2 08 00 C4 20 80 13 01 00 00 00 00 00 61 [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:08]Read from MH i2c: E2 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 0E 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 0E 00 C4 20 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 7A [17:28:08]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:28:08]wFMCommunicate OK [17:28:08]SAM_PROTO_GetShiftState done [17:28:08]FM_GetShiftState done [17:28:08]opened in 1726965840 [17:28:08]opened+sec_in_day 1727052240 [17:28:08]quantity*price = 6000 [17:28:08]sum+1 = 6001 [17:28:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 204.00 НСП 1% : 1.80 НДС 12% : 21.66 Наличными: 204.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 172 22.09.2024 17:28 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115454 ФПД: 110111036658824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T172810&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115454&fm=110111036658824&tin=02508201610067®Number=0000000000091831&sum=20400 0 [17:28:09]StoreToDocumentArchive [17:28:09]shift 471 fd 115454 [17:28:09]save to /storage/0471/doc_00115454 [17:28:09]save last doc name /storage/0471/doc_00115454 to /storage/kkm_last_doc_name [17:28:09]save OK [17:28:09]Clear old archive folders... [17:28:09]ProcessDocumentItem done err = 0, tmpTLVsize=379 [17:28:09]tlvbuf is B6EBB9D0 [17:28:09]SAM_PROTO_ClearQueue [17:28:09]wFMCommunicate request_size=4 [17:28:09]MH_SAM_APDU [17:28:09]CAPDU: 80 09 00 00 [17:28:09]Write to MH i2c: E2 08 00 D1 20 80 09 00 00 00 00 00 00 63 [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:09]Read from MH i2c: E2 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 03 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 03 00 D1 20 00 90 00 65 [17:28:09]RAPDU: 90 00 [17:28:09]wFMCommunicate OK [17:28:09]SAM_PROTO_ClearQueue done [17:28:09]KKMCreateOFDPacket [17:28:09]OFDProtocolAddRootSTLVToBuf [17:28:09]FM_MakeSignedData [17:28:09]FM_MakeSignedData [17:28:09]SAM_PROTO_SignData [17:28:09]wFMCommunicate request_size=4 [17:28:09]MH_SAM_APDU [17:28:09]CAPDU: 80 0D 01 02 [17:28:09]Write to MH i2c: E2 08 00 D2 20 80 0D 01 02 00 00 00 00 6B [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:09]Read from MH i2c: E2 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 03 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 03 00 D2 20 00 90 00 66 [17:28:09]RAPDU: 90 00 [17:28:09]wFMCommunicate OK [17:28:09]wFMCommunicate request_size=255 [17:28:09]MH_SAM_APDU [17:28:09]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 00 00 00 00 [17:28:09]Write to MH i2c: E2 02 01 D3 20 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 00 00 00 00 00 00 3A [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:09]Read from MH i2c: E2 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 03 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 03 00 D3 20 00 90 00 67 [17:28:09]RAPDU: 90 00 [17:28:09]wFMCommunicate OK [17:28:09]wFMCommunicate request_size=138 [17:28:09]MH_SAM_APDU [17:28:09]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 B0 4F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 AA 53 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FE C2 01 00 35 04 06 00 64 25 39 39 D4 88 [17:28:09]Write to MH i2c: E2 8D 00 D4 20 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 B0 4F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 AA 53 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FE C2 01 00 35 04 06 00 64 25 39 39 D4 88 00 00 09 [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:09]Read from MH i2c: E2 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 03 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 03 00 D4 20 00 90 00 68 [17:28:09]RAPDU: 90 00 [17:28:09]wFMCommunicate OK [17:28:09]wFMCommunicate request_size=4 [17:28:09]MH_SAM_APDU [17:28:09]CAPDU: 80 0D 03 02 [17:28:09]Write to MH i2c: E2 08 00 D5 20 80 0D 03 02 00 00 00 00 70 [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:09]Read from MH i2c: E2 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 0B 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 0B 00 D5 20 00 9C C9 25 83 2D 5F 09 34 90 00 47 [17:28:09]RAPDU: 9C C9 25 83 2D 5F 09 34 90 00 [17:28:09]wFMCommunicate OK [17:28:09]SAM_PROTO_SignData done [17:28:09]FM_MakeSignedData done [17:28:09]CreateOFDProtocolMessage [17:28:09]wFMCommunicate request_size=4 [17:28:09]MH_SAM_APDU [17:28:09]CAPDU: 80 11 00 00 [17:28:09]Write to MH i2c: E2 08 00 D6 20 80 11 00 00 00 00 00 00 70 [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:09]Read from MH i2c: E2 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 17 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 17 00 D6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BE [17:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:28:09]wFMCommunicate OK [17:28:09]CreateOFDProtocolMessage done [17:28:09]OFDSenderStorePacket 115454 [17:28:09]StoreOFDPacket docnum=115454 [17:28:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8F 01 00 00 9A 46 87 01 B3 C0 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 B0 4F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 AA 53 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FE C2 01 00 35 04 06 00 64 25 39 39 D4 88 9C C9 25 83 2D 5F 09 34 [17:28:09]CheckFolder [17:28:09]dirname=/storage/ofd_packets [17:28:09]CheckFolder done [17:28:09]ProducePacketName [17:28:09]name=ofd_packets/00115454 [17:28:09]NVStorageSaveData ofd_packets/00115454 [17:28:09]File name is /storage/ofd_packets/00115454 [17:28:09]Write 429 bytes [17:28:09]NVStorageSaveData done [17:28:09]OFDSenderStorePacket done [17:28:09]KKMCreateOFDPacket done [17:28:09]NVStorageSaveData kkm_last_timestamp [17:28:09]File name is /storage/kkm_last_timestamp [17:28:09]Write 4 bytes [17:28:09]NVStorageSaveData done [17:28:09]ExternCall_PrintAddStr [17:28:09]wPrintStart [17:28:09]Write to MH i2c: 01 00 00 D7 20 F7 [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: 01 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: 01 07 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: 01 07 00 D7 20 00 00 00 00 00 FF 0F 0C [17:28:09]RasterBufferAndPrint [17:28:09]line Счет N : (3)343892 [17:28:09]line ИНН: 02508201610067 [17:28:09]line Контрольно-Кассовый Чек [17:28:09]line ПРОДАЖА [17:28:09]line Товар: 4700000310043 [17:28:09]line Вода Жалалабат 27 1л [17:28:09]line 1.000 * 60.00 [17:28:09]line = 60.00 [17:28:09]line НДС 12% НСП 1% [17:28:09]line > о реализуемом товаре [17:28:09]line Товар: 48743570 [17:28:09]line Сигареты Winston XStyle Blue [17:28:09]line 1.000 * 144.00 [17:28:09]line = 144.00 [17:28:09]line НДС 12% НСП 1% [17:28:09]line > о реализуемом товаре [17:28:09]line ИТОГО: 204.00 [17:28:09]line НСП 1% : 1.80 [17:28:09]line НДС 12% : 21.66 [17:28:09]line Наличными: 204.00 [17:28:09]line Безнал.: 0.00 [17:28:09]line Место: АЗС № 90 "Партнер Нефть" [17:28:09]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:28:09]line СНО: Общий режим [17:28:09]line Чек 172 22.09.2024 17:28 [17:28:09]line Смена: 471 ФФД: 1.0 [17:28:09]line ЗНМ: 0300000120 [17:28:09]line РНМ: 0000000000091831 [17:28:09]line Версия ККМ: 001 [17:28:09]line ФМ: 0000000000871830 [17:28:09]line ФД: 115454 [17:28:09]line ФПД: 110111036658824 [17:28:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T172810&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115454&fm=110111036658824&tin=02508201610067®Number=0000000000091831&sum=20400 [17:28:10]line 0 [17:28:10]OFD Sender: Processing packet 115454 [packets to send 481, broken 480] [17:28:10]ProducePacketName [17:28:10]name=ofd_packets/00115454 [17:28:10]OFD Sender: To server: pG, [17:28:10]CommunicateWithHost lk.salyk.kg:30040 [17:28:10]ConnectInit lk.salyk.kg [17:28:10]written 0, free lines is 4095 [17:28:10]Connected sock=10 [17:28:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8F 01 00 00 9A 46 87 01 B3 C0 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 B0 4F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 AA 53 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FE C2 01 00 35 04 06 00 64 25 39 39 D4 88 9C C9 25 83 2D 5F 09 34 [17:28:10]Write to MH i2c: 01 00 00 04 21 25 [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: 01 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: 01 07 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: 01 07 00 04 21 00 00 00 00 00 23 0C 5B [17:28:10]RasterBufferAndPrint [17:28:10]line [17:28:10]line [17:28:10]line [17:28:10]line [17:28:10]line [17:28:10]written 0, free lines is 3110 [17:28:10]MH_Cut [17:28:10]Write to MH i2c: D1 01 00 0B 21 01 FE [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: D1 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: D1 01 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: D1 01 00 0B 21 00 FD [17:28:10]Write to MH i2c: 01 00 00 0C 21 2D [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 4A 9B 47 00 94 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FE C2 01 00 F4 03 04 00 F0 F8 EF 66 B6 04 01 00 00 A5 D8 55 D2 CF 47 4D 95 [17:28:10]CommunicateWithHost err = 0 [17:28:10]CheckOFDResponse [17:28:10]1017 (14) - 77093643461234 [17:28:10]1041 (16) - 0000000000871830 [17:28:10]1040 (4) - 115454 [17:28:10]1012 (4) - 22.09.2024 11:01 [17:28:10]1206 (1) - 0 [17:28:10]OFD Sender: Remove packet 115454 [17:28:10]ProducePacketName [17:28:10]name=ofd_packets/00115454 [17:28:10]NVStorageDeleteData [17:28:11]OFD Sender: No OFD packet to send [17:28:12]*** Cut start [17:28:12]*** Partial cut [17:28:12]*** CUTSNS_PIN = 1 [17:28:12]*** CUTSNS_PIN = 0 [17:28:12]*** Brake cut motor [17:28:12]Read from MH i2c: 01 [17:28:12]MH_I2C_Read... [17:28:12]*** Stop cut motor [17:28:12]*** Cut end [17:28:12]Read from MH i2c: 01 07 00 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: 01 07 00 0C 21 00 00 00 00 00 FF 0F 42 [17:28:12]process_action close_receipt done [17:28:12]requested_data is exist [17:28:12]produce_requested_data [17:28:12]requested_item fm.sn is exist - process it [17:28:12]wFMCommunicate request_size=4 [17:28:12]MH_SAM_APDU [17:28:12]CAPDU: 80 11 00 00 [17:28:12]Write to MH i2c: E2 08 00 0D 21 80 11 00 00 00 00 00 00 A8 [17:28:12]Write i2c OK [17:28:12]MH_I2C_Read... [17:28:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:12]Read from MH i2c: E2 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: E2 17 00 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: E2 17 00 0D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F6 [17:28:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:28:12]wFMCommunicate OK [17:28:12]requested_item fd.num is exist - process it [17:28:12]SAM_PROTO_GetFieldsCounters [17:28:12]wFMCommunicate request_size=4 [17:28:12]MH_SAM_APDU [17:28:12]CAPDU: 80 13 00 00 [17:28:12]Write to MH i2c: E2 08 00 0E 21 80 13 00 00 00 00 00 00 AB [17:28:12]Write i2c OK [17:28:12]MH_I2C_Read... [17:28:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:12]Read from MH i2c: E2 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: E2 62 00 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: E2 62 00 0E 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FE C2 01 00 0E 04 04 00 D7 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 61 [17:28:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FE C2 01 00 0E 04 04 00 D7 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 [17:28:12]wFMCommunicate OK [17:28:12]SAM_PROTO_GetFieldsCounters done [17:28:12]requested_item shift.num is exist - process it [17:28:12]requested_item shift.opened is exist - process it [17:28:12]req_shift_opened [17:28:12]FM_GetShiftState [17:28:12]SAM_PROTO_GetShiftState [17:28:12]wFMCommunicate request_size=4 [17:28:12]MH_SAM_APDU [17:28:12]CAPDU: 80 13 01 00 [17:28:12]Write to MH i2c: E2 08 00 0F 21 80 13 01 00 00 00 00 00 AD [17:28:12]Write i2c OK [17:28:12]MH_I2C_Read... [17:28:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:12]Read from MH i2c: E2 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: E2 0E 00 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: E2 0E 00 0F 21 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C6 [17:28:12]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:28:12]wFMCommunicate OK [17:28:12]SAM_PROTO_GetShiftState done [17:28:12]FM_GetShiftState done [17:28:12]req_shift_opened done [17:28:12]requested_item shift.open_date is exist - process it [17:28:12]req_shift_open_date [17:28:12]req_shift_open_date done [17:28:12]produce_requested_data done [17:28:12]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115454,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [17:28:12]process_action_free close_receipt [17:28:12]json_value_free [17:28:12]json_value_free done [17:28:12]process_json_proto returns [17:28:12]Send response to host [17:28:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115454,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [17:28:12]free response buf [17:28:12]execute_script done [17:28:12]execute_script returns [17:28:12]free content buf [17:28:12]Sock 8.Close socket [17:28:12]Sock 8.Thread stoped [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:11]OFD Sender: No OFD packet to send [17:29:16]OFD Sender: No OFD packet to send [17:29:21]OFD Sender: No OFD packet to send [17:29:26]OFD Sender: No OFD packet to send [17:29:31]OFD Sender: No OFD packet to send [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]OFD Sender: No OFD packet to send [17:29:51]OFD Sender: No OFD packet to send [17:29:56]OFD Sender: No OFD packet to send [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:26]OFD Sender: No OFD packet to send [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:26]OFD Sender: No OFD packet to send [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:56]OFD Sender: No OFD packet to send [17:32:01]OFD Sender: No OFD packet to send [17:32:06]OFD Sender: No OFD packet to send [17:32:11]OFD Sender: No OFD packet to send [17:32:16]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:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:03]accept exits with 9 [17:34:03]New connection [17:34:03]New thread 3066826084 created [17:34:03]Thread 3066682724 joined [17:34:03]Waiting for new connection... [17:34:03] Sock 9.Parse request [17:34:03]Sock 9.Check first char [17:34:03]Sock 9.First char is OK [17:34:03]request: POST /json_proto HTTP/1.0 [17:34:03]Method: POST [17:34:03]URL: /json_proto [17:34:03]Method is POST - this is cgi request [17:34:03]url: /json_proto [17:34:03]query_string will be loaded in cgi processing [17:34:03]execute_cgi json_proto POST (null) [17:34:03]execute_cgi path=json_proto method=POST [17:34:03]POST find Content-Length [17:34:03]Host: 172.17.41.136:8080 [17:34:03]Content-Length: 955 [17:34:03]Content-Type: application/json [17:34:03] [17:34:03]POST finish read [17:34:03]Found Content-Length = 955 [17:34:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343893", "tax_sys" : 0, "items" : [ { "code": "4601025117702", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D 0,5", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:03]execute_script... [17:34:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343893", "tax_sys" : 0, "items" : [ { "code": "4601025117702", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D 0,5", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:03]POST & json_proto [17:34:03]process_json_proto [17:34:03]json parsed OK: [17:34:03]protocol is kg_v1.0 [17:34:03]action value=close_receipt [17:34:03]process_action close_receipt [17:34:03]cmd_close_receipt [17:34:03]MH_GetDate [17:34:03]Write to MH i2c: F0 00 00 10 21 20 [17:34:03]Write i2c OK [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: F0 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: F0 09 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: F0 09 00 10 21 00 0D 55 F0 66 1B D0 5A 64 8A [17:34:03]GetLastDocTimeStamp 1727026090 [17:34:03]current date 1727026445 [17:34:03]FM_GetShiftState [17:34:03]SAM_PROTO_GetShiftState [17:34:03]wFMCommunicate request_size=4 [17:34:03]MH_SAM_APDU [17:34:03]CAPDU: 80 13 01 00 [17:34:03]Write to MH i2c: E2 08 00 11 21 80 13 01 00 00 00 00 00 AF [17:34:03]Write i2c OK [17:34:03]MH_I2C_Read... [17:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:03]Read from MH i2c: E2 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 0E 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 0E 00 11 21 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C8 [17:34:03]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:34:03]wFMCommunicate OK [17:34:03]SAM_PROTO_GetShiftState done [17:34:03]FM_GetShiftState done [17:34:03]opened in 1726965840 [17:34:03]opened+sec_in_day 1727052240 [17:34:03]quantity*price = 8500 [17:34:03]sum+1 = 8501 [17:34:03]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.10 НДС 12% : 13.28 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 173 22.09.2024 17:34 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115455 ФПД: 73085009164527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T173405&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115455&fm=73085009164527&tin=02508201610067®Number=0000000000091831&sum=12500 0 [17:34:04]StoreToDocumentArchive [17:34:04]shift 471 fd 115455 [17:34:04]save to /storage/0471/doc_00115455 [17:34:04]save last doc name /storage/0471/doc_00115455 to /storage/kkm_last_doc_name [17:34:04]save OK [17:34:04]Clear old archive folders... [17:34:04]ProcessDocumentItem done err = 0, tmpTLVsize=397 [17:34:04]tlvbuf is 01C25850 [17:34:04]SAM_PROTO_ClearQueue [17:34:04]wFMCommunicate request_size=4 [17:34:04]MH_SAM_APDU [17:34:04]CAPDU: 80 09 00 00 [17:34:04]Write to MH i2c: E2 08 00 1E 21 80 09 00 00 00 00 00 00 B1 [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:04]Read from MH i2c: E2 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 03 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 03 00 1E 21 00 90 00 B3 [17:34:04]RAPDU: 90 00 [17:34:04]wFMCommunicate OK [17:34:04]SAM_PROTO_ClearQueue done [17:34:04]KKMCreateOFDPacket [17:34:04]OFDProtocolAddRootSTLVToBuf [17:34:04]FM_MakeSignedData [17:34:04]FM_MakeSignedData [17:34:04]SAM_PROTO_SignData [17:34:04]wFMCommunicate request_size=4 [17:34:04]MH_SAM_APDU [17:34:04]CAPDU: 80 0D 01 02 [17:34:04]Write to MH i2c: E2 08 00 1F 21 80 0D 01 02 00 00 00 00 B9 [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:04]Read from MH i2c: E2 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 03 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 03 00 1F 21 00 90 00 B4 [17:34:04]RAPDU: 90 00 [17:34:04]wFMCommunicate OK [17:34:04]wFMCommunicate request_size=255 [17:34:04]MH_SAM_APDU [17:34:04]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 [17:34:04]Write to MH i2c: E2 02 01 20 21 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 00 00 7D [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:04]Read from MH i2c: E2 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 03 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 03 00 20 21 00 90 00 B5 [17:34:04]RAPDU: 90 00 [17:34:04]wFMCommunicate OK [17:34:04]wFMCommunicate request_size=156 [17:34:04]MH_SAM_APDU [17:34:04]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 0D 55 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FF C2 01 00 35 04 06 00 42 78 6E 02 78 EF [17:34:04]Write to MH i2c: E2 9F 00 21 21 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 0D 55 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FF C2 01 00 35 04 06 00 42 78 6E 02 78 EF 00 00 42 [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:04]Read from MH i2c: E2 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 03 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 03 00 21 21 00 90 00 B6 [17:34:04]RAPDU: 90 00 [17:34:04]wFMCommunicate OK [17:34:04]wFMCommunicate request_size=4 [17:34:04]MH_SAM_APDU [17:34:04]CAPDU: 80 0D 03 02 [17:34:04]Write to MH i2c: E2 08 00 22 21 80 0D 03 02 00 00 00 00 BE [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:04]Read from MH i2c: E2 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 0B 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 0B 00 22 21 00 EF A5 D5 1A 89 5B 36 9D 90 00 F9 [17:34:04]RAPDU: EF A5 D5 1A 89 5B 36 9D 90 00 [17:34:04]wFMCommunicate OK [17:34:04]SAM_PROTO_SignData done [17:34:04]FM_MakeSignedData done [17:34:04]CreateOFDProtocolMessage [17:34:04]wFMCommunicate request_size=4 [17:34:04]MH_SAM_APDU [17:34:04]CAPDU: 80 11 00 00 [17:34:04]Write to MH i2c: E2 08 00 23 21 80 11 00 00 00 00 00 00 BE [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:04]Read from MH i2c: E2 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 17 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 17 00 23 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0C [17:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:34:04]wFMCommunicate OK [17:34:04]CreateOFDProtocolMessage done [17:34:04]OFDSenderStorePacket 115455 [17:34:04]StoreOFDPacket docnum=115455 [17:34:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A1 01 00 00 7C 8E 99 01 0C 48 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 0D 55 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FF C2 01 00 35 04 06 00 42 78 6E 02 78 EF EF A5 D5 1A 89 5B 36 9D [17:34:04]CheckFolder [17:34:04]dirname=/storage/ofd_packets [17:34:04]CheckFolder done [17:34:04]ProducePacketName [17:34:04]name=ofd_packets/00115455 [17:34:04]NVStorageSaveData ofd_packets/00115455 [17:34:04]File name is /storage/ofd_packets/00115455 [17:34:04]Write 447 bytes [17:34:04]NVStorageSaveData done [17:34:04]OFDSenderStorePacket done [17:34:04]KKMCreateOFDPacket done [17:34:04]NVStorageSaveData kkm_last_timestamp [17:34:04]File name is /storage/kkm_last_timestamp [17:34:04]Write 4 bytes [17:34:04]NVStorageSaveData done [17:34:04]ExternCall_PrintAddStr [17:34:04]wPrintStart [17:34:04]Write to MH i2c: 01 00 00 24 21 45 [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: 01 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: 01 07 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: 01 07 00 24 21 00 00 00 00 00 FF 0F 5A [17:34:04]RasterBufferAndPrint [17:34:04]line Счет N : (3)343893 [17:34:04]line ИНН: 02508201610067 [17:34:05]line Контрольно-Кассовый Чек [17:34:05]line ПРОДАЖА [17:34:05]line Товар: 4601025117702 [17:34:05]line Напиток Фрутмотив апельсин 0,5 [17:34:05]line 1.000 * 85.00 [17:34:05]line = 85.00 [17:34:05]line НДС 12% НСП 1% [17:34:05]line > о реализуемом товаре [17:34:05]line Товар: 4700000160211 [17:34:05]line Вода Легенда 0,5л [17:34:05]line 1.000 * 40.00 [17:34:05]line = 40.00 [17:34:05]line НДС 12% НСП 1% [17:34:05]line > о реализуемом товаре [17:34:05]line ИТОГО: 125.00 [17:34:05]line НСП 1% : 1.10 [17:34:05]line НДС 12% : 13.28 [17:34:05]line Наличными: 125.00 [17:34:05]line Безнал.: 0.00 [17:34:05]line Место: АЗС № 90 "Партнер Нефть" [17:34:05]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:34:05]line СНО: Общий режим [17:34:05]line Чек 173 22.09.2024 17:34 [17:34:05]line Смена: 471 ФФД: 1.0 [17:34:05]line ЗНМ: 0300000120 [17:34:05]line РНМ: 0000000000091831 [17:34:05]line Версия ККМ: 001 [17:34:05]line ФМ: 0000000000871830 [17:34:05]line ФД: 115455 [17:34:05]line ФПД: 73085009164527 [17:34:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T173405&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115455&fm=73085009164527&tin=02508201610067®Number=0000000000091831&sum=12500 [17:34:05]line 0 [17:34:05]OFD Sender: Processing packet 115455 [packets to send 481, broken 480] [17:34:05]ProducePacketName [17:34:05]name=ofd_packets/00115455 [17:34:05]OFD Sender: To server: pG, [17:34:05]CommunicateWithHost lk.salyk.kg:30040 [17:34:05]ConnectInit lk.salyk.kg [17:34:05]written 0, free lines is 4095 [17:34:05]Connected sock=10 [17:34:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A1 01 00 00 7C 8E 99 01 0C 48 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 0D 55 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FF C2 01 00 35 04 06 00 42 78 6E 02 78 EF EF A5 D5 1A 89 5B 36 9D [17:34:05]Write to MH i2c: 01 00 00 52 21 73 [17:34:05]Write i2c OK [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: 01 [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: 01 07 00 [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: 01 07 00 52 21 00 00 00 00 00 F3 0B 78 [17:34:05]RasterBufferAndPrint [17:34:05]line [17:34:05]line [17:34:05]line [17:34:05]line [17:34:05]line [17:34:05]written 0, free lines is 3063 [17:34:05]MH_Cut [17:34:05]Write to MH i2c: D1 01 00 59 21 01 4C [17:34:05]Write i2c OK [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: D1 [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: D1 01 00 [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: D1 01 00 59 21 00 4B [17:34:05]Write to MH i2c: 01 00 00 5A 21 7B [17:34:05]Write i2c OK [17:34:05]MH_I2C_Read... [17:34:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A9 05 47 00 5A D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FF C2 01 00 F4 03 04 00 53 FA EF 66 B6 04 01 00 00 65 3E 15 93 8E 42 7E ED [17:34:05]CommunicateWithHost err = 0 [17:34:05]CheckOFDResponse [17:34:05]1017 (14) - 77093643461234 [17:34:05]1041 (16) - 0000000000871830 [17:34:05]1040 (4) - 115455 [17:34:05]1012 (4) - 22.09.2024 11:06 [17:34:05]1206 (1) - 0 [17:34:05]OFD Sender: Remove packet 115455 [17:34:05]ProducePacketName [17:34:05]name=ofd_packets/00115455 [17:34:05]NVStorageDeleteData [17:34:06]OFD Sender: No OFD packet to send [17:34:07]*** Cut start [17:34:07]*** Partial cut [17:34:07]*** CUTSNS_PIN = 1 [17:34:07]*** CUTSNS_PIN = 0 [17:34:07]*** Brake cut motor [17:34:07]Read from MH i2c: 01 [17:34:07]MH_I2C_Read... [17:34:07]*** Stop cut motor [17:34:07]*** Cut end [17:34:07]Read from MH i2c: 01 07 00 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: 01 07 00 5A 21 00 00 00 00 00 FF 0F 90 [17:34:07]process_action close_receipt done [17:34:07]requested_data is exist [17:34:07]produce_requested_data [17:34:07]requested_item fm.sn is exist - process it [17:34:07]wFMCommunicate request_size=4 [17:34:07]MH_SAM_APDU [17:34:07]CAPDU: 80 11 00 00 [17:34:07]Write to MH i2c: E2 08 00 5B 21 80 11 00 00 00 00 00 00 F6 [17:34:07]Write i2c OK [17:34:07]MH_I2C_Read... [17:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:07]Read from MH i2c: E2 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: E2 17 00 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: E2 17 00 5B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 44 [17:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:34:07]wFMCommunicate OK [17:34:07]requested_item fd.num is exist - process it [17:34:07]SAM_PROTO_GetFieldsCounters [17:34:07]wFMCommunicate request_size=4 [17:34:07]MH_SAM_APDU [17:34:07]CAPDU: 80 13 00 00 [17:34:07]Write to MH i2c: E2 08 00 5C 21 80 13 00 00 00 00 00 00 F9 [17:34:07]Write i2c OK [17:34:07]MH_I2C_Read... [17:34:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:07]Read from MH i2c: E2 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: E2 62 00 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: E2 62 00 5C 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FF C2 01 00 0E 04 04 00 D7 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 B3 [17:34:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FF C2 01 00 0E 04 04 00 D7 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 [17:34:07]wFMCommunicate OK [17:34:07]SAM_PROTO_GetFieldsCounters done [17:34:07]requested_item shift.num is exist - process it [17:34:07]requested_item shift.opened is exist - process it [17:34:07]req_shift_opened [17:34:07]FM_GetShiftState [17:34:07]SAM_PROTO_GetShiftState [17:34:07]wFMCommunicate request_size=4 [17:34:07]MH_SAM_APDU [17:34:07]CAPDU: 80 13 01 00 [17:34:07]Write to MH i2c: E2 08 00 5D 21 80 13 01 00 00 00 00 00 FB [17:34:07]Write i2c OK [17:34:07]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 0E 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 0E 00 5D 21 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 14 [17:34:08]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:34:08]wFMCommunicate OK [17:34:08]SAM_PROTO_GetShiftState done [17:34:08]FM_GetShiftState done [17:34:08]req_shift_opened done [17:34:08]requested_item shift.open_date is exist - process it [17:34:08]req_shift_open_date [17:34:08]req_shift_open_date done [17:34:08]produce_requested_data done [17:34:08]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115455,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [17:34:08]process_action_free close_receipt [17:34:08]json_value_free [17:34:08]json_value_free done [17:34:08]process_json_proto returns [17:34:08]Send response to host [17:34:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115455,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [17:34:08]free response buf [17:34:08]execute_script done [17:34:08]execute_script returns [17:34:08]free content buf [17:34:08]Sock 9.Close socket [17:34:08]Sock 9.Thread stoped [17:34:11]OFD Sender: No OFD packet to send [17:34:16]OFD Sender: No OFD packet to send [17:34:21]OFD Sender: No OFD packet to send [17:34:26]OFD Sender: No OFD packet to send [17:34:31]OFD Sender: No OFD packet to send [17:34:36]OFD Sender: No OFD packet to send [17:34:41]OFD Sender: No OFD packet to send [17:34:46]OFD Sender: No OFD packet to send [17:34:51]OFD Sender: No OFD packet to send [17:34:56]OFD Sender: No OFD packet to send [17:35:01]OFD Sender: No OFD packet to send [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:56]OFD Sender: No OFD packet to send [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:37:01]OFD Sender: No OFD packet to send [17:37:06]OFD Sender: No OFD packet to send [17:37:11]OFD Sender: No OFD packet to send [17:37:16]OFD Sender: No OFD packet to send [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:41]accept exits with 8 [17:38:41]New connection [17:38:41]New thread 3066682724 created [17:38:41]Thread 3066826084 joined [17:38:41]Waiting for new connection... [17:38:41] Sock 8.Parse request [17:38:41]Sock 8.Check first char [17:38:41]Sock 8.First char is OK [17:38:41]request: POST /json_proto HTTP/1.0 [17:38:41]Method: POST [17:38:41]URL: /json_proto [17:38:41]Method is POST - this is cgi request [17:38:41]url: /json_proto [17:38:41]query_string will be loaded in cgi processing [17:38:41]execute_cgi json_proto POST (null) [17:38:41]execute_cgi path=json_proto method=POST [17:38:41]POST find Content-Length [17:38:41]Host: 172.17.41.136:8080 [17:38:41]Content-Length: 677 [17:38:41]Content-Type: application/json [17:38:41] [17:38:41]POST finish read [17:38:41]Found Content-Length = 677 [17:38:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343894", "tax_sys" : 0, "items" : [ { "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:41]execute_script... [17:38:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343894", "tax_sys" : 0, "items" : [ { "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:41]POST & json_proto [17:38:41]process_json_proto [17:38:41]json parsed OK: [17:38:41]protocol is kg_v1.0 [17:38:41]action value=close_receipt [17:38:41]process_action close_receipt [17:38:41]cmd_close_receipt [17:38:41]MH_GetDate [17:38:41]Write to MH i2c: F0 00 00 5E 21 6E [17:38:41]Write i2c OK [17:38:41]MH_I2C_Read... [17:38:41]Read from MH i2c: F0 [17:38:41]MH_I2C_Read... [17:38:41]Read from MH i2c: F0 09 00 [17:38:41]MH_I2C_Read... [17:38:41]Read from MH i2c: F0 09 00 5E 21 00 24 56 F0 66 1B D0 5A 64 F0 [17:38:41]GetLastDocTimeStamp 1727026445 [17:38:41]current date 1727026724 [17:38:41]FM_GetShiftState [17:38:41]SAM_PROTO_GetShiftState [17:38:41]wFMCommunicate request_size=4 [17:38:41]MH_SAM_APDU [17:38:41]CAPDU: 80 13 01 00 [17:38:41]Write to MH i2c: E2 08 00 5F 21 80 13 01 00 00 00 00 00 FD [17:38:41]Write i2c OK [17:38:41]MH_I2C_Read... [17:38:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:41]Read from MH i2c: E2 [17:38:41]MH_I2C_Read... [17:38:41]Read from MH i2c: E2 0E 00 [17:38:41]MH_I2C_Read... [17:38:41]Read from MH i2c: E2 0E 00 5F 21 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 16 [17:38:41]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:38:41]wFMCommunicate OK [17:38:41]SAM_PROTO_GetShiftState done [17:38:41]FM_GetShiftState done [17:38:41]opened in 1726965840 [17:38:41]opened+sec_in_day 1727052240 [17:38:41]quantity*price = 7700 [17:38:41]sum+1 = 7701 [17:38:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 77.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 174 22.09.2024 17:38 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115456 ФПД: 216366663259706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T173844&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115456&fm=216366663259706&tin=02508201610067®Number=0000000000091831&sum=7700 0 [17:38:42]StoreToDocumentArchive [17:38:42]shift 471 fd 115456 [17:38:42]save to /storage/0471/doc_00115456 [17:38:42]save last doc name /storage/0471/doc_00115456 to /storage/kkm_last_doc_name [17:38:42]save OK [17:38:42]Clear old archive folders... [17:38:42]ProcessDocumentItem done err = 0, tmpTLVsize=284 [17:38:42]tlvbuf is 01C111E0 [17:38:42]SAM_PROTO_ClearQueue [17:38:42]wFMCommunicate request_size=4 [17:38:42]MH_SAM_APDU [17:38:42]CAPDU: 80 09 00 00 [17:38:42]Write to MH i2c: E2 08 00 6C 21 80 09 00 00 00 00 00 00 FF [17:38:42]Write i2c OK [17:38:42]MH_I2C_Read... [17:38:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:43]Read from MH i2c: E2 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: E2 03 00 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: E2 03 00 6C 21 00 90 00 01 [17:38:43]RAPDU: 90 00 [17:38:43]wFMCommunicate OK [17:38:43]SAM_PROTO_ClearQueue done [17:38:43]KKMCreateOFDPacket [17:38:43]OFDProtocolAddRootSTLVToBuf [17:38:43]FM_MakeSignedData [17:38:43]FM_MakeSignedData [17:38:43]SAM_PROTO_SignData [17:38:43]wFMCommunicate request_size=4 [17:38:43]MH_SAM_APDU [17:38:43]CAPDU: 80 0D 01 02 [17:38:43]Write to MH i2c: E2 08 00 6D 21 80 0D 01 02 00 00 00 00 07 [17:38:43]Write i2c OK [17:38:43]MH_I2C_Read... [17:38:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:43]Read from MH i2c: E2 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: E2 03 00 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: E2 03 00 6D 21 00 90 00 02 [17:38:43]RAPDU: 90 00 [17:38:43]wFMCommunicate OK [17:38:43]wFMCommunicate request_size=255 [17:38:43]MH_SAM_APDU [17:38:43]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 24 56 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [17:38:43]Write to MH i2c: E2 02 01 6E 21 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 24 56 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 8F [17:38:43]Write i2c OK [17:38:43]MH_I2C_Read... [17:38:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:43]Read from MH i2c: E2 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: E2 03 00 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: E2 03 00 6E 21 00 90 00 03 [17:38:43]RAPDU: 90 00 [17:38:43]wFMCommunicate OK [17:38:43]wFMCommunicate request_size=43 [17:38:43]MH_SAM_APDU [17:38:43]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 00 C3 01 00 35 04 06 00 C4 C8 CA 1A D6 3A [17:38:43]Write to MH i2c: E2 2E 00 6F 21 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 00 C3 01 00 35 04 06 00 C4 C8 CA 1A D6 3A 00 00 31 [17:38:43]Write i2c OK [17:38:43]MH_I2C_Read... [17:38:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:43]Read from MH i2c: E2 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: E2 03 00 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: E2 03 00 6F 21 00 90 00 04 [17:38:43]RAPDU: 90 00 [17:38:43]wFMCommunicate OK [17:38:43]wFMCommunicate request_size=4 [17:38:43]MH_SAM_APDU [17:38:43]CAPDU: 80 0D 03 02 [17:38:43]Write to MH i2c: E2 08 00 70 21 80 0D 03 02 00 00 00 00 0C [17:38:43]Write i2c OK [17:38:43]MH_I2C_Read... [17:38:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:43]Read from MH i2c: E2 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: E2 0B 00 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: E2 0B 00 70 21 00 5F 14 F8 53 0E 4F 56 A0 90 00 1E [17:38:43]RAPDU: 5F 14 F8 53 0E 4F 56 A0 90 00 [17:38:43]wFMCommunicate OK [17:38:43]SAM_PROTO_SignData done [17:38:43]FM_MakeSignedData done [17:38:43]CreateOFDProtocolMessage [17:38:43]wFMCommunicate request_size=4 [17:38:43]MH_SAM_APDU [17:38:43]CAPDU: 80 11 00 00 [17:38:43]Write to MH i2c: E2 08 00 71 21 80 11 00 00 00 00 00 00 0C [17:38:43]Write i2c OK [17:38:43]MH_I2C_Read... [17:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:43]Read from MH i2c: E2 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: E2 17 00 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: E2 17 00 71 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5A [17:38:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:38:43]wFMCommunicate OK [17:38:43]CreateOFDProtocolMessage done [17:38:43]OFDSenderStorePacket 115456 [17:38:43]StoreOFDPacket docnum=115456 [17:38:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 51 15 28 01 A3 5F 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 24 56 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 00 C3 01 00 35 04 06 00 C4 C8 CA 1A D6 3A 5F 14 F8 53 0E 4F 56 A0 [17:38:43]CheckFolder [17:38:43]dirname=/storage/ofd_packets [17:38:43]CheckFolder done [17:38:43]ProducePacketName [17:38:43]name=ofd_packets/00115456 [17:38:43]NVStorageSaveData ofd_packets/00115456 [17:38:43]File name is /storage/ofd_packets/00115456 [17:38:43]Write 334 bytes [17:38:43]NVStorageSaveData done [17:38:43]OFDSenderStorePacket done [17:38:43]KKMCreateOFDPacket done [17:38:43]NVStorageSaveData kkm_last_timestamp [17:38:43]File name is /storage/kkm_last_timestamp [17:38:43]Write 4 bytes [17:38:43]NVStorageSaveData done [17:38:43]ExternCall_PrintAddStr [17:38:43]wPrintStart [17:38:43]Write to MH i2c: 01 00 00 72 21 93 [17:38:43]Write i2c OK [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: 01 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: 01 07 00 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: 01 07 00 72 21 00 00 00 00 00 FF 0F A8 [17:38:43]RasterBufferAndPrint [17:38:43]line Счет N : (3)343894 [17:38:43]line ИНН: 02508201610067 [17:38:43]line Контрольно-Кассовый Чек [17:38:43]line ПРОДАЖА [17:38:43]line Товар: 4870233466272 [17:38:43]line Мороженое Пломбир Миша [17:38:43]line 1.000 * 77.00 [17:38:43]line = 77.00 [17:38:43]line НДС 12% НСП 1% [17:38:43]line > о реализуемом товаре [17:38:43]line ИТОГО: 77.00 [17:38:43]line НСП 1% : 0.68 [17:38:43]line НДС 12% : 8.18 [17:38:43]line Наличными: 77.00 [17:38:43]line Безнал.: 0.00 [17:38:43]line Место: АЗС № 90 "Партнер Нефть" [17:38:43]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:38:43]line СНО: Общий режим [17:38:43]line Чек 174 22.09.2024 17:38 [17:38:43]line Смена: 471 ФФД: 1.0 [17:38:43]line ЗНМ: 0300000120 [17:38:43]line РНМ: 0000000000091831 [17:38:43]line Версия ККМ: 001 [17:38:43]line ФМ: 0000000000871830 [17:38:43]line ФД: 115456 [17:38:43]line ФПД: 216366663259706 [17:38:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T173844&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115456&fm=216366663259706&tin=02508201610067®Number=0000000000091831&sum=7700 [17:38:43]OFD Sender: Processing packet 115456 [packets to send 481, broken 480] [17:38:43]ProducePacketName [17:38:43]name=ofd_packets/00115456 [17:38:43]OFD Sender: To server: pG, [17:38:43]CommunicateWithHost lk.salyk.kg:30040 [17:38:43]ConnectInit lk.salyk.kg [17:38:43]line 0 [17:38:43]written 0, free lines is 4095 [17:38:44]Connected sock=10 [17:38:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 51 15 28 01 A3 5F 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 24 56 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 00 C3 01 00 35 04 06 00 C4 C8 CA 1A D6 3A 5F 14 F8 53 0E 4F 56 A0 [17:38:44]Write to MH i2c: 01 00 00 99 21 BA [17:38:44]Write i2c OK [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: 01 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: 01 07 00 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: 01 07 00 99 21 00 00 00 00 00 87 0C 54 [17:38:44]RasterBufferAndPrint [17:38:44]line [17:38:44]line [17:38:44]line [17:38:44]line [17:38:44]line [17:38:44]written 0, free lines is 3211 [17:38:44]MH_Cut [17:38:44]Write to MH i2c: D1 01 00 A0 21 01 93 [17:38:44]Write i2c OK [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: D1 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: D1 01 00 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: D1 01 00 A0 21 00 92 [17:38:44]Write to MH i2c: 01 00 00 A1 21 C2 [17:38:44]Write i2c OK [17:38:44]MH_I2C_Read... [17:38:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 06 2E 47 00 07 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 31 38 33 30 10 04 04 00 00 C3 01 00 F4 03 04 00 69 FB EF 66 B6 04 01 00 00 9A 34 97 BA F9 FE D0 ED [17:38:44]CommunicateWithHost err = 0 [17:38:44]CheckOFDResponse [17:38:44]1017 (14) - 77093643461234 [17:38:44]1041 (16) - 0000000000871830 [17:38:44]1040 (4) - 115456 [17:38:44]1012 (4) - 22.09.2024 11:11 [17:38:44]1206 (1) - 0 [17:38:44]OFD Sender: Remove packet 115456 [17:38:44]ProducePacketName [17:38:44]name=ofd_packets/00115456 [17:38:44]NVStorageDeleteData [17:38:45]OFD Sender: No OFD packet to send [17:38:45]*** Cut start [17:38:45]*** Partial cut [17:38:45]*** CUTSNS_PIN = 1 [17:38:45]*** CUTSNS_PIN = 0 [17:38:45]*** Brake cut motor [17:38:46]Read from MH i2c: 01 [17:38:46]MH_I2C_Read... [17:38:46]*** Stop cut motor [17:38:46]*** Cut end [17:38:46]Read from MH i2c: 01 07 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: 01 07 00 A1 21 00 00 00 00 00 FF 0F D7 [17:38:46]process_action close_receipt done [17:38:46]requested_data is exist [17:38:46]produce_requested_data [17:38:46]requested_item fm.sn is exist - process it [17:38:46]wFMCommunicate request_size=4 [17:38:46]MH_SAM_APDU [17:38:46]CAPDU: 80 11 00 00 [17:38:46]Write to MH i2c: E2 08 00 A2 21 80 11 00 00 00 00 00 00 3D [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:46]Read from MH i2c: E2 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 17 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 17 00 A2 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8B [17:38:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:38:46]wFMCommunicate OK [17:38:46]requested_item fd.num is exist - process it [17:38:46]SAM_PROTO_GetFieldsCounters [17:38:46]wFMCommunicate request_size=4 [17:38:46]MH_SAM_APDU [17:38:46]CAPDU: 80 13 00 00 [17:38:46]Write to MH i2c: E2 08 00 A3 21 80 13 00 00 00 00 00 00 40 [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:46]Read from MH i2c: E2 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 62 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 62 00 A3 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 00 C3 01 00 0E 04 04 00 D7 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 FF [17:38:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 00 C3 01 00 0E 04 04 00 D7 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 [17:38:46]wFMCommunicate OK [17:38:46]SAM_PROTO_GetFieldsCounters done [17:38:46]requested_item shift.num is exist - process it [17:38:46]requested_item shift.opened is exist - process it [17:38:46]req_shift_opened [17:38:46]FM_GetShiftState [17:38:46]SAM_PROTO_GetShiftState [17:38:46]wFMCommunicate request_size=4 [17:38:46]MH_SAM_APDU [17:38:46]CAPDU: 80 13 01 00 [17:38:46]Write to MH i2c: E2 08 00 A4 21 80 13 01 00 00 00 00 00 42 [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:46]Read from MH i2c: E2 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 0E 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 0E 00 A4 21 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 5B [17:38:46]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:38:46]wFMCommunicate OK [17:38:46]SAM_PROTO_GetShiftState done [17:38:46]FM_GetShiftState done [17:38:46]req_shift_opened done [17:38:46]requested_item shift.open_date is exist - process it [17:38:46]req_shift_open_date [17:38:46]req_shift_open_date done [17:38:46]produce_requested_data done [17:38:46]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115456,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [17:38:46]process_action_free close_receipt [17:38:46]json_value_free [17:38:46]json_value_free done [17:38:46]process_json_proto returns [17:38:46]Send response to host [17:38:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115456,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [17:38:46]free response buf [17:38:46]execute_script done [17:38:46]execute_script returns [17:38:46]free content buf [17:38:46]Sock 8.Close socket [17:38:46]Sock 8.Thread stoped [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:43]accept exits with 9 [17:40:43]New connection [17:40:43]New thread 3066826084 created [17:40:43]Thread 3066682724 joined [17:40:43]Waiting for new connection... [17:40:43] Sock 9.Parse request [17:40:43]Sock 9.Check first char [17:40:43]Sock 9.First char is OK [17:40:43]request: POST /json_proto HTTP/1.0 [17:40:43]Method: POST [17:40:43]URL: /json_proto [17:40:43]Method is POST - this is cgi request [17:40:43]url: /json_proto [17:40:43]query_string will be loaded in cgi processing [17:40:43]execute_cgi json_proto POST (null) [17:40:43]execute_cgi path=json_proto method=POST [17:40:43]POST find Content-Length [17:40:43]Host: 172.17.41.136:8080 [17:40:43]Content-Length: 782 [17:40:43]Content-Type: application/json [17:40:43] [17:40:43]POST finish read [17:40:43]Found Content-Length = 782 [17:40:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343895", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:43]execute_script... [17:40:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343895", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:43]POST & json_proto [17:40:43]process_json_proto [17:40:43]json parsed OK: [17:40:43]protocol is kg_v1.0 [17:40:43]action value=close_receipt [17:40:43]process_action close_receipt [17:40:43]cmd_close_receipt [17:40:43]MH_GetDate [17:40:43]Write to MH i2c: F0 00 00 A5 21 B5 [17:40:43]Write i2c OK [17:40:43]MH_I2C_Read... [17:40:43]Read from MH i2c: F0 [17:40:43]MH_I2C_Read... [17:40:43]Read from MH i2c: F0 09 00 [17:40:43]MH_I2C_Read... [17:40:43]Read from MH i2c: F0 09 00 A5 21 00 9E 56 F0 66 1B D0 5A 64 B1 [17:40:43]GetLastDocTimeStamp 1727026724 [17:40:43]current date 1727026846 [17:40:43]FM_GetShiftState [17:40:43]SAM_PROTO_GetShiftState [17:40:43]wFMCommunicate request_size=4 [17:40:43]MH_SAM_APDU [17:40:43]CAPDU: 80 13 01 00 [17:40:43]Write to MH i2c: E2 08 00 A6 21 80 13 01 00 00 00 00 00 44 [17:40:43]Write i2c OK [17:40:43]MH_I2C_Read... [17:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:43]Read from MH i2c: E2 [17:40:43]MH_I2C_Read... [17:40:43]Read from MH i2c: E2 0E 00 [17:40:43]MH_I2C_Read... [17:40:43]Read from MH i2c: E2 0E 00 A6 21 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 5D [17:40:43]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:40:43]wFMCommunicate OK [17:40:43]SAM_PROTO_GetShiftState done [17:40:43]FM_GetShiftState done [17:40:43]opened in 1726965840 [17:40:43]opened+sec_in_day 1727052240 [17:40:43]quantity*price = 14400 [17:40:43]sum+1 = 14401 [17:40:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 175 22.09.2024 17:40 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115457 ФПД: 219910512207636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T174046&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115457&fm=219910512207636&tin=02508201610067®Number=0000000000091831&sum=14400 0 [17:40:44]StoreToDocumentArchive [17:40:44]shift 471 fd 115457 [17:40:44]save to /storage/0471/doc_00115457 [17:40:44]save last doc name /storage/0471/doc_00115457 to /storage/kkm_last_doc_name [17:40:44]save OK [17:40:44]Clear old archive folders... [17:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=273 [17:40:44]tlvbuf is 01BE84C0 [17:40:44]SAM_PROTO_ClearQueue [17:40:44]wFMCommunicate request_size=4 [17:40:44]MH_SAM_APDU [17:40:44]CAPDU: 80 09 00 00 [17:40:44]Write to MH i2c: E2 08 00 B3 21 80 09 00 00 00 00 00 00 46 [17:40:44]Write i2c OK [17:40:44]MH_I2C_Read... [17:40:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:45]Read from MH i2c: E2 [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: E2 03 00 [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: E2 03 00 B3 21 00 90 00 48 [17:40:45]RAPDU: 90 00 [17:40:45]wFMCommunicate OK [17:40:45]SAM_PROTO_ClearQueue done [17:40:45]KKMCreateOFDPacket [17:40:45]OFDProtocolAddRootSTLVToBuf [17:40:45]FM_MakeSignedData [17:40:45]FM_MakeSignedData [17:40:45]SAM_PROTO_SignData [17:40:45]wFMCommunicate request_size=4 [17:40:45]MH_SAM_APDU [17:40:45]CAPDU: 80 0D 01 02 [17:40:45]Write to MH i2c: E2 08 00 B4 21 80 0D 01 02 00 00 00 00 4E [17:40:45]Write i2c OK [17:40:45]MH_I2C_Read... [17:40:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:45]Read from MH i2c: E2 [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: E2 03 00 [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: E2 03 00 B4 21 00 90 00 49 [17:40:45]RAPDU: 90 00 [17:40:45]wFMCommunicate OK [17:40:45]wFMCommunicate request_size=255 [17:40:45]MH_SAM_APDU [17:40:45]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 9E 56 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 [17:40:45]Write to MH i2c: E2 02 01 B5 21 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 9E 56 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 86 [17:40:45]Write i2c OK [17:40:45]MH_I2C_Read... [17:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:45]Read from MH i2c: E2 [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: E2 03 00 [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: E2 03 00 B5 21 00 90 00 4A [17:40:45]RAPDU: 90 00 [17:40:45]wFMCommunicate OK [17:40:45]wFMCommunicate request_size=32 [17:40:45]MH_SAM_APDU [17:40:45]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 33 30 10 04 04 00 01 C3 01 00 35 04 06 00 C8 01 E7 F6 67 14 [17:40:45]Write to MH i2c: E2 23 00 B6 21 80 0D 02 02 1B 00 30 30 30 38 37 31 38 33 30 10 04 04 00 01 C3 01 00 35 04 06 00 C8 01 E7 F6 67 14 00 00 8F [17:40:45]OFD Sender: No OFD packet to send [17:40:45]Write i2c OK [17:40:45]MH_I2C_Read... [17:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:45]Read from MH i2c: E2 [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: E2 03 00 [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: E2 03 00 B6 21 00 90 00 4B [17:40:45]RAPDU: 90 00 [17:40:45]wFMCommunicate OK [17:40:45]wFMCommunicate request_size=4 [17:40:45]MH_SAM_APDU [17:40:45]CAPDU: 80 0D 03 02 [17:40:45]Write to MH i2c: E2 08 00 B7 21 80 0D 03 02 00 00 00 00 53 [17:40:45]Write i2c OK [17:40:45]MH_I2C_Read... [17:40:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:45]Read from MH i2c: E2 [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: E2 0B 00 [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: E2 0B 00 B7 21 00 60 9F B6 50 C0 C0 0B F4 90 00 D8 [17:40:45]RAPDU: 60 9F B6 50 C0 C0 0B F4 90 00 [17:40:45]wFMCommunicate OK [17:40:45]SAM_PROTO_SignData done [17:40:45]FM_MakeSignedData done [17:40:45]CreateOFDProtocolMessage [17:40:45]wFMCommunicate request_size=4 [17:40:45]MH_SAM_APDU [17:40:45]CAPDU: 80 11 00 00 [17:40:45]Write to MH i2c: E2 08 00 B8 21 80 11 00 00 00 00 00 00 53 [17:40:45]Write i2c OK [17:40:45]MH_I2C_Read... [17:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:45]Read from MH i2c: E2 [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: E2 17 00 [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: E2 17 00 B8 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A1 [17:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:40:45]wFMCommunicate OK [17:40:45]CreateOFDProtocolMessage done [17:40:45]OFDSenderStorePacket 115457 [17:40:45]StoreOFDPacket docnum=115457 [17:40:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 25 01 00 00 DD DA 1D 01 59 50 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 9E 56 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 01 C3 01 00 35 04 06 00 C8 01 E7 F6 67 14 60 9F B6 50 C0 C0 0B F4 [17:40:45]CheckFolder [17:40:45]dirname=/storage/ofd_packets [17:40:45]CheckFolder done [17:40:45]ProducePacketName [17:40:45]name=ofd_packets/00115457 [17:40:45]NVStorageSaveData ofd_packets/00115457 [17:40:45]File name is /storage/ofd_packets/00115457 [17:40:45]Write 323 bytes [17:40:45]NVStorageSaveData done [17:40:45]OFDSenderStorePacket done [17:40:45]KKMCreateOFDPacket done [17:40:45]NVStorageSaveData kkm_last_timestamp [17:40:45]File name is /storage/kkm_last_timestamp [17:40:45]Write 4 bytes [17:40:45]NVStorageSaveData done [17:40:45]ExternCall_PrintAddStr [17:40:45]wPrintStart [17:40:45]Write to MH i2c: 01 00 00 B9 21 DA [17:40:45]Write i2c OK [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: 01 [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: 01 07 00 [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: 01 07 00 B9 21 00 00 00 00 00 FF 0F EF [17:40:45]RasterBufferAndPrint [17:40:45]line Счет N : (3)343895 [17:40:45]line ИНН: 02508201610067 [17:40:45]line Контрольно-Кассовый Чек [17:40:45]line ПРОДАЖА [17:40:45]line Товар: 48743570 [17:40:45]line Сигареты Winston XStyle Blue [17:40:45]line 1.000 * 144.00 [17:40:45]line = 144.00 [17:40:45]line НДС 12% НСП 1% [17:40:45]line > о реализуемом товаре [17:40:45]line ИТОГО: 144.00 [17:40:45]line НСП 1% : 1.27 [17:40:45]line НДС 12% : 15.29 [17:40:45]line Наличными: 0.00 [17:40:45]line Безнал.: 144.00 [17:40:45]line Место: АЗС № 90 "Партнер Нефть" [17:40:45]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:40:45]line СНО: Общий режим [17:40:45]line Чек 175 22.09.2024 17:40 [17:40:45]line Смена: 471 ФФД: 1.0 [17:40:45]line ЗНМ: 0300000120 [17:40:45]line РНМ: 0000000000091831 [17:40:45]line Версия ККМ: 001 [17:40:45]line Платежная система: O! деньги [17:40:45]line ФМ: 0000000000871830 [17:40:45]line ФД: 115457 [17:40:45]line ФПД: 219910512207636 [17:40:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T174046&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115457&fm=219910512207636&tin=02508201610067®Number=0000000000091831&sum=14400 [17:40:45]line 0 [17:40:45]written 0, free lines is 4095 [17:40:45]OFD Sender: Processing packet 115457 [packets to send 481, broken 480] [17:40:45]ProducePacketName [17:40:45]name=ofd_packets/00115457 [17:40:45]OFD Sender: To server: pG, [17:40:45]CommunicateWithHost lk.salyk.kg:30040 [17:40:45]ConnectInit lk.salyk.kg [17:40:45]Connected sock=10 [17:40:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 25 01 00 00 DD DA 1D 01 59 50 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 9E 56 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 01 C3 01 00 35 04 06 00 C8 01 E7 F6 67 14 60 9F B6 50 C0 C0 0B F4 [17:40:46]Write to MH i2c: 01 00 00 E2 21 03 [17:40:46]Write i2c OK [17:40:46]MH_I2C_Read... [17:40:46]Read from MH i2c: 01 [17:40:46]MH_I2C_Read... [17:40:46]Read from MH i2c: 01 07 00 [17:40:46]MH_I2C_Read... [17:40:46]Read from MH i2c: 01 07 00 E2 21 00 00 00 00 00 67 0C 7D [17:40:46]RasterBufferAndPrint [17:40:46]line [17:40:46]line [17:40:46]line [17:40:46]line [17:40:46]line [17:40:46]written 0, free lines is 3180 [17:40:46]MH_Cut [17:40:46]Write to MH i2c: D1 01 00 E9 21 01 DC [17:40:46]Write i2c OK [17:40:46]MH_I2C_Read... [17:40:46]Read from MH i2c: D1 [17:40:46]MH_I2C_Read... [17:40:46]Read from MH i2c: D1 01 00 [17:40:46]MH_I2C_Read... [17:40:46]Read from MH i2c: D1 01 00 E9 21 00 DB [17:40:46]Write to MH i2c: 01 00 00 EA 21 0B [17:40:46]Write i2c OK [17:40:46]MH_I2C_Read... [17:40:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F3 C3 47 00 1B 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 01 C3 01 00 F4 03 04 00 E3 FB EF 66 B6 04 01 00 00 D8 36 E7 A5 EC 27 20 1A [17:40:46]CommunicateWithHost err = 0 [17:40:46]CheckOFDResponse [17:40:46]1017 (14) - 77093643461234 [17:40:46]1041 (16) - 0000000000871830 [17:40:46]1040 (4) - 115457 [17:40:46]1012 (4) - 22.09.2024 11:13 [17:40:46]1206 (1) - 0 [17:40:46]OFD Sender: Remove packet 115457 [17:40:46]ProducePacketName [17:40:46]name=ofd_packets/00115457 [17:40:46]NVStorageDeleteData [17:40:46]OFD Sender: No OFD packet to send [17:40:47]*** Cut start [17:40:47]*** Partial cut [17:40:47]*** CUTSNS_PIN = 1 [17:40:47]*** CUTSNS_PIN = 0 [17:40:47]*** Brake cut motor [17:40:47]Read from MH i2c: 01 [17:40:47]MH_I2C_Read... [17:40:47]*** Stop cut motor [17:40:47]*** Cut end [17:40:47]Read from MH i2c: 01 07 00 [17:40:47]MH_I2C_Read... [17:40:47]Read from MH i2c: 01 07 00 EA 21 00 00 00 00 00 FF 0F 20 [17:40:47]process_action close_receipt done [17:40:47]requested_data is exist [17:40:47]produce_requested_data [17:40:47]requested_item fm.sn is exist - process it [17:40:47]wFMCommunicate request_size=4 [17:40:47]MH_SAM_APDU [17:40:47]CAPDU: 80 11 00 00 [17:40:47]Write to MH i2c: E2 08 00 EB 21 80 11 00 00 00 00 00 00 86 [17:40:47]Write i2c OK [17:40:47]MH_I2C_Read... [17:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:47]Read from MH i2c: E2 [17:40:47]MH_I2C_Read... [17:40:47]Read from MH i2c: E2 17 00 [17:40:47]MH_I2C_Read... [17:40:47]Read from MH i2c: E2 17 00 EB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D4 [17:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:40:47]wFMCommunicate OK [17:40:47]requested_item fd.num is exist - process it [17:40:47]SAM_PROTO_GetFieldsCounters [17:40:47]wFMCommunicate request_size=4 [17:40:47]MH_SAM_APDU [17:40:47]CAPDU: 80 13 00 00 [17:40:47]Write to MH i2c: E2 08 00 EC 21 80 13 00 00 00 00 00 00 89 [17:40:47]Write i2c OK [17:40:47]MH_I2C_Read... [17:40:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:48]Read from MH i2c: E2 [17:40:48]MH_I2C_Read... [17:40:48]Read from MH i2c: E2 62 00 [17:40:48]MH_I2C_Read... [17:40:48]Read from MH i2c: E2 62 00 EC 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 01 C3 01 00 0E 04 04 00 D7 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 4C [17:40:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 01 C3 01 00 0E 04 04 00 D7 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 [17:40:48]wFMCommunicate OK [17:40:48]SAM_PROTO_GetFieldsCounters done [17:40:48]requested_item shift.num is exist - process it [17:40:48]requested_item shift.opened is exist - process it [17:40:48]req_shift_opened [17:40:48]FM_GetShiftState [17:40:48]SAM_PROTO_GetShiftState [17:40:48]wFMCommunicate request_size=4 [17:40:48]MH_SAM_APDU [17:40:48]CAPDU: 80 13 01 00 [17:40:48]Write to MH i2c: E2 08 00 ED 21 80 13 01 00 00 00 00 00 8B [17:40:48]Write i2c OK [17:40:48]MH_I2C_Read... [17:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:48]Read from MH i2c: E2 [17:40:48]MH_I2C_Read... [17:40:48]Read from MH i2c: E2 0E 00 [17:40:48]MH_I2C_Read... [17:40:48]Read from MH i2c: E2 0E 00 ED 21 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A4 [17:40:48]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:40:48]wFMCommunicate OK [17:40:48]SAM_PROTO_GetShiftState done [17:40:48]FM_GetShiftState done [17:40:48]req_shift_opened done [17:40:48]requested_item shift.open_date is exist - process it [17:40:48]req_shift_open_date [17:40:48]req_shift_open_date done [17:40:48]produce_requested_data done [17:40:48]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115457,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [17:40:48]process_action_free close_receipt [17:40:48]json_value_free [17:40:48]json_value_free done [17:40:48]process_json_proto returns [17:40:48]Send response to host [17:40:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115457,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [17:40:48]free response buf [17:40:48]execute_script done [17:40:48]execute_script returns [17:40:48]free content buf [17:40:48]Sock 9.Close socket [17:40:48]Sock 9.Thread stoped [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:27]OFD Sender: No OFD packet to send [17:43:32]OFD Sender: No OFD packet to send [17:43:37]OFD Sender: No OFD packet to send [17:43:42]OFD Sender: No OFD packet to send [17:43:47]OFD Sender: No OFD packet to send [17:43:52]OFD Sender: No OFD packet to send [17:43:57]OFD Sender: No OFD packet to send [17:44:02]OFD Sender: No OFD packet to send [17:44:07]OFD Sender: No OFD packet to send [17:44:12]OFD Sender: No OFD packet to send [17:44:17]OFD Sender: No OFD packet to send [17:44:22]OFD Sender: No OFD packet to send [17:44:27]OFD Sender: No OFD packet to send [17:44:32]OFD Sender: No OFD packet to send [17:44:37]OFD Sender: No OFD packet to send [17:44:42]OFD Sender: No OFD packet to send [17:44:47]OFD Sender: No OFD packet to send [17:44:52]OFD Sender: No OFD packet to send [17:44:57]OFD Sender: No OFD packet to send [17:45:02]OFD Sender: No OFD packet to send [17:45:07]OFD Sender: No OFD packet to send [17:45:12]OFD Sender: No OFD packet to send [17:45:17]OFD Sender: No OFD packet to send [17:45:22]OFD Sender: No OFD packet to send [17:45:27]OFD Sender: No OFD packet to send [17:45:32]OFD Sender: No OFD packet to send [17:45:37]OFD Sender: No OFD packet to send [17:45:42]OFD Sender: No OFD packet to send [17:45:47]OFD Sender: No OFD packet to send [17:45:52]OFD Sender: No OFD packet to send [17:45:57]OFD Sender: No OFD packet to send [17:46:02]OFD Sender: No OFD packet to send [17:46:07]OFD Sender: No OFD packet to send [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:48]accept exits with 8 [17:46:48]New connection [17:46:48]New thread 3066682724 created [17:46:48]Thread 3066826084 joined [17:46:48]Waiting for new connection... [17:46:48] Sock 8.Parse request [17:46:48]Sock 8.Check first char [17:46:48]Sock 8.First char is OK [17:46:48]request: POST /json_proto HTTP/1.0 [17:46:48]Method: POST [17:46:48]URL: /json_proto [17:46:48]Method is POST - this is cgi request [17:46:48]url: /json_proto [17:46:48]query_string will be loaded in cgi processing [17:46:48]execute_cgi json_proto POST (null) [17:46:48]execute_cgi path=json_proto method=POST [17:46:48]POST find Content-Length [17:46:48]Host: 172.17.41.136:8080 [17:46:48]Content-Length: 906 [17:46:48]Content-Type: application/json [17:46:48] [17:46:48]POST finish read [17:46:48]Found Content-Length = 906 [17:46:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343896", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 3.000, "sum" : 345.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 475.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:48]execute_script... [17:46:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343896", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 3.000, "sum" : 345.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 475.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:48]POST & json_proto [17:46:48]process_json_proto [17:46:48]json parsed OK: [17:46:48]protocol is kg_v1.0 [17:46:48]action value=close_receipt [17:46:48]process_action close_receipt [17:46:48]cmd_close_receipt [17:46:48]MH_GetDate [17:46:48]Write to MH i2c: F0 00 00 EE 21 FE [17:46:48]Write i2c OK [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: F0 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: F0 09 00 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: F0 09 00 EE 21 00 0A 58 F0 66 1B D0 5A 64 68 [17:46:48]GetLastDocTimeStamp 1727026846 [17:46:48]current date 1727027210 [17:46:48]FM_GetShiftState [17:46:48]SAM_PROTO_GetShiftState [17:46:48]wFMCommunicate request_size=4 [17:46:48]MH_SAM_APDU [17:46:48]CAPDU: 80 13 01 00 [17:46:48]Write to MH i2c: E2 08 00 EF 21 80 13 01 00 00 00 00 00 8D [17:46:48]Write i2c OK [17:46:48]MH_I2C_Read... [17:46:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:48]Read from MH i2c: E2 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: E2 0E 00 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: E2 0E 00 EF 21 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A6 [17:46:48]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:46:48]wFMCommunicate OK [17:46:48]SAM_PROTO_GetShiftState done [17:46:48]FM_GetShiftState done [17:46:48]opened in 1726965840 [17:46:48]opened+sec_in_day 1727052240 [17:46:48]quantity*price = 34500 [17:46:48]sum+1 = 34501 [17:46:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 475.00 НСП 1% : 4.20 НДС 12% : 50.44 Наличными: 475.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 176 22.09.2024 17:46 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115458 ФПД: 185622631198233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T174650&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115458&fm=185622631198233&tin=02508201610067®Number=0000000000091831&sum=47500 0 [17:46:49]StoreToDocumentArchive [17:46:49]shift 471 fd 115458 [17:46:49]save to /storage/0471/doc_00115458 [17:46:49]save last doc name /storage/0471/doc_00115458 to /storage/kkm_last_doc_name [17:46:49]save OK [17:46:49]Clear old archive folders... [17:46:49]ProcessDocumentItem done err = 0, tmpTLVsize=392 [17:46:49]tlvbuf is 01BE8110 [17:46:49]SAM_PROTO_ClearQueue [17:46:49]wFMCommunicate request_size=4 [17:46:49]MH_SAM_APDU [17:46:49]CAPDU: 80 09 00 00 [17:46:49]Write to MH i2c: E2 08 00 FC 21 80 09 00 00 00 00 00 00 8F [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:49]Read from MH i2c: E2 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 FC 21 00 90 00 91 [17:46:49]RAPDU: 90 00 [17:46:49]wFMCommunicate OK [17:46:49]SAM_PROTO_ClearQueue done [17:46:49]KKMCreateOFDPacket [17:46:49]OFDProtocolAddRootSTLVToBuf [17:46:49]FM_MakeSignedData [17:46:49]FM_MakeSignedData [17:46:49]SAM_PROTO_SignData [17:46:49]wFMCommunicate request_size=4 [17:46:49]MH_SAM_APDU [17:46:49]CAPDU: 80 0D 01 02 [17:46:49]Write to MH i2c: E2 08 00 FD 21 80 0D 01 02 00 00 00 00 97 [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:49]Read from MH i2c: E2 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 FD 21 00 90 00 92 [17:46:49]RAPDU: 90 00 [17:46:49]wFMCommunicate OK [17:46:49]wFMCommunicate request_size=255 [17:46:49]MH_SAM_APDU [17:46:49]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [17:46:49]Write to MH i2c: E2 02 01 FE 21 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 C7 [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:49]Read from MH i2c: E2 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 FE 21 00 90 00 93 [17:46:49]RAPDU: 90 00 [17:46:49]wFMCommunicate OK [17:46:49]wFMCommunicate request_size=151 [17:46:49]MH_SAM_APDU [17:46:49]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 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 B0 00 00 00 F4 03 04 00 0A 58 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 02 C3 01 00 35 04 06 00 A8 D2 A2 FE AE 19 [17:46:49]Write to MH i2c: E2 9A 00 FF 21 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 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 B0 00 00 00 F4 03 04 00 0A 58 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 02 C3 01 00 35 04 06 00 A8 D2 A2 FE AE 19 00 00 80 [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:49]Read from MH i2c: E2 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 03 00 FF 21 00 90 00 94 [17:46:49]RAPDU: 90 00 [17:46:49]wFMCommunicate OK [17:46:49]wFMCommunicate request_size=4 [17:46:49]MH_SAM_APDU [17:46:49]CAPDU: 80 0D 03 02 [17:46:49]Write to MH i2c: E2 08 00 00 22 80 0D 03 02 00 00 00 00 9D [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:49]Read from MH i2c: E2 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 0B 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 0B 00 00 22 00 14 48 16 7E D9 BA 6D 01 90 00 8F [17:46:49]RAPDU: 14 48 16 7E D9 BA 6D 01 90 00 [17:46:49]wFMCommunicate OK [17:46:49]SAM_PROTO_SignData done [17:46:49]FM_MakeSignedData done [17:46:49]CreateOFDProtocolMessage [17:46:49]wFMCommunicate request_size=4 [17:46:49]MH_SAM_APDU [17:46:49]CAPDU: 80 11 00 00 [17:46:49]Write to MH i2c: E2 08 00 01 22 80 11 00 00 00 00 00 00 9D [17:46:49]Write i2c OK [17:46:49]MH_I2C_Read... [17:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:49]Read from MH i2c: E2 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 17 00 [17:46:49]MH_I2C_Read... [17:46:49]Read from MH i2c: E2 17 00 01 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EB [17:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:46:49]wFMCommunicate OK [17:46:49]CreateOFDProtocolMessage done [17:46:49]OFDSenderStorePacket 115458 [17:46:49]StoreOFDPacket docnum=115458 [17:46:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9C 01 00 00 A8 F7 94 01 DF AD 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 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 B0 00 00 00 F4 03 04 00 0A 58 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 02 C3 01 00 35 04 06 00 A8 D2 A2 FE AE 19 14 48 16 7E D9 BA 6D 01 [17:46:49]CheckFolder [17:46:49]dirname=/storage/ofd_packets [17:46:49]CheckFolder done [17:46:49]ProducePacketName [17:46:49]name=ofd_packets/00115458 [17:46:49]NVStorageSaveData ofd_packets/00115458 [17:46:49]File name is /storage/ofd_packets/00115458 [17:46:49]Write 442 bytes [17:46:49]NVStorageSaveData done [17:46:49]OFDSenderStorePacket done [17:46:49]KKMCreateOFDPacket done [17:46:49]NVStorageSaveData kkm_last_timestamp [17:46:49]File name is /storage/kkm_last_timestamp [17:46:49]Write 4 bytes [17:46:49]NVStorageSaveData done [17:46:49]ExternCall_PrintAddStr [17:46:49]wPrintStart [17:46:49]Write to MH i2c: 01 00 00 02 22 24 [17:46:49]Write i2c OK [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: 01 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: 01 07 00 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: 01 07 00 02 22 00 00 00 00 00 FF 0F 39 [17:46:50]RasterBufferAndPrint [17:46:50]line Счет N : (3)343896 [17:46:50]line ИНН: 02508201610067 [17:46:50]line Контрольно-Кассовый Чек [17:46:50]line ПРОДАЖА [17:46:50]line Товар: 2000036210013 [17:46:50]line Кофе Капучино (GABB TRADE) [17:46:50]line 3.000 * 115.00 [17:46:50]line = 345.00 [17:46:50]line НДС 12% НСП 1% [17:46:50]line > о реализуемом товаре [17:46:50]line Товар: 2000036220012 [17:46:50]line Кофе Капучино XL(GABB TRADE) [17:46:50]line 1.000 * 130.00 [17:46:50]line = 130.00 [17:46:50]line НДС 12% НСП 1% [17:46:50]line > о реализуемом товаре [17:46:50]line ИТОГО: 475.00 [17:46:50]line НСП 1% : 4.20 [17:46:50]line НДС 12% : 50.44 [17:46:50]line Наличными: 475.00 [17:46:50]line Безнал.: 0.00 [17:46:50]line Место: АЗС № 90 "Партнер Нефть" [17:46:50]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:46:50]line СНО: Общий режим [17:46:50]line Чек 176 22.09.2024 17:46 [17:46:50]line Смена: 471 ФФД: 1.0 [17:46:50]line ЗНМ: 0300000120 [17:46:50]line РНМ: 0000000000091831 [17:46:50]line Версия ККМ: 001 [17:46:50]line ФМ: 0000000000871830 [17:46:50]line ФД: 115458 [17:46:50]line ФПД: 185622631198233 [17:46:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T174650&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115458&fm=185622631198233&tin=02508201610067®Number=0000000000091831&sum=47500 [17:46:50]OFD Sender: Processing packet 115458 [packets to send 481, broken 480] [17:46:50]ProducePacketName [17:46:50]name=ofd_packets/00115458 [17:46:50]OFD Sender: To server: pG, [17:46:50]CommunicateWithHost lk.salyk.kg:30040 [17:46:50]ConnectInit lk.salyk.kg [17:46:50]line 0 [17:46:50]written 0, free lines is 4095 [17:46:50]Connected sock=10 [17:46:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9C 01 00 00 A8 F7 94 01 DF AD 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 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 B0 00 00 00 F4 03 04 00 0A 58 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 02 C3 01 00 35 04 06 00 A8 D2 A2 FE AE 19 14 48 16 7E D9 BA 6D 01 [17:46:50]Write to MH i2c: 01 00 00 30 22 52 [17:46:50]Write i2c OK [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: 01 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: 01 07 00 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: 01 07 00 30 22 00 00 00 00 00 FC 0B 60 [17:46:50]RasterBufferAndPrint [17:46:50]line [17:46:50]line [17:46:50]line [17:46:50]line [17:46:50]line [17:46:50]written 0, free lines is 3071 [17:46:50]MH_Cut [17:46:50]Write to MH i2c: D1 01 00 37 22 01 2B [17:46:50]Write i2c OK [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: D1 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: D1 01 00 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: D1 01 00 37 22 00 2A [17:46:50]Write to MH i2c: 01 00 00 38 22 5A [17:46:50]Write i2c OK [17:46:50]MH_I2C_Read... [17:46:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 33 12 47 00 E1 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 31 38 33 30 10 04 04 00 02 C3 01 00 F4 03 04 00 50 FD EF 66 B6 04 01 00 00 DD 7A 56 80 23 DD 8F 04 [17:46:50]CommunicateWithHost err = 0 [17:46:50]CheckOFDResponse [17:46:50]1017 (14) - 77093643461234 [17:46:50]1041 (16) - 0000000000871830 [17:46:50]1040 (4) - 115458 [17:46:50]1012 (4) - 22.09.2024 11:19 [17:46:50]1206 (1) - 0 [17:46:50]OFD Sender: Remove packet 115458 [17:46:50]ProducePacketName [17:46:50]name=ofd_packets/00115458 [17:46:50]NVStorageDeleteData [17:46:51]OFD Sender: No OFD packet to send [17:46:52]*** Cut start [17:46:52]*** Partial cut [17:46:52]*** CUTSNS_PIN = 1 [17:46:52]*** CUTSNS_PIN = 0 [17:46:52]*** Brake cut motor [17:46:52]Read from MH i2c: 01 [17:46:52]MH_I2C_Read... [17:46:52]*** Stop cut motor [17:46:52]*** Cut end [17:46:52]Read from MH i2c: 01 07 00 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: 01 07 00 38 22 00 00 00 00 00 FF 0F 6F [17:46:52]process_action close_receipt done [17:46:52]requested_data is exist [17:46:52]produce_requested_data [17:46:52]requested_item fm.sn is exist - process it [17:46:52]wFMCommunicate request_size=4 [17:46:52]MH_SAM_APDU [17:46:52]CAPDU: 80 11 00 00 [17:46:52]Write to MH i2c: E2 08 00 39 22 80 11 00 00 00 00 00 00 D5 [17:46:52]Write i2c OK [17:46:52]MH_I2C_Read... [17:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:52]Read from MH i2c: E2 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: E2 17 00 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: E2 17 00 39 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 23 [17:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:46:52]wFMCommunicate OK [17:46:52]requested_item fd.num is exist - process it [17:46:52]SAM_PROTO_GetFieldsCounters [17:46:52]wFMCommunicate request_size=4 [17:46:52]MH_SAM_APDU [17:46:52]CAPDU: 80 13 00 00 [17:46:52]Write to MH i2c: E2 08 00 3A 22 80 13 00 00 00 00 00 00 D8 [17:46:52]Write i2c OK [17:46:52]MH_I2C_Read... [17:46:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:53]Read from MH i2c: E2 [17:46:53]MH_I2C_Read... [17:46:53]Read from MH i2c: E2 62 00 [17:46:53]MH_I2C_Read... [17:46:53]Read from MH i2c: E2 62 00 3A 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 02 C3 01 00 0E 04 04 00 D7 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 9F [17:46:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 02 C3 01 00 0E 04 04 00 D7 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 [17:46:53]wFMCommunicate OK [17:46:53]SAM_PROTO_GetFieldsCounters done [17:46:53]requested_item shift.num is exist - process it [17:46:53]requested_item shift.opened is exist - process it [17:46:53]req_shift_opened [17:46:53]FM_GetShiftState [17:46:53]SAM_PROTO_GetShiftState [17:46:53]wFMCommunicate request_size=4 [17:46:53]MH_SAM_APDU [17:46:53]CAPDU: 80 13 01 00 [17:46:53]Write to MH i2c: E2 08 00 3B 22 80 13 01 00 00 00 00 00 DA [17:46:53]Write i2c OK [17:46:53]MH_I2C_Read... [17:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:53]Read from MH i2c: E2 [17:46:53]MH_I2C_Read... [17:46:53]Read from MH i2c: E2 0E 00 [17:46:53]MH_I2C_Read... [17:46:53]Read from MH i2c: E2 0E 00 3B 22 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F3 [17:46:53]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:46:53]wFMCommunicate OK [17:46:53]SAM_PROTO_GetShiftState done [17:46:53]FM_GetShiftState done [17:46:53]req_shift_opened done [17:46:53]requested_item shift.open_date is exist - process it [17:46:53]req_shift_open_date [17:46:53]req_shift_open_date done [17:46:53]produce_requested_data done [17:46:53]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115458,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [17:46:53]process_action_free close_receipt [17:46:53]json_value_free [17:46:53]json_value_free done [17:46:53]process_json_proto returns [17:46:53]Send response to host [17:46:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115458,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [17:46:53]free response buf [17:46:53]execute_script done [17:46:53]execute_script returns [17:46:53]free content buf [17:46:53]Sock 8.Close socket [17:46:53]Sock 8.Thread stoped [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:36]accept exits with 9 [17:49:36]New connection [17:49:36]New thread 3066826084 created [17:49:36]Thread 3066682724 joined [17:49:36]Waiting for new connection... [17:49:36] Sock 9.Parse request [17:49:36]Sock 9.Check first char [17:49:36]Sock 9.First char is OK [17:49:36]request: POST /json_proto HTTP/1.0 [17:49:36]Method: POST [17:49:36]URL: /json_proto [17:49:36]Method is POST - this is cgi request [17:49:36]url: /json_proto [17:49:36]query_string will be loaded in cgi processing [17:49:36]execute_cgi json_proto POST (null) [17:49:36]execute_cgi path=json_proto method=POST [17:49:36]POST find Content-Length [17:49:36]Host: 172.17.41.136:8080 [17:49:36]Content-Length: 911 [17:49:36]Content-Type: application/json [17:49:36] [17:49:36]POST finish read [17:49:36]Found Content-Length = 911 [17:49:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343897", "tax_sys" : 0, "items" : [ { "code": "4823063106399", "name": "\u0421\u0430\u0434\u043E\u0447\u043E\u043A 0,2 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434\u043D\u043E-\u044F\u0431\u043B\u043E\u0447\u043D\u044B\u0439 \u0441\u043E\u043A \u0441 \u0441\u0430", "price" : 45.00, "quantity" : 2.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:36]execute_script... [17:49:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343897", "tax_sys" : 0, "items" : [ { "code": "4823063106399", "name": "\u0421\u0430\u0434\u043E\u0447\u043E\u043A 0,2 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434\u043D\u043E-\u044F\u0431\u043B\u043E\u0447\u043D\u044B\u0439 \u0441\u043E\u043A \u0441 \u0441\u0430", "price" : 45.00, "quantity" : 2.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:36]POST & json_proto [17:49:36]process_json_proto [17:49:36]json parsed OK: [17:49:36]protocol is kg_v1.0 [17:49:36]action value=close_receipt [17:49:36]process_action close_receipt [17:49:36]cmd_close_receipt [17:49:36]MH_GetDate [17:49:36]Write to MH i2c: F0 00 00 3C 22 4D [17:49:36]Write i2c OK [17:49:36]MH_I2C_Read... [17:49:36]Read from MH i2c: F0 [17:49:36]MH_I2C_Read... [17:49:36]Read from MH i2c: F0 09 00 [17:49:36]MH_I2C_Read... [17:49:36]Read from MH i2c: F0 09 00 3C 22 00 B3 58 F0 66 1B D0 5A 64 60 [17:49:36]GetLastDocTimeStamp 1727027210 [17:49:36]current date 1727027379 [17:49:36]FM_GetShiftState [17:49:36]SAM_PROTO_GetShiftState [17:49:36]wFMCommunicate request_size=4 [17:49:36]MH_SAM_APDU [17:49:36]CAPDU: 80 13 01 00 [17:49:36]Write to MH i2c: E2 08 00 3D 22 80 13 01 00 00 00 00 00 DC [17:49:36]Write i2c OK [17:49:36]MH_I2C_Read... [17:49:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:36]Read from MH i2c: E2 [17:49:36]MH_I2C_Read... [17:49:36]Read from MH i2c: E2 0E 00 [17:49:36]MH_I2C_Read... [17:49:36]Read from MH i2c: E2 0E 00 3D 22 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F5 [17:49:36]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:49:36]wFMCommunicate OK [17:49:36]SAM_PROTO_GetShiftState done [17:49:36]FM_GetShiftState done [17:49:36]opened in 1726965840 [17:49:36]opened+sec_in_day 1727052240 [17:49:36]quantity*price = 9000 [17:49:36]sum+1 = 9001 [17:49:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 0.00 Безнал.: 90.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 177 22.09.2024 17:49 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115459 ФПД: 199532887230038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T174939&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115459&fm=199532887230038&tin=02508201610067®Number=0000000000091831&sum=9000 0 [17:49:37]StoreToDocumentArchive [17:49:37]shift 471 fd 115459 [17:49:37]save to /storage/0471/doc_00115459 [17:49:37]save last doc name /storage/0471/doc_00115459 to /storage/kkm_last_doc_name [17:49:37]save OK [17:49:37]Clear old archive folders... [17:49:37]ProcessDocumentItem done err = 0, tmpTLVsize=313 [17:49:37]tlvbuf is 01C30690 [17:49:37]SAM_PROTO_ClearQueue [17:49:37]wFMCommunicate request_size=4 [17:49:37]MH_SAM_APDU [17:49:37]CAPDU: 80 09 00 00 [17:49:37]Write to MH i2c: E2 08 00 4A 22 80 09 00 00 00 00 00 00 DE [17:49:37]Write i2c OK [17:49:37]MH_I2C_Read... [17:49:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:38]Read from MH i2c: E2 [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: E2 03 00 [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: E2 03 00 4A 22 00 90 00 E0 [17:49:38]RAPDU: 90 00 [17:49:38]wFMCommunicate OK [17:49:38]SAM_PROTO_ClearQueue done [17:49:38]KKMCreateOFDPacket [17:49:38]OFDProtocolAddRootSTLVToBuf [17:49:38]FM_MakeSignedData [17:49:38]FM_MakeSignedData [17:49:38]SAM_PROTO_SignData [17:49:38]wFMCommunicate request_size=4 [17:49:38]MH_SAM_APDU [17:49:38]CAPDU: 80 0D 01 02 [17:49:38]Write to MH i2c: E2 08 00 4B 22 80 0D 01 02 00 00 00 00 E6 [17:49:38]Write i2c OK [17:49:38]MH_I2C_Read... [17:49:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:38]Read from MH i2c: E2 [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: E2 03 00 [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: E2 03 00 4B 22 00 90 00 E1 [17:49:38]RAPDU: 90 00 [17:49:38]wFMCommunicate OK [17:49:38]wFMCommunicate request_size=255 [17:49:38]MH_SAM_APDU [17:49:38]CAPDU: 80 0D 02 02 FA 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 33 39 39 06 04 47 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 D0 BD D0 BE 2D D1 8F D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 D1 81 20 D1 81 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 B3 58 F0 66 0E 04 04 00 [17:49:38]Write to MH i2c: E2 02 01 4C 22 80 0D 02 02 FA 00 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 33 39 39 06 04 47 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 D0 BD D0 BE 2D D1 8F D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 D1 81 20 D1 81 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 B3 58 F0 66 0E 04 04 00 00 00 E4 [17:49:38]Write i2c OK [17:49:38]MH_I2C_Read... [17:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:38]Read from MH i2c: E2 [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: E2 03 00 [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: E2 03 00 4C 22 00 90 00 E2 [17:49:38]RAPDU: 90 00 [17:49:38]wFMCommunicate OK [17:49:38]wFMCommunicate request_size=72 [17:49:38]MH_SAM_APDU [17:49:38]CAPDU: 80 0D 02 02 43 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 03 C3 01 00 35 04 06 00 B5 79 5E DD 46 56 [17:49:38]Write to MH i2c: E2 4B 00 4D 22 80 0D 02 02 43 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 03 C3 01 00 35 04 06 00 B5 79 5E DD 46 56 00 00 A0 [17:49:38]Write i2c OK [17:49:38]MH_I2C_Read... [17:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:38]Read from MH i2c: E2 [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: E2 03 00 [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: E2 03 00 4D 22 00 90 00 E3 [17:49:38]RAPDU: 90 00 [17:49:38]wFMCommunicate OK [17:49:38]wFMCommunicate request_size=4 [17:49:38]MH_SAM_APDU [17:49:38]CAPDU: 80 0D 03 02 [17:49:38]Write to MH i2c: E2 08 00 4E 22 80 0D 03 02 00 00 00 00 EB [17:49:38]Write i2c OK [17:49:38]MH_I2C_Read... [17:49:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:38]Read from MH i2c: E2 [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: E2 0B 00 [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: E2 0B 00 4E 22 00 72 07 D6 54 AC 35 18 0F 90 00 97 [17:49:38]RAPDU: 72 07 D6 54 AC 35 18 0F 90 00 [17:49:38]wFMCommunicate OK [17:49:38]SAM_PROTO_SignData done [17:49:38]FM_MakeSignedData done [17:49:38]CreateOFDProtocolMessage [17:49:38]wFMCommunicate request_size=4 [17:49:38]MH_SAM_APDU [17:49:38]CAPDU: 80 11 00 00 [17:49:38]Write to MH i2c: E2 08 00 4F 22 80 11 00 00 00 00 00 00 EB [17:49:38]Write i2c OK [17:49:38]MH_I2C_Read... [17:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:38]Read from MH i2c: E2 [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: E2 17 00 [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: E2 17 00 4F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 39 [17:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:49:38]wFMCommunicate OK [17:49:38]CreateOFDProtocolMessage done [17:49:38]OFDSenderStorePacket 115459 [17:49:38]StoreOFDPacket docnum=115459 [17:49:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4D 01 00 00 0A 6A 45 01 87 DB 5A 03 01 00 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 33 39 39 06 04 47 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 D0 BD D0 BE 2D D1 8F D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 D1 81 20 D1 81 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 B3 58 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 03 C3 01 00 35 04 06 00 B5 79 5E DD 46 56 72 07 D6 54 AC 35 18 0F [17:49:38]CheckFolder [17:49:38]dirname=/storage/ofd_packets [17:49:38]CheckFolder done [17:49:38]ProducePacketName [17:49:38]name=ofd_packets/00115459 [17:49:38]NVStorageSaveData ofd_packets/00115459 [17:49:38]File name is /storage/ofd_packets/00115459 [17:49:38]Write 363 bytes [17:49:38]NVStorageSaveData done [17:49:38]OFDSenderStorePacket done [17:49:38]KKMCreateOFDPacket done [17:49:38]NVStorageSaveData kkm_last_timestamp [17:49:38]File name is /storage/kkm_last_timestamp [17:49:38]Write 4 bytes [17:49:38]NVStorageSaveData done [17:49:38]ExternCall_PrintAddStr [17:49:38]wPrintStart [17:49:38]Write to MH i2c: 01 00 00 50 22 72 [17:49:38]Write i2c OK [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: 01 [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: 01 07 00 [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: 01 07 00 50 22 00 00 00 00 00 FF 0F 87 [17:49:38]RasterBufferAndPrint [17:49:38]line Счет N : (3)343897 [17:49:38]line ИНН: 02508201610067 [17:49:38]line Контрольно-Кассовый Чек [17:49:38]line ПРОДАЖА [17:49:38]line Товар: 4823063106399 [17:49:38]line Садочок 0,2 Виноградно-яблочный сок с са [17:49:38]line 2.000 * 45.00 [17:49:38]line = 90.00 [17:49:38]line НДС 12% НСП 1% [17:49:38]line > о реализуемом товаре [17:49:38]line ИТОГО: 90.00 [17:49:38]line НСП 1% : 0.80 [17:49:38]line НДС 12% : 9.56 [17:49:38]line Наличными: 0.00 [17:49:38]line Безнал.: 90.00 [17:49:38]line Место: АЗС № 90 "Партнер Нефть" [17:49:38]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:49:38]line СНО: Общий режим [17:49:38]line Чек 177 22.09.2024 17:49 [17:49:38]line Смена: 471 ФФД: 1.0 [17:49:38]line ЗНМ: 0300000120 [17:49:38]line РНМ: 0000000000091831 [17:49:38]line Версия ККМ: 001 [17:49:38]line Платежная система: O! деньги [17:49:38]line ФМ: 0000000000871830 [17:49:38]line ФД: 115459 [17:49:38]line ФПД: 199532887230038 [17:49:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T174939&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115459&fm=199532887230038&tin=02508201610067®Number=0000000000091831&sum=9000 [17:49:38]OFD Sender: Processing packet 115459 [packets to send 481, broken 480] [17:49:38]ProducePacketName [17:49:38]name=ofd_packets/00115459 [17:49:38]OFD Sender: To server: pG, [17:49:38]CommunicateWithHost lk.salyk.kg:30040 [17:49:38]ConnectInit lk.salyk.kg [17:49:38]line 0 [17:49:38]written 0, free lines is 4095 [17:49:39]Connected sock=8 [17:49:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4D 01 00 00 0A 6A 45 01 87 DB 5A 03 01 00 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 33 39 39 06 04 47 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 D0 BD D0 BE 2D D1 8F D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 D1 81 20 D1 81 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 B3 58 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 03 C3 01 00 35 04 06 00 B5 79 5E DD 46 56 72 07 D6 54 AC 35 18 0F [17:49:39]Write to MH i2c: 01 00 00 7A 22 9C [17:49:39]Write i2c OK [17:49:39]MH_I2C_Read... [17:49:39]Read from MH i2c: 01 [17:49:39]MH_I2C_Read... [17:49:39]Read from MH i2c: 01 07 00 [17:49:39]MH_I2C_Read... [17:49:39]Read from MH i2c: 01 07 00 7A 22 00 00 00 00 00 49 0C F8 [17:49:39]RasterBufferAndPrint [17:49:39]line [17:49:39]line [17:49:39]line [17:49:39]line [17:49:39]line [17:49:39]written 0, free lines is 3149 [17:49:39]MH_Cut [17:49:39]Write to MH i2c: D1 01 00 81 22 01 75 [17:49:39]Write i2c OK [17:49:39]MH_I2C_Read... [17:49:39]Read from MH i2c: D1 [17:49:39]MH_I2C_Read... [17:49:39]Read from MH i2c: D1 01 00 [17:49:39]MH_I2C_Read... [17:49:39]Read from MH i2c: D1 01 00 81 22 00 74 [17:49:39]Write to MH i2c: 01 00 00 82 22 A4 [17:49:39]Write i2c OK [17:49:39]MH_I2C_Read... [17:49:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 BB 69 47 00 8A 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 03 C3 01 00 F4 03 04 00 F8 FD EF 66 B6 04 01 00 00 0D 56 0D B1 11 72 90 FE [17:49:39]CommunicateWithHost err = 0 [17:49:39]CheckOFDResponse [17:49:39]1017 (14) - 77093643461234 [17:49:39]1041 (16) - 0000000000871830 [17:49:39]1040 (4) - 115459 [17:49:39]1012 (4) - 22.09.2024 11:22 [17:49:39]1206 (1) - 0 [17:49:39]OFD Sender: Remove packet 115459 [17:49:39]ProducePacketName [17:49:39]name=ofd_packets/00115459 [17:49:39]NVStorageDeleteData [17:49:40]OFD Sender: No OFD packet to send [17:49:40]*** Cut start [17:49:40]*** Partial cut [17:49:40]*** CUTSNS_PIN = 1 [17:49:40]*** CUTSNS_PIN = 0 [17:49:40]*** Brake cut motor [17:49:41]Read from MH i2c: 01 [17:49:41]MH_I2C_Read... [17:49:41]*** Stop cut motor [17:49:41]*** Cut end [17:49:41]Read from MH i2c: 01 07 00 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: 01 07 00 82 22 00 00 00 00 00 FF 0F B9 [17:49:41]process_action close_receipt done [17:49:41]requested_data is exist [17:49:41]produce_requested_data [17:49:41]requested_item fm.sn is exist - process it [17:49:41]wFMCommunicate request_size=4 [17:49:41]MH_SAM_APDU [17:49:41]CAPDU: 80 11 00 00 [17:49:41]Write to MH i2c: E2 08 00 83 22 80 11 00 00 00 00 00 00 1F [17:49:41]Write i2c OK [17:49:41]MH_I2C_Read... [17:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:41]Read from MH i2c: E2 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 17 00 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 17 00 83 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6D [17:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:49:41]wFMCommunicate OK [17:49:41]requested_item fd.num is exist - process it [17:49:41]SAM_PROTO_GetFieldsCounters [17:49:41]wFMCommunicate request_size=4 [17:49:41]MH_SAM_APDU [17:49:41]CAPDU: 80 13 00 00 [17:49:41]Write to MH i2c: E2 08 00 84 22 80 13 00 00 00 00 00 00 22 [17:49:41]Write i2c OK [17:49:41]MH_I2C_Read... [17:49:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:41]Read from MH i2c: E2 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 62 00 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 62 00 84 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 03 C3 01 00 0E 04 04 00 D7 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 ED [17:49:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 03 C3 01 00 0E 04 04 00 D7 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 [17:49:41]wFMCommunicate OK [17:49:41]SAM_PROTO_GetFieldsCounters done [17:49:41]requested_item shift.num is exist - process it [17:49:41]requested_item shift.opened is exist - process it [17:49:41]req_shift_opened [17:49:41]FM_GetShiftState [17:49:41]SAM_PROTO_GetShiftState [17:49:41]wFMCommunicate request_size=4 [17:49:41]MH_SAM_APDU [17:49:41]CAPDU: 80 13 01 00 [17:49:41]Write to MH i2c: E2 08 00 85 22 80 13 01 00 00 00 00 00 24 [17:49:41]Write i2c OK [17:49:41]MH_I2C_Read... [17:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:41]Read from MH i2c: E2 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 0E 00 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 0E 00 85 22 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 3D [17:49:41]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [17:49:41]wFMCommunicate OK [17:49:41]SAM_PROTO_GetShiftState done [17:49:41]FM_GetShiftState done [17:49:41]req_shift_opened done [17:49:41]requested_item shift.open_date is exist - process it [17:49:41]req_shift_open_date [17:49:41]req_shift_open_date done [17:49:41]produce_requested_data done [17:49:41]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115459,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [17:49:41]process_action_free close_receipt [17:49:41]json_value_free [17:49:41]json_value_free done [17:49:41]process_json_proto returns [17:49:41]Send response to host [17:49:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115459,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [17:49:41]free response buf [17:49:41]execute_script done [17:49:41]execute_script returns [17:49:41]free content buf [17:49:41]Sock 9.Close socket [17:49:41]Sock 9.Thread stoped [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:30]OFD Sender: No OFD packet to send [17:51:35]OFD Sender: No OFD packet to send [17:51:40]OFD Sender: No OFD packet to send [17:51:45]OFD Sender: No OFD packet to send [17:51:50]OFD Sender: No OFD packet to send [17:51:55]OFD Sender: No OFD packet to send [17:52:00]OFD Sender: No OFD packet to send [17:52:05]OFD Sender: No OFD packet to send [17:52:10]OFD Sender: No OFD packet to send [17:52:15]OFD Sender: No OFD packet to send [17:52:20]OFD Sender: No OFD packet to send [17:52:25]OFD Sender: No OFD packet to send [17:52:30]OFD Sender: No OFD packet to send [17:52:35]OFD Sender: No OFD packet to send [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:05]OFD Sender: No OFD packet to send [17:53:10]OFD Sender: No OFD packet to send [17:53:15]OFD Sender: No OFD packet to send [17:53:20]OFD Sender: No OFD packet to send [17:53:25]OFD Sender: No OFD packet to send [17:53:30]OFD Sender: No OFD packet to send [17:53:35]OFD Sender: No OFD packet to send [17:53:40]OFD Sender: No OFD packet to send [17:53:45]OFD Sender: No OFD packet to send [17:53:50]OFD Sender: No OFD packet to send [17:53:55]OFD Sender: No OFD packet to send [17:54:00]OFD Sender: No OFD packet to send [17:54:05]OFD Sender: No OFD packet to send [17:54:10]OFD Sender: No OFD packet to send [17:54:15]OFD Sender: No OFD packet to send [17:54:20]OFD Sender: No OFD packet to send [17:54:25]OFD Sender: No OFD packet to send [17:54:30]OFD Sender: No OFD packet to send [17:54:35]OFD Sender: No OFD packet to send [17:54:40]OFD Sender: No OFD packet to send [17:54:45]OFD Sender: No OFD packet to send [17:54:50]OFD Sender: No OFD packet to send [17:54:55]OFD Sender: No OFD packet to send [17:55:00]OFD Sender: No OFD packet to send [17:55:05]OFD Sender: No OFD packet to send [17:55:10]OFD Sender: No OFD packet to send [17:55:15]OFD Sender: No OFD packet to send [17:55:20]OFD Sender: No OFD packet to send [17:55:25]OFD Sender: No OFD packet to send [17:55:30]OFD Sender: No OFD packet to send [17:55:35]OFD Sender: No OFD packet to send [17:55:40]OFD Sender: No OFD packet to send [17:55:45]OFD Sender: No OFD packet to send [17:55:50]OFD Sender: No OFD packet to send [17:55:55]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:03:58]accept exits with 10 [18:03:58]New connection [18:03:58]New thread 3066682724 created [18:03:58]Thread 3066826084 joined [18:03:58]Waiting for new connection... [18:03:58] Sock 10.Parse request [18:03:58]Sock 10.Check first char [18:03:58]Sock 10.First char is OK [18:03:58]request: POST /json_proto HTTP/1.0 [18:03:58]Method: POST [18:03:58]URL: /json_proto [18:03:58]Method is POST - this is cgi request [18:03:58]url: /json_proto [18:03:58]query_string will be loaded in cgi processing [18:03:58]execute_cgi json_proto POST (null) [18:03:58]execute_cgi path=json_proto method=POST [18:03:58]POST find Content-Length [18:03:58]Host: 172.17.41.136:8080 [18:03:58]Content-Length: 684 [18:03:58]Content-Type: application/json [18:03:58] [18:03:58]POST finish read [18:03:58]Found Content-Length = 684 [18:03:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:03:58]execute_script... [18:03:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:03:58]POST & json_proto [18:03:58]process_json_proto [18:03:58]json parsed OK: [18:03:58]protocol is kg_v1.0 [18:03:58]action value=close_receipt [18:03:58]process_action close_receipt [18:03:58]cmd_close_receipt [18:03:58]MH_GetDate [18:03:58]Write to MH i2c: F0 00 00 86 22 97 [18:03:58]Write i2c OK [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: F0 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: F0 09 00 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: F0 09 00 86 22 00 10 5C F0 66 1B D0 5A 64 0B [18:03:58]GetLastDocTimeStamp 1727027379 [18:03:58]current date 1727028240 [18:03:58]FM_GetShiftState [18:03:58]SAM_PROTO_GetShiftState [18:03:58]wFMCommunicate request_size=4 [18:03:58]MH_SAM_APDU [18:03:58]CAPDU: 80 13 01 00 [18:03:58]Write to MH i2c: E2 08 00 87 22 80 13 01 00 00 00 00 00 26 [18:03:58]Write i2c OK [18:03:58]MH_I2C_Read... [18:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:58]Read from MH i2c: E2 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: E2 0E 00 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: E2 0E 00 87 22 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 3F [18:03:58]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:03:58]wFMCommunicate OK [18:03:58]SAM_PROTO_GetShiftState done [18:03:58]FM_GetShiftState done [18:03:58]opened in 1726965840 [18:03:58]opened+sec_in_day 1727052240 [18:03:58]quantity*price = 100005 [18:03:58]sum+1 = 100006 [18:03:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 178 22.09.2024 18:04 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115460 ФПД: 4618655170625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T180400&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115460&fm=4618655170625&tin=02508201610067®Number=0000000000091831&sum=100000 [18:03:59]StoreToDocumentArchive [18:03:59]shift 471 fd 115460 [18:03:59]save to /storage/0471/doc_00115460 [18:03:59]save last doc name /storage/0471/doc_00115460 to /storage/kkm_last_doc_name [18:03:59]save OK [18:03:59]Clear old archive folders... [18:03:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:59]tlvbuf is B6F36430 [18:03:59]SAM_PROTO_ClearQueue [18:03:59]wFMCommunicate request_size=4 [18:03:59]MH_SAM_APDU [18:03:59]CAPDU: 80 09 00 00 [18:03:59]Write to MH i2c: E2 08 00 94 22 80 09 00 00 00 00 00 00 28 [18:03:59]Write i2c OK [18:03:59]MH_I2C_Read... [18:03:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:59]Read from MH i2c: E2 [18:03:59]MH_I2C_Read... [18:03:59]Read from MH i2c: E2 03 00 [18:03:59]MH_I2C_Read... [18:03:59]Read from MH i2c: E2 03 00 94 22 00 90 00 2A [18:03:59]RAPDU: 90 00 [18:03:59]wFMCommunicate OK [18:03:59]SAM_PROTO_ClearQueue done [18:03:59]KKMCreateOFDPacket [18:03:59]OFDProtocolAddRootSTLVToBuf [18:03:59]FM_MakeSignedData [18:03:59]FM_MakeSignedData [18:03:59]SAM_PROTO_SignData [18:03:59]wFMCommunicate request_size=4 [18:03:59]MH_SAM_APDU [18:03:59]CAPDU: 80 0D 01 02 [18:03:59]Write to MH i2c: E2 08 00 95 22 80 0D 01 02 00 00 00 00 30 [18:03:59]Write i2c OK [18:03:59]MH_I2C_Read... [18:03:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:59]Read from MH i2c: E2 [18:03:59]MH_I2C_Read... [18:03:59]Read from MH i2c: E2 03 00 [18:03:59]MH_I2C_Read... [18:03:59]Read from MH i2c: E2 03 00 95 22 00 90 00 2B [18:03:59]RAPDU: 90 00 [18:03:59]wFMCommunicate OK [18:03:59]wFMCommunicate request_size=255 [18:03:59]MH_SAM_APDU [18:03:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B2 00 00 00 F4 03 04 00 10 5C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 04 C3 01 00 35 04 06 00 04 [18:03:59]Write to MH i2c: E2 02 01 96 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B2 00 00 00 F4 03 04 00 10 5C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 04 C3 01 00 35 04 06 00 04 00 00 4E [18:03:59]Write i2c OK [18:03:59]MH_I2C_Read... [18:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:59]Read from MH i2c: E2 [18:03:59]MH_I2C_Read... [18:03:59]Read from MH i2c: E2 03 00 [18:03:59]MH_I2C_Read... [18:03:59]Read from MH i2c: E2 03 00 96 22 00 90 00 2C [18:03:59]RAPDU: 90 00 [18:03:59]wFMCommunicate OK [18:03:59]wFMCommunicate request_size=10 [18:03:59]MH_SAM_APDU [18:03:59]CAPDU: 80 0D 02 02 05 33 5D 4D 00 41 [18:03:59]Write to MH i2c: E2 0D 00 97 22 80 0D 02 02 05 00 33 5D 4D 00 41 00 00 5B [18:03:59]Write i2c OK [18:03:59]MH_I2C_Read... [18:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:59]Read from MH i2c: E2 [18:03:59]MH_I2C_Read... [18:03:59]Read from MH i2c: E2 03 00 [18:03:59]MH_I2C_Read... [18:03:59]Read from MH i2c: E2 03 00 97 22 00 90 00 2D [18:03:59]RAPDU: 90 00 [18:03:59]wFMCommunicate OK [18:03:59]wFMCommunicate request_size=4 [18:03:59]MH_SAM_APDU [18:03:59]CAPDU: 80 0D 03 02 [18:03:59]Write to MH i2c: E2 08 00 98 22 80 0D 03 02 00 00 00 00 35 [18:03:59]Write i2c OK [18:03:59]MH_I2C_Read... [18:04:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:00]Read from MH i2c: E2 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: E2 0B 00 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: E2 0B 00 98 22 00 92 9D DA FF 96 27 52 B2 90 00 FF [18:04:00]RAPDU: 92 9D DA FF 96 27 52 B2 90 00 [18:04:00]wFMCommunicate OK [18:04:00]SAM_PROTO_SignData done [18:04:00]FM_MakeSignedData done [18:04:00]CreateOFDProtocolMessage [18:04:00]wFMCommunicate request_size=4 [18:04:00]MH_SAM_APDU [18:04:00]CAPDU: 80 11 00 00 [18:04:00]Write to MH i2c: E2 08 00 99 22 80 11 00 00 00 00 00 00 35 [18:04:00]Write i2c OK [18:04:00]MH_I2C_Read... [18:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:00]Read from MH i2c: E2 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: E2 17 00 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: E2 17 00 99 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 83 [18:04:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:04:00]wFMCommunicate OK [18:04:00]CreateOFDProtocolMessage done [18:04:00]OFDSenderStorePacket 115460 [18:04:00]StoreOFDPacket docnum=115460 [18:04:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 2A 54 07 01 D8 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B2 00 00 00 F4 03 04 00 10 5C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 04 C3 01 00 35 04 06 00 04 33 5D 4D 00 41 92 9D DA FF 96 27 52 B2 [18:04:00]CheckFolder [18:04:00]dirname=/storage/ofd_packets [18:04:00]CheckFolder done [18:04:00]ProducePacketName [18:04:00]name=ofd_packets/00115460 [18:04:00]NVStorageSaveData ofd_packets/00115460 [18:04:00]File name is /storage/ofd_packets/00115460 [18:04:00]Write 301 bytes [18:04:00]NVStorageSaveData done [18:04:00]OFDSenderStorePacket done [18:04:00]KKMCreateOFDPacket done [18:04:00]NVStorageSaveData kkm_last_timestamp [18:04:00]File name is /storage/kkm_last_timestamp [18:04:00]Write 4 bytes [18:04:00]NVStorageSaveData done [18:04:00]ExternCall_PrintAddStr [18:04:00]wPrintStart [18:04:00]Write to MH i2c: 01 00 00 9A 22 BC [18:04:00]Write i2c OK [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: 01 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: 01 07 00 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: 01 07 00 9A 22 00 00 00 00 00 FF 0F D1 [18:04:00]RasterBufferAndPrint [18:04:00]line Счет N : (1)24617062 [18:04:00]line ИНН: 02508201610067 [18:04:00]line Контрольно-Кассовый Чек [18:04:00]line ПРОДАЖА [18:04:00]line ТРК (МРК, ГНК) : 33 [18:04:00]line Товар: 2710124130 [18:04:00]line Аи-92-К-5 [18:04:00]line 14.750 * 67.80 [18:04:00]line = 1000.05 [18:04:00]line НДС 12% НСП 1% [18:04:00]line > о реализуемом товаре [18:04:00]line ОКРУГЛЕНИЕ: -0.05 [18:04:00]line ИТОГО: 1000.00 [18:04:00]line Внесено: 1000.00 [18:04:00]line СДАЧА: 0.00 [18:04:00]line НСП 1% : 8.85 [18:04:00]line НДС 12% : 106.20 [18:04:00]line Наличными: 1000.00 [18:04:00]line Безнал.: 0.00 [18:04:00]line Место: АЗС № 90 "Партнер Нефть" [18:04:00]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:04:00]line СНО: Общий режим [18:04:00]line Чек 178 22.09.2024 18:04 [18:04:00]line Смена: 471 ФФД: 1.0 [18:04:00]line ЗНМ: 0300000120 [18:04:00]line РНМ: 0000000000091831 [18:04:00]line Версия ККМ: 001 [18:04:00]line ФМ: 0000000000871830 [18:04:00]line ФД: 115460 [18:04:00]line ФПД: 4618655170625 [18:04:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T180400&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115460&fm=4618655170625&tin=02508201610067®Number=0000000000091831&sum=100000 [18:04:00]OFD Sender: Processing packet 115460 [packets to send 481, broken 480] [18:04:00]ProducePacketName [18:04:00]name=ofd_packets/00115460 [18:04:00]OFD Sender: To server: pG, [18:04:00]CommunicateWithHost lk.salyk.kg:30040 [18:04:00]ConnectInit lk.salyk.kg [18:04:00]written 0, free lines is 4095 [18:04:00]Connected sock=9 [18:04:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 2A 54 07 01 D8 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B2 00 00 00 F4 03 04 00 10 5C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 04 C3 01 00 35 04 06 00 04 33 5D 4D 00 41 92 9D DA FF 96 27 52 B2 [18:04:00]Write to MH i2c: 01 00 00 C4 22 E6 [18:04:00]Write i2c OK [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: 01 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: 01 07 00 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: 01 07 00 C4 22 00 00 00 00 00 5A 0C 53 [18:04:00]RasterBufferAndPrint [18:04:00]line [18:04:00]line [18:04:00]line [18:04:00]line [18:04:00]line [18:04:00]written 0, free lines is 3166 [18:04:00]MH_Cut [18:04:00]Write to MH i2c: D1 01 00 CB 22 01 BF [18:04:00]Write i2c OK [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: D1 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: D1 01 00 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: D1 01 00 CB 22 00 BE [18:04:00]Write to MH i2c: 01 00 00 CC 22 EE [18:04:00]Write i2c OK [18:04:00]MH_I2C_Read... [18:04:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 70 9E 47 00 2C 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 31 38 33 30 10 04 04 00 04 C3 01 00 F4 03 04 00 56 01 F0 66 B6 04 01 00 00 8F 47 EF FC DA 8B C8 D0 [18:04:01]CommunicateWithHost err = 0 [18:04:01]CheckOFDResponse [18:04:01]1017 (14) - 77093643461234 [18:04:01]1041 (16) - 0000000000871830 [18:04:01]1040 (4) - 115460 [18:04:01]1012 (4) - 22.09.2024 11:36 [18:04:01]1206 (1) - 0 [18:04:01]OFD Sender: Remove packet 115460 [18:04:01]ProducePacketName [18:04:01]name=ofd_packets/00115460 [18:04:01]NVStorageDeleteData [18:04:01]OFD Sender: No OFD packet to send [18:04:02]*** Cut start [18:04:02]*** Partial cut [18:04:02]*** CUTSNS_PIN = 1 [18:04:02]*** CUTSNS_PIN = 0 [18:04:02]*** Brake cut motor [18:04:02]Read from MH i2c: 01 [18:04:02]MH_I2C_Read... [18:04:02]*** Stop cut motor [18:04:02]*** Cut end [18:04:02]Read from MH i2c: 01 07 00 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: 01 07 00 CC 22 00 00 00 00 00 FF 0F 03 [18:04:02]process_action close_receipt done [18:04:02]requested_data is exist [18:04:02]produce_requested_data [18:04:02]requested_item fm.sn is exist - process it [18:04:02]wFMCommunicate request_size=4 [18:04:02]MH_SAM_APDU [18:04:02]CAPDU: 80 11 00 00 [18:04:02]Write to MH i2c: E2 08 00 CD 22 80 11 00 00 00 00 00 00 69 [18:04:02]Write i2c OK [18:04:02]MH_I2C_Read... [18:04:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:02]Read from MH i2c: E2 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 17 00 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 17 00 CD 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B7 [18:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:04:02]wFMCommunicate OK [18:04:02]requested_item fd.num is exist - process it [18:04:02]SAM_PROTO_GetFieldsCounters [18:04:02]wFMCommunicate request_size=4 [18:04:02]MH_SAM_APDU [18:04:02]CAPDU: 80 13 00 00 [18:04:02]Write to MH i2c: E2 08 00 CE 22 80 13 00 00 00 00 00 00 6C [18:04:02]Write i2c OK [18:04:02]MH_I2C_Read... [18:04:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:02]Read from MH i2c: E2 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 62 00 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 62 00 CE 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 04 C3 01 00 0E 04 04 00 D7 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 3B [18:04:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 04 C3 01 00 0E 04 04 00 D7 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 [18:04:02]wFMCommunicate OK [18:04:02]SAM_PROTO_GetFieldsCounters done [18:04:02]requested_item shift.num is exist - process it [18:04:02]requested_item shift.opened is exist - process it [18:04:02]req_shift_opened [18:04:02]FM_GetShiftState [18:04:02]SAM_PROTO_GetShiftState [18:04:02]wFMCommunicate request_size=4 [18:04:02]MH_SAM_APDU [18:04:02]CAPDU: 80 13 01 00 [18:04:02]Write to MH i2c: E2 08 00 CF 22 80 13 01 00 00 00 00 00 6E [18:04:02]Write i2c OK [18:04:02]MH_I2C_Read... [18:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:03]Read from MH i2c: E2 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 0E 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 0E 00 CF 22 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 87 [18:04:03]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:04:03]wFMCommunicate OK [18:04:03]SAM_PROTO_GetShiftState done [18:04:03]FM_GetShiftState done [18:04:03]req_shift_opened done [18:04:03]requested_item shift.open_date is exist - process it [18:04:03]req_shift_open_date [18:04:03]req_shift_open_date done [18:04:03]produce_requested_data done [18:04:03]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115460,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:04:03]process_action_free close_receipt [18:04:03]json_value_free [18:04:03]json_value_free done [18:04:03]process_json_proto returns [18:04:03]Send response to host [18:04:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115460,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:04:03]free response buf [18:04:03]execute_script done [18:04:03]execute_script returns [18:04:03]free content buf [18:04:03]Sock 10.Close socket [18:04:03]Sock 10.Thread stoped [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:48]accept exits with 8 [18:04:48]New connection [18:04:49]New thread 3066826084 created [18:04:49]Thread 3066682724 joined [18:04:49]Waiting for new connection... [18:04:49] Sock 8.Parse request [18:04:49]Sock 8.Check first char [18:04:49]Sock 8.First char is OK [18:04:49]request: POST /json_proto HTTP/1.0 [18:04:49]Method: POST [18:04:49]URL: /json_proto [18:04:49]Method is POST - this is cgi request [18:04:49]url: /json_proto [18:04:49]query_string will be loaded in cgi processing [18:04:49]execute_cgi json_proto POST (null) [18:04:49]execute_cgi path=json_proto method=POST [18:04:49]POST find Content-Length [18:04:49]Host: 172.17.41.136:8080 [18:04:49]Content-Length: 805 [18:04:49]Content-Type: application/json [18:04:49] [18:04:49]POST finish read [18:04:49]Found Content-Length = 805 [18:04:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:49]execute_script... [18:04: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)24617060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:49]POST & json_proto [18:04:49]process_json_proto [18:04:49]json parsed OK: [18:04:49]protocol is kg_v1.0 [18:04:49]action value=close_receipt [18:04:49]process_action close_receipt [18:04:49]cmd_close_receipt [18:04:49]MH_GetDate [18:04:49]Write to MH i2c: F0 00 00 D0 22 E1 [18:04:49]Write i2c OK [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: F0 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: F0 09 00 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: F0 09 00 D0 22 00 43 5C F0 66 1B D0 5A 64 88 [18:04:49]GetLastDocTimeStamp 1727028240 [18:04:49]current date 1727028291 [18:04:49]FM_GetShiftState [18:04:49]SAM_PROTO_GetShiftState [18:04:49]wFMCommunicate request_size=4 [18:04:49]MH_SAM_APDU [18:04:49]CAPDU: 80 13 01 00 [18:04:49]Write to MH i2c: E2 08 00 D1 22 80 13 01 00 00 00 00 00 70 [18:04:49]Write i2c OK [18:04:49]MH_I2C_Read... [18:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:49]Read from MH i2c: E2 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: E2 0E 00 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: E2 0E 00 D1 22 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 89 [18:04:49]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:04:49]wFMCommunicate OK [18:04:49]SAM_PROTO_GetShiftState done [18:04:49]FM_GetShiftState done [18:04:49]opened in 1726965840 [18:04:49]opened+sec_in_day 1727052240 [18:04:49]quantity*price = 300064 [18:04:49]sum+1 = 300066 [18:04:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 179 22.09.2024 18:04 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115461 ФПД: 101287605107900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T180451&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115461&fm=101287605107900&tin=02508201610067®Number=0000000000091831&sum=300065 [18:04:50]StoreToDocumentArchive [18:04:50]shift 471 fd 115461 [18:04:50]save to /storage/0471/doc_00115461 [18:04:50]save last doc name /storage/0471/doc_00115461 to /storage/kkm_last_doc_name [18:04:50]save OK [18:04:50]Clear old archive folders... [18:04:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:50]tlvbuf is B6F36160 [18:04:50]SAM_PROTO_ClearQueue [18:04:50]wFMCommunicate request_size=4 [18:04:50]MH_SAM_APDU [18:04:50]CAPDU: 80 09 00 00 [18:04:50]Write to MH i2c: E2 08 00 DE 22 80 09 00 00 00 00 00 00 72 [18:04:50]Write i2c OK [18:04:50]MH_I2C_Read... [18:04:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:50]Read from MH i2c: E2 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 03 00 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 03 00 DE 22 00 90 00 74 [18:04:50]RAPDU: 90 00 [18:04:50]wFMCommunicate OK [18:04:50]SAM_PROTO_ClearQueue done [18:04:50]KKMCreateOFDPacket [18:04:50]OFDProtocolAddRootSTLVToBuf [18:04:50]FM_MakeSignedData [18:04:50]FM_MakeSignedData [18:04:50]SAM_PROTO_SignData [18:04:50]wFMCommunicate request_size=4 [18:04:50]MH_SAM_APDU [18:04:50]CAPDU: 80 0D 01 02 [18:04:50]Write to MH i2c: E2 08 00 DF 22 80 0D 01 02 00 00 00 00 7A [18:04:50]Write i2c OK [18:04:50]MH_I2C_Read... [18:04:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:50]Read from MH i2c: E2 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 03 00 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 03 00 DF 22 00 90 00 75 [18:04:50]RAPDU: 90 00 [18:04:50]wFMCommunicate OK [18:04:50]wFMCommunicate request_size=255 [18:04:50]MH_SAM_APDU [18:04:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 43 5C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 05 C3 01 00 35 04 06 00 5C [18:04:50]Write to MH i2c: E2 02 01 E0 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 43 5C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 05 C3 01 00 35 04 06 00 5C 00 00 5B [18:04:50]Write i2c OK [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:50] [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 03 00 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 03 00 E0 22 00 90 00 76 [18:04:50]RAPDU: 90 00 [18:04:50]wFMCommunicate OK [18:04:50]wFMCommunicate request_size=10 [18:04:50]MH_SAM_APDU [18:04:50]CAPDU: 80 0D 02 02 05 1E DB B8 FC BC [18:04:50]Write to MH i2c: E2 0D 00 E1 22 80 0D 02 02 05 00 1E DB B8 FC BC 00 00 F0 [18:04:50]Write i2c OK [18:04:50]MH_I2C_Read... [18:04:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:50]Read from MH i2c: E2 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 03 00 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 03 00 E1 22 00 90 00 77 [18:04:50]RAPDU: 90 00 [18:04:50]wFMCommunicate OK [18:04:50]wFMCommunicate request_size=4 [18:04:50]MH_SAM_APDU [18:04:50]CAPDU: 80 0D 03 02 [18:04:50]Write to MH i2c: E2 08 00 E2 22 80 0D 03 02 00 00 00 00 7F [18:04:50]Write i2c OK [18:04:50]MH_I2C_Read... [18:04:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:50]Read from MH i2c: E2 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 0B 00 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 0B 00 E2 22 00 53 C8 9B F3 3E D0 6B 4C 90 00 EE [18:04:50]RAPDU: 53 C8 9B F3 3E D0 6B 4C 90 00 [18:04:50]wFMCommunicate OK [18:04:50]SAM_PROTO_SignData done [18:04:50]FM_MakeSignedData done [18:04:50]CreateOFDProtocolMessage [18:04:50]wFMCommunicate request_size=4 [18:04:50]MH_SAM_APDU [18:04:50]CAPDU: 80 11 00 00 [18:04:50]Write to MH i2c: E2 08 00 E3 22 80 11 00 00 00 00 00 00 7F [18:04:50]Write i2c OK [18:04:50]MH_I2C_Read... [18:04:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:50]Read from MH i2c: E2 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 17 00 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 17 00 E3 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CD [18:04:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:04:50]wFMCommunicate OK [18:04:50]CreateOFDProtocolMessage done [18:04:50]OFDSenderStorePacket 115461 [18:04:50]StoreOFDPacket docnum=115461 [18:04:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 0C E7 07 01 EE 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 43 5C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 05 C3 01 00 35 04 06 00 5C 1E DB B8 FC BC 53 C8 9B F3 3E D0 6B 4C [18:04:50]CheckFolder [18:04:50]dirname=/storage/ofd_packets [18:04:50]CheckFolder done [18:04:50]ProducePacketName [18:04:50]name=ofd_packets/00115461 [18:04:50]NVStorageSaveData ofd_packets/00115461 [18:04:50]File name is /storage/ofd_packets/00115461 [18:04:50]Write 301 bytes [18:04:50]NVStorageSaveData done [18:04:50]OFDSenderStorePacket done [18:04:50]KKMCreateOFDPacket done [18:04:50]NVStorageSaveData kkm_last_timestamp [18:04:50]File name is /storage/kkm_last_timestamp [18:04:50]Write 4 bytes [18:04:50]NVStorageSaveData done [18:04:50]ExternCall_PrintAddStr [18:04:50]wPrintStart [18:04:50]Write to MH i2c: 01 00 00 E4 22 06 [18:04:50]Write i2c OK [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: 01 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: 01 07 00 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: 01 07 00 E4 22 00 00 00 00 00 FF 0F 1B [18:04:50]RasterBufferAndPrint [18:04:50]line Счет N : (1)24617060 [18:04:50]line ИНН: 02508201610067 [18:04:50]line Контрольно-Кассовый Чек [18:04:50]line ПРОДАЖА [18:04:50]line ТРК (МРК, ГНК) : 52 [18:04:50]line Товар: 2710124500 [18:04:50]line Аи-95-К-5 [18:04:50]line 40.440 * 74.20 [18:04:50]line = 3000.65 [18:04:50]line НДС 12% НСП 1% [18:04:50]line > о реализуемом товаре [18:04:50]line ИТОГО: 3000.65 [18:04:50]line НСП 1% : 26.55 [18:04:50]line НДС 12% : 318.65 [18:04:50]line Наличными: 0.00 [18:04:50]line Безнал.: 3000.65 [18:04:50]line Место: АЗС № 90 "Партнер Нефть" [18:04:50]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:04:50]line СНО: Общий режим [18:04:50]line Чек 179 22.09.2024 18:04 [18:04:50]line Смена: 471 ФФД: 1.0 [18:04:50]line ЗНМ: 0300000120 [18:04:50]line РНМ: 0000000000091831 [18:04:50]line Версия ККМ: 001 [18:04:50]line Платежная система: O! деньги [18:04:50]line ФМ: 0000000000871830 [18:04:50]line ФД: 115461 [18:04:50]line ФПД: 101287605107900 [18:04:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T180451&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115461&fm=101287605107900&tin=02508201610067®Number=0000000000091831&sum=300065 [18:04:50]written 0, free lines is 4095 [18:04:50]OFD Sender: Processing packet 115461 [packets to send 481, broken 480] [18:04:50]ProducePacketName [18:04:50]name=ofd_packets/00115461 [18:04:50]OFD Sender: To server: pG, [18:04:50]CommunicateWithHost lk.salyk.kg:30040 [18:04:50]ConnectInit lk.salyk.kg [18:04:51]Connected sock=10 [18:04:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 0C E7 07 01 EE 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 43 5C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 05 C3 01 00 35 04 06 00 5C 1E DB B8 FC BC 53 C8 9B F3 3E D0 6B 4C [18:04:51]Write to MH i2c: 01 00 00 0D 23 30 [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: 01 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: 01 07 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: 01 07 00 0D 23 00 00 00 00 00 71 0C B4 [18:04:51]RasterBufferAndPrint [18:04:51]line [18:04:51]line [18:04:51]line [18:04:51]line [18:04:51]line [18:04:51]written 0, free lines is 3190 [18:04:51]MH_Cut [18:04:51]Write to MH i2c: D1 01 00 14 23 01 09 [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: D1 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: D1 01 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: D1 01 00 14 23 00 08 [18:04:51]Write to MH i2c: 01 00 00 15 23 38 [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 74 5C 47 00 B4 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 05 C3 01 00 F4 03 04 00 88 01 F0 66 B6 04 01 00 00 F1 E9 6B CC 2D 1A 91 D6 [18:04:51]CommunicateWithHost err = 0 [18:04:51]CheckOFDResponse [18:04:51]1017 (14) - 77093643461234 [18:04:51]1041 (16) - 0000000000871830 [18:04:51]1040 (4) - 115461 [18:04:51]1012 (4) - 22.09.2024 11:37 [18:04:51]1206 (1) - 0 [18:04:51]OFD Sender: Remove packet 115461 [18:04:51]ProducePacketName [18:04:51]name=ofd_packets/00115461 [18:04:51]NVStorageDeleteData [18:04:51]OFD Sender: No OFD packet to send [18:04:52]*** Cut start [18:04:52]*** Partial cut [18:04:52]*** CUTSNS_PIN = 1 [18:04:52]*** CUTSNS_PIN = 0 [18:04:52]*** Brake cut motor [18:04:53]Read from MH i2c: 01 [18:04:53]MH_I2C_Read... [18:04:53]*** Stop cut motor [18:04:53]*** Cut end [18:04:53]Read from MH i2c: 01 07 00 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: 01 07 00 15 23 00 00 00 00 00 FF 0F 4D [18:04:53]process_action close_receipt done [18:04:53]requested_data is exist [18:04:53]produce_requested_data [18:04:53]requested_item fm.sn is exist - process it [18:04:53]wFMCommunicate request_size=4 [18:04:53]MH_SAM_APDU [18:04:53]CAPDU: 80 11 00 00 [18:04:53]Write to MH i2c: E2 08 00 16 23 80 11 00 00 00 00 00 00 B3 [18:04:53]Write i2c OK [18:04:53]MH_I2C_Read... [18:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:53]Read from MH i2c: E2 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 17 00 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 17 00 16 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 01 [18:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:04:53]wFMCommunicate OK [18:04:53]requested_item fd.num is exist - process it [18:04:53]SAM_PROTO_GetFieldsCounters [18:04:53]wFMCommunicate request_size=4 [18:04:53]MH_SAM_APDU [18:04:53]CAPDU: 80 13 00 00 [18:04:53]Write to MH i2c: E2 08 00 17 23 80 13 00 00 00 00 00 00 B6 [18:04:53]Write i2c OK [18:04:53]MH_I2C_Read... [18:04:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:53]Read from MH i2c: E2 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 62 00 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 62 00 17 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 05 C3 01 00 0E 04 04 00 D7 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 89 [18:04:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 05 C3 01 00 0E 04 04 00 D7 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 [18:04:53]wFMCommunicate OK [18:04:53]SAM_PROTO_GetFieldsCounters done [18:04:53]requested_item shift.num is exist - process it [18:04:53]requested_item shift.opened is exist - process it [18:04:53]req_shift_opened [18:04:53]FM_GetShiftState [18:04:53]SAM_PROTO_GetShiftState [18:04:53]wFMCommunicate request_size=4 [18:04:53]MH_SAM_APDU [18:04:53]CAPDU: 80 13 01 00 [18:04:53]Write to MH i2c: E2 08 00 18 23 80 13 01 00 00 00 00 00 B8 [18:04:53]Write i2c OK [18:04:53]MH_I2C_Read... [18:04:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:53]Read from MH i2c: E2 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 0E 00 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 0E 00 18 23 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D1 [18:04:53]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:04:53]wFMCommunicate OK [18:04:53]SAM_PROTO_GetShiftState done [18:04:53]FM_GetShiftState done [18:04:53]req_shift_opened done [18:04:53]requested_item shift.open_date is exist - process it [18:04:53]req_shift_open_date [18:04:53]req_shift_open_date done [18:04:53]produce_requested_data done [18:04:53]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115461,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:04:53]process_action_free close_receipt [18:04:53]json_value_free [18:04:53]json_value_free done [18:04:53]process_json_proto returns [18:04:53]Send response to host [18:04:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115461,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:04:53]free response buf [18:04:53]execute_script done [18:04:53]execute_script returns [18:04:53]free content buf [18:04:53]Sock 8.Close socket [18:04:53]Sock 8.Thread stoped [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:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:04]accept exits with 9 [18:07:04]New connection [18:07:04]New thread 3066682724 created [18:07:04]Thread 3066826084 joined [18:07:04]Waiting for new connection... [18:07:04] Sock 9.Parse request [18:07:04]Sock 9.Check first char [18:07:04]Sock 9.First char is OK [18:07:04]request: POST /json_proto HTTP/1.0 [18:07:04]Method: POST [18:07:04]URL: /json_proto [18:07:04]Method is POST - this is cgi request [18:07:04]url: /json_proto [18:07:04]query_string will be loaded in cgi processing [18:07:04]execute_cgi json_proto POST (null) [18:07:04]execute_cgi path=json_proto method=POST [18:07:04]POST find Content-Length [18:07:04]Host: 172.17.41.136:8080 [18:07:04]Content-Length: 681 [18:07:04]Content-Type: application/json [18:07:04] [18:07:04]POST finish read [18:07:04]Found Content-Length = 681 [18:07:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 45", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:04]execute_script... [18:07: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)24617064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 45", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:04]POST & json_proto [18:07:04]process_json_proto [18:07:04]json parsed OK: [18:07:04]protocol is kg_v1.0 [18:07:04]action value=close_receipt [18:07:04]process_action close_receipt [18:07:04]cmd_close_receipt [18:07:04]MH_GetDate [18:07:04]Write to MH i2c: F0 00 00 19 23 2B [18:07:04]Write i2c OK [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: F0 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: F0 09 00 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: F0 09 00 19 23 00 CA 5C F0 66 1B D0 5A 64 59 [18:07:04]GetLastDocTimeStamp 1727028291 [18:07:04]current date 1727028426 [18:07:04]FM_GetShiftState [18:07:04]SAM_PROTO_GetShiftState [18:07:04]wFMCommunicate request_size=4 [18:07:04]MH_SAM_APDU [18:07:04]CAPDU: 80 13 01 00 [18:07:04]Write to MH i2c: E2 08 00 1A 23 80 13 01 00 00 00 00 00 BA [18:07:04]Write i2c OK [18:07:04]MH_I2C_Read... [18:07:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:04]Read from MH i2c: E2 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: E2 0E 00 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: E2 0E 00 1A 23 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D3 [18:07:04]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:07:04]wFMCommunicate OK [18:07:04]SAM_PROTO_GetShiftState done [18:07:04]FM_GetShiftState done [18:07:04]opened in 1726965840 [18:07:04]opened+sec_in_day 1727052240 [18:07:04]quantity*price = 100050 [18:07:04]sum+1 = 100052 [18:07:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 180 22.09.2024 18:07 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115462 ФПД: 73106637365751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T180706&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115462&fm=73106637365751&tin=02508201610067®Number=0000000000091831&sum=100000 [18:07:05]StoreToDocumentArchive [18:07:05]shift 471 fd 115462 [18:07:05]save to /storage/0471/doc_00115462 [18:07:05]save last doc name /storage/0471/doc_00115462 to /storage/kkm_last_doc_name [18:07:05]save OK [18:07:05]Clear old archive folders... [18:07:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:07:05]tlvbuf is 01C78670 [18:07:05]SAM_PROTO_ClearQueue [18:07:05]wFMCommunicate request_size=4 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 09 00 00 [18:07:05]Write to MH i2c: E2 08 00 27 23 80 09 00 00 00 00 00 00 BC [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 27 23 00 90 00 BE [18:07:05]RAPDU: 90 00 [18:07:05]wFMCommunicate OK [18:07:05]SAM_PROTO_ClearQueue done [18:07:05]KKMCreateOFDPacket [18:07:05]OFDProtocolAddRootSTLVToBuf [18:07:05]FM_MakeSignedData [18:07:05]FM_MakeSignedData [18:07:05]SAM_PROTO_SignData [18:07:05]wFMCommunicate request_size=4 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 0D 01 02 [18:07:05]Write to MH i2c: E2 08 00 28 23 80 0D 01 02 00 00 00 00 C4 [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 28 23 00 90 00 BF [18:07:05]RAPDU: 90 00 [18:07:05]wFMCommunicate OK [18:07:05]wFMCommunicate request_size=255 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B4 00 00 00 F4 03 04 00 CA 5C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 06 C3 01 00 35 04 06 00 42 7D 77 26 [18:07:05]Write to MH i2c: E2 02 01 29 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B4 00 00 00 F4 03 04 00 CA 5C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 06 C3 01 00 35 04 06 00 42 7D 77 26 00 00 6F [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 29 23 00 90 00 C0 [18:07:05]RAPDU: 90 00 [18:07:05]wFMCommunicate OK [18:07:05]wFMCommunicate request_size=7 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 0D 02 02 02 A1 F7 [18:07:05]Write to MH i2c: E2 0A 00 2A 23 80 0D 02 02 02 00 A1 F7 00 00 63 [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 2A 23 00 90 00 C1 [18:07:05]RAPDU: 90 00 [18:07:05]wFMCommunicate OK [18:07:05]wFMCommunicate request_size=4 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 0D 03 02 [18:07:05]Write to MH i2c: E2 08 00 2B 23 80 0D 03 02 00 00 00 00 C9 [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 0B 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 0B 00 2B 23 00 B7 B8 E8 F2 A3 1B 58 F5 90 00 1E [18:07:05]RAPDU: B7 B8 E8 F2 A3 1B 58 F5 90 00 [18:07:05]wFMCommunicate OK [18:07:05]SAM_PROTO_SignData done [18:07:05]FM_MakeSignedData done [18:07:05]CreateOFDProtocolMessage [18:07:05]wFMCommunicate request_size=4 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 11 00 00 [18:07:05]Write to MH i2c: E2 08 00 2C 23 80 11 00 00 00 00 00 00 C9 [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 17 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 17 00 2C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 17 [18:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:07:05]wFMCommunicate OK [18:07:05]CreateOFDProtocolMessage done [18:07:05]OFDSenderStorePacket 115462 [18:07:05]StoreOFDPacket docnum=115462 [18:07:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 F7 02 04 01 98 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 CA 5C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 06 C3 01 00 35 04 06 00 42 7D 77 26 A1 F7 B7 B8 E8 F2 A3 1B 58 F5 [18:07:05]CheckFolder [18:07:05]dirname=/storage/ofd_packets [18:07:05]CheckFolder done [18:07:05]ProducePacketName [18:07:05]name=ofd_packets/00115462 [18:07:05]NVStorageSaveData ofd_packets/00115462 [18:07:05]File name is /storage/ofd_packets/00115462 [18:07:05]Write 298 bytes [18:07:05]NVStorageSaveData done [18:07:05]OFDSenderStorePacket done [18:07:05]KKMCreateOFDPacket done [18:07:05]NVStorageSaveData kkm_last_timestamp [18:07:05]File name is /storage/kkm_last_timestamp [18:07:05]Write 4 bytes [18:07:05]NVStorageSaveData done [18:07:05]ExternCall_PrintAddStr [18:07:05]wPrintStart [18:07:05]Write to MH i2c: 01 00 00 2D 23 50 [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 07 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 07 00 2D 23 00 00 00 00 00 FF 0F 65 [18:07:05]RasterBufferAndPrint [18:07:05]line Счет N : (1)24617064 [18:07:05]line ИНН: 02508201610067 [18:07:05]line Контрольно-Кассовый Чек [18:07:05]line ПРОДАЖА [18:07:05]line ТРК (МРК, ГНК) : 45 [18:07:05]line Товар: 2710194210 [18:07:05]line ДТ-К-5 [18:07:05]line 13.130 * 76.20 [18:07:05]line = 1000.51 [18:07:05]line НДС 12% НСП 1% [18:07:05]line > о реализуемом товаре [18:07:05]line ОКРУГЛЕНИЕ: -0.51 [18:07:05]line ИТОГО: 1000.00 [18:07:05]line Внесено: 1000.00 [18:07:05]line СДАЧА: 0.00 [18:07:05]line НСП 1% : 8.85 [18:07:05]line НДС 12% : 106.25 [18:07:05]line Наличными: 1000.00 [18:07:05]line Безнал.: 0.00 [18:07:05]line Место: АЗС № 90 "Партнер Нефть" [18:07:05]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:07:05]line СНО: Общий режим [18:07:05]line Чек 180 22.09.2024 18:07 [18:07:05]line Смена: 471 ФФД: 1.0 [18:07:05]line ЗНМ: 0300000120 [18:07:05]line РНМ: 0000000000091831 [18:07:05]line Версия ККМ: 001 [18:07:05]line ФМ: 0000000000871830 [18:07:05]line ФД: 115462 [18:07:05]line ФПД: 73106637365751 [18:07:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T180706&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115462&fm=73106637365751&tin=02508201610067®Number=0000000000091831&sum=100000 [18:07:05]written 0, free lines is 4095 [18:07:06]OFD Sender: Processing packet 115462 [packets to send 481, broken 480] [18:07:06]ProducePacketName [18:07:06]name=ofd_packets/00115462 [18:07:06]OFD Sender: To server: pG, [18:07:06]CommunicateWithHost lk.salyk.kg:30040 [18:07:06]ConnectInit lk.salyk.kg [18:07:06]Connected sock=10 [18:07:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 F7 02 04 01 98 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 CA 5C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 06 C3 01 00 35 04 06 00 42 7D 77 26 A1 F7 B7 B8 E8 F2 A3 1B 58 F5 [18:07:06]Write to MH i2c: 01 00 00 57 23 7A [18:07:06]Write i2c OK [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: 01 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: 01 07 00 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: 01 07 00 57 23 00 00 00 00 00 53 0C E0 [18:07:06]RasterBufferAndPrint [18:07:06]line [18:07:06]line [18:07:06]line [18:07:06]line [18:07:06]line [18:07:06]written 0, free lines is 3161 [18:07:06]MH_Cut [18:07:06]Write to MH i2c: D1 01 00 5E 23 01 53 [18:07:06]Write i2c OK [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: D1 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: D1 01 00 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: D1 01 00 5E 23 00 52 [18:07:06]Write to MH i2c: 01 00 00 5F 23 82 [18:07:06]Write i2c OK [18:07:06]MH_I2C_Read... [18:07:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6E 4A 47 00 10 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 06 C3 01 00 F4 03 04 00 0F 02 F0 66 B6 04 01 00 00 F5 9A 41 15 49 04 AD E5 [18:07:06]CommunicateWithHost err = 0 [18:07:06]CheckOFDResponse [18:07:06]1017 (14) - 77093643461234 [18:07:06]1041 (16) - 0000000000871830 [18:07:06]1040 (4) - 115462 [18:07:06]1012 (4) - 22.09.2024 11:39 [18:07:06]1206 (1) - 0 [18:07:06]OFD Sender: Remove packet 115462 [18:07:06]ProducePacketName [18:07:06]name=ofd_packets/00115462 [18:07:06]NVStorageDeleteData [18:07:07]OFD Sender: No OFD packet to send [18:07:07]*** Cut start [18:07:07]*** Partial cut [18:07:07]*** CUTSNS_PIN = 1 [18:07:07]*** CUTSNS_PIN = 0 [18:07:07]*** Brake cut motor [18:07:08]Read from MH i2c: 01 [18:07:08]MH_I2C_Read... [18:07:08]*** Stop cut motor [18:07:08]*** Cut end [18:07:08]Read from MH i2c: 01 07 00 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: 01 07 00 5F 23 00 00 00 00 00 FF 0F 97 [18:07:08]process_action close_receipt done [18:07:08]requested_data is exist [18:07:08]produce_requested_data [18:07:08]requested_item fm.sn is exist - process it [18:07:08]wFMCommunicate request_size=4 [18:07:08]MH_SAM_APDU [18:07:08]CAPDU: 80 11 00 00 [18:07:08]Write to MH i2c: E2 08 00 60 23 80 11 00 00 00 00 00 00 FD [18:07:08]Write i2c OK [18:07:08]MH_I2C_Read... [18:07:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:08]Read from MH i2c: E2 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: E2 17 00 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: E2 17 00 60 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4B [18:07:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:07:08]wFMCommunicate OK [18:07:08]requested_item fd.num is exist - process it [18:07:08]SAM_PROTO_GetFieldsCounters [18:07:08]wFMCommunicate request_size=4 [18:07:08]MH_SAM_APDU [18:07:08]CAPDU: 80 13 00 00 [18:07:08]Write to MH i2c: E2 08 00 61 23 80 13 00 00 00 00 00 00 00 [18:07:08]Write i2c OK [18:07:08]MH_I2C_Read... [18:07:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:08]Read from MH i2c: E2 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: E2 62 00 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: E2 62 00 61 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 06 C3 01 00 0E 04 04 00 D7 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 D7 [18:07:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 06 C3 01 00 0E 04 04 00 D7 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 [18:07:08]wFMCommunicate OK [18:07:08]SAM_PROTO_GetFieldsCounters done [18:07:08]requested_item shift.num is exist - process it [18:07:08]requested_item shift.opened is exist - process it [18:07:08]req_shift_opened [18:07:08]FM_GetShiftState [18:07:08]SAM_PROTO_GetShiftState [18:07:08]wFMCommunicate request_size=4 [18:07:08]MH_SAM_APDU [18:07:08]CAPDU: 80 13 01 00 [18:07:08]Write to MH i2c: E2 08 00 62 23 80 13 01 00 00 00 00 00 02 [18:07:08]Write i2c OK [18:07:08]MH_I2C_Read... [18:07:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:08]Read from MH i2c: E2 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: E2 0E 00 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: E2 0E 00 62 23 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 1B [18:07:08]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:07:08]wFMCommunicate OK [18:07:08]SAM_PROTO_GetShiftState done [18:07:08]FM_GetShiftState done [18:07:08]req_shift_opened done [18:07:08]requested_item shift.open_date is exist - process it [18:07:08]req_shift_open_date [18:07:08]req_shift_open_date done [18:07:08]produce_requested_data done [18:07:08]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115462,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:07:08]process_action_free close_receipt [18:07:08]json_value_free [18:07:08]json_value_free done [18:07:08]process_json_proto returns [18:07:08]Send response to host [18:07:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115462,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:07:08]free response buf [18:07:08]execute_script done [18:07:08]execute_script returns [18:07:08]free content buf [18:07:08]Sock 9.Close socket [18:07:08]Sock 9.Thread stoped [18:07:12]OFD Sender: No OFD packet to send [18:07:16]accept exits with 8 [18:07:16]New connection [18:07:16]New thread 3066826084 created [18:07:16]Thread 3066682724 joined [18:07:16]Waiting for new connection... [18:07:16] Sock 8.Parse request [18:07:16]Sock 8.Check first char [18:07:16]Sock 8.First char is OK [18:07:16]request: POST /json_proto HTTP/1.0 [18:07:16]Method: POST [18:07:16]URL: /json_proto [18:07:16]Method is POST - this is cgi request [18:07:16]url: /json_proto [18:07:16]query_string will be loaded in cgi processing [18:07:16]execute_cgi json_proto POST (null) [18:07:16]execute_cgi path=json_proto method=POST [18:07:16]POST find Content-Length [18:07:16]Host: 172.17.41.136:8080 [18:07:16]Content-Length: 783 [18:07:16]Content-Type: application/json [18:07:16] [18:07:16]POST finish read [18:07:16]Found Content-Length = 783 [18:07:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 4.330, "sum" : 300.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:16]execute_script... [18:07: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)24617065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 4.330, "sum" : 300.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:16]POST & json_proto [18:07:16]process_json_proto [18:07:16]json parsed OK: [18:07:16]protocol is kg_v1.0 [18:07:16]action value=close_receipt [18:07:16]process_action close_receipt [18:07:16]cmd_close_receipt [18:07:16]MH_GetDate [18:07:16]Write to MH i2c: F0 00 00 63 23 75 [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: F0 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: F0 09 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: F0 09 00 63 23 00 D6 5C F0 66 1B D0 5A 64 AF [18:07:16]GetLastDocTimeStamp 1727028426 [18:07:16]current date 1727028438 [18:07:16]FM_GetShiftState [18:07:16]SAM_PROTO_GetShiftState [18:07:16]wFMCommunicate request_size=4 [18:07:16]MH_SAM_APDU [18:07:16]CAPDU: 80 13 01 00 [18:07:16]Write to MH i2c: E2 08 00 64 23 80 13 01 00 00 00 00 00 04 [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:16]Read from MH i2c: E2 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 0E 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 0E 00 64 23 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 1D [18:07:16]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:07:16]wFMCommunicate OK [18:07:16]SAM_PROTO_GetShiftState done [18:07:16]FM_GetShiftState done [18:07:16]opened in 1726965840 [18:07:16]opened+sec_in_day 1727052240 [18:07:16]quantity*price = 30006 [18:07:16]sum+1 = 30008 [18:07:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.07 НСП 1% : 2.65 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.07 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 181 22.09.2024 18:07 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115463 ФПД: 156106749512338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T180718&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115463&fm=156106749512338&tin=02508201610067®Number=0000000000091831&sum=30007 [18:07:17]StoreToDocumentArchive [18:07:17]shift 471 fd 115463 [18:07:17]save to /storage/0471/doc_00115463 [18:07:17]save last doc name /storage/0471/doc_00115463 to /storage/kkm_last_doc_name [18:07:17]save OK [18:07:17]Clear old archive folders... [18:07:17]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:07:17]tlvbuf is 01C94390 [18:07:17]SAM_PROTO_ClearQueue [18:07:17]wFMCommunicate request_size=4 [18:07:17]MH_SAM_APDU [18:07:17]CAPDU: 80 09 00 00 [18:07:17]Write to MH i2c: E2 08 00 71 23 80 09 00 00 00 00 00 00 06 [18:07:17]Write i2c OK [18:07:17]MH_I2C_Read... [18:07:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:17]Read from MH i2c: E2 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: E2 03 00 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: E2 03 00 71 23 00 90 00 08 [18:07:17]RAPDU: 90 00 [18:07:17]wFMCommunicate OK [18:07:17]SAM_PROTO_ClearQueue done [18:07:17]KKMCreateOFDPacket [18:07:17]OFDProtocolAddRootSTLVToBuf [18:07:17]FM_MakeSignedData [18:07:17]FM_MakeSignedData [18:07:17]SAM_PROTO_SignData [18:07:17]wFMCommunicate request_size=4 [18:07:17]MH_SAM_APDU [18:07:17]CAPDU: 80 0D 01 02 [18:07:17]Write to MH i2c: E2 08 00 72 23 80 0D 01 02 00 00 00 00 0E [18:07:17]Write i2c OK [18:07:17]MH_I2C_Read... [18:07:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:17]Read from MH i2c: E2 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: E2 03 00 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: E2 03 00 72 23 00 90 00 09 [18:07:17]RAPDU: 90 00 [18:07:17]wFMCommunicate OK [18:07:17]wFMCommunicate request_size=253 [18:07:17]MH_SAM_APDU [18:07:17]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 EA 10 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 37 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 D6 5C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 07 C3 01 00 35 04 06 00 8D FA 6F 5A 0A 92 [18:07:17]Write to MH i2c: E2 00 01 73 23 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 EA 10 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 37 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 D6 5C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 07 C3 01 00 35 04 06 00 8D FA 6F 5A 0A 92 00 00 3E [18:07:17]Write i2c OK [18:07:17]MH_I2C_Read... [18:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:17]Read from MH i2c: E2 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: E2 03 00 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: E2 03 00 73 23 00 90 00 0A [18:07:17]RAPDU: 90 00 [18:07:17]wFMCommunicate OK [18:07:17]wFMCommunicate request_size=4 [18:07:17]MH_SAM_APDU [18:07:17]CAPDU: 80 0D 03 02 [18:07:17]Write to MH i2c: E2 08 00 74 23 80 0D 03 02 00 00 00 00 12 [18:07:17]Write i2c OK [18:07:17]MH_I2C_Read... [18:07:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:17]Read from MH i2c: E2 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: E2 0B 00 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: E2 0B 00 74 23 00 14 EC 3F EE CD BF 69 63 90 00 98 [18:07:17]RAPDU: 14 EC 3F EE CD BF 69 63 90 00 [18:07:17]wFMCommunicate OK [18:07:17]SAM_PROTO_SignData done [18:07:17]FM_MakeSignedData done [18:07:17]CreateOFDProtocolMessage [18:07:17]wFMCommunicate request_size=4 [18:07:17]MH_SAM_APDU [18:07:17]CAPDU: 80 11 00 00 [18:07:17]Write to MH i2c: E2 08 00 75 23 80 11 00 00 00 00 00 00 12 [18:07:17]Write i2c OK [18:07:17]MH_I2C_Read... [18:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:17]Read from MH i2c: E2 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: E2 17 00 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: E2 17 00 75 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 60 [18:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:07:17]wFMCommunicate OK [18:07:17]CreateOFDProtocolMessage done [18:07:17]OFDSenderStorePacket 115463 [18:07:17]StoreOFDPacket docnum=115463 [18:07:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 C8 2B 00 01 6E 05 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 EA 10 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 37 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 D6 5C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 07 C3 01 00 35 04 06 00 8D FA 6F 5A 0A 92 14 EC 3F EE CD BF 69 63 [18:07:17]CheckFolder [18:07:17]dirname=/storage/ofd_packets [18:07:17]CheckFolder done [18:07:17]ProducePacketName [18:07:17]name=ofd_packets/00115463 [18:07:17]NVStorageSaveData ofd_packets/00115463 [18:07:17]File name is /storage/ofd_packets/00115463 [18:07:17]Write 294 bytes [18:07:17]NVStorageSaveData done [18:07:17]OFDSenderStorePacket done [18:07:17]KKMCreateOFDPacket done [18:07:17]NVStorageSaveData kkm_last_timestamp [18:07:17]File name is /storage/kkm_last_timestamp [18:07:17]Write 4 bytes [18:07:17]NVStorageSaveData done [18:07:17]ExternCall_PrintAddStr [18:07:17]wPrintStart [18:07:17]Write to MH i2c: 01 00 00 76 23 99 [18:07:17]Write i2c OK [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: 01 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: 01 07 00 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: 01 07 00 76 23 00 00 00 00 00 FF 0F AE [18:07:17]RasterBufferAndPrint [18:07:17]line Счет N : (1)24617065 [18:07:17]line ИНН: 02508201610067 [18:07:17]line Контрольно-Кассовый Чек [18:07:17]line ПРОДАЖА [18:07:17]line ТРК (МРК, ГНК) : 64 [18:07:17]line Товар: 2710124130 [18:07:17]line SU-92 [18:07:17]line 4.330 * 69.30 [18:07:17]line = 300.07 [18:07:17]line НДС 12% НСП 1% [18:07:17]line > о реализуемом товаре [18:07:17]line ИТОГО: 300.07 [18:07:17]line НСП 1% : 2.65 [18:07:17]line НДС 12% : 31.87 [18:07:17]line Наличными: 0.00 [18:07:17]line Безнал.: 300.07 [18:07:17]line Место: АЗС № 90 "Партнер Нефть" [18:07:17]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:07:17]line СНО: Общий режим [18:07:17]line Чек 181 22.09.2024 18:07 [18:07:17]line Смена: 471 ФФД: 1.0 [18:07:17]line ЗНМ: 0300000120 [18:07:17]line РНМ: 0000000000091831 [18:07:17]line Версия ККМ: 001 [18:07:17]line Платежная система: O! деньги [18:07:17]line ФМ: 0000000000871830 [18:07:17]line ФД: 115463 [18:07:17]line ФПД: 156106749512338 [18:07:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T180718&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115463&fm=156106749512338&tin=02508201610067®Number=0000000000091831&sum=30007 [18:07:17]written 0, free lines is 4095 [18:07:17]OFD Sender: Processing packet 115463 [packets to send 481, broken 480] [18:07:17]ProducePacketName [18:07:17]name=ofd_packets/00115463 [18:07:17]OFD Sender: To server: pG, [18:07:17]CommunicateWithHost lk.salyk.kg:30040 [18:07:17]ConnectInit lk.salyk.kg [18:07:18]Connected sock=10 [18:07:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 C8 2B 00 01 6E 05 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 EA 10 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 37 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 D6 5C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 07 C3 01 00 35 04 06 00 8D FA 6F 5A 0A 92 14 EC 3F EE CD BF 69 63 [18:07:18]Write to MH i2c: 01 00 00 9F 23 C2 [18:07:18]Write i2c OK [18:07:18]MH_I2C_Read... [18:07:18]Read from MH i2c: 01 [18:07:18]MH_I2C_Read... [18:07:18]Read from MH i2c: 01 07 00 [18:07:18]MH_I2C_Read... [18:07:18]Read from MH i2c: 01 07 00 9F 23 00 00 00 00 00 88 0C 5D [18:07:18]RasterBufferAndPrint [18:07:18]line [18:07:18]line [18:07:18]line [18:07:18]line [18:07:18]line [18:07:18]written 0, free lines is 3213 [18:07:18]MH_Cut [18:07:18]Write to MH i2c: D1 01 00 A6 23 01 9B [18:07:18]Write i2c OK [18:07:18]MH_I2C_Read... [18:07:18]Read from MH i2c: D1 [18:07:18]MH_I2C_Read... [18:07:18]Read from MH i2c: D1 01 00 [18:07:18]MH_I2C_Read... [18:07:18]Read from MH i2c: D1 01 00 A6 23 00 9A [18:07:18]Write to MH i2c: 01 00 00 A7 23 CA [18:07:18]Write i2c OK [18:07:18]MH_I2C_Read... [18:07:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 0B 32 47 00 CA E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 07 C3 01 00 F4 03 04 00 1B 02 F0 66 B6 04 01 00 00 07 E0 B2 CB D8 D5 C8 E0 [18:07:18]CommunicateWithHost err = 0 [18:07:18]CheckOFDResponse [18:07:18]1017 (14) - 77093643461234 [18:07:18]1041 (16) - 0000000000871830 [18:07:18]1040 (4) - 115463 [18:07:18]1012 (4) - 22.09.2024 11:40 [18:07:18]1206 (1) - 0 [18:07:18]OFD Sender: Remove packet 115463 [18:07:18]ProducePacketName [18:07:18]name=ofd_packets/00115463 [18:07:18]NVStorageDeleteData [18:07:19]OFD Sender: No OFD packet to send [18:07:19]*** Cut start [18:07:19]*** Partial cut [18:07:19]*** CUTSNS_PIN = 1 [18:07:19]*** CUTSNS_PIN = 0 [18:07:19]*** Brake cut motor [18:07:20]Read from MH i2c: 01 [18:07:20]MH_I2C_Read... [18:07:20]*** Stop cut motor [18:07:20]*** Cut end [18:07:20]Read from MH i2c: 01 07 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: 01 07 00 A7 23 00 00 00 00 00 FF 0F DF [18:07:20]process_action close_receipt done [18:07:20]requested_data is exist [18:07:20]produce_requested_data [18:07:20]requested_item fm.sn is exist - process it [18:07:20]wFMCommunicate request_size=4 [18:07:20]MH_SAM_APDU [18:07:20]CAPDU: 80 11 00 00 [18:07:20]Write to MH i2c: E2 08 00 A8 23 80 11 00 00 00 00 00 00 45 [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:20]Read from MH i2c: E2 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 17 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 17 00 A8 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 93 [18:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:07:20]wFMCommunicate OK [18:07:20]requested_item fd.num is exist - process it [18:07:20]SAM_PROTO_GetFieldsCounters [18:07:20]wFMCommunicate request_size=4 [18:07:20]MH_SAM_APDU [18:07:20]CAPDU: 80 13 00 00 [18:07:20]Write to MH i2c: E2 08 00 A9 23 80 13 00 00 00 00 00 00 48 [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:20]Read from MH i2c: E2 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 62 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 62 00 A9 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 07 C3 01 00 0E 04 04 00 D7 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 23 [18:07:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 07 C3 01 00 0E 04 04 00 D7 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 [18:07:20]wFMCommunicate OK [18:07:20]SAM_PROTO_GetFieldsCounters done [18:07:20]requested_item shift.num is exist - process it [18:07:20]requested_item shift.opened is exist - process it [18:07:20]req_shift_opened [18:07:20]FM_GetShiftState [18:07:20]SAM_PROTO_GetShiftState [18:07:20]wFMCommunicate request_size=4 [18:07:20]MH_SAM_APDU [18:07:20]CAPDU: 80 13 01 00 [18:07:20]Write to MH i2c: E2 08 00 AA 23 80 13 01 00 00 00 00 00 4A [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:20]Read from MH i2c: E2 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 0E 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 0E 00 AA 23 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 63 [18:07:20]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:07:20]wFMCommunicate OK [18:07:20]SAM_PROTO_GetShiftState done [18:07:20]FM_GetShiftState done [18:07:20]req_shift_opened done [18:07:20]requested_item shift.open_date is exist - process it [18:07:20]req_shift_open_date [18:07:20]req_shift_open_date done [18:07:20]produce_requested_data done [18:07:20]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115463,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:07:20]process_action_free close_receipt [18:07:20]json_value_free [18:07:20]json_value_free done [18:07:20]process_json_proto returns [18:07:20]Send response to host [18:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115463,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:07:20]free response buf [18:07:20]execute_script done [18:07:20]execute_script returns [18:07:20]free content buf [18:07:20]Sock 8.Close socket [18:07:20]Sock 8.Thread stoped [18:07:24]OFD Sender: No OFD packet to send [18:07:29]OFD Sender: No OFD packet to send [18:07:34]OFD Sender: No OFD packet to send [18:07:39]OFD Sender: No OFD packet to send [18:07:44]OFD Sender: No OFD packet to send [18:07:49]OFD Sender: No OFD packet to send [18:07:54]OFD Sender: No OFD packet to send [18:07:59]OFD Sender: No OFD packet to send [18:08:04]OFD Sender: No OFD packet to send [18:08:09]OFD Sender: No OFD packet to send [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:19]OFD Sender: No OFD packet to send [18:09:24]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:39]OFD Sender: No OFD packet to send [18:09:44]OFD Sender: No OFD packet to send [18:09:49]OFD Sender: No OFD packet to send [18:09:54]OFD Sender: No OFD packet to send [18:09:59]OFD Sender: No OFD packet to send [18:10:04]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:29]OFD Sender: No OFD packet to send [18:10:34]OFD Sender: No OFD packet to send [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:34]OFD Sender: No OFD packet to send [18:11:35]accept exits with 9 [18:11:35]New connection [18:11:35]New thread 3066682724 created [18:11:35]Thread 3066826084 joined [18:11:35]Waiting for new connection... [18:11:35] Sock 9.Parse request [18:11:35]Sock 9.Check first char [18:11:35]Sock 9.First char is OK [18:11:35]request: POST /json_proto HTTP/1.0 [18:11:35]Method: POST [18:11:35]URL: /json_proto [18:11:35]Method is POST - this is cgi request [18:11:35]url: /json_proto [18:11:35]query_string will be loaded in cgi processing [18:11:35]execute_cgi json_proto POST (null) [18:11:35]execute_cgi path=json_proto method=POST [18:11:35]POST find Content-Length [18:11:35]Host: 172.17.41.136:8080 [18:11:35]Content-Length: 1596 [18:11:35]Content-Type: application/json [18:11:35] [18:11:35]POST finish read [18:11:35]Found Content-Length = 1596 [18:11:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343898", "tax_sys" : 0, "items" : [ { "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4680021880377", "name": "\u0422\u043E\u0440\u0442 \u0432\u0430\u0444. \u042F\u0448\u043A\u0438\u043D\u043E \u043E\u0440\u0435\u0445. 250 \u0433\u0440", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235401", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u044B\u0435 350\u0433", "price" : 129.00, "quantity" : 1.000, "sum" : 129.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 464.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:35]execute_script... [18:11:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343898", "tax_sys" : 0, "items" : [ { "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4680021880377", "name": "\u0422\u043E\u0440\u0442 \u0432\u0430\u0444. \u042F\u0448\u043A\u0438\u043D\u043E \u043E\u0440\u0435\u0445. 250 \u0433\u0440", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235401", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u044B\u0435 350\u0433", "price" : 129.00, "quantity" : 1.000, "sum" : 129.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 464.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:35]POST & json_proto [18:11:35]process_json_proto [18:11:35]json parsed OK: [18:11:35]protocol is kg_v1.0 [18:11:35]action value=close_receipt [18:11:35]process_action close_receipt [18:11:35]cmd_close_receipt [18:11:35]MH_GetDate [18:11:35]Write to MH i2c: F0 00 00 AB 23 BD [18:11:35]Write i2c OK [18:11:35]MH_I2C_Read... [18:11:35]Read from MH i2c: F0 [18:11:35]MH_I2C_Read... [18:11:35]Read from MH i2c: F0 09 00 [18:11:35]MH_I2C_Read... [18:11:35]Read from MH i2c: F0 09 00 AB 23 00 DA 5D F0 66 1B D0 5A 64 FC [18:11:35]GetLastDocTimeStamp 1727028438 [18:11:35]current date 1727028698 [18:11:35]FM_GetShiftState [18:11:35]SAM_PROTO_GetShiftState [18:11:35]wFMCommunicate request_size=4 [18:11:35]MH_SAM_APDU [18:11:35]CAPDU: 80 13 01 00 [18:11:35]Write to MH i2c: E2 08 00 AC 23 80 13 01 00 00 00 00 00 4C [18:11:35]Write i2c OK [18:11:35]MH_I2C_Read... [18:11:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:35]Read from MH i2c: E2 [18:11:35]MH_I2C_Read... [18:11:35]Read from MH i2c: E2 0E 00 [18:11:35]MH_I2C_Read... [18:11:35]Read from MH i2c: E2 0E 00 AC 23 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 65 [18:11:35]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:11:35]wFMCommunicate OK [18:11:35]SAM_PROTO_GetShiftState done [18:11:35]FM_GetShiftState done [18:11:35]opened in 1726965840 [18:11:35]opened+sec_in_day 1727052240 [18:11:35]quantity*price = 9500 [18:11:35]sum+1 = 9501 [18:11:35]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4680021880377 Торт ваф. Яшкино орех. 250 гр 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607015235401 Пряники Яшкино шоколадные 350г 1.000 * 129.00 = 129.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 464.00 НСП 1% : 4.10 НДС 12% : 49.28 Наличными: 464.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 182 22.09.2024 18:11 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115464 ФПД: 185704431608692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T181138&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115464&fm=185704431608692&tin=02508201610067®Number=0000000000091831&sum=46400 0 [18:11:37]StoreToDocumentArchive [18:11:37]shift 471 fd 115464 [18:11:37]save to /storage/0471/doc_00115464 [18:11:37]save last doc name /storage/0471/doc_00115464 to /storage/kkm_last_doc_name [18:11:37]save OK [18:11:37]Clear old archive folders... [18:11:37]ProcessDocumentItem done err = 0, tmpTLVsize=656 [18:11:37]tlvbuf is B6F36010 [18:11:37]SAM_PROTO_ClearQueue [18:11:37]wFMCommunicate request_size=4 [18:11:37]MH_SAM_APDU [18:11:37]CAPDU: 80 09 00 00 [18:11:37]Write to MH i2c: E2 08 00 B9 23 80 09 00 00 00 00 00 00 4E [18:11:37]Write i2c OK [18:11:37]MH_I2C_Read... [18:11:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:37]Read from MH i2c: E2 [18:11:37]MH_I2C_Read... [18:11:37]Read from MH i2c: E2 03 00 [18:11:37]MH_I2C_Read... [18:11:37]Read from MH i2c: E2 03 00 B9 23 00 90 00 50 [18:11:37]RAPDU: 90 00 [18:11:37]wFMCommunicate OK [18:11:37]SAM_PROTO_ClearQueue done [18:11:37]KKMCreateOFDPacket [18:11:37]OFDProtocolAddRootSTLVToBuf [18:11:37]FM_MakeSignedData [18:11:37]FM_MakeSignedData [18:11:37]SAM_PROTO_SignData [18:11:37]wFMCommunicate request_size=4 [18:11:37]MH_SAM_APDU [18:11:37]CAPDU: 80 0D 01 02 [18:11:37]Write to MH i2c: E2 08 00 BA 23 80 0D 01 02 00 00 00 00 56 [18:11:37]Write i2c OK [18:11:37]MH_I2C_Read... [18:11:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:37]Read from MH i2c: E2 [18:11:37]MH_I2C_Read... [18:11:37]Read from MH i2c: E2 03 00 [18:11:37]MH_I2C_Read... [18:11:37]Read from MH i2c: E2 03 00 BA 23 00 90 00 51 [18:11:37]RAPDU: 90 00 [18:11:37]wFMCommunicate OK [18:11:37]wFMCommunicate request_size=255 [18:11:37]MH_SAM_APDU [18:11:37]CAPDU: 80 0D 02 02 FA 03 00 90 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 [18:11:37]Write to MH i2c: E2 02 01 BB 23 80 0D 02 02 FA 00 03 00 90 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 00 00 D8 [18:11:37]Write i2c OK [18:11:37]MH_I2C_Read... [18:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:37]Read from MH i2c: E2 [18:11:37]MH_I2C_Read... [18:11:37]Read from MH i2c: E2 03 00 [18:11:37]MH_I2C_Read... [18:11:37]Read from MH i2c: E2 03 00 BB 23 00 90 00 52 [18:11:37]RAPDU: 90 00 [18:11:37]wFMCommunicate OK [18:11:37]wFMCommunicate request_size=255 [18:11:37]MH_SAM_APDU [18:11:37]CAPDU: 80 0D 02 02 FA 04 74 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 33 37 37 06 04 30 00 D0 A2 D0 BE D1 80 D1 82 20 D0 B2 D0 B0 D1 84 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BE D1 80 D0 B5 D1 85 2E 20 32 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 [18:11:37]Write to MH i2c: E2 02 01 BC 23 80 0D 02 02 FA 00 04 74 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 33 37 37 06 04 30 00 D0 A2 D0 BE D1 80 D1 82 20 D0 B2 D0 B0 D1 84 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BE D1 80 D0 B5 D1 85 2E 20 32 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 00 00 9C [18:11:37]Write i2c OK [18:11:37]MH_I2C_Read... [18:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:37]Read from MH i2c: E2 [18:11:37]MH_I2C_Read... [18:11:37]Read from MH i2c: E2 03 00 [18:11:37]MH_I2C_Read... [18:11:37]Read from MH i2c: E2 03 00 BC 23 00 90 00 53 [18:11:37]RAPDU: 90 00 [18:11:37]wFMCommunicate OK [18:11:37]wFMCommunicate request_size=165 [18:11:37]MH_SAM_APDU [18:11:37]CAPDU: 80 0D 02 02 A0 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 13 00 00 00 00 07 04 06 00 40 B5 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 DA 5D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 08 C3 01 00 35 04 06 00 A8 E5 AE AD E3 74 [18:11:37]Write to MH i2c: E2 A8 00 BD 23 80 0D 02 02 A0 00 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 13 00 00 00 00 07 04 06 00 40 B5 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 DA 5D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 08 C3 01 00 35 04 06 00 A8 E5 AE AD E3 74 00 00 8D [18:11:37]Write i2c OK [18:11:37]MH_I2C_Read... [18:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:37]Read from MH i2c: E2 [18:11:37]MH_I2C_Read... [18:11:37]Read from MH i2c: E2 03 00 [18:11:37]MH_I2C_Read... [18:11:37]Read from MH i2c: E2 03 00 BD 23 00 90 00 54 [18:11:37]RAPDU: 90 00 [18:11:37]wFMCommunicate OK [18:11:37]wFMCommunicate request_size=4 [18:11:37]MH_SAM_APDU [18:11:37]CAPDU: 80 0D 03 02 [18:11:37]Write to MH i2c: E2 08 00 BE 23 80 0D 03 02 00 00 00 00 5C [18:11:37]Write i2c OK [18:11:37]MH_I2C_Read... [18:11:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:37]Read from MH i2c: E2 [18:11:37]MH_I2C_Read... [18:11:37]Read from MH i2c: E2 0B 00 [18:11:37]MH_I2C_Read... [18:11:37]Read from MH i2c: E2 0B 00 BE 23 00 EC CF 63 99 07 B4 68 57 90 00 8E [18:11:37]RAPDU: EC CF 63 99 07 B4 68 57 90 00 [18:11:37]wFMCommunicate OK [18:11:37]SAM_PROTO_SignData done [18:11:37]FM_MakeSignedData done [18:11:37]CreateOFDProtocolMessage [18:11:37]wFMCommunicate request_size=4 [18:11:37]MH_SAM_APDU [18:11:37]CAPDU: 80 11 00 00 [18:11:37]Write to MH i2c: E2 08 00 BF 23 80 11 00 00 00 00 00 00 5C [18:11:37]Write i2c OK [18:11:37]MH_I2C_Read... [18:11:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:38]Read from MH i2c: E2 [18:11:38]MH_I2C_Read... [18:11:38]Read from MH i2c: E2 17 00 [18:11:38]MH_I2C_Read... [18:11:38]Read from MH i2c: E2 17 00 BF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AA [18:11:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:11:38]wFMCommunicate OK [18:11:38]CreateOFDProtocolMessage done [18:11:38]OFDSenderStorePacket 115464 [18:11:38]StoreOFDPacket docnum=115464 [18:11:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A4 02 00 00 1E 8C 9C 02 7A 2A 5A 03 01 00 03 00 90 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 33 37 37 06 04 30 00 D0 A2 D0 BE D1 80 D1 82 20 D0 B2 D0 B0 D1 84 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BE D1 80 D0 B5 D1 85 2E 20 32 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 13 00 00 00 00 07 04 06 00 40 B5 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 DA 5D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 08 C3 01 00 35 04 06 00 A8 E5 AE AD E3 74 EC CF 63 99 07 B4 68 57 [18:11:38]CheckFolder [18:11:38]dirname=/storage/ofd_packets [18:11:38]CheckFolder done [18:11:38]ProducePacketName [18:11:38]name=ofd_packets/00115464 [18:11:38]NVStorageSaveData ofd_packets/00115464 [18:11:38]File name is /storage/ofd_packets/00115464 [18:11:38]Write 706 bytes [18:11:38]NVStorageSaveData done [18:11:38]OFDSenderStorePacket done [18:11:38]KKMCreateOFDPacket done [18:11:38]NVStorageSaveData kkm_last_timestamp [18:11:38]File name is /storage/kkm_last_timestamp [18:11:38]Write 4 bytes [18:11:38]NVStorageSaveData done [18:11:38]ExternCall_PrintAddStr [18:11:38]wPrintStart [18:11:38]Write to MH i2c: 01 00 00 C0 23 E3 [18:11:38]Write i2c OK [18:11:38]MH_I2C_Read... [18:11:38]Read from MH i2c: 01 [18:11:38]MH_I2C_Read... [18:11:38]Read from MH i2c: 01 07 00 [18:11:38]MH_I2C_Read... [18:11:38]Read from MH i2c: 01 07 00 C0 23 00 00 00 00 00 FF 0F F8 [18:11:38]RasterBufferAndPrint [18:11:38]line Счет N : (3)343898 [18:11:38]line ИНН: 02508201610067 [18:11:38]line Контрольно-Кассовый Чек [18:11:38]line ПРОДАЖА [18:11:38]line Товар: 4700003010087 [18:11:38]line Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л [18:11:38]line 1.000 * 95.00 [18:11:38]line = 95.00 [18:11:38]line НДС 12% НСП 1% [18:11:38]line > о реализуемом товаре [18:11:38]line Товар: 5449000054227 [18:11:38]line Напиток Кока-Кола 1л [18:11:38]line 1.000 * 105.00 [18:11:38]line = 105.00 [18:11:38]line НДС 12% НСП 1% [18:11:38]line > о реализуемом товаре [18:11:38]line Товар: 4680021880377 [18:11:38]line Торт ваф. Яшкино орех. 250 гр [18:11:38]line 1.000 * 135.00 [18:11:38]line = 135.00 [18:11:38]line НДС 12% НСП 1% [18:11:38]line > о реализуемом товаре [18:11:38]line Товар: 4607015235401 [18:11:38]line Пряники Яшкино шоколадные 350г [18:11:38]line 1.000 * 129.00 [18:11:38]line = 129.00 [18:11:38]line НДС 12% НСП 1% [18:11:38]line > о реализуемом товаре [18:11:38]line ИТОГО: 464.00 [18:11:38]line НСП 1% : 4.10 [18:11:38]line НДС 12% : 49.28 [18:11:38]line Наличными: 464.00 [18:11:38]line Безнал.: 0.00 [18:11:38]line Место: АЗС № 90 "Партнер Нефть" [18:11:38]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:11:38]line СНО: Общий режим [18:11:38]line Чек 182 22.09.2024 18:11 [18:11:38]line Смена: 471 ФФД: 1.0 [18:11:38]line ЗНМ: 0300000120 [18:11:38]line РНМ: 0000000000091831 [18:11:38]line Версия ККМ: 001 [18:11:38]line ФМ: 0000000000871830 [18:11:38]line ФД: 115464 [18:11:38]line ФПД: 185704431608692 [18:11:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T181138&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115464&fm=185704431608692&tin=02508201610067®Number=0000000000091831&sum=46400 [18:11:38]OFD Sender: Processing packet 115464 [packets to send 481, broken 480] [18:11:38]ProducePacketName [18:11:38]name=ofd_packets/00115464 [18:11:38]OFD Sender: To server: pG, [18:11:38]CommunicateWithHost lk.salyk.kg:30040 [18:11:38]ConnectInit lk.salyk.kg [18:11:38]line 0 [18:11:38]written 0, free lines is 4095 [18:11:38]Connected sock=10 [18:11:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A4 02 00 00 1E 8C 9C 02 7A 2A 5A 03 01 00 03 00 90 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 33 37 37 06 04 30 00 D0 A2 D0 BE D1 80 D1 82 20 D0 B2 D0 B0 D1 84 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BE D1 80 D0 B5 D1 85 2E 20 32 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 13 00 00 00 00 07 04 06 00 40 B5 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 DA 5D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 08 C3 01 00 35 04 06 00 A8 E5 AE AD E3 74 EC CF 63 99 07 B4 68 57 [18:11:39]Write to MH i2c: 01 00 00 FC 23 1F [18:11:39]Write i2c OK [18:11:39]MH_I2C_Read... [18:11:39]Read from MH i2c: 01 [18:11:39]MH_I2C_Read... [18:11:39]Read from MH i2c: 01 07 00 [18:11:39]MH_I2C_Read... [18:11:39]Read from MH i2c: 01 07 00 FC 23 00 00 00 00 00 C1 0A F1 [18:11:39]RasterBufferAndPrint [18:11:39]line [18:11:39]line [18:11:39]line [18:11:39]line [18:11:39]line [18:11:39]written 0, free lines is 2757 [18:11:39]MH_Cut [18:11:39]Write to MH i2c: D1 01 00 03 24 01 F9 [18:11:39]Write i2c OK [18:11:39]MH_I2C_Read... [18:11:39]Read from MH i2c: D1 [18:11:39]MH_I2C_Read... [18:11:39]Read from MH i2c: D1 01 00 [18:11:39]MH_I2C_Read... [18:11:39]Read from MH i2c: D1 01 00 03 24 00 F8 [18:11:39]Write to MH i2c: 01 00 00 04 24 28 [18:11:39]Write i2c OK [18:11:39]MH_I2C_Read... [18:11:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 48 50 47 00 60 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 08 C3 01 00 F4 03 04 00 20 03 F0 66 B6 04 01 00 00 23 95 F5 65 3D E9 ED F3 [18:11:39]CommunicateWithHost err = 0 [18:11:39]CheckOFDResponse [18:11:39]1017 (14) - 77093643461234 [18:11:39]1041 (16) - 0000000000871830 [18:11:39]1040 (4) - 115464 [18:11:39]1012 (4) - 22.09.2024 11:44 [18:11:39]1206 (1) - 0 [18:11:39]OFD Sender: Remove packet 115464 [18:11:39]ProducePacketName [18:11:39]name=ofd_packets/00115464 [18:11:39]NVStorageDeleteData [18:11:39]OFD Sender: No OFD packet to send [18:11:40]*** Cut start [18:11:40]*** Partial cut [18:11:40]*** CUTSNS_PIN = 1 [18:11:40]*** CUTSNS_PIN = 0 [18:11:41]*** Brake cut motor [18:11:41]Read from MH i2c: 01 [18:11:41]MH_I2C_Read... [18:11:41]*** Stop cut motor [18:11:41]*** Cut end [18:11:41]Read from MH i2c: 01 07 00 [18:11:41]MH_I2C_Read... [18:11:41]Read from MH i2c: 01 07 00 04 24 00 00 00 00 00 FF 0F 3D [18:11:41]process_action close_receipt done [18:11:41]requested_data is exist [18:11:41]produce_requested_data [18:11:41]requested_item fm.sn is exist - process it [18:11:41]wFMCommunicate request_size=4 [18:11:41]MH_SAM_APDU [18:11:41]CAPDU: 80 11 00 00 [18:11:41]Write to MH i2c: E2 08 00 05 24 80 11 00 00 00 00 00 00 A3 [18:11:41]Write i2c OK [18:11:41]MH_I2C_Read... [18:11:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:41]Read from MH i2c: E2 [18:11:41]MH_I2C_Read... [18:11:41]Read from MH i2c: E2 17 00 [18:11:41]MH_I2C_Read... [18:11:41]Read from MH i2c: E2 17 00 05 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F1 [18:11:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:11:41]wFMCommunicate OK [18:11:41]requested_item fd.num is exist - process it [18:11:41]SAM_PROTO_GetFieldsCounters [18:11:41]wFMCommunicate request_size=4 [18:11:41]MH_SAM_APDU [18:11:41]CAPDU: 80 13 00 00 [18:11:41]Write to MH i2c: E2 08 00 06 24 80 13 00 00 00 00 00 00 A6 [18:11:41]Write i2c OK [18:11:41]MH_I2C_Read... [18:11:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:41]Read from MH i2c: E2 [18:11:41]MH_I2C_Read... [18:11:41]Read from MH i2c: E2 62 00 [18:11:41]MH_I2C_Read... [18:11:41]Read from MH i2c: E2 62 00 06 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 08 C3 01 00 0E 04 04 00 D7 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 85 [18:11:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 08 C3 01 00 0E 04 04 00 D7 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 [18:11:41]wFMCommunicate OK [18:11:41]SAM_PROTO_GetFieldsCounters done [18:11:41]requested_item shift.num is exist - process it [18:11:41]requested_item shift.opened is exist - process it [18:11:41]req_shift_opened [18:11:41]FM_GetShiftState [18:11:41]SAM_PROTO_GetShiftState [18:11:41]wFMCommunicate request_size=4 [18:11:41]MH_SAM_APDU [18:11:41]CAPDU: 80 13 01 00 [18:11:41]Write to MH i2c: E2 08 00 07 24 80 13 01 00 00 00 00 00 A8 [18:11:41]Write i2c OK [18:11:41]MH_I2C_Read... [18:11:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:41]Read from MH i2c: E2 [18:11:41]MH_I2C_Read... [18:11:41]Read from MH i2c: E2 0E 00 [18:11:41]MH_I2C_Read... [18:11:41]Read from MH i2c: E2 0E 00 07 24 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C1 [18:11:41]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:11:41]wFMCommunicate OK [18:11:41]SAM_PROTO_GetShiftState done [18:11:41]FM_GetShiftState done [18:11:41]req_shift_opened done [18:11:41]requested_item shift.open_date is exist - process it [18:11:41]req_shift_open_date [18:11:41]req_shift_open_date done [18:11:41]produce_requested_data done [18:11:41]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115464,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:11:41]process_action_free close_receipt [18:11:41]json_value_free [18:11:41]json_value_free done [18:11:41]process_json_proto returns [18:11:41]Send response to host [18:11:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115464,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:11:41]free response buf [18:11:41]execute_script done [18:11:41]execute_script returns [18:11:41]free content buf [18:11:41]Sock 9.Close socket [18:11:41]Sock 9.Thread stoped [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13: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:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:13]accept exits with 8 [18:16:13]New connection [18:16:13]New thread 3066826084 created [18:16:13]Thread 3066682724 joined [18:16:13]Waiting for new connection... [18:16:13] Sock 8.Parse request [18:16:13]Sock 8.Check first char [18:16:13]Sock 8.First char is OK [18:16:13]request: POST /json_proto HTTP/1.0 [18:16:13]Method: POST [18:16:13]URL: /json_proto [18:16:13]Method is POST - this is cgi request [18:16:13]url: /json_proto [18:16:13]query_string will be loaded in cgi processing [18:16:13]execute_cgi json_proto POST (null) [18:16:13]execute_cgi path=json_proto method=POST [18:16:13]POST find Content-Length [18:16:13]Host: 172.17.41.136:8080 [18:16:13]Content-Length: 650 [18:16:13]Content-Type: application/json [18:16:13] [18:16:13]POST finish read [18:16:13]Found Content-Length = 650 [18:16:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343899", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:13]execute_script... [18:16:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343899", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:13]POST & json_proto [18:16:13]process_json_proto [18:16:13]json parsed OK: [18:16:13]protocol is kg_v1.0 [18:16:13]action value=close_receipt [18:16:13]process_action close_receipt [18:16:13]cmd_close_receipt [18:16:13]MH_GetDate [18:16:13]Write to MH i2c: F0 00 00 08 24 1B [18:16:13]Write i2c OK [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: F0 [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: F0 09 00 [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: F0 09 00 08 24 00 F0 5E F0 66 1B D0 5A 64 71 [18:16:13]GetLastDocTimeStamp 1727028698 [18:16:13]current date 1727028976 [18:16:13]FM_GetShiftState [18:16:13]SAM_PROTO_GetShiftState [18:16:13]wFMCommunicate request_size=4 [18:16:13]MH_SAM_APDU [18:16:13]CAPDU: 80 13 01 00 [18:16:13]Write to MH i2c: E2 08 00 09 24 80 13 01 00 00 00 00 00 AA [18:16:13]Write i2c OK [18:16:13]MH_I2C_Read... [18:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:13]Read from MH i2c: E2 [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: E2 0E 00 [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: E2 0E 00 09 24 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C3 [18:16:13]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:16:13]wFMCommunicate OK [18:16:13]SAM_PROTO_GetShiftState done [18:16:13]FM_GetShiftState done [18:16:13]opened in 1726965840 [18:16:13]opened+sec_in_day 1727052240 [18:16:13]quantity*price = 10500 [18:16:13]sum+1 = 10501 [18:16:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 183 22.09.2024 18:16 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115465 ФПД: 270829990510266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T181616&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115465&fm=270829990510266&tin=02508201610067®Number=0000000000091831&sum=10500 0 [18:16:14]StoreToDocumentArchive [18:16:14]shift 471 fd 115465 [18:16:14]save to /storage/0471/doc_00115465 [18:16:14]save last doc name /storage/0471/doc_00115465 to /storage/kkm_last_doc_name [18:16:14]save OK [18:16:14]Clear old archive folders... [18:16:14]ProcessDocumentItem done err = 0, tmpTLVsize=282 [18:16:14]tlvbuf is 01C98890 [18:16:14]SAM_PROTO_ClearQueue [18:16:14]wFMCommunicate request_size=4 [18:16:14]MH_SAM_APDU [18:16:14]CAPDU: 80 09 00 00 [18:16:14]Write to MH i2c: E2 08 00 16 24 80 09 00 00 00 00 00 00 AC [18:16:14]Write i2c OK [18:16:14]MH_I2C_Read... [18:16:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:15]Read from MH i2c: E2 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 03 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 03 00 16 24 00 90 00 AE [18:16:15]RAPDU: 90 00 [18:16:15]wFMCommunicate OK [18:16:15]SAM_PROTO_ClearQueue done [18:16:15]KKMCreateOFDPacket [18:16:15]OFDProtocolAddRootSTLVToBuf [18:16:15]FM_MakeSignedData [18:16:15]FM_MakeSignedData [18:16:15]SAM_PROTO_SignData [18:16:15]wFMCommunicate request_size=4 [18:16:15]MH_SAM_APDU [18:16:15]CAPDU: 80 0D 01 02 [18:16:15]Write to MH i2c: E2 08 00 17 24 80 0D 01 02 00 00 00 00 B4 [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:15]Read from MH i2c: E2 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 03 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 03 00 17 24 00 90 00 AF [18:16:15]RAPDU: 90 00 [18:16:15]wFMCommunicate OK [18:16:15]wFMCommunicate request_size=255 [18:16:15]MH_SAM_APDU [18:16:15]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 F0 5E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 [18:16:15]Write to MH i2c: E2 02 01 18 24 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 F0 5E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 00 00 AC [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:15]OFD Sender: No OFD packet to send [18:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:15]Read from MH i2c: E2 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 03 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 03 00 18 24 00 90 00 B0 [18:16:15]RAPDU: 90 00 [18:16:15]wFMCommunicate OK [18:16:15]wFMCommunicate request_size=41 [18:16:15]MH_SAM_APDU [18:16:15]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 09 C3 01 00 35 04 06 00 F6 51 85 60 FE BA [18:16:15]Write to MH i2c: E2 2C 00 19 24 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 09 C3 01 00 35 04 06 00 F6 51 85 60 FE BA 00 00 32 [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:15]Read from MH i2c: E2 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 03 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 03 00 19 24 00 90 00 B1 [18:16:15]RAPDU: 90 00 [18:16:15]wFMCommunicate OK [18:16:15]wFMCommunicate request_size=4 [18:16:15]MH_SAM_APDU [18:16:15]CAPDU: 80 0D 03 02 [18:16:15]Write to MH i2c: E2 08 00 1A 24 80 0D 03 02 00 00 00 00 B9 [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:15]Read from MH i2c: E2 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 0B 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 0B 00 1A 24 00 EC 54 32 6D 5E 58 DF 0F 90 00 3D [18:16:15]RAPDU: EC 54 32 6D 5E 58 DF 0F 90 00 [18:16:15]wFMCommunicate OK [18:16:15]SAM_PROTO_SignData done [18:16:15]FM_MakeSignedData done [18:16:15]CreateOFDProtocolMessage [18:16:15]wFMCommunicate request_size=4 [18:16:15]MH_SAM_APDU [18:16:15]CAPDU: 80 11 00 00 [18:16:15]Write to MH i2c: E2 08 00 1B 24 80 11 00 00 00 00 00 00 B9 [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:15]Read from MH i2c: E2 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 17 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 17 00 1B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 07 [18:16:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:16:15]wFMCommunicate OK [18:16:15]CreateOFDProtocolMessage done [18:16:15]OFDSenderStorePacket 115465 [18:16:15]StoreOFDPacket docnum=115465 [18:16:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2E 01 00 00 ED 1E 26 01 4F 73 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 F0 5E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 09 C3 01 00 35 04 06 00 F6 51 85 60 FE BA EC 54 32 6D 5E 58 DF 0F [18:16:15]CheckFolder [18:16:15]dirname=/storage/ofd_packets [18:16:15]CheckFolder done [18:16:15]ProducePacketName [18:16:15]name=ofd_packets/00115465 [18:16:15]NVStorageSaveData ofd_packets/00115465 [18:16:15]File name is /storage/ofd_packets/00115465 [18:16:15]Write 332 bytes [18:16:15]NVStorageSaveData done [18:16:15]OFDSenderStorePacket done [18:16:15]KKMCreateOFDPacket done [18:16:15]NVStorageSaveData kkm_last_timestamp [18:16:15]File name is /storage/kkm_last_timestamp [18:16:15]Write 4 bytes [18:16:15]NVStorageSaveData done [18:16:15]ExternCall_PrintAddStr [18:16:15]wPrintStart [18:16:15]Write to MH i2c: 01 00 00 1C 24 40 [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: 01 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: 01 07 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: 01 07 00 1C 24 00 00 00 00 00 FF 0F 55 [18:16:15]RasterBufferAndPrint [18:16:15]line Счет N : (3)343899 [18:16:15]line ИНН: 02508201610067 [18:16:15]line Контрольно-Кассовый Чек [18:16:15]line ПРОДАЖА [18:16:15]line Товар: 2000034730018 [18:16:15]line Кофе Американо (GABB TRADE) [18:16:15]line 1.000 * 105.00 [18:16:15]line = 105.00 [18:16:15]line НДС 12% НСП 1% [18:16:15]line > о реализуемом товаре [18:16:15]line ИТОГО: 105.00 [18:16:15]line НСП 1% : 0.93 [18:16:15]line НДС 12% : 11.15 [18:16:15]line Наличными: 105.00 [18:16:15]line Безнал.: 0.00 [18:16:15]line Место: АЗС № 90 "Партнер Нефть" [18:16:15]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:16:15]line СНО: Общий режим [18:16:15]line Чек 183 22.09.2024 18:16 [18:16:15]line Смена: 471 ФФД: 1.0 [18:16:15]line ЗНМ: 0300000120 [18:16:15]line РНМ: 0000000000091831 [18:16:15]line Версия ККМ: 001 [18:16:15]line ФМ: 0000000000871830 [18:16:15]line ФД: 115465 [18:16:15]line ФПД: 270829990510266 [18:16:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T181616&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115465&fm=270829990510266&tin=02508201610067®Number=0000000000091831&sum=10500 [18:16:15]line 0 [18:16:15]written 0, free lines is 4095 [18:16:15]OFD Sender: Processing packet 115465 [packets to send 481, broken 480] [18:16:15]ProducePacketName [18:16:15]name=ofd_packets/00115465 [18:16:15]OFD Sender: To server: pG, [18:16:15]CommunicateWithHost lk.salyk.kg:30040 [18:16:15]ConnectInit lk.salyk.kg [18:16:15]Connected sock=11 [18:16:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2E 01 00 00 ED 1E 26 01 4F 73 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 F0 5E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 09 C3 01 00 35 04 06 00 F6 51 85 60 FE BA EC 54 32 6D 5E 58 DF 0F [18:16:15]Write to MH i2c: 01 00 00 44 24 68 [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: 01 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: 01 07 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: 01 07 00 44 24 00 00 00 00 00 60 0C DB [18:16:15]RasterBufferAndPrint [18:16:15]line [18:16:15]line [18:16:15]line [18:16:15]line [18:16:15]line [18:16:15]written 0, free lines is 3171 [18:16:15]MH_Cut [18:16:15]Write to MH i2c: D1 01 00 4B 24 01 41 [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: D1 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: D1 01 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: D1 01 00 4B 24 00 40 [18:16:15]Write to MH i2c: 01 00 00 4C 24 70 [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1C 54 47 00 43 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 09 C3 01 00 F4 03 04 00 35 04 F0 66 B6 04 01 00 00 A6 DB B4 A9 4A C9 54 E2 [18:16:16]CommunicateWithHost err = 0 [18:16:16]CheckOFDResponse [18:16:16]1017 (14) - 77093643461234 [18:16:16]1041 (16) - 0000000000871830 [18:16:16]1040 (4) - 115465 [18:16:16]1012 (4) - 22.09.2024 11:49 [18:16:16]1206 (1) - 0 [18:16:16]OFD Sender: Remove packet 115465 [18:16:16]ProducePacketName [18:16:16]name=ofd_packets/00115465 [18:16:16]NVStorageDeleteData [18:16:16]OFD Sender: No OFD packet to send [18:16:17]*** Cut start [18:16:17]*** Partial cut [18:16:17]*** CUTSNS_PIN = 1 [18:16:17]*** CUTSNS_PIN = 0 [18:16:17]*** Brake cut motor [18:16:17]Read from MH i2c: 01 [18:16:17]MH_I2C_Read... [18:16:17]*** Stop cut motor [18:16:17]*** Cut end [18:16:17]Read from MH i2c: 01 07 00 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: 01 07 00 4C 24 00 00 00 00 00 FF 0F 85 [18:16:17]process_action close_receipt done [18:16:17]requested_data is exist [18:16:17]produce_requested_data [18:16:17]requested_item fm.sn is exist - process it [18:16:17]wFMCommunicate request_size=4 [18:16:17]MH_SAM_APDU [18:16:17]CAPDU: 80 11 00 00 [18:16:17]Write to MH i2c: E2 08 00 4D 24 80 11 00 00 00 00 00 00 EB [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:17]Read from MH i2c: E2 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 17 00 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 17 00 4D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 39 [18:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:16:17]wFMCommunicate OK [18:16:17]requested_item fd.num is exist - process it [18:16:17]SAM_PROTO_GetFieldsCounters [18:16:17]wFMCommunicate request_size=4 [18:16:17]MH_SAM_APDU [18:16:17]CAPDU: 80 13 00 00 [18:16:17]Write to MH i2c: E2 08 00 4E 24 80 13 00 00 00 00 00 00 EE [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:18]Read from MH i2c: E2 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 62 00 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 62 00 4E 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 09 C3 01 00 0E 04 04 00 D7 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 D1 [18:16:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 09 C3 01 00 0E 04 04 00 D7 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 [18:16:18]wFMCommunicate OK [18:16:18]SAM_PROTO_GetFieldsCounters done [18:16:18]requested_item shift.num is exist - process it [18:16:18]requested_item shift.opened is exist - process it [18:16:18]req_shift_opened [18:16:18]FM_GetShiftState [18:16:18]SAM_PROTO_GetShiftState [18:16:18]wFMCommunicate request_size=4 [18:16:18]MH_SAM_APDU [18:16:18]CAPDU: 80 13 01 00 [18:16:18]Write to MH i2c: E2 08 00 4F 24 80 13 01 00 00 00 00 00 F0 [18:16:18]Write i2c OK [18:16:18]MH_I2C_Read... [18:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:18]Read from MH i2c: E2 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 0E 00 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 0E 00 4F 24 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 09 [18:16:18]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:16:18]wFMCommunicate OK [18:16:18]SAM_PROTO_GetShiftState done [18:16:18]FM_GetShiftState done [18:16:18]req_shift_opened done [18:16:18]requested_item shift.open_date is exist - process it [18:16:18]req_shift_open_date [18:16:18]req_shift_open_date done [18:16:18]produce_requested_data done [18:16:18]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115465,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:16:18]process_action_free close_receipt [18:16:18]json_value_free [18:16:18]json_value_free done [18:16:18]process_json_proto returns [18:16:18]Send response to host [18:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115465,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:16:18]free response buf [18:16:18]execute_script done [18:16:18]execute_script returns [18:16:18]free content buf [18:16:18]Sock 8.Close socket [18:16:18]Sock 8.Thread stoped [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16:31]OFD Sender: No OFD packet to send [18:16:36]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:46]OFD Sender: No OFD packet to send [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:17:01]OFD Sender: No OFD packet to send [18:17:06]OFD Sender: No OFD packet to send [18:17:11]OFD Sender: No OFD packet to send [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:32]OFD Sender: No OFD packet to send [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:27]accept exits with 9 [18:19:27]New connection [18:19:27]New thread 3066682724 created [18:19:27]Thread 3066826084 joined [18:19:27]Waiting for new connection... [18:19:27] Sock 9.Parse request [18:19:27]Sock 9.Check first char [18:19:27]Sock 9.First char is OK [18:19:27]request: POST /json_proto HTTP/1.0 [18:19:27]Method: POST [18:19:27]URL: /json_proto [18:19:27]Method is POST - this is cgi request [18:19:27]url: /json_proto [18:19:27]query_string will be loaded in cgi processing [18:19:27]execute_cgi json_proto POST (null) [18:19:27]execute_cgi path=json_proto method=POST [18:19:27]POST find Content-Length [18:19:27]Host: 172.17.41.136:8080 [18:19:27]Content-Length: 679 [18:19:27]Content-Type: application/json [18:19:27] [18:19:27]POST finish read [18:19:27]Found Content-Length = 679 [18:19:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343900", "tax_sys" : 0, "items" : [ { "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:27]execute_script... [18: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 : (3)343900", "tax_sys" : 0, "items" : [ { "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:27]POST & json_proto [18:19:27]process_json_proto [18:19:27]json parsed OK: [18:19:27]protocol is kg_v1.0 [18:19:27]action value=close_receipt [18:19:27]process_action close_receipt [18:19:27]cmd_close_receipt [18:19:27]MH_GetDate [18:19:27]Write to MH i2c: F0 00 00 50 24 63 [18:19:27]Write i2c OK [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: F0 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: F0 09 00 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: F0 09 00 50 24 00 B2 5F F0 66 1B D0 5A 64 7C [18:19:27]GetLastDocTimeStamp 1727028976 [18:19:27]current date 1727029170 [18:19:27]FM_GetShiftState [18:19:27]SAM_PROTO_GetShiftState [18:19:27]wFMCommunicate request_size=4 [18:19:27]MH_SAM_APDU [18:19:27]CAPDU: 80 13 01 00 [18:19:27]Write to MH i2c: E2 08 00 51 24 80 13 01 00 00 00 00 00 F2 [18:19:27]Write i2c OK [18:19:27]MH_I2C_Read... [18:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:27]Read from MH i2c: E2 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: E2 0E 00 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: E2 0E 00 51 24 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 0B [18:19:27]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:19:27]wFMCommunicate OK [18:19:27]SAM_PROTO_GetShiftState done [18:19:27]FM_GetShiftState done [18:19:27]opened in 1726965840 [18:19:27]opened+sec_in_day 1727052240 [18:19:27]quantity*price = 15400 [18:19:27]sum+1 = 15401 [18:19:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 184 22.09.2024 18:19 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115466 ФПД: 118474665546928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T181930&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115466&fm=118474665546928&tin=02508201610067®Number=0000000000091831&sum=15400 0 [18:19:29]StoreToDocumentArchive [18:19:29]shift 471 fd 115466 [18:19:29]save to /storage/0471/doc_00115466 [18:19:29]save last doc name /storage/0471/doc_00115466 to /storage/kkm_last_doc_name [18:19:29]save OK [18:19:29]Clear old archive folders... [18:19:29]ProcessDocumentItem done err = 0, tmpTLVsize=284 [18:19:29]tlvbuf is 01C1ACE0 [18:19:29]SAM_PROTO_ClearQueue [18:19:29]wFMCommunicate request_size=4 [18:19:29]MH_SAM_APDU [18:19:29]CAPDU: 80 09 00 00 [18:19:29]Write to MH i2c: E2 08 00 5E 24 80 09 00 00 00 00 00 00 F4 [18:19:29]Write i2c OK [18:19:29]MH_I2C_Read... [18:19:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:29]Read from MH i2c: E2 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 03 00 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 03 00 5E 24 00 90 00 F6 [18:19:29]RAPDU: 90 00 [18:19:29]wFMCommunicate OK [18:19:29]SAM_PROTO_ClearQueue done [18:19:29]KKMCreateOFDPacket [18:19:29]OFDProtocolAddRootSTLVToBuf [18:19:29]FM_MakeSignedData [18:19:29]FM_MakeSignedData [18:19:29]SAM_PROTO_SignData [18:19:29]wFMCommunicate request_size=4 [18:19:29]MH_SAM_APDU [18:19:29]CAPDU: 80 0D 01 02 [18:19:29]Write to MH i2c: E2 08 00 5F 24 80 0D 01 02 00 00 00 00 FC [18:19:29]Write i2c OK [18:19:29]MH_I2C_Read... [18:19:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:29]Read from MH i2c: E2 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 03 00 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 03 00 5F 24 00 90 00 F7 [18:19:29]RAPDU: 90 00 [18:19:29]wFMCommunicate OK [18:19:29]wFMCommunicate request_size=255 [18:19:29]MH_SAM_APDU [18:19:29]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 B2 5F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [18:19:29]Write to MH i2c: E2 02 01 60 24 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 B2 5F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 1F [18:19:29]Write i2c OK [18:19:29]MH_I2C_Read... [18:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:29]Read from MH i2c: E2 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 03 00 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 03 00 60 24 00 90 00 F8 [18:19:29]RAPDU: 90 00 [18:19:29]wFMCommunicate OK [18:19:29]wFMCommunicate request_size=43 [18:19:29]MH_SAM_APDU [18:19:29]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0A C3 01 00 35 04 06 00 6B C0 88 5A D4 B0 [18:19:29]Write to MH i2c: E2 2E 00 61 24 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0A C3 01 00 35 04 06 00 6B C0 88 5A D4 B0 00 00 41 [18:19:29]Write i2c OK [18:19:29]MH_I2C_Read... [18:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:29]Read from MH i2c: E2 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 03 00 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 03 00 61 24 00 90 00 F9 [18:19:29]RAPDU: 90 00 [18:19:29]wFMCommunicate OK [18:19:29]wFMCommunicate request_size=4 [18:19:29]MH_SAM_APDU [18:19:29]CAPDU: 80 0D 03 02 [18:19:29]Write to MH i2c: E2 08 00 62 24 80 0D 03 02 00 00 00 00 01 [18:19:29]Write i2c OK [18:19:29]MH_I2C_Read... [18:19:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:29]Read from MH i2c: E2 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 0B 00 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 0B 00 62 24 00 62 21 37 AC 28 AB BB 0F 90 00 05 [18:19:29]RAPDU: 62 21 37 AC 28 AB BB 0F 90 00 [18:19:29]wFMCommunicate OK [18:19:29]SAM_PROTO_SignData done [18:19:29]FM_MakeSignedData done [18:19:29]CreateOFDProtocolMessage [18:19:29]wFMCommunicate request_size=4 [18:19:29]MH_SAM_APDU [18:19:29]CAPDU: 80 11 00 00 [18:19:29]Write to MH i2c: E2 08 00 63 24 80 11 00 00 00 00 00 00 01 [18:19:29]Write i2c OK [18:19:29]MH_I2C_Read... [18:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:29]Read from MH i2c: E2 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 17 00 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 17 00 63 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4F [18:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:19:29]wFMCommunicate OK [18:19:29]CreateOFDProtocolMessage done [18:19:29]OFDSenderStorePacket 115466 [18:19:29]StoreOFDPacket docnum=115466 [18:19:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 71 E7 28 01 5D A4 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 B2 5F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0A C3 01 00 35 04 06 00 6B C0 88 5A D4 B0 62 21 37 AC 28 AB BB 0F [18:19:29]CheckFolder [18:19:29]dirname=/storage/ofd_packets [18:19:29]CheckFolder done [18:19:29]ProducePacketName [18:19:29]name=ofd_packets/00115466 [18:19:29]NVStorageSaveData ofd_packets/00115466 [18:19:29]File name is /storage/ofd_packets/00115466 [18:19:29]Write 334 bytes [18:19:29]NVStorageSaveData done [18:19:29]OFDSenderStorePacket done [18:19:29]KKMCreateOFDPacket done [18:19:29]NVStorageSaveData kkm_last_timestamp [18:19:29]File name is /storage/kkm_last_timestamp [18:19:29]Write 4 bytes [18:19:29]NVStorageSaveData done [18:19:29]ExternCall_PrintAddStr [18:19:29]wPrintStart [18:19:29]Write to MH i2c: 01 00 00 64 24 88 [18:19:29]OFD Sender: Processing packet 115466 [packets to send 481, broken 480] [18:19:29]ProducePacketName [18:19:29]name=ofd_packets/00115466 [18:19:29]OFD Sender: To server: pG, [18:19:29]CommunicateWithHost lk.salyk.kg:30040 [18:19:29]ConnectInit lk.salyk.kg [18:19:29]Write i2c OK [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: 01 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: 01 07 00 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: 01 07 00 64 24 00 00 00 00 00 FF 0F 9D [18:19:29]RasterBufferAndPrint [18:19:29]line Счет N : (3)343900 [18:19:29]line ИНН: 02508201610067 [18:19:29]line Контрольно-Кассовый Чек [18:19:29]line ПРОДАЖА [18:19:29]line Товар: 4870233466272 [18:19:29]line Мороженое Пломбир Миша [18:19:29]line 2.000 * 77.00 [18:19:29]line = 154.00 [18:19:29]line НДС 12% НСП 1% [18:19:29]line > о реализуемом товаре [18:19:29]line ИТОГО: 154.00 [18:19:29]line НСП 1% : 1.36 [18:19:29]line НДС 12% : 16.35 [18:19:29]line Наличными: 154.00 [18:19:29]line Безнал.: 0.00 [18:19:29]line Место: АЗС № 90 "Партнер Нефть" [18:19:29]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:19:29]line СНО: Общий режим [18:19:29]line Чек 184 22.09.2024 18:19 [18:19:29]line Смена: 471 ФФД: 1.0 [18:19:29]line ЗНМ: 0300000120 [18:19:29]line РНМ: 0000000000091831 [18:19:29]line Версия ККМ: 001 [18:19:29]line ФМ: 0000000000871830 [18:19:29]line ФД: 115466 [18:19:29]line ФПД: 118474665546928 [18:19:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T181930&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115466&fm=118474665546928&tin=02508201610067®Number=0000000000091831&sum=15400 [18:19:29]line 0 [18:19:29]written 0, free lines is 4095 [18:19:29]Connected sock=10 [18:19:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 71 E7 28 01 5D A4 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 B2 5F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0A C3 01 00 35 04 06 00 6B C0 88 5A D4 B0 62 21 37 AC 28 AB BB 0F [18:19:30]Write to MH i2c: 01 00 00 8B 24 AF [18:19:30]Write i2c OK [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: 01 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: 01 07 00 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: 01 07 00 8B 24 00 00 00 00 00 7C 0C 3E [18:19:30]RasterBufferAndPrint [18:19:30]line [18:19:30]line [18:19:30]line [18:19:30]line [18:19:30]line [18:19:30]written 0, free lines is 3201 [18:19:30]MH_Cut [18:19:30]Write to MH i2c: D1 01 00 92 24 01 88 [18:19:30]Write i2c OK [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: D1 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: D1 01 00 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: D1 01 00 92 24 00 87 [18:19:30]Write to MH i2c: 01 00 00 93 24 B7 [18:19:30]Write i2c OK [18:19:30]MH_I2C_Read... [18:19:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C8 46 47 00 A6 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 31 38 33 30 10 04 04 00 0A C3 01 00 F4 03 04 00 F7 04 F0 66 B6 04 01 00 00 7B F1 A2 D8 06 A2 81 FF [18:19:30]CommunicateWithHost err = 0 [18:19:30]CheckOFDResponse [18:19:30]1017 (14) - 77093643461234 [18:19:30]1041 (16) - 0000000000871830 [18:19:30]1040 (4) - 115466 [18:19:30]1012 (4) - 22.09.2024 11:52 [18:19:30]1206 (1) - 0 [18:19:30]OFD Sender: Remove packet 115466 [18:19:30]ProducePacketName [18:19:30]name=ofd_packets/00115466 [18:19:30]NVStorageDeleteData [18:19:30]OFD Sender: No OFD packet to send [18:19:31]*** Cut start [18:19:31]*** Partial cut [18:19:31]*** CUTSNS_PIN = 1 [18:19:31]*** CUTSNS_PIN = 0 [18:19:31]*** Brake cut motor [18:19:31]Read from MH i2c: 01 [18:19:31]MH_I2C_Read... [18:19:31]*** Stop cut motor [18:19:31]*** Cut end [18:19:31]Read from MH i2c: 01 07 00 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: 01 07 00 93 24 00 00 00 00 00 FF 0F CC [18:19:31]process_action close_receipt done [18:19:31]requested_data is exist [18:19:31]produce_requested_data [18:19:31]requested_item fm.sn is exist - process it [18:19:31]wFMCommunicate request_size=4 [18:19:31]MH_SAM_APDU [18:19:31]CAPDU: 80 11 00 00 [18:19:31]Write to MH i2c: E2 08 00 94 24 80 11 00 00 00 00 00 00 32 [18:19:31]Write i2c OK [18:19:31]MH_I2C_Read... [18:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:31]Read from MH i2c: E2 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 17 00 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 17 00 94 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 80 [18:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:19:31]wFMCommunicate OK [18:19:31]requested_item fd.num is exist - process it [18:19:31]SAM_PROTO_GetFieldsCounters [18:19:31]wFMCommunicate request_size=4 [18:19:31]MH_SAM_APDU [18:19:31]CAPDU: 80 13 00 00 [18:19:31]Write to MH i2c: E2 08 00 95 24 80 13 00 00 00 00 00 00 35 [18:19:32]Write i2c OK [18:19:32]MH_I2C_Read... [18:19:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:32]Read from MH i2c: E2 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 62 00 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 62 00 95 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0A C3 01 00 0E 04 04 00 D7 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 1C [18:19: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0A C3 01 00 0E 04 04 00 D7 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 [18:19:32]wFMCommunicate OK [18:19:32]SAM_PROTO_GetFieldsCounters done [18:19:32]requested_item shift.num is exist - process it [18:19:32]requested_item shift.opened is exist - process it [18:19:32]req_shift_opened [18:19:32]FM_GetShiftState [18:19:32]SAM_PROTO_GetShiftState [18:19:32]wFMCommunicate request_size=4 [18:19:32]MH_SAM_APDU [18:19:32]CAPDU: 80 13 01 00 [18:19:32]Write to MH i2c: E2 08 00 96 24 80 13 01 00 00 00 00 00 37 [18:19:32]Write i2c OK [18:19:32]MH_I2C_Read... [18:19:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:32]Read from MH i2c: E2 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 0E 00 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 0E 00 96 24 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 50 [18:19:32]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:19:32]wFMCommunicate OK [18:19:32]SAM_PROTO_GetShiftState done [18:19:32]FM_GetShiftState done [18:19:32]req_shift_opened done [18:19:32]requested_item shift.open_date is exist - process it [18:19:32]req_shift_open_date [18:19:32]req_shift_open_date done [18:19:32]produce_requested_data done [18:19:32]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115466,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:19:32]process_action_free close_receipt [18:19:32]json_value_free [18:19:32]json_value_free done [18:19:32]process_json_proto returns [18:19:32]Send response to host [18:19:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115466,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:19:32]free response buf [18:19:32]execute_script done [18:19:32]execute_script returns [18:19:32]free content buf [18:19:32]Sock 9.Close socket [18:19:32]Sock 9.Thread stoped [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:25]OFD Sender: No OFD packet to send [18:21:30]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:19]accept exits with 8 [18:22:19]New connection [18:22:19]New thread 3066826084 created [18:22:19]Thread 3066682724 joined [18:22:19]Waiting for new connection... [18:22:19] Sock 8.Parse request [18:22:19]Sock 8.Check first char [18:22:19]Sock 8.First char is OK [18:22:19]request: POST /json_proto HTTP/1.0 [18:22:19]Method: POST [18:22:19]URL: /json_proto [18:22:19]Method is POST - this is cgi request [18:22:19]url: /json_proto [18:22:19]query_string will be loaded in cgi processing [18:22:19]execute_cgi json_proto POST (null) [18:22:19]execute_cgi path=json_proto method=POST [18:22:19]POST find Content-Length [18:22:19]Host: 172.17.41.136:8080 [18:22:19]Content-Length: 753 [18:22:19]Content-Type: application/json [18:22:19] [18:22:19]POST finish read [18:22:19]Found Content-Length = 753 [18:22:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343901", "tax_sys" : 0, "items" : [ { "code": "6000911553446", "name": "\u0410\u0432\u0442\u043E\u043C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u0437\u0430\u0440\u044F\u0434\u043D\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E CAR CH", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:19]execute_script... [18: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 : (3)343901", "tax_sys" : 0, "items" : [ { "code": "6000911553446", "name": "\u0410\u0432\u0442\u043E\u043C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u0437\u0430\u0440\u044F\u0434\u043D\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E CAR CH", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:19]POST & json_proto [18:22:19]process_json_proto [18:22:19]json parsed OK: [18:22:19]protocol is kg_v1.0 [18:22:19]action value=close_receipt [18:22:19]process_action close_receipt [18:22:19]cmd_close_receipt [18:22:19]MH_GetDate [18:22:19]Write to MH i2c: F0 00 00 97 24 AA [18:22:19]Write i2c OK [18:22:19]MH_I2C_Read... [18:22:19]Read from MH i2c: F0 [18:22:19]MH_I2C_Read... [18:22:19]Read from MH i2c: F0 09 00 [18:22:19]MH_I2C_Read... [18:22:19]Read from MH i2c: F0 09 00 97 24 00 5E 60 F0 66 1B D0 5A 64 70 [18:22:19]GetLastDocTimeStamp 1727029170 [18:22:19]current date 1727029342 [18:22:19]FM_GetShiftState [18:22:19]SAM_PROTO_GetShiftState [18:22:19]wFMCommunicate request_size=4 [18:22:19]MH_SAM_APDU [18:22:19]CAPDU: 80 13 01 00 [18:22:19]Write to MH i2c: E2 08 00 98 24 80 13 01 00 00 00 00 00 39 [18:22:19]Write i2c OK [18:22:19]MH_I2C_Read... [18:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:19]Read from MH i2c: E2 [18:22:19]MH_I2C_Read... [18:22:19]Read from MH i2c: E2 0E 00 [18:22:19]MH_I2C_Read... [18:22:19]Read from MH i2c: E2 0E 00 98 24 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 52 [18:22:19]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:22:19]wFMCommunicate OK [18:22:19]SAM_PROTO_GetShiftState done [18:22:19]FM_GetShiftState done [18:22:19]opened in 1726965840 [18:22:19]opened+sec_in_day 1727052240 [18:22:19]quantity*price = 30000 [18:22:19]sum+1 = 30001 [18:22:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 185 22.09.2024 18:22 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115467 ФПД: 244370029568718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T182222&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115467&fm=244370029568718&tin=02508201610067®Number=0000000000091831&sum=30000 0 [18:22:21]StoreToDocumentArchive [18:22:21]shift 471 fd 115467 [18:22:21]save to /storage/0471/doc_00115467 [18:22:21]save last doc name /storage/0471/doc_00115467 to /storage/kkm_last_doc_name [18:22:21]save OK [18:22:21]Clear old archive folders... [18:22:21]ProcessDocumentItem done err = 0, tmpTLVsize=313 [18:22:21]tlvbuf is 01BE5750 [18:22:21]SAM_PROTO_ClearQueue [18:22:21]wFMCommunicate request_size=4 [18:22:21]MH_SAM_APDU [18:22:21]CAPDU: 80 09 00 00 [18:22:21]Write to MH i2c: E2 08 00 A5 24 80 09 00 00 00 00 00 00 3B [18:22:21]Write i2c OK [18:22:21]MH_I2C_Read... [18:22:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:21]Read from MH i2c: E2 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: E2 03 00 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: E2 03 00 A5 24 00 90 00 3D [18:22:21]RAPDU: 90 00 [18:22:21]wFMCommunicate OK [18:22:21]SAM_PROTO_ClearQueue done [18:22:21]KKMCreateOFDPacket [18:22:21]OFDProtocolAddRootSTLVToBuf [18:22:21]FM_MakeSignedData [18:22:21]FM_MakeSignedData [18:22:21]SAM_PROTO_SignData [18:22:21]wFMCommunicate request_size=4 [18:22:21]MH_SAM_APDU [18:22:21]CAPDU: 80 0D 01 02 [18:22:21]Write to MH i2c: E2 08 00 A6 24 80 0D 01 02 00 00 00 00 43 [18:22:21]Write i2c OK [18:22:21]MH_I2C_Read... [18:22:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:21]OFD Sender: No OFD packet to send [18:22:21]Read from MH i2c: E2 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: E2 03 00 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: E2 03 00 A6 24 00 90 00 3E [18:22:21]RAPDU: 90 00 [18:22:21]wFMCommunicate OK [18:22:21]wFMCommunicate request_size=255 [18:22:21]MH_SAM_APDU [18:22:21]CAPDU: 80 0D 02 02 FA 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 36 30 30 30 39 31 31 35 35 33 34 34 36 06 04 47 00 D0 90 D0 B2 D1 82 D0 BE D0 BC D0 BE D0 B1 D0 B8 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D0 B7 D0 B0 D1 80 D1 8F D0 B4 D0 BD D0 BE D0 B5 20 D1 83 D1 81 D1 82 D1 80 D0 BE D0 B9 D1 81 D1 82 D0 B2 D0 BE 20 43 41 52 20 43 48 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 5E 60 F0 66 0E 04 04 00 [18:22:21]Write to MH i2c: E2 02 01 A7 24 80 0D 02 02 FA 00 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 36 30 30 30 39 31 31 35 35 33 34 34 36 06 04 47 00 D0 90 D0 B2 D1 82 D0 BE D0 BC D0 BE D0 B1 D0 B8 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D0 B7 D0 B0 D1 80 D1 8F D0 B4 D0 BD D0 BE D0 B5 20 D1 83 D1 81 D1 82 D1 80 D0 BE D0 B9 D1 81 D1 82 D0 B2 D0 BE 20 43 41 52 20 43 48 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 5E 60 F0 66 0E 04 04 00 00 00 B6 [18:22:21]Write i2c OK [18:22:21]MH_I2C_Read... [18:22:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:21]Read from MH i2c: E2 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: E2 03 00 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: E2 03 00 A7 24 00 90 00 3F [18:22:21]RAPDU: 90 00 [18:22:21]wFMCommunicate OK [18:22:21]wFMCommunicate request_size=72 [18:22:21]MH_SAM_APDU [18:22:21]CAPDU: 80 0D 02 02 43 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0B C3 01 00 35 04 06 00 DE 40 D4 CE 62 CE [18:22:21]Write to MH i2c: E2 4B 00 A8 24 80 0D 02 02 43 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0B C3 01 00 35 04 06 00 DE 40 D4 CE 62 CE 00 00 F0 [18:22:21]Write i2c OK [18:22:21]MH_I2C_Read... [18:22:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:21]Read from MH i2c: E2 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: E2 03 00 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: E2 03 00 A8 24 00 90 00 40 [18:22:21]RAPDU: 90 00 [18:22:21]wFMCommunicate OK [18:22:21]wFMCommunicate request_size=4 [18:22:21]MH_SAM_APDU [18:22:21]CAPDU: 80 0D 03 02 [18:22:21]Write to MH i2c: E2 08 00 A9 24 80 0D 03 02 00 00 00 00 48 [18:22:21]Write i2c OK [18:22:21]MH_I2C_Read... [18:22:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:21]Read from MH i2c: E2 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: E2 0B 00 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: E2 0B 00 A9 24 00 FE 73 C1 52 2E E4 D0 BD 90 00 6C [18:22:21]RAPDU: FE 73 C1 52 2E E4 D0 BD 90 00 [18:22:21]wFMCommunicate OK [18:22:21]SAM_PROTO_SignData done [18:22:21]FM_MakeSignedData done [18:22:21]CreateOFDProtocolMessage [18:22:21]wFMCommunicate request_size=4 [18:22:21]MH_SAM_APDU [18:22:21]CAPDU: 80 11 00 00 [18:22:21]Write to MH i2c: E2 08 00 AA 24 80 11 00 00 00 00 00 00 48 [18:22:21]Write i2c OK [18:22:21]MH_I2C_Read... [18:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:21]Read from MH i2c: E2 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: E2 17 00 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: E2 17 00 AA 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 96 [18:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:22:21]wFMCommunicate OK [18:22:21]CreateOFDProtocolMessage done [18:22:21]OFDSenderStorePacket 115467 [18:22:21]StoreOFDPacket docnum=115467 [18:22:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4D 01 00 00 EB 72 45 01 BB 2D 5A 03 01 00 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 36 30 30 30 39 31 31 35 35 33 34 34 36 06 04 47 00 D0 90 D0 B2 D1 82 D0 BE D0 BC D0 BE D0 B1 D0 B8 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D0 B7 D0 B0 D1 80 D1 8F D0 B4 D0 BD D0 BE D0 B5 20 D1 83 D1 81 D1 82 D1 80 D0 BE D0 B9 D1 81 D1 82 D0 B2 D0 BE 20 43 41 52 20 43 48 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 5E 60 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0B C3 01 00 35 04 06 00 DE 40 D4 CE 62 CE FE 73 C1 52 2E E4 D0 BD [18:22:21]CheckFolder [18:22:21]dirname=/storage/ofd_packets [18:22:21]CheckFolder done [18:22:21]ProducePacketName [18:22:21]name=ofd_packets/00115467 [18:22:21]NVStorageSaveData ofd_packets/00115467 [18:22:21]File name is /storage/ofd_packets/00115467 [18:22:21]Write 363 bytes [18:22:21]NVStorageSaveData done [18:22:21]OFDSenderStorePacket done [18:22:21]KKMCreateOFDPacket done [18:22:21]NVStorageSaveData kkm_last_timestamp [18:22:21]File name is /storage/kkm_last_timestamp [18:22:21]Write 4 bytes [18:22:21]NVStorageSaveData done [18:22:21]ExternCall_PrintAddStr [18:22:21]wPrintStart [18:22:21]Write to MH i2c: 01 00 00 AB 24 CF [18:22:21]Write i2c OK [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: 01 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: 01 07 00 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: 01 07 00 AB 24 00 00 00 00 00 FF 0F E4 [18:22:21]RasterBufferAndPrint [18:22:21]line Счет N : (3)343901 [18:22:21]line ИНН: 02508201610067 [18:22:21]line Контрольно-Кассовый Чек [18:22:21]line ПРОДАЖА [18:22:21]line Товар: 6000911553446 [18:22:21]line Автомобильное зарядное устройство CAR CH [18:22:21]line 1.000 * 300.00 [18:22:21]line = 300.00 [18:22:21]line НДС 12% НСП 1% [18:22:21]line > о реализуемом товаре [18:22:21]line ИТОГО: 300.00 [18:22:21]line НСП 1% : 2.65 [18:22:21]line НДС 12% : 31.86 [18:22:21]line Наличными: 300.00 [18:22:21]line Безнал.: 0.00 [18:22:21]line Место: АЗС № 90 "Партнер Нефть" [18:22:21]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:22:21]line СНО: Общий режим [18:22:21]line Чек 185 22.09.2024 18:22 [18:22:21]line Смена: 471 ФФД: 1.0 [18:22:21]line ЗНМ: 0300000120 [18:22:21]line РНМ: 0000000000091831 [18:22:21]line Версия ККМ: 001 [18:22:21]line ФМ: 0000000000871830 [18:22:21]line ФД: 115467 [18:22:21]line ФПД: 244370029568718 [18:22:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T182222&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115467&fm=244370029568718&tin=02508201610067®Number=0000000000091831&sum=30000 [18:22:21]line 0 [18:22:21]written 0, free lines is 4095 [18:22:21]OFD Sender: Processing packet 115467 [packets to send 481, broken 480] [18:22:21]ProducePacketName [18:22:21]name=ofd_packets/00115467 [18:22:21]OFD Sender: To server: pG, [18:22:21]CommunicateWithHost lk.salyk.kg:30040 [18:22:21]ConnectInit lk.salyk.kg [18:22:22]Connected sock=10 [18:22:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4D 01 00 00 EB 72 45 01 BB 2D 5A 03 01 00 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 36 30 30 30 39 31 31 35 35 33 34 34 36 06 04 47 00 D0 90 D0 B2 D1 82 D0 BE D0 BC D0 BE D0 B1 D0 B8 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D0 B7 D0 B0 D1 80 D1 8F D0 B4 D0 BD D0 BE D0 B5 20 D1 83 D1 81 D1 82 D1 80 D0 BE D0 B9 D1 81 D1 82 D0 B2 D0 BE 20 43 41 52 20 43 48 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 5E 60 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0B C3 01 00 35 04 06 00 DE 40 D4 CE 62 CE FE 73 C1 52 2E E4 D0 BD [18:22:22]Write to MH i2c: 01 00 00 D3 24 F7 [18:22:22]Write i2c OK [18:22:22]MH_I2C_Read... [18:22:22]Read from MH i2c: 01 [18:22:22]MH_I2C_Read... [18:22:22]Read from MH i2c: 01 07 00 [18:22:22]MH_I2C_Read... [18:22:22]Read from MH i2c: 01 07 00 D3 24 00 00 00 00 00 5D 0C 67 [18:22:22]RasterBufferAndPrint [18:22:22]line [18:22:22]line [18:22:22]line [18:22:22]line [18:22:22]line [18:22:22]written 0, free lines is 3169 [18:22:22]MH_Cut [18:22:22]Write to MH i2c: D1 01 00 DA 24 01 D0 [18:22:22]Write i2c OK [18:22:22]MH_I2C_Read... [18:22:22]Read from MH i2c: D1 [18:22:22]MH_I2C_Read... [18:22:22]Read from MH i2c: D1 01 00 [18:22:22]MH_I2C_Read... [18:22:22]Read from MH i2c: D1 01 00 DA 24 00 CF [18:22:22]Write to MH i2c: 01 00 00 DB 24 FF [18:22:22]Write i2c OK [18:22:22]MH_I2C_Read... [18:22:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 58 F4 47 00 F6 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0B C3 01 00 F4 03 04 00 A3 05 F0 66 B6 04 01 00 00 01 2A 21 77 70 B4 C1 75 [18:22:22]CommunicateWithHost err = 0 [18:22:22]CheckOFDResponse [18:22:22]1017 (14) - 77093643461234 [18:22:22]1041 (16) - 0000000000871830 [18:22:22]1040 (4) - 115467 [18:22:22]1012 (4) - 22.09.2024 11:55 [18:22:22]1206 (1) - 0 [18:22:22]OFD Sender: Remove packet 115467 [18:22:22]ProducePacketName [18:22:22]name=ofd_packets/00115467 [18:22:22]NVStorageDeleteData [18:22:22]OFD Sender: No OFD packet to send [18:22:23]*** Cut start [18:22:23]*** Partial cut [18:22:23]*** CUTSNS_PIN = 1 [18:22:23]*** CUTSNS_PIN = 0 [18:22:23]*** Brake cut motor [18:22:23]Read from MH i2c: 01 [18:22:23]MH_I2C_Read... [18:22:23]*** Stop cut motor [18:22:23]*** Cut end [18:22:23]Read from MH i2c: 01 07 00 [18:22:23]MH_I2C_Read... [18:22:23]Read from MH i2c: 01 07 00 DB 24 00 00 00 00 00 FF 0F 14 [18:22:23]process_action close_receipt done [18:22:23]requested_data is exist [18:22:23]produce_requested_data [18:22:23]requested_item fm.sn is exist - process it [18:22:23]wFMCommunicate request_size=4 [18:22:23]MH_SAM_APDU [18:22:23]CAPDU: 80 11 00 00 [18:22:23]Write to MH i2c: E2 08 00 DC 24 80 11 00 00 00 00 00 00 7A [18:22:23]Write i2c OK [18:22:23]MH_I2C_Read... [18:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:24]Read from MH i2c: E2 [18:22:24]MH_I2C_Read... [18:22:24]Read from MH i2c: E2 17 00 [18:22:24]MH_I2C_Read... [18:22:24]Read from MH i2c: E2 17 00 DC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C8 [18:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:22:24]wFMCommunicate OK [18:22:24]requested_item fd.num is exist - process it [18:22:24]SAM_PROTO_GetFieldsCounters [18:22:24]wFMCommunicate request_size=4 [18:22:24]MH_SAM_APDU [18:22:24]CAPDU: 80 13 00 00 [18:22:24]Write to MH i2c: E2 08 00 DD 24 80 13 00 00 00 00 00 00 7D [18:22:24]Write i2c OK [18:22:24]MH_I2C_Read... [18:22:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:24]Read from MH i2c: E2 [18:22:24]MH_I2C_Read... [18:22:24]Read from MH i2c: E2 62 00 [18:22:24]MH_I2C_Read... [18:22:24]Read from MH i2c: E2 62 00 DD 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0B C3 01 00 0E 04 04 00 D7 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 68 [18:22:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0B C3 01 00 0E 04 04 00 D7 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 [18:22:24]wFMCommunicate OK [18:22:24]SAM_PROTO_GetFieldsCounters done [18:22:24]requested_item shift.num is exist - process it [18:22:24]requested_item shift.opened is exist - process it [18:22:24]req_shift_opened [18:22:24]FM_GetShiftState [18:22:24]SAM_PROTO_GetShiftState [18:22:24]wFMCommunicate request_size=4 [18:22:24]MH_SAM_APDU [18:22:24]CAPDU: 80 13 01 00 [18:22:24]Write to MH i2c: E2 08 00 DE 24 80 13 01 00 00 00 00 00 7F [18:22:24]Write i2c OK [18:22:24]MH_I2C_Read... [18:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:24]Read from MH i2c: E2 [18:22:24]MH_I2C_Read... [18:22:24]Read from MH i2c: E2 0E 00 [18:22:24]MH_I2C_Read... [18:22:24]Read from MH i2c: E2 0E 00 DE 24 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 98 [18:22:24]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:22:24]wFMCommunicate OK [18:22:24]SAM_PROTO_GetShiftState done [18:22:24]FM_GetShiftState done [18:22:24]req_shift_opened done [18:22:24]requested_item shift.open_date is exist - process it [18:22:24]req_shift_open_date [18:22:24]req_shift_open_date done [18:22:24]produce_requested_data done [18:22:24]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115467,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:22:24]process_action_free close_receipt [18:22:24]json_value_free [18:22:24]json_value_free done [18:22:24]process_json_proto returns [18:22:24]Send response to host [18:22:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115467,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:22:24]free response buf [18:22:24]execute_script done [18:22:24]execute_script returns [18:22:24]free content buf [18:22:24]Sock 8.Close socket [18:22:24]Sock 8.Thread stoped [18:22:27]OFD Sender: No OFD packet to send [18:22:32]OFD Sender: No OFD packet to send [18:22:37]OFD Sender: No OFD packet to send [18:22:42]OFD Sender: No OFD packet to send [18:22:47]OFD Sender: No OFD packet to send [18:22:52]OFD Sender: No OFD packet to send [18:22:57]OFD Sender: No OFD packet to send [18:23:02]OFD Sender: No OFD packet to send [18:23:07]OFD Sender: No OFD packet to send [18:23:12]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:58]OFD Sender: No OFD packet to send [18:27:01]accept exits with 9 [18:27:01]New connection [18:27:01]New thread 3066682724 created [18:27:01]Thread 3066826084 joined [18:27:01]Waiting for new connection... [18:27:01] Sock 9.Parse request [18:27:01]Sock 9.Check first char [18:27:01]Sock 9.First char is OK [18:27:01]request: POST /json_proto HTTP/1.0 [18:27:01]Method: POST [18:27:01]URL: /json_proto [18:27:01]Method is POST - this is cgi request [18:27:01]url: /json_proto [18:27:01]query_string will be loaded in cgi processing [18:27:01]execute_cgi json_proto POST (null) [18:27:01]execute_cgi path=json_proto method=POST [18:27:01]POST find Content-Length [18:27:01]Host: 172.17.41.136:8080 [18:27:01]Content-Length: 630 [18:27:01]Content-Type: application/json [18:27:01] [18:27:01]POST finish read [18:27:01]Found Content-Length = 630 [18:27:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343902", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:01]execute_script... [18:27:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343902", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:01]POST & json_proto [18:27:01]process_json_proto [18:27:01]json parsed OK: [18:27:01]protocol is kg_v1.0 [18:27:01]action value=close_receipt [18:27:01]process_action close_receipt [18:27:01]cmd_close_receipt [18:27:01]MH_GetDate [18:27:01]Write to MH i2c: F0 00 00 DF 24 F2 [18:27:01]Write i2c OK [18:27:01]MH_I2C_Read... [18:27:01]Read from MH i2c: F0 [18:27:01]MH_I2C_Read... [18:27:01]Read from MH i2c: F0 09 00 [18:27:01]MH_I2C_Read... [18:27:01]Read from MH i2c: F0 09 00 DF 24 00 78 61 F0 66 1B D0 5A 64 D3 [18:27:01]GetLastDocTimeStamp 1727029342 [18:27:01]current date 1727029624 [18:27:01]FM_GetShiftState [18:27:01]SAM_PROTO_GetShiftState [18:27:01]wFMCommunicate request_size=4 [18:27:01]MH_SAM_APDU [18:27:01]CAPDU: 80 13 01 00 [18:27:01]Write to MH i2c: E2 08 00 E0 24 80 13 01 00 00 00 00 00 81 [18:27:01]Write i2c OK [18:27:01]MH_I2C_Read... [18:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:01]Read from MH i2c: E2 [18:27:01]MH_I2C_Read... [18:27:01]Read from MH i2c: E2 0E 00 [18:27:01]MH_I2C_Read... [18:27:01]Read from MH i2c: E2 0E 00 E0 24 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 9A [18:27:01]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:27:01]wFMCommunicate OK [18:27:01]SAM_PROTO_GetShiftState done [18:27:01]FM_GetShiftState done [18:27:01]opened in 1726965840 [18:27:01]opened+sec_in_day 1727052240 [18:27:01]quantity*price = 5000 [18:27:01]sum+1 = 5001 [18:27:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 186 22.09.2024 18:27 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115468 ФПД: 181185942931041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T182704&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115468&fm=181185942931041&tin=02508201610067®Number=0000000000091831&sum=5000 0 [18:27:03]StoreToDocumentArchive [18:27:03]shift 471 fd 115468 [18:27:03]save to /storage/0471/doc_00115468 [18:27:03]save last doc name /storage/0471/doc_00115468 to /storage/kkm_last_doc_name [18:27:03]save OK [18:27:03]Clear old archive folders... [18:27:03]ProcessDocumentItem done err = 0, tmpTLVsize=269 [18:27:03]tlvbuf is B6D89170 [18:27:03]SAM_PROTO_ClearQueue [18:27:03]wFMCommunicate request_size=4 [18:27:03]MH_SAM_APDU [18:27:03]CAPDU: 80 09 00 00 [18:27:03]Write to MH i2c: E2 08 00 ED 24 80 09 00 00 00 00 00 00 83 [18:27:03]Write i2c OK [18:27:03]MH_I2C_Read... [18:27:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:03]Read from MH i2c: E2 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: E2 03 00 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: E2 03 00 ED 24 00 90 00 85 [18:27:03]RAPDU: 90 00 [18:27:03]wFMCommunicate OK [18:27:03]SAM_PROTO_ClearQueue done [18:27:03]KKMCreateOFDPacket [18:27:03]OFDProtocolAddRootSTLVToBuf [18:27:03]FM_MakeSignedData [18:27:03]FM_MakeSignedData [18:27:03]SAM_PROTO_SignData [18:27:03]wFMCommunicate request_size=4 [18:27:03]MH_SAM_APDU [18:27:03]CAPDU: 80 0D 01 02 [18:27:03]Write to MH i2c: E2 08 00 EE 24 80 0D 01 02 00 00 00 00 8B [18:27:03]Write i2c OK [18:27:03]MH_I2C_Read... [18:27:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:03]Read from MH i2c: E2 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: E2 03 00 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: E2 03 00 EE 24 00 90 00 86 [18:27:03]RAPDU: 90 00 [18:27:03]wFMCommunicate OK [18:27:03]wFMCommunicate request_size=255 [18:27:03]MH_SAM_APDU [18:27:03]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 78 61 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [18:27:03]Write to MH i2c: E2 02 01 EF 24 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 78 61 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 60 [18:27:03]Write i2c OK [18:27:03]MH_I2C_Read... [18:27:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:03]Read from MH i2c: E2 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: E2 03 00 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: E2 03 00 EF 24 00 90 00 87 [18:27:03]RAPDU: 90 00 [18:27:03]wFMCommunicate OK [18:27:03]wFMCommunicate request_size=28 [18:27:03]MH_SAM_APDU [18:27:03]CAPDU: 80 0D 02 02 17 37 31 38 33 30 10 04 04 00 0C C3 01 00 35 04 06 00 A4 C9 A3 C4 46 61 [18:27:03]Write to MH i2c: E2 1F 00 F0 24 80 0D 02 02 17 00 37 31 38 33 30 10 04 04 00 0C C3 01 00 35 04 06 00 A4 C9 A3 C4 46 61 00 00 61 [18:27:03]Write i2c OK [18:27:03]MH_I2C_Read... [18:27:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:03]Read from MH i2c: E2 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: E2 03 00 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: E2 03 00 F0 24 00 90 00 88 [18:27:03]RAPDU: 90 00 [18:27:03]wFMCommunicate OK [18:27:03]wFMCommunicate request_size=4 [18:27:03]MH_SAM_APDU [18:27:03]CAPDU: 80 0D 03 02 [18:27:03]Write to MH i2c: E2 08 00 F1 24 80 0D 03 02 00 00 00 00 90 [18:27:03]Write i2c OK [18:27:03]MH_I2C_Read... [18:27:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:03]Read from MH i2c: E2 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: E2 0B 00 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: E2 0B 00 F1 24 00 85 C3 74 73 30 24 9D 3C 90 00 ED [18:27:03]RAPDU: 85 C3 74 73 30 24 9D 3C 90 00 [18:27:03]wFMCommunicate OK [18:27:03]SAM_PROTO_SignData done [18:27:03]FM_MakeSignedData done [18:27:03]CreateOFDProtocolMessage [18:27:03]wFMCommunicate request_size=4 [18:27:03]MH_SAM_APDU [18:27:03]CAPDU: 80 11 00 00 [18:27:03]Write to MH i2c: E2 08 00 F2 24 80 11 00 00 00 00 00 00 90 [18:27:03]Write i2c OK [18:27:03]MH_I2C_Read... [18:27:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:03]Read from MH i2c: E2 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: E2 17 00 [18:27:03]MH_I2C_Read... [18:27:03]OFD Sender: No OFD packet to send [18:27:03]Read from MH i2c: E2 17 00 F2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 DE [18:27:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:27:03]wFMCommunicate OK [18:27:03]CreateOFDProtocolMessage done [18:27:03]OFDSenderStorePacket 115468 [18:27:03]StoreOFDPacket docnum=115468 [18:27:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 21 01 00 00 CB 98 19 01 5E 46 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 78 61 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0C C3 01 00 35 04 06 00 A4 C9 A3 C4 46 61 85 C3 74 73 30 24 9D 3C [18:27:03]CheckFolder [18:27:03]dirname=/storage/ofd_packets [18:27:03]CheckFolder done [18:27:03]ProducePacketName [18:27:03]name=ofd_packets/00115468 [18:27:03]NVStorageSaveData ofd_packets/00115468 [18:27:03]File name is /storage/ofd_packets/00115468 [18:27:03]Write 319 bytes [18:27:03]NVStorageSaveData done [18:27:03]OFDSenderStorePacket done [18:27:03]KKMCreateOFDPacket done [18:27:03]NVStorageSaveData kkm_last_timestamp [18:27:03]File name is /storage/kkm_last_timestamp [18:27:03]Write 4 bytes [18:27:03]NVStorageSaveData done [18:27:03]ExternCall_PrintAddStr [18:27:03]wPrintStart [18:27:03]Write to MH i2c: 01 00 00 F3 24 17 [18:27:03]Write i2c OK [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: 01 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: 01 07 00 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: 01 07 00 F3 24 00 00 00 00 00 FF 0F 2C [18:27:03]RasterBufferAndPrint [18:27:03]line Счет N : (3)343902 [18:27:03]line ИНН: 02508201610067 [18:27:03]line Контрольно-Кассовый Чек [18:27:03]line ПРОДАЖА [18:27:03]line Товар: 4700000160358 [18:27:03]line Вода Легенда 1л [18:27:03]line 1.000 * 50.00 [18:27:03]line = 50.00 [18:27:03]line НДС 12% НСП 1% [18:27:03]line > о реализуемом товаре [18:27:03]line ИТОГО: 50.00 [18:27:03]line НСП 1% : 0.44 [18:27:03]line НДС 12% : 5.31 [18:27:03]line Наличными: 50.00 [18:27:03]line Безнал.: 0.00 [18:27:03]line Место: АЗС № 90 "Партнер Нефть" [18:27:03]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:27:03]line СНО: Общий режим [18:27:03]line Чек 186 22.09.2024 18:27 [18:27:03]line Смена: 471 ФФД: 1.0 [18:27:03]line ЗНМ: 0300000120 [18:27:03]line РНМ: 0000000000091831 [18:27:03]line Версия ККМ: 001 [18:27:03]line ФМ: 0000000000871830 [18:27:03]line ФД: 115468 [18:27:03]line ФПД: 181185942931041 [18:27:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T182704&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115468&fm=181185942931041&tin=02508201610067®Number=0000000000091831&sum=5000 [18:27:03]line 0 [18:27:03]written 0, free lines is 4095 [18:27:03]OFD Sender: Processing packet 115468 [packets to send 481, broken 480] [18:27:03]ProducePacketName [18:27:03]name=ofd_packets/00115468 [18:27:03]OFD Sender: To server: pG, [18:27:03]CommunicateWithHost lk.salyk.kg:30040 [18:27:03]ConnectInit lk.salyk.kg [18:27:03]Connected sock=10 [18:27:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 21 01 00 00 CB 98 19 01 5E 46 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 78 61 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0C C3 01 00 35 04 06 00 A4 C9 A3 C4 46 61 85 C3 74 73 30 24 9D 3C [18:27:04]Write to MH i2c: 01 00 00 1A 25 3F [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 07 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 07 00 1A 25 00 00 00 00 00 81 0C D3 [18:27:04]RasterBufferAndPrint [18:27:04]line [18:27:04]line [18:27:04]line [18:27:04]line [18:27:04]line [18:27:04]written 0, free lines is 3207 [18:27:04]MH_Cut [18:27:04]Write to MH i2c: D1 01 00 21 25 01 18 [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: D1 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: D1 01 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: D1 01 00 21 25 00 17 [18:27:04]Write to MH i2c: 01 00 00 22 25 47 [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 5B B0 47 00 AE 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0C C3 01 00 F4 03 04 00 BD 06 F0 66 B6 04 01 00 00 E1 52 4A AF D7 96 EA F9 [18:27:04]CommunicateWithHost err = 0 [18:27:04]CheckOFDResponse [18:27:04]1017 (14) - 77093643461234 [18:27:04]1041 (16) - 0000000000871830 [18:27:04]1040 (4) - 115468 [18:27:04]1012 (4) - 22.09.2024 11:59 [18:27:04]1206 (1) - 0 [18:27:04]OFD Sender: Remove packet 115468 [18:27:04]ProducePacketName [18:27:04]name=ofd_packets/00115468 [18:27:04]NVStorageDeleteData [18:27:04]OFD Sender: No OFD packet to send [18:27:05]*** Cut start [18:27:05]*** Partial cut [18:27:05]*** CUTSNS_PIN = 1 [18:27:05]*** CUTSNS_PIN = 0 [18:27:05]*** Brake cut motor [18:27:05]Read from MH i2c: 01 [18:27:05]MH_I2C_Read... [18:27:05]*** Stop cut motor [18:27:05]*** Cut end [18:27:05]Read from MH i2c: 01 07 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 22 25 00 00 00 00 00 FF 0F 5C [18:27:05]process_action close_receipt done [18:27:05]requested_data is exist [18:27:05]produce_requested_data [18:27:05]requested_item fm.sn is exist - process it [18:27:05]wFMCommunicate request_size=4 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 11 00 00 [18:27:05]Write to MH i2c: E2 08 00 23 25 80 11 00 00 00 00 00 00 C2 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 17 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 17 00 23 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 10 [18:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:27:05]wFMCommunicate OK [18:27:05]requested_item fd.num is exist - process it [18:27:05]SAM_PROTO_GetFieldsCounters [18:27:05]wFMCommunicate request_size=4 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 13 00 00 [18:27:05]Write to MH i2c: E2 08 00 24 25 80 13 00 00 00 00 00 00 C5 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:06]Read from MH i2c: E2 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 62 00 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 62 00 24 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0C C3 01 00 0E 04 04 00 D7 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 B4 [18: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0C C3 01 00 0E 04 04 00 D7 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 [18:27:06]wFMCommunicate OK [18:27:06]SAM_PROTO_GetFieldsCounters done [18:27:06]requested_item shift.num is exist - process it [18:27:06]requested_item shift.opened is exist - process it [18:27:06]req_shift_opened [18:27:06]FM_GetShiftState [18:27:06]SAM_PROTO_GetShiftState [18:27:06]wFMCommunicate request_size=4 [18:27:06]MH_SAM_APDU [18:27:06]CAPDU: 80 13 01 00 [18:27:06]Write to MH i2c: E2 08 00 25 25 80 13 01 00 00 00 00 00 C7 [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:06]Read from MH i2c: E2 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 0E 00 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 0E 00 25 25 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 E0 [18:27:06]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:27:06]wFMCommunicate OK [18:27:06]SAM_PROTO_GetShiftState done [18:27:06]FM_GetShiftState done [18:27:06]req_shift_opened done [18:27:06]requested_item shift.open_date is exist - process it [18:27:06]req_shift_open_date [18:27:06]req_shift_open_date done [18:27:06]produce_requested_data done [18:27:06]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115468,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:27:06]process_action_free close_receipt [18:27:06]json_value_free [18:27:06]json_value_free done [18:27:06]process_json_proto returns [18:27:06]Send response to host [18:27:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115468,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:27:06]free response buf [18:27:06]execute_script done [18:27:06]execute_script returns [18:27:06]free content buf [18:27:06]Sock 9.Close socket [18:27:06]Sock 9.Thread stoped [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:05]accept exits with 8 [18:28:05]New connection [18:28:05]New thread 3066826084 created [18:28:05]Thread 3066682724 joined [18:28:05]Waiting for new connection... [18:28:05] Sock 8.Parse request [18:28:05]Sock 8.Check first char [18:28:05]Sock 8.First char is OK [18:28:05]request: POST /json_proto HTTP/1.0 [18:28:05]Method: POST [18:28:05]URL: /json_proto [18:28:05]Method is POST - this is cgi request [18:28:05]url: /json_proto [18:28:05]query_string will be loaded in cgi processing [18:28:05]execute_cgi json_proto POST (null) [18:28:05]execute_cgi path=json_proto method=POST [18:28:05]POST find Content-Length [18:28:05]Host: 172.17.41.136:8080 [18:28:05]Content-Length: 693 [18:28:05]Content-Type: application/json [18:28:05] [18:28:05]POST finish read [18:28:05]Found Content-Length = 693 [18:28:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343903", "tax_sys" : 0, "items" : [ { "code": "4680988559316", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u0431\u0430\u0431\u043B \u0433\u0430\u043C \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:05]execute_script... [18:28:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343903", "tax_sys" : 0, "items" : [ { "code": "4680988559316", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u0431\u0430\u0431\u043B \u0433\u0430\u043C \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:05]POST & json_proto [18:28:05]process_json_proto [18:28:05]json parsed OK: [18:28:05]protocol is kg_v1.0 [18:28:05]action value=close_receipt [18:28:05]process_action close_receipt [18:28:05]cmd_close_receipt [18:28:05]MH_GetDate [18:28:05]Write to MH i2c: F0 00 00 26 25 3A [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: F0 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: F0 09 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: F0 09 00 26 25 00 B8 61 F0 66 1B D0 5A 64 5B [18:28:05]GetLastDocTimeStamp 1727029624 [18:28:05]current date 1727029688 [18:28:05]FM_GetShiftState [18:28:05]SAM_PROTO_GetShiftState [18:28:05]wFMCommunicate request_size=4 [18:28:05]MH_SAM_APDU [18:28:05]CAPDU: 80 13 01 00 [18:28:05]Write to MH i2c: E2 08 00 27 25 80 13 01 00 00 00 00 00 C9 [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:05]Read from MH i2c: E2 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 0E 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 0E 00 27 25 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 E2 [18:28:05]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:28:05]wFMCommunicate OK [18:28:05]SAM_PROTO_GetShiftState done [18:28:05]FM_GetShiftState done [18:28:05]opened in 1726965840 [18:28:05]opened+sec_in_day 1727052240 [18:28:05]quantity*price = 16500 [18:28:05]sum+1 = 16501 [18:28:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 187 22.09.2024 18:28 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115469 ФПД: 162126711481565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T182808&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115469&fm=162126711481565&tin=02508201610067®Number=0000000000091831&sum=16500 0 [18:28:06]StoreToDocumentArchive [18:28:06]shift 471 fd 115469 [18:28:06]save to /storage/0471/doc_00115469 [18:28:06]save last doc name /storage/0471/doc_00115469 to /storage/kkm_last_doc_name [18:28:06]save OK [18:28:06]Clear old archive folders... [18:28:06]ProcessDocumentItem done err = 0, tmpTLVsize=293 [18:28:06]tlvbuf is 01BE8510 [18:28:06]SAM_PROTO_ClearQueue [18:28:06]wFMCommunicate request_size=4 [18:28:06]MH_SAM_APDU [18:28:06]CAPDU: 80 09 00 00 [18:28:06]Write to MH i2c: E2 08 00 34 25 80 09 00 00 00 00 00 00 CB [18:28:06]Write i2c OK [18:28:06]MH_I2C_Read... [18:28:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:06]Read from MH i2c: E2 [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: E2 03 00 [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: E2 03 00 34 25 00 90 00 CD [18:28:06]RAPDU: 90 00 [18:28:06]wFMCommunicate OK [18:28:06]SAM_PROTO_ClearQueue done [18:28:06]KKMCreateOFDPacket [18:28:06]OFDProtocolAddRootSTLVToBuf [18:28:06]FM_MakeSignedData [18:28:06]FM_MakeSignedData [18:28:06]SAM_PROTO_SignData [18:28:06]wFMCommunicate request_size=4 [18:28:06]MH_SAM_APDU [18:28:06]CAPDU: 80 0D 01 02 [18:28:06]Write to MH i2c: E2 08 00 35 25 80 0D 01 02 00 00 00 00 D3 [18:28:06]Write i2c OK [18:28:06]MH_I2C_Read... [18:28:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:06]Read from MH i2c: E2 [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: E2 03 00 [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: E2 03 00 35 25 00 90 00 CE [18:28:06]RAPDU: 90 00 [18:28:06]wFMCommunicate OK [18:28:06]wFMCommunicate request_size=255 [18:28:06]MH_SAM_APDU [18:28:06]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 36 38 30 39 38 38 35 35 39 33 31 36 06 04 33 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B1 D0 B0 D0 B1 D0 BB 20 D0 B3 D0 B0 D0 BC 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B8 61 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [18:28:06]Write to MH i2c: E2 02 01 36 25 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 36 38 30 39 38 38 35 35 39 33 31 36 06 04 33 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B1 D0 B0 D0 B1 D0 BB 20 D0 B3 D0 B0 D0 BC 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B8 61 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 9C [18:28:07]Write i2c OK [18:28:07]MH_I2C_Read... [18:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:07]Read from MH i2c: E2 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 03 00 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 03 00 36 25 00 90 00 CF [18:28:07]RAPDU: 90 00 [18:28:07]wFMCommunicate OK [18:28:07]wFMCommunicate request_size=52 [18:28:07]MH_SAM_APDU [18:28:07]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0D C3 01 00 35 04 06 00 93 74 11 0B E4 DD [18:28:07]Write to MH i2c: E2 37 00 37 25 80 0D 02 02 2F 00 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0D C3 01 00 35 04 06 00 93 74 11 0B E4 DD 00 00 46 [18:28:07]Write i2c OK [18:28:07]MH_I2C_Read... [18:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:07]Read from MH i2c: E2 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 03 00 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 03 00 37 25 00 90 00 D0 [18:28:07]RAPDU: 90 00 [18:28:07]wFMCommunicate OK [18:28:07]wFMCommunicate request_size=4 [18:28:07]MH_SAM_APDU [18:28:07]CAPDU: 80 0D 03 02 [18:28:07]Write to MH i2c: E2 08 00 38 25 80 0D 03 02 00 00 00 00 D8 [18:28:07]Write i2c OK [18:28:07]MH_I2C_Read... [18:28:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:07]Read from MH i2c: E2 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 0B 00 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 0B 00 38 25 00 7C D9 DB E4 9A 1E 3B 04 90 00 E4 [18:28:07]RAPDU: 7C D9 DB E4 9A 1E 3B 04 90 00 [18:28:07]wFMCommunicate OK [18:28:07]SAM_PROTO_SignData done [18:28:07]FM_MakeSignedData done [18:28:07]CreateOFDProtocolMessage [18:28:07]wFMCommunicate request_size=4 [18:28:07]MH_SAM_APDU [18:28:07]CAPDU: 80 11 00 00 [18:28:07]Write to MH i2c: E2 08 00 39 25 80 11 00 00 00 00 00 00 D8 [18:28:07]Write i2c OK [18:28:07]MH_I2C_Read... [18:28:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:07]Read from MH i2c: E2 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 17 00 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 17 00 39 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 26 [18:28:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:28:07]wFMCommunicate OK [18:28:07]CreateOFDProtocolMessage done [18:28:07]OFDSenderStorePacket 115469 [18:28:07]StoreOFDPacket docnum=115469 [18:28:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 39 01 00 00 36 BB 31 01 5C 1F 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 36 38 30 39 38 38 35 35 39 33 31 36 06 04 33 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B1 D0 B0 D0 B1 D0 BB 20 D0 B3 D0 B0 D0 BC 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B8 61 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0D C3 01 00 35 04 06 00 93 74 11 0B E4 DD 7C D9 DB E4 9A 1E 3B 04 [18:28:07]CheckFolder [18:28:07]dirname=/storage/ofd_packets [18:28:07]CheckFolder done [18:28:07]ProducePacketName [18:28:07]name=ofd_packets/00115469 [18:28:07]NVStorageSaveData ofd_packets/00115469 [18:28:07]File name is /storage/ofd_packets/00115469 [18:28:07]Write 343 bytes [18:28:07]NVStorageSaveData done [18:28:07]OFDSenderStorePacket done [18:28:07]KKMCreateOFDPacket done [18:28:07]NVStorageSaveData kkm_last_timestamp [18:28:07]File name is /storage/kkm_last_timestamp [18:28:07]Write 4 bytes [18:28:07]NVStorageSaveData done [18:28:07]ExternCall_PrintAddStr [18:28:07]wPrintStart [18:28:07]Write to MH i2c: 01 00 00 3A 25 5F [18:28:07]OFD Sender: Processing packet 115469 [packets to send 481, broken 480] [18:28:07]ProducePacketName [18:28:07]name=ofd_packets/00115469 [18:28:07]OFD Sender: To server: pG, [18:28:07]CommunicateWithHost lk.salyk.kg:30040 [18:28:07]ConnectInit lk.salyk.kg [18:28:07]Write i2c OK [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: 01 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: 01 07 00 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: 01 07 00 3A 25 00 00 00 00 00 FF 0F 74 [18:28:07]RasterBufferAndPrint [18:28:07]line Счет N : (3)343903 [18:28:07]line ИНН: 02508201610067 [18:28:07]line Контрольно-Кассовый Чек [18:28:07]line ПРОДАЖА [18:28:07]line Товар: 4680988559316 [18:28:07]line Жид/ст ПН бабл гам летняя 4,5л [18:28:07]line 1.000 * 165.00 [18:28:07]line = 165.00 [18:28:07]line НДС 12% НСП 1% [18:28:07]line > о реализуемом товаре [18:28:07]line ИТОГО: 165.00 [18:28:07]line НСП 1% : 1.46 [18:28:07]line НДС 12% : 17.52 [18:28:07]line Наличными: 165.00 [18:28:07]line Безнал.: 0.00 [18:28:07]line Место: АЗС № 90 "Партнер Нефть" [18:28:07]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:28:07]line СНО: Общий режим [18:28:07]line Чек 187 22.09.2024 18:28 [18:28:07]line Смена: 471 ФФД: 1.0 [18:28:07]line ЗНМ: 0300000120 [18:28:07]line РНМ: 0000000000091831 [18:28:07]line Версия ККМ: 001 [18:28:07]line ФМ: 0000000000871830 [18:28:07]line ФД: 115469 [18:28:07]line ФПД: 162126711481565 [18:28:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T182808&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115469&fm=162126711481565&tin=02508201610067®Number=0000000000091831&sum=16500 [18:28:07]Connected sock=10 [18:28:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 39 01 00 00 36 BB 31 01 5C 1F 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 36 38 30 39 38 38 35 35 39 33 31 36 06 04 33 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B1 D0 B0 D0 B1 D0 BB 20 D0 B3 D0 B0 D0 BC 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B8 61 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0D C3 01 00 35 04 06 00 93 74 11 0B E4 DD 7C D9 DB E4 9A 1E 3B 04 [18:28:07]line 0 [18:28:07]written 0, free lines is 4095 [18:28:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 37 01 47 00 BE 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 31 38 33 30 10 04 04 00 0D C3 01 00 F4 03 04 00 FD 06 F0 66 B6 04 01 00 00 49 C3 FC 4E 68 52 30 FD [18:28:08]CommunicateWithHost err = 0 [18:28:08]CheckOFDResponse [18:28:08]1017 (14) - 77093643461234 [18:28:08]1041 (16) - 0000000000871830 [18:28:08]1040 (4) - 115469 [18:28:08]1012 (4) - 22.09.2024 12:01 [18:28:08]1206 (1) - 0 [18:28:08]OFD Sender: Remove packet 115469 [18:28:08]ProducePacketName [18:28:08]name=ofd_packets/00115469 [18:28:08]NVStorageDeleteData [18:28:08]Write to MH i2c: 01 00 00 62 25 87 [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: 01 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: 01 07 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: 01 07 00 62 25 00 00 00 00 00 6A 0C 04 [18:28:08]RasterBufferAndPrint [18:28:08]line [18:28:08]line [18:28:08]line [18:28:08]line [18:28:08]line [18:28:08]written 0, free lines is 3183 [18:28:08]MH_Cut [18:28:08]Write to MH i2c: D1 01 00 69 25 01 60 [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: D1 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: D1 01 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: D1 01 00 69 25 00 5F [18:28:08]Write to MH i2c: 01 00 00 6A 25 8F [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]OFD Sender: No OFD packet to send [18:28:09]*** Cut start [18:28:09]*** Partial cut [18:28:09]*** CUTSNS_PIN = 1 [18:28:09]*** CUTSNS_PIN = 0 [18:28:09]*** Brake cut motor [18:28:10]Read from MH i2c: 01 [18:28:10]MH_I2C_Read... [18:28:10]*** Stop cut motor [18:28:10]*** Cut end [18:28:10]Read from MH i2c: 01 07 00 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: 01 07 00 6A 25 00 00 00 00 00 FF 0F A4 [18:28:10]process_action close_receipt done [18:28:10]requested_data is exist [18:28:10]produce_requested_data [18:28:10]requested_item fm.sn is exist - process it [18:28:10]wFMCommunicate request_size=4 [18:28:10]MH_SAM_APDU [18:28:10]CAPDU: 80 11 00 00 [18:28:10]Write to MH i2c: E2 08 00 6B 25 80 11 00 00 00 00 00 00 0A [18:28:10]Write i2c OK [18:28:10]MH_I2C_Read... [18:28:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:10]Read from MH i2c: E2 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: E2 17 00 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: E2 17 00 6B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 58 [18:28:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:28:10]wFMCommunicate OK [18:28:10]requested_item fd.num is exist - process it [18:28:10]SAM_PROTO_GetFieldsCounters [18:28:10]wFMCommunicate request_size=4 [18:28:10]MH_SAM_APDU [18:28:10]CAPDU: 80 13 00 00 [18:28:10]Write to MH i2c: E2 08 00 6C 25 80 13 00 00 00 00 00 00 0D [18:28:10]Write i2c OK [18:28:10]MH_I2C_Read... [18:28:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:10]Read from MH i2c: E2 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: E2 62 00 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: E2 62 00 6C 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0D C3 01 00 0E 04 04 00 D7 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 00 [18:28:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0D C3 01 00 0E 04 04 00 D7 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 [18:28:10]wFMCommunicate OK [18:28:10]SAM_PROTO_GetFieldsCounters done [18:28:10]requested_item shift.num is exist - process it [18:28:10]requested_item shift.opened is exist - process it [18:28:10]req_shift_opened [18:28:10]FM_GetShiftState [18:28:10]SAM_PROTO_GetShiftState [18:28:10]wFMCommunicate request_size=4 [18:28:10]MH_SAM_APDU [18:28:10]CAPDU: 80 13 01 00 [18:28:10]Write to MH i2c: E2 08 00 6D 25 80 13 01 00 00 00 00 00 0F [18:28:10]Write i2c OK [18:28:10]MH_I2C_Read... [18:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:10]Read from MH i2c: E2 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: E2 0E 00 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: E2 0E 00 6D 25 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 28 [18:28:10]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:28:10]wFMCommunicate OK [18:28:10]SAM_PROTO_GetShiftState done [18:28:10]FM_GetShiftState done [18:28:10]req_shift_opened done [18:28:10]requested_item shift.open_date is exist - process it [18:28:10]req_shift_open_date [18:28:10]req_shift_open_date done [18:28:10]produce_requested_data done [18:28:10]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115469,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:28:10]process_action_free close_receipt [18:28:10]json_value_free [18:28:10]json_value_free done [18:28:10]process_json_proto returns [18:28:10]Send response to host [18:28:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115469,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:28:10]free response buf [18:28:10]execute_script done [18:28:10]execute_script returns [18:28:10]free content buf [18:28:10]Sock 8.Close socket [18:28:10]Sock 8.Thread stoped [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]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:21]accept exits with 9 [18:30:21]New connection [18:30:21]New thread 3066682724 created [18:30:21]Thread 3066826084 joined [18:30:21]Waiting for new connection... [18:30:21] Sock 9.Parse request [18:30:21]Sock 9.Check first char [18:30:21]Sock 9.First char is OK [18:30:21]request: POST /json_proto HTTP/1.0 [18:30:21]Method: POST [18:30:21]URL: /json_proto [18:30:21]Method is POST - this is cgi request [18:30:21]url: /json_proto [18:30:21]query_string will be loaded in cgi processing [18:30:21]execute_cgi json_proto POST (null) [18:30:21]execute_cgi path=json_proto method=POST [18:30:21]POST find Content-Length [18:30:21]Host: 172.17.41.136:8080 [18:30:21]Content-Length: 1207 [18:30:21]Content-Type: application/json [18:30:21] [18:30:21]POST finish read [18:30:21]Found Content-Length = 1207 [18:30:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343904", "tax_sys" : 0, "items" : [ { "code": "5449000134912", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 530.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:21]execute_script... [18:30:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343904", "tax_sys" : 0, "items" : [ { "code": "5449000134912", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 530.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:21]POST & json_proto [18:30:21]process_json_proto [18:30:21]json parsed OK: [18:30:21]protocol is kg_v1.0 [18:30:21]action value=close_receipt [18:30:21]process_action close_receipt [18:30:21]cmd_close_receipt [18:30:21]MH_GetDate [18:30:21]Write to MH i2c: F0 00 00 6E 25 82 [18:30:21]Write i2c OK [18:30:21]MH_I2C_Read... [18:30:21]Read from MH i2c: F0 [18:30:21]MH_I2C_Read... [18:30:21]Read from MH i2c: F0 09 00 [18:30:21]MH_I2C_Read... [18:30:21]Read from MH i2c: F0 09 00 6E 25 00 3F 62 F0 66 1B D0 5A 64 2B [18:30:21]GetLastDocTimeStamp 1727029688 [18:30:21]current date 1727029823 [18:30:21]FM_GetShiftState [18:30:21]SAM_PROTO_GetShiftState [18:30:21]wFMCommunicate request_size=4 [18:30:21]MH_SAM_APDU [18:30:21]CAPDU: 80 13 01 00 [18:30:21]Write to MH i2c: E2 08 00 6F 25 80 13 01 00 00 00 00 00 11 [18:30:21]Write i2c OK [18:30:21]MH_I2C_Read... [18:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:21]Read from MH i2c: E2 [18:30:21]MH_I2C_Read... [18:30:21]Read from MH i2c: E2 0E 00 [18:30:21]MH_I2C_Read... [18:30:21]Read from MH i2c: E2 0E 00 6F 25 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 2A [18:30:21]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:30:21]wFMCommunicate OK [18:30:21]SAM_PROTO_GetShiftState done [18:30:21]FM_GetShiftState done [18:30:21]opened in 1726965840 [18:30:21]opened+sec_in_day 1727052240 [18:30:21]quantity*price = 18000 [18:30:21]sum+1 = 18001 [18:30:21]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 2.000 * 150.00 = 300.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 530.00 НСП 1% : 4.68 НДС 12% : 56.28 Наличными: 530.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 188 22.09.2024 18:30 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115470 ФПД: 154941566217169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T183023&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115470&fm=154941566217169&tin=02508201610067®Number=0000000000091831&sum=53000 0 [18:30:22]StoreToDocumentArchive [18:30:22]shift 471 fd 115470 [18:30:22]save to /storage/0471/doc_00115470 [18:30:22]save last doc name /storage/0471/doc_00115470 to /storage/kkm_last_doc_name [18:30:22]save OK [18:30:22]Clear old archive folders... [18:30:22]ProcessDocumentItem done err = 0, tmpTLVsize=510 [18:30:22]tlvbuf is B6EBB7C0 [18:30:22]SAM_PROTO_ClearQueue [18:30:22]wFMCommunicate request_size=4 [18:30:22]MH_SAM_APDU [18:30:22]CAPDU: 80 09 00 00 [18:30:22]Write to MH i2c: E2 08 00 7C 25 80 09 00 00 00 00 00 00 13 [18:30:22]Write i2c OK [18:30:22]MH_I2C_Read... [18:30:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:22]Read from MH i2c: E2 [18:30:22]MH_I2C_Read... [18:30:22]Read from MH i2c: E2 03 00 [18:30:22]MH_I2C_Read... [18:30:22]Read from MH i2c: E2 03 00 7C 25 00 90 00 15 [18:30:22]RAPDU: 90 00 [18:30:22]wFMCommunicate OK [18:30:22]SAM_PROTO_ClearQueue done [18:30:22]KKMCreateOFDPacket [18:30:22]OFDProtocolAddRootSTLVToBuf [18:30:22]FM_MakeSignedData [18:30:22]FM_MakeSignedData [18:30:22]SAM_PROTO_SignData [18:30:22]wFMCommunicate request_size=4 [18:30:22]MH_SAM_APDU [18:30:22]CAPDU: 80 0D 01 02 [18:30:22]Write to MH i2c: E2 08 00 7D 25 80 0D 01 02 00 00 00 00 1B [18:30:22]Write i2c OK [18:30:22]MH_I2C_Read... [18:30:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:22]Read from MH i2c: E2 [18:30:22]MH_I2C_Read... [18:30:22]Read from MH i2c: E2 03 00 [18:30:22]MH_I2C_Read... [18:30:22]Read from MH i2c: E2 03 00 7D 25 00 90 00 16 [18:30:22]RAPDU: 90 00 [18:30:22]wFMCommunicate OK [18:30:22]wFMCommunicate request_size=255 [18:30:22]MH_SAM_APDU [18:30:22]CAPDU: 80 0D 02 02 FA 03 00 FE 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A [18:30:22]Write to MH i2c: E2 02 01 7E 25 80 0D 02 02 FA 00 03 00 FE 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 00 00 A3 [18:30:22]Write i2c OK [18:30:22]MH_I2C_Read... [18:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:23]Read from MH i2c: E2 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 03 00 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 03 00 7E 25 00 90 00 17 [18:30:23]RAPDU: 90 00 [18:30:23]wFMCommunicate OK [18:30:23]wFMCommunicate request_size=255 [18:30:23]MH_SAM_APDU [18:30:23]CAPDU: 80 0D 02 02 FA 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 15 00 00 00 00 07 04 06 00 08 CF 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 3F 62 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 [18:30:23]Write to MH i2c: E2 02 01 7F 25 80 0D 02 02 FA 00 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 15 00 00 00 00 07 04 06 00 08 CF 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 3F 62 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 00 00 F0 [18:30:23]Write i2c OK [18:30:23]MH_I2C_Read... [18:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:23]Read from MH i2c: E2 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 03 00 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 03 00 7F 25 00 90 00 18 [18:30:23]RAPDU: 90 00 [18:30:23]wFMCommunicate OK [18:30:23]wFMCommunicate request_size=19 [18:30:23]MH_SAM_APDU [18:30:23]CAPDU: 80 0D 02 02 0E 0E C3 01 00 35 04 06 00 8C EB 25 03 EB D1 [18:30:23]Write to MH i2c: E2 16 00 80 25 80 0D 02 02 0E 00 0E C3 01 00 35 04 06 00 8C EB 25 03 EB D1 00 00 A7 [18:30:23]Write i2c OK [18:30:23]MH_I2C_Read... [18:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:23]Read from MH i2c: E2 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 03 00 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 03 00 80 25 00 90 00 19 [18:30:23]RAPDU: 90 00 [18:30:23]wFMCommunicate OK [18:30:23]wFMCommunicate request_size=4 [18:30:23]MH_SAM_APDU [18:30:23]CAPDU: 80 0D 03 02 [18:30:23]Write to MH i2c: E2 08 00 81 25 80 0D 03 02 00 00 00 00 21 [18:30:23]Write i2c OK [18:30:23]MH_I2C_Read... [18:30:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:23]Read from MH i2c: E2 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 0B 00 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 0B 00 81 25 00 F6 5E 07 9C F8 6A A4 BE 90 00 DD [18:30:23]RAPDU: F6 5E 07 9C F8 6A A4 BE 90 00 [18:30:23]wFMCommunicate OK [18:30:23]SAM_PROTO_SignData done [18:30:23]FM_MakeSignedData done [18:30:23]CreateOFDProtocolMessage [18:30:23]wFMCommunicate request_size=4 [18:30:23]MH_SAM_APDU [18:30:23]CAPDU: 80 11 00 00 [18:30:23]Write to MH i2c: E2 08 00 82 25 80 11 00 00 00 00 00 00 21 [18:30:23]Write i2c OK [18:30:23]MH_I2C_Read... [18:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:23]Read from MH i2c: E2 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 17 00 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: E2 17 00 82 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6F [18:30:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:30:23]wFMCommunicate OK [18:30:23]CreateOFDProtocolMessage done [18:30:23]OFDSenderStorePacket 115470 [18:30:23]StoreOFDPacket docnum=115470 [18:30:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 12 02 00 00 02 B0 0A 02 51 E4 5A 03 01 00 03 00 FE 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 15 00 00 00 00 07 04 06 00 08 CF 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 3F 62 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0E C3 01 00 35 04 06 00 8C EB 25 03 EB D1 F6 5E 07 9C F8 6A A4 BE [18:30:23]CheckFolder [18:30:23]dirname=/storage/ofd_packets [18:30:23]CheckFolder done [18:30:23]ProducePacketName [18:30:23]name=ofd_packets/00115470 [18:30:23]NVStorageSaveData ofd_packets/00115470 [18:30:23]File name is /storage/ofd_packets/00115470 [18:30:23]Write 560 bytes [18:30:23]NVStorageSaveData done [18:30:23]OFDSenderStorePacket done [18:30:23]KKMCreateOFDPacket done [18:30:23]NVStorageSaveData kkm_last_timestamp [18:30:23]File name is /storage/kkm_last_timestamp [18:30:23]Write 4 bytes [18:30:23]NVStorageSaveData done [18:30:23]ExternCall_PrintAddStr [18:30:23]wPrintStart [18:30:23]Write to MH i2c: 01 00 00 83 25 A8 [18:30:23]Write i2c OK [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: 01 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: 01 07 00 [18:30:23]MH_I2C_Read... [18:30:23]Read from MH i2c: 01 07 00 83 25 00 00 00 00 00 FF 0F BD [18:30:23]RasterBufferAndPrint [18:30:23]line Счет N : (3)343904 [18:30:23]line ИНН: 02508201610067 [18:30:23]line Контрольно-Кассовый Чек [18:30:23]line ПРОДАЖА [18:30:23]line Товар: 5449000134912 [18:30:23]line Холодный чай Fuse манго,ромашка 0,33 ж/б [18:30:23]line 2.000 * 90.00 [18:30:23]line = 180.00 [18:30:23]line НДС 12% НСП 1% [18:30:23]line > о реализуемом товаре [18:30:23]line Товар: 4700000160358 [18:30:23]line Вода Легенда 1л [18:30:23]line 1.000 * 50.00 [18:30:23]line = 50.00 [18:30:23]line НДС 12% НСП 1% [18:30:23]line > о реализуемом товаре [18:30:23]line Товар: 4640030091645 [18:30:23]line Сигареты ESSE Exchange M [18:30:23]line 2.000 * 150.00 [18:30:23]line = 300.00 [18:30:23]line НДС 12% НСП 1% [18:30:23]line > о реализуемом товаре [18:30:23]line ИТОГО: 530.00 [18:30:23]line НСП 1% : 4.68 [18:30:23]line НДС 12% : 56.28 [18:30:23]line Наличными: 530.00 [18:30:23]line Безнал.: 0.00 [18:30:23]line Место: АЗС № 90 "Партнер Нефть" [18:30:23]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:30:23]line СНО: Общий режим [18:30:23]line Чек 188 22.09.2024 18:30 [18:30:23]line Смена: 471 ФФД: 1.0 [18:30:23]line ЗНМ: 0300000120 [18:30:23]line РНМ: 0000000000091831 [18:30:23]line Версия ККМ: 001 [18:30:23]line ФМ: 0000000000871830 [18:30:23]line ФД: 115470 [18:30:23]line ФПД: 154941566217169 [18:30:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T183023&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115470&fm=154941566217169&tin=02508201610067®Number=0000000000091831&sum=53000 [18:30:23]line 0 [18:30:23]written 0, free lines is 4095 [18:30:23]OFD Sender: Processing packet 115470 [packets to send 481, broken 480] [18:30:23]ProducePacketName [18:30:23]name=ofd_packets/00115470 [18:30:23]OFD Sender: To server: pG, [18:30:23]CommunicateWithHost lk.salyk.kg:30040 [18:30:23]ConnectInit lk.salyk.kg [18:30:23]Connected sock=10 [18: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 31 38 33 30 12 02 00 00 02 B0 0A 02 51 E4 5A 03 01 00 03 00 FE 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 15 00 00 00 00 07 04 06 00 08 CF 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 3F 62 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0E C3 01 00 35 04 06 00 8C EB 25 03 EB D1 F6 5E 07 9C F8 6A A4 BE [18:30:24]Write to MH i2c: 01 00 00 B7 25 DC [18:30:24]Write i2c OK [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: 01 [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: 01 07 00 [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: 01 07 00 B7 25 00 00 00 00 00 76 0B 64 [18:30:24]RasterBufferAndPrint [18:30:24]line [18:30:24]line [18:30:24]line [18:30:24]line [18:30:24]line [18:30:24]written 0, free lines is 2939 [18:30:24]MH_Cut [18:30:24]Write to MH i2c: D1 01 00 BE 25 01 B5 [18:30:24]Write i2c OK [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: D1 [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: D1 01 00 [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: D1 01 00 BE 25 00 B4 [18:30:24]Write to MH i2c: 01 00 00 BF 25 E4 [18:30:24]Write i2c OK [18:30:24]MH_I2C_Read... [18:30:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A7 B0 47 00 5C 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 31 38 33 30 10 04 04 00 0E C3 01 00 F4 03 04 00 85 07 F0 66 B6 04 01 00 00 B1 08 A4 E0 75 24 10 43 [18:30:24]CommunicateWithHost err = 0 [18:30:24]CheckOFDResponse [18:30:24]1017 (14) - 77093643461234 [18:30:24]1041 (16) - 0000000000871830 [18:30:24]1040 (4) - 115470 [18:30:24]1012 (4) - 22.09.2024 12:03 [18:30:24]1206 (1) - 0 [18:30:24]OFD Sender: Remove packet 115470 [18:30:24]ProducePacketName [18:30:24]name=ofd_packets/00115470 [18:30:24]NVStorageDeleteData [18:30:24]OFD Sender: No OFD packet to send [18:30:25]*** Cut start [18:30:25]*** Partial cut [18:30:25]*** CUTSNS_PIN = 1 [18:30:25]*** CUTSNS_PIN = 0 [18:30:25]*** Brake cut motor [18:30:26]Read from MH i2c: 01 [18:30:26]MH_I2C_Read... [18:30:26]*** Stop cut motor [18:30:26]*** Cut end [18:30:26]Read from MH i2c: 01 07 00 [18:30:26]MH_I2C_Read... [18:30:26]Read from MH i2c: 01 07 00 BF 25 00 00 00 00 00 FF 0F F9 [18:30:26]process_action close_receipt done [18:30:26]requested_data is exist [18:30:26]produce_requested_data [18:30:26]requested_item fm.sn is exist - process it [18:30:26]wFMCommunicate request_size=4 [18:30:26]MH_SAM_APDU [18:30:26]CAPDU: 80 11 00 00 [18:30:26]Write to MH i2c: E2 08 00 C0 25 80 11 00 00 00 00 00 00 5F [18:30:26]Write i2c OK [18:30:26]MH_I2C_Read... [18:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:26]Read from MH i2c: E2 [18:30:26]MH_I2C_Read... [18:30:26]Read from MH i2c: E2 17 00 [18:30:26]MH_I2C_Read... [18:30:26]Read from MH i2c: E2 17 00 C0 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AD [18:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:30:26]wFMCommunicate OK [18:30:26]requested_item fd.num is exist - process it [18:30:26]SAM_PROTO_GetFieldsCounters [18:30:26]wFMCommunicate request_size=4 [18:30:26]MH_SAM_APDU [18:30:26]CAPDU: 80 13 00 00 [18:30:26]Write to MH i2c: E2 08 00 C1 25 80 13 00 00 00 00 00 00 62 [18:30:26]Write i2c OK [18:30:26]MH_I2C_Read... [18:30:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:26]Read from MH i2c: E2 [18:30:26]MH_I2C_Read... [18:30:26]Read from MH i2c: E2 62 00 [18:30:26]MH_I2C_Read... [18:30:26]Read from MH i2c: E2 62 00 C1 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0E C3 01 00 0E 04 04 00 D7 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 59 [18:30:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0E C3 01 00 0E 04 04 00 D7 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 [18:30:26]wFMCommunicate OK [18:30:26]SAM_PROTO_GetFieldsCounters done [18:30:26]requested_item shift.num is exist - process it [18:30:26]requested_item shift.opened is exist - process it [18:30:26]req_shift_opened [18:30:26]FM_GetShiftState [18:30:26]SAM_PROTO_GetShiftState [18:30:26]wFMCommunicate request_size=4 [18:30:26]MH_SAM_APDU [18:30:26]CAPDU: 80 13 01 00 [18:30:26]Write to MH i2c: E2 08 00 C2 25 80 13 01 00 00 00 00 00 64 [18:30:26]Write i2c OK [18:30:26]MH_I2C_Read... [18:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:26]Read from MH i2c: E2 [18:30:26]MH_I2C_Read... [18:30:26]Read from MH i2c: E2 0E 00 [18:30:26]MH_I2C_Read... [18:30:26]Read from MH i2c: E2 0E 00 C2 25 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 7D [18:30:26]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:30:26]wFMCommunicate OK [18:30:26]SAM_PROTO_GetShiftState done [18:30:26]FM_GetShiftState done [18:30:26]req_shift_opened done [18:30:26]requested_item shift.open_date is exist - process it [18:30:26]req_shift_open_date [18:30:26]req_shift_open_date done [18:30:26]produce_requested_data done [18:30:26]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115470,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:30:26]process_action_free close_receipt [18:30:26]json_value_free [18:30:26]json_value_free done [18:30:26]process_json_proto returns [18:30:26]Send response to host [18:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115470,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:30:26]free response buf [18:30:26]execute_script done [18:30:26]execute_script returns [18:30:26]free content buf [18:30:26]Sock 9.Close socket [18:30:26]Sock 9.Thread stoped [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:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18: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:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:20]accept exits with 8 [18:38:20]New connection [18:38:20]New thread 3066826084 created [18:38:20]Thread 3066682724 joined [18:38:20]Waiting for new connection... [18:38:20] Sock 8.Parse request [18:38:20]Sock 8.Check first char [18:38:20]Sock 8.First char is OK [18:38:20]request: POST /json_proto HTTP/1.0 [18:38:20]Method: POST [18:38:20]URL: /json_proto [18:38:20]Method is POST - this is cgi request [18:38:20]url: /json_proto [18:38:20]query_string will be loaded in cgi processing [18:38:20]execute_cgi json_proto POST (null) [18:38:20]execute_cgi path=json_proto method=POST [18:38:20]POST find Content-Length [18:38:20]Host: 172.17.41.136:8080 [18:38:20]Content-Length: 628 [18:38:20]Content-Type: application/json [18:38:20] [18:38:20]POST finish read [18:38:20]Found Content-Length = 628 [18:38:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343905", "tax_sys" : 0, "items" : [ { "code": "745240075981", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 9 LA COSTA", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:20]execute_script... [18:38:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343905", "tax_sys" : 0, "items" : [ { "code": "745240075981", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 9 LA COSTA", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:20]POST & json_proto [18:38:20]process_json_proto [18:38:20]json parsed OK: [18:38:20]protocol is kg_v1.0 [18:38:20]action value=close_receipt [18:38:20]process_action close_receipt [18:38:20]cmd_close_receipt [18:38:20]MH_GetDate [18:38:20]Write to MH i2c: F0 00 00 C3 25 D7 [18:38:20]Write i2c OK [18:38:20]MH_I2C_Read... [18:38:20]Read from MH i2c: F0 [18:38:20]MH_I2C_Read... [18:38:20]Read from MH i2c: F0 09 00 [18:38:20]MH_I2C_Read... [18:38:20]Read from MH i2c: F0 09 00 C3 25 00 1F 64 F0 66 1B D0 5A 64 62 [18:38:20]GetLastDocTimeStamp 1727029823 [18:38:20]current date 1727030303 [18:38:20]FM_GetShiftState [18:38:20]SAM_PROTO_GetShiftState [18:38:20]wFMCommunicate request_size=4 [18:38:20]MH_SAM_APDU [18:38:20]CAPDU: 80 13 01 00 [18:38:20]Write to MH i2c: E2 08 00 C4 25 80 13 01 00 00 00 00 00 66 [18:38:20]Write i2c OK [18:38:20]MH_I2C_Read... [18:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:20]Read from MH i2c: E2 [18:38:20]MH_I2C_Read... [18:38:20]Read from MH i2c: E2 0E 00 [18:38:20]MH_I2C_Read... [18:38:20]Read from MH i2c: E2 0E 00 C4 25 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 7F [18:38:20]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:38:20]wFMCommunicate OK [18:38:20]SAM_PROTO_GetShiftState done [18:38:20]FM_GetShiftState done [18:38:20]opened in 1726965840 [18:38:20]opened+sec_in_day 1727052240 [18:38:20]quantity*price = 30000 [18:38:20]sum+1 = 30001 [18:38:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 189 22.09.2024 18:38 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115471 ФПД: 58413375687140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T183823&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115471&fm=58413375687140&tin=02508201610067®Number=0000000000091831&sum=30000 0 [18:38:21]StoreToDocumentArchive [18:38:21]shift 471 fd 115471 [18:38:21]save to /storage/0471/doc_00115471 [18:38:21]save last doc name /storage/0471/doc_00115471 to /storage/kkm_last_doc_name [18:38:21]save OK [18:38:21]Clear old archive folders... [18:38:21]ProcessDocumentItem done err = 0, tmpTLVsize=272 [18:38:21]tlvbuf is 01C50E40 [18:38:21]SAM_PROTO_ClearQueue [18:38:21]wFMCommunicate request_size=4 [18:38:21]MH_SAM_APDU [18:38:21]CAPDU: 80 09 00 00 [18:38:21]Write to MH i2c: E2 08 00 D1 25 80 09 00 00 00 00 00 00 68 [18:38:21]Write i2c OK [18:38:21]MH_I2C_Read... [18:38:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:22]Read from MH i2c: E2 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 03 00 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 03 00 D1 25 00 90 00 6A [18:38:22]RAPDU: 90 00 [18:38:22]wFMCommunicate OK [18:38:22]SAM_PROTO_ClearQueue done [18:38:22]KKMCreateOFDPacket [18:38:22]OFDProtocolAddRootSTLVToBuf [18:38:22]FM_MakeSignedData [18:38:22]FM_MakeSignedData [18:38:22]SAM_PROTO_SignData [18:38:22]wFMCommunicate request_size=4 [18:38:22]MH_SAM_APDU [18:38:22]CAPDU: 80 0D 01 02 [18:38:22]Write to MH i2c: E2 08 00 D2 25 80 0D 01 02 00 00 00 00 70 [18:38:22]Write i2c OK [18:38:22]MH_I2C_Read... [18:38:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:22]Read from MH i2c: E2 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 03 00 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 03 00 D2 25 00 90 00 6B [18:38:22]RAPDU: 90 00 [18:38:22]wFMCommunicate OK [18:38:22]wFMCommunicate request_size=255 [18:38:22]MH_SAM_APDU [18:38:22]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 38 31 06 04 1F 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 39 20 4C 41 20 43 4F 53 54 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 1F 64 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [18:38:22]Write to MH i2c: E2 02 01 D3 25 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 38 31 06 04 1F 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 39 20 4C 41 20 43 4F 53 54 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 1F 64 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 3E [18:38:22]Write i2c OK [18:38:22]MH_I2C_Read... [18:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:22]Read from MH i2c: E2 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 03 00 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 03 00 D3 25 00 90 00 6C [18:38:22]RAPDU: 90 00 [18:38:22]wFMCommunicate OK [18:38:22]wFMCommunicate request_size=31 [18:38:22]MH_SAM_APDU [18:38:22]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 33 30 10 04 04 00 0F C3 01 00 35 04 06 00 35 20 6C 82 09 E4 [18:38:22]Write to MH i2c: E2 22 00 D4 25 80 0D 02 02 1A 00 30 30 38 37 31 38 33 30 10 04 04 00 0F C3 01 00 35 04 06 00 35 20 6C 82 09 E4 00 00 9C [18:38:22]Write i2c OK [18:38:22]MH_I2C_Read... [18:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:22]Read from MH i2c: E2 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 03 00 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 03 00 D4 25 00 90 00 6D [18:38:22]RAPDU: 90 00 [18:38:22]wFMCommunicate OK [18:38:22]wFMCommunicate request_size=4 [18:38:22]MH_SAM_APDU [18:38:22]CAPDU: 80 0D 03 02 [18:38:22]Write to MH i2c: E2 08 00 D5 25 80 0D 03 02 00 00 00 00 75 [18:38:22]Write i2c OK [18:38:22]MH_I2C_Read... [18:38:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:22]Read from MH i2c: E2 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 0B 00 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 0B 00 D5 25 00 2B 65 9A 8F 07 70 5D BB 90 00 BE [18:38:22]RAPDU: 2B 65 9A 8F 07 70 5D BB 90 00 [18:38:22]wFMCommunicate OK [18:38:22]SAM_PROTO_SignData done [18:38:22]FM_MakeSignedData done [18:38:22]CreateOFDProtocolMessage [18:38:22]wFMCommunicate request_size=4 [18:38:22]MH_SAM_APDU [18:38:22]CAPDU: 80 11 00 00 [18:38:22]Write to MH i2c: E2 08 00 D6 25 80 11 00 00 00 00 00 00 75 [18:38:22]Write i2c OK [18:38:22]MH_I2C_Read... [18:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:22]Read from MH i2c: E2 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 17 00 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 17 00 D6 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C3 [18:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:38:22]wFMCommunicate OK [18:38:22]CreateOFDProtocolMessage done [18:38:22]OFDSenderStorePacket 115471 [18:38:22]StoreOFDPacket docnum=115471 [18:38:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 18 0A 1C 01 08 FC 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 38 31 06 04 1F 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 39 20 4C 41 20 43 4F 53 54 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 1F 64 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0F C3 01 00 35 04 06 00 35 20 6C 82 09 E4 2B 65 9A 8F 07 70 5D BB [18:38:22]CheckFolder [18:38:22]dirname=/storage/ofd_packets [18:38:22]CheckFolder done [18:38:22]ProducePacketName [18:38:22]name=ofd_packets/00115471 [18:38:22]NVStorageSaveData ofd_packets/00115471 [18:38:22]File name is /storage/ofd_packets/00115471 [18:38:22]Write 322 bytes [18:38:22]NVStorageSaveData done [18:38:22]OFDSenderStorePacket done [18:38:22]KKMCreateOFDPacket done [18:38:22]NVStorageSaveData kkm_last_timestamp [18:38:22]File name is /storage/kkm_last_timestamp [18:38:22]Write 4 bytes [18:38:22]NVStorageSaveData done [18:38:22]ExternCall_PrintAddStr [18:38:22]wPrintStart [18:38:22]Write to MH i2c: 01 00 00 D7 25 FC [18:38:22]Write i2c OK [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: 01 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: 01 07 00 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: 01 07 00 D7 25 00 00 00 00 00 FF 0F 11 [18:38:22]RasterBufferAndPrint [18:38:22]line Счет N : (3)343905 [18:38:22]line ИНН: 02508201610067 [18:38:22]line Контрольно-Кассовый Чек [18:38:22]line ПРОДАЖА [18:38:22]line Товар: 745240075981 [18:38:22]line Автопарфюм 9 LA COSTA [18:38:22]line 1.000 * 300.00 [18:38:22]line = 300.00 [18:38:22]line НДС 12% НСП 1% [18:38:22]line > о реализуемом товаре [18:38:22]line ИТОГО: 300.00 [18:38:22]line НСП 1% : 2.65 [18:38:22]line НДС 12% : 31.86 [18:38:22]line Наличными: 300.00 [18:38:22]line Безнал.: 0.00 [18:38:22]line Место: АЗС № 90 "Партнер Нефть" [18:38:22]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:38:22]line СНО: Общий режим [18:38:22]line Чек 189 22.09.2024 18:38 [18:38:22]line Смена: 471 ФФД: 1.0 [18:38:22]line ЗНМ: 0300000120 [18:38:22]line РНМ: 0000000000091831 [18:38:22]line Версия ККМ: 001 [18:38:22]line ФМ: 0000000000871830 [18:38:22]line ФД: 115471 [18:38:22]line ФПД: 58413375687140 [18:38:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T183823&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115471&fm=58413375687140&tin=02508201610067®Number=0000000000091831&sum=30000 [18:38:22]line 0 [18:38:22]written 0, free lines is 4095 [18:38:22]OFD Sender: Processing packet 115471 [packets to send 481, broken 480] [18:38:22]ProducePacketName [18:38:22]name=ofd_packets/00115471 [18:38:22]OFD Sender: To server: pG, [18:38:22]CommunicateWithHost lk.salyk.kg:30040 [18:38:22]ConnectInit lk.salyk.kg [18:38:22]Connected sock=10 [18:38:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 18 0A 1C 01 08 FC 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 38 31 06 04 1F 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 39 20 4C 41 20 43 4F 53 54 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 1F 64 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0F C3 01 00 35 04 06 00 35 20 6C 82 09 E4 2B 65 9A 8F 07 70 5D BB [18:38:22]Write to MH i2c: 01 00 00 FE 25 23 [18:38:22]Write i2c OK [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: 01 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: 01 07 00 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: 01 07 00 FE 25 00 00 00 00 00 8C 0C C2 [18:38:22]RasterBufferAndPrint [18:38:22]line [18:38:22]line [18:38:22]line [18:38:22]line [18:38:22]line [18:38:22]written 0, free lines is 3216 [18:38:22]MH_Cut [18:38:22]Write to MH i2c: D1 01 00 05 26 01 FD [18:38:22]Write i2c OK [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: D1 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: D1 01 00 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: D1 01 00 05 26 00 FC [18:38:22]Write to MH i2c: 01 00 00 06 26 2C [18:38:22]Write i2c OK [18:38:22]MH_I2C_Read... [18:38:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 96 22 47 00 E1 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0F C3 01 00 F4 03 04 00 64 09 F0 66 B6 04 01 00 00 95 DB 26 2A E1 8F 83 5D [18:38:23]CommunicateWithHost err = 0 [18:38:23]CheckOFDResponse [18:38:23]1017 (14) - 77093643461234 [18:38:23]1041 (16) - 0000000000871830 [18:38:23]1040 (4) - 115471 [18:38:23]1012 (4) - 22.09.2024 12:11 [18:38:23]1206 (1) - 0 [18:38:23]OFD Sender: Remove packet 115471 [18:38:23]ProducePacketName [18:38:23]name=ofd_packets/00115471 [18:38:23]NVStorageDeleteData [18:38:23]OFD Sender: No OFD packet to send [18:38:24]*** Cut start [18:38:24]*** Partial cut [18:38:24]*** CUTSNS_PIN = 1 [18:38:24]*** CUTSNS_PIN = 0 [18:38:24]*** Brake cut motor [18:38:24]Read from MH i2c: 01 [18:38:24]MH_I2C_Read... [18:38:24]*** Stop cut motor [18:38:24]*** Cut end [18:38:24]Read from MH i2c: 01 07 00 [18:38:24]MH_I2C_Read... [18:38:24]Read from MH i2c: 01 07 00 06 26 00 00 00 00 00 FF 0F 41 [18:38:24]process_action close_receipt done [18:38:24]requested_data is exist [18:38:24]produce_requested_data [18:38:24]requested_item fm.sn is exist - process it [18:38:24]wFMCommunicate request_size=4 [18:38:24]MH_SAM_APDU [18:38:24]CAPDU: 80 11 00 00 [18:38:24]Write to MH i2c: E2 08 00 07 26 80 11 00 00 00 00 00 00 A7 [18:38:24]Write i2c OK [18:38:24]MH_I2C_Read... [18:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:24]Read from MH i2c: E2 [18:38:24]MH_I2C_Read... [18:38:24]Read from MH i2c: E2 17 00 [18:38:24]MH_I2C_Read... [18:38:24]Read from MH i2c: E2 17 00 07 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F5 [18:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:38:24]wFMCommunicate OK [18:38:24]requested_item fd.num is exist - process it [18:38:24]SAM_PROTO_GetFieldsCounters [18:38:24]wFMCommunicate request_size=4 [18:38:24]MH_SAM_APDU [18:38:24]CAPDU: 80 13 00 00 [18:38:24]Write to MH i2c: E2 08 00 08 26 80 13 00 00 00 00 00 00 AA [18:38:24]Write i2c OK [18:38:24]MH_I2C_Read... [18:38:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:25]Read from MH i2c: E2 [18:38:25]MH_I2C_Read... [18:38:25]Read from MH i2c: E2 62 00 [18:38:25]MH_I2C_Read... [18:38:25]Read from MH i2c: E2 62 00 08 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0F C3 01 00 0E 04 04 00 D7 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 A5 [18:38:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0F C3 01 00 0E 04 04 00 D7 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 [18:38:25]wFMCommunicate OK [18:38:25]SAM_PROTO_GetFieldsCounters done [18:38:25]requested_item shift.num is exist - process it [18:38:25]requested_item shift.opened is exist - process it [18:38:25]req_shift_opened [18:38:25]FM_GetShiftState [18:38:25]SAM_PROTO_GetShiftState [18:38:25]wFMCommunicate request_size=4 [18:38:25]MH_SAM_APDU [18:38:25]CAPDU: 80 13 01 00 [18:38:25]Write to MH i2c: E2 08 00 09 26 80 13 01 00 00 00 00 00 AC [18:38:25]Write i2c OK [18:38:25]MH_I2C_Read... [18:38:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:25]Read from MH i2c: E2 [18:38:25]MH_I2C_Read... [18:38:25]Read from MH i2c: E2 0E 00 [18:38:25]MH_I2C_Read... [18:38:25]Read from MH i2c: E2 0E 00 09 26 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C5 [18:38:25]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:38:25]wFMCommunicate OK [18:38:25]SAM_PROTO_GetShiftState done [18:38:25]FM_GetShiftState done [18:38:25]req_shift_opened done [18:38:25]requested_item shift.open_date is exist - process it [18:38:25]req_shift_open_date [18:38:25]req_shift_open_date done [18:38:25]produce_requested_data done [18:38:25]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115471,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:38:25]process_action_free close_receipt [18:38:25]json_value_free [18:38:25]json_value_free done [18:38:25]process_json_proto returns [18:38:25]Send response to host [18:38:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115471,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:38:25]free response buf [18:38:25]execute_script done [18:38:25]execute_script returns [18:38:25]free content buf [18:38:25]Sock 8.Close socket [18:38:25]Sock 8.Thread stoped [18:38:28]OFD Sender: No OFD packet to send [18:38:33]OFD Sender: No OFD packet to send [18:38:38]OFD Sender: No OFD packet to send [18:38:43]OFD Sender: No OFD packet to send [18:38:48]OFD Sender: No OFD packet to send [18:38:53]OFD Sender: No OFD packet to send [18:38:58]OFD Sender: No OFD packet to send [18:39:03]OFD Sender: No OFD packet to send [18:39:08]accept exits with 9 [18:39:08]New connection [18:39:08]New thread 3066682724 created [18:39:08]Thread 3066826084 joined [18:39:08]Waiting for new connection... [18:39:08] Sock 9.Parse request [18:39:08]Sock 9.Check first char [18:39:08]Sock 9.First char is OK [18:39:08]request: POST /json_proto HTTP/1.0 [18:39:08]Method: POST [18:39:08]URL: /json_proto [18:39:08]Method is POST - this is cgi request [18:39:08]url: /json_proto [18:39:08]query_string will be loaded in cgi processing [18:39:08]execute_cgi json_proto POST (null) [18:39:08]execute_cgi path=json_proto method=POST [18:39:08]POST find Content-Length [18:39:08]Host: 172.17.41.136:8080 [18:39:08]Content-Length: 679 [18:39:08]Content-Type: application/json [18:39:08] [18:39:08]POST finish read [18:39:08]Found Content-Length = 679 [18:39:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.640, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:08]execute_script... [18:39:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.640, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:08]POST & json_proto [18:39:08]process_json_proto [18:39:08]json parsed OK: [18:39:08]protocol is kg_v1.0 [18:39:08]action value=close_receipt [18:39:08]process_action close_receipt [18:39:08]cmd_close_receipt [18:39:08]MH_GetDate [18:39:08]Write to MH i2c: F0 00 00 0A 26 1F [18:39:08]Write i2c OK [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: F0 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: F0 09 00 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: F0 09 00 0A 26 00 4F 64 F0 66 1B D0 5A 64 DA [18:39:08]GetLastDocTimeStamp 1727030303 [18:39:08]current date 1727030351 [18:39:08]FM_GetShiftState [18:39:08]SAM_PROTO_GetShiftState [18:39:08]wFMCommunicate request_size=4 [18:39:08]MH_SAM_APDU [18:39:08]CAPDU: 80 13 01 00 [18:39:08]Write to MH i2c: E2 08 00 0B 26 80 13 01 00 00 00 00 00 AE [18:39:08]Write i2c OK [18:39:08]MH_I2C_Read... [18:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:08]Read from MH i2c: E2 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 0E 00 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 0E 00 0B 26 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C7 [18:39:08]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:39:08]wFMCommunicate OK [18:39:08]SAM_PROTO_GetShiftState done [18:39:08]FM_GetShiftState done [18:39:08]opened in 1726965840 [18:39:08]opened+sec_in_day 1727052240 [18:39:08]quantity*price = 45019 [18:39:08]sum+1 = 45020 [18:39:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 190 22.09.2024 18:39 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115472 ФПД: 54805955240700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T183911&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115472&fm=54805955240700&tin=02508201610067®Number=0000000000091831&sum=45000 [18:39:09]StoreToDocumentArchive [18:39:09]shift 471 fd 115472 [18:39:09]save to /storage/0471/doc_00115472 [18:39:09]save last doc name /storage/0471/doc_00115472 to /storage/kkm_last_doc_name [18:39:09]save OK [18:39:09]Clear old archive folders... [18:39:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:09]tlvbuf is 01C01B00 [18:39:09]SAM_PROTO_ClearQueue [18:39:09]wFMCommunicate request_size=4 [18:39:09]MH_SAM_APDU [18:39:09]CAPDU: 80 09 00 00 [18:39:09]Write to MH i2c: E2 08 00 18 26 80 09 00 00 00 00 00 00 B0 [18:39:09]Write i2c OK [18:39:09]MH_I2C_Read... [18:39:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:09]Read from MH i2c: E2 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 03 00 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 03 00 18 26 00 90 00 B2 [18:39:09]RAPDU: 90 00 [18:39:09]wFMCommunicate OK [18:39:09]SAM_PROTO_ClearQueue done [18:39:09]KKMCreateOFDPacket [18:39:09]OFDProtocolAddRootSTLVToBuf [18:39:09]FM_MakeSignedData [18:39:09]FM_MakeSignedData [18:39:09]SAM_PROTO_SignData [18:39:09]wFMCommunicate request_size=4 [18:39:09]MH_SAM_APDU [18:39:09]CAPDU: 80 0D 01 02 [18:39:09]Write to MH i2c: E2 08 00 19 26 80 0D 01 02 00 00 00 00 B8 [18:39:09]Write i2c OK [18:39:09]MH_I2C_Read... [18:39:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:09]Read from MH i2c: E2 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 03 00 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 03 00 19 26 00 90 00 B3 [18:39:09]RAPDU: 90 00 [18:39:09]wFMCommunicate OK [18:39:09]wFMCommunicate request_size=255 [18:39:09]MH_SAM_APDU [18:39:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 4F 64 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 10 C3 01 00 35 04 06 00 31 [18:39:09]Write to MH i2c: E2 02 01 1A 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 4F 64 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 10 C3 01 00 35 04 06 00 31 00 00 C3 [18:39:09]Write i2c OK [18:39:09]MH_I2C_Read... [18:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:09]Read from MH i2c: E2 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 03 00 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 03 00 1A 26 00 90 00 B4 [18:39:09]RAPDU: 90 00 [18:39:09]wFMCommunicate OK [18:39:09]wFMCommunicate request_size=10 [18:39:09]MH_SAM_APDU [18:39:09]CAPDU: 80 0D 02 02 05 D8 81 7E 62 FC [18:39:09]Write to MH i2c: E2 0D 00 1B 26 80 0D 02 02 05 00 D8 81 7E 62 FC 00 00 FA [18:39:09]Write i2c OK [18:39:09]MH_I2C_Read... [18:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:10]Read from MH i2c: E2 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: E2 03 00 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: E2 03 00 1B 26 00 90 00 B5 [18:39:10]RAPDU: 90 00 [18:39:10]wFMCommunicate OK [18:39:10]wFMCommunicate request_size=4 [18:39:10]MH_SAM_APDU [18:39:10]CAPDU: 80 0D 03 02 [18:39:10]Write to MH i2c: E2 08 00 1C 26 80 0D 03 02 00 00 00 00 BD [18:39:10]Write i2c OK [18:39:10]MH_I2C_Read... [18:39:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:10]Read from MH i2c: E2 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: E2 0B 00 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: E2 0B 00 1C 26 00 FD 42 B0 CF 26 00 AD 1D 90 00 6C [18:39:10]RAPDU: FD 42 B0 CF 26 00 AD 1D 90 00 [18:39:10]wFMCommunicate OK [18:39:10]SAM_PROTO_SignData done [18:39:10]FM_MakeSignedData done [18:39:10]CreateOFDProtocolMessage [18:39:10]wFMCommunicate request_size=4 [18:39:10]MH_SAM_APDU [18:39:10]CAPDU: 80 11 00 00 [18:39:10]Write to MH i2c: E2 08 00 1D 26 80 11 00 00 00 00 00 00 BD [18:39:10]Write i2c OK [18:39:10]MH_I2C_Read... [18:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:10]Read from MH i2c: E2 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: E2 17 00 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: E2 17 00 1D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0B [18:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:39:10]wFMCommunicate OK [18:39:10]CreateOFDProtocolMessage done [18:39:10]OFDSenderStorePacket 115472 [18:39:10]StoreOFDPacket docnum=115472 [18:39:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 C2 CD 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 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 4F 64 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 10 C3 01 00 35 04 06 00 31 D8 81 7E 62 FC FD 42 B0 CF 26 00 AD 1D [18:39:10]CheckFolder [18:39:10]dirname=/storage/ofd_packets [18:39:10]CheckFolder done [18:39:10]ProducePacketName [18:39:10]name=ofd_packets/00115472 [18:39:10]NVStorageSaveData ofd_packets/00115472 [18:39:10]File name is /storage/ofd_packets/00115472 [18:39:10]Write 301 bytes [18:39:10]NVStorageSaveData done [18:39:10]OFDSenderStorePacket done [18:39:10]KKMCreateOFDPacket done [18:39:10]NVStorageSaveData kkm_last_timestamp [18:39:10]File name is /storage/kkm_last_timestamp [18:39:10]Write 4 bytes [18:39:10]NVStorageSaveData done [18:39:10]ExternCall_PrintAddStr [18:39:10]wPrintStart [18:39:10]Write to MH i2c: 01 00 00 1E 26 44 [18:39:10]Write i2c OK [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: 01 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: 01 07 00 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: 01 07 00 1E 26 00 00 00 00 00 FF 0F 59 [18:39:10]RasterBufferAndPrint [18:39:10]line Счет N : (1)24617099 [18:39:10]line ИНН: 02508201610067 [18:39:10]line Контрольно-Кассовый Чек [18:39:10]line ПРОДАЖА [18:39:10]line ТРК (МРК, ГНК) : 53 [18:39:10]line Товар: 2710124130 [18:39:10]line Аи-92-К-5 [18:39:10]line 6.640 * 67.80 [18:39:10]line = 450.19 [18:39:10]line НДС 12% НСП 1% [18:39:10]line > о реализуемом товаре [18:39:10]line ОКРУГЛЕНИЕ: -0.19 [18:39:10]line ИТОГО: 450.00 [18:39:10]line Внесено: 450.00 [18:39:10]line СДАЧА: 0.00 [18:39:10]line НСП 1% : 3.98 [18:39:10]line НДС 12% : 47.81 [18:39:10]line Наличными: 450.00 [18:39:10]line Безнал.: 0.00 [18:39:10]line Место: АЗС № 90 "Партнер Нефть" [18:39:10]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:39:10]line СНО: Общий режим [18:39:10]line Чек 190 22.09.2024 18:39 [18:39:10]line Смена: 471 ФФД: 1.0 [18:39:10]line ЗНМ: 0300000120 [18:39:10]line РНМ: 0000000000091831 [18:39:10]line Версия ККМ: 001 [18:39:10]line ФМ: 0000000000871830 [18:39:10]line ФД: 115472 [18:39:10]line ФПД: 54805955240700 [18:39:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T183911&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115472&fm=54805955240700&tin=02508201610067®Number=0000000000091831&sum=45000 [18:39:10]OFD Sender: Processing packet 115472 [packets to send 481, broken 480] [18:39:10]ProducePacketName [18:39:10]name=ofd_packets/00115472 [18:39:10]OFD Sender: To server: pG, [18:39:10]CommunicateWithHost lk.salyk.kg:30040 [18:39:10]ConnectInit lk.salyk.kg [18:39:10]written 0, free lines is 4095 [18:39:10]Connected sock=10 [18:39:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 C2 CD 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 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 4F 64 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 10 C3 01 00 35 04 06 00 31 D8 81 7E 62 FC FD 42 B0 CF 26 00 AD 1D [18:39:10]Write to MH i2c: 01 00 00 48 26 6E [18:39:10]Write i2c OK [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: 01 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: 01 07 00 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: 01 07 00 48 26 00 00 00 00 00 57 0C D8 [18:39:10]RasterBufferAndPrint [18:39:10]line [18:39:10]line [18:39:10]line [18:39:10]line [18:39:10]line [18:39:10]written 0, free lines is 3164 [18:39:10]MH_Cut [18:39:10]Write to MH i2c: D1 01 00 4F 26 01 47 [18:39:10]Write i2c OK [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: D1 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: D1 01 00 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: D1 01 00 4F 26 00 46 [18:39:10]Write to MH i2c: 01 00 00 50 26 76 [18:39:10]Write i2c OK [18:39:10]MH_I2C_Read... [18:39:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 72 72 47 00 4E A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 10 C3 01 00 F4 03 04 00 94 09 F0 66 B6 04 01 00 00 4D A1 05 A6 C1 4B CF 2A [18:39:11]CommunicateWithHost err = 0 [18:39:11]CheckOFDResponse [18:39:11]1017 (14) - 77093643461234 [18:39:11]1041 (16) - 0000000000871830 [18:39:11]1040 (4) - 115472 [18:39:11]1012 (4) - 22.09.2024 12:12 [18:39:11]1206 (1) - 0 [18:39:11]OFD Sender: Remove packet 115472 [18:39:11]ProducePacketName [18:39:11]name=ofd_packets/00115472 [18:39:11]NVStorageDeleteData [18:39:11]OFD Sender: No OFD packet to send [18:39:12]*** Cut start [18:39:12]*** Partial cut [18:39:12]*** CUTSNS_PIN = 1 [18:39:12]*** CUTSNS_PIN = 0 [18:39:12]*** Brake cut motor [18:39:12]Read from MH i2c: 01 [18:39:12]MH_I2C_Read... [18:39:12]*** Stop cut motor [18:39:12]*** Cut end [18:39:12]Read from MH i2c: 01 07 00 [18:39:12]MH_I2C_Read... [18:39:12]Read from MH i2c: 01 07 00 50 26 00 00 00 00 00 FF 0F 8B [18:39:12]process_action close_receipt done [18:39:12]requested_data is exist [18:39:12]produce_requested_data [18:39:12]requested_item fm.sn is exist - process it [18:39:12]wFMCommunicate request_size=4 [18:39:12]MH_SAM_APDU [18:39:12]CAPDU: 80 11 00 00 [18:39:12]Write to MH i2c: E2 08 00 51 26 80 11 00 00 00 00 00 00 F1 [18:39:12]Write i2c OK [18:39:12]MH_I2C_Read... [18:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:12]Read from MH i2c: E2 [18:39:12]MH_I2C_Read... [18:39:12]Read from MH i2c: E2 17 00 [18:39:12]MH_I2C_Read... [18:39:12]Read from MH i2c: E2 17 00 51 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3F [18:39:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:39:12]wFMCommunicate OK [18:39:12]requested_item fd.num is exist - process it [18:39:12]SAM_PROTO_GetFieldsCounters [18:39:12]wFMCommunicate request_size=4 [18:39:12]MH_SAM_APDU [18:39:12]CAPDU: 80 13 00 00 [18:39:12]Write to MH i2c: E2 08 00 52 26 80 13 00 00 00 00 00 00 F4 [18:39:12]Write i2c OK [18:39:12]MH_I2C_Read... [18:39:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:13]Read from MH i2c: E2 [18:39:13]MH_I2C_Read... [18:39:13]Read from MH i2c: E2 62 00 [18:39:13]MH_I2C_Read... [18:39:13]Read from MH i2c: E2 62 00 52 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 10 C3 01 00 0E 04 04 00 D7 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 F3 [18:39: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 10 C3 01 00 0E 04 04 00 D7 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 [18:39:13]wFMCommunicate OK [18:39:13]SAM_PROTO_GetFieldsCounters done [18:39:13]requested_item shift.num is exist - process it [18:39:13]requested_item shift.opened is exist - process it [18:39:13]req_shift_opened [18:39:13]FM_GetShiftState [18:39:13]SAM_PROTO_GetShiftState [18:39:13]wFMCommunicate request_size=4 [18:39:13]MH_SAM_APDU [18:39:13]CAPDU: 80 13 01 00 [18:39:13]Write to MH i2c: E2 08 00 53 26 80 13 01 00 00 00 00 00 F6 [18:39:13]Write i2c OK [18:39:13]MH_I2C_Read... [18:39:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:13]Read from MH i2c: E2 [18:39:13]MH_I2C_Read... [18:39:13]Read from MH i2c: E2 0E 00 [18:39:13]MH_I2C_Read... [18:39:13]Read from MH i2c: E2 0E 00 53 26 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 0F [18:39:13]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:39:13]wFMCommunicate OK [18:39:13]SAM_PROTO_GetShiftState done [18:39:13]FM_GetShiftState done [18:39:13]req_shift_opened done [18:39:13]requested_item shift.open_date is exist - process it [18:39:13]req_shift_open_date [18:39:13]req_shift_open_date done [18:39:13]produce_requested_data done [18:39:13]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115472,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:39:13]process_action_free close_receipt [18:39:13]json_value_free [18:39:13]json_value_free done [18:39:13]process_json_proto returns [18:39:13]Send response to host [18:39:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115472,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:39:13]free response buf [18:39:13]execute_script done [18:39:13]execute_script returns [18:39:13]free content buf [18:39:13]Sock 9.Close socket [18:39:13]Sock 9.Thread stoped [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:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:12]OFD Sender: No OFD packet to send [18:42:17]OFD Sender: No OFD packet to send [18:42:22]OFD Sender: No OFD packet to send [18:42:27]OFD Sender: No OFD packet to send [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:51]accept exits with 8 [18:45:51]New connection [18:45:51]New thread 3066826084 created [18:45:51]Thread 3066682724 joined [18:45:51]Waiting for new connection... [18:45:51] Sock 8.Parse request [18:45:51]Sock 8.Check first char [18:45:51]Sock 8.First char is OK [18:45:51]request: POST /json_proto HTTP/1.0 [18:45:51]Method: POST [18:45:51]URL: /json_proto [18:45:51]Method is POST - this is cgi request [18:45:51]url: /json_proto [18:45:51]query_string will be loaded in cgi processing [18:45:51]execute_cgi json_proto POST (null) [18:45:51]execute_cgi path=json_proto method=POST [18:45:51]POST find Content-Length [18:45:51]Host: 172.17.41.136:8080 [18:45:51]Content-Length: 628 [18:45:51]Content-Type: application/json [18:45:51] [18:45:51]POST finish read [18:45:51]Found Content-Length = 628 [18:45:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343906", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:51]execute_script... [18:45:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343906", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:51]POST & json_proto [18:45:51]process_json_proto [18:45:51]json parsed OK: [18:45:51]protocol is kg_v1.0 [18:45:51]action value=close_receipt [18:45:51]process_action close_receipt [18:45:51]cmd_close_receipt [18:45:51]MH_GetDate [18:45:51]Write to MH i2c: F0 00 00 54 26 69 [18:45:51]Write i2c OK [18:45:51]MH_I2C_Read... [18:45:51]Read from MH i2c: F0 [18:45:51]MH_I2C_Read... [18:45:51]Read from MH i2c: F0 09 00 [18:45:51]MH_I2C_Read... [18:45:51]Read from MH i2c: F0 09 00 54 26 00 E2 65 F0 66 1B D0 5A 64 B8 [18:45:51]GetLastDocTimeStamp 1727030351 [18:45:51]current date 1727030754 [18:45:51]FM_GetShiftState [18:45:51]SAM_PROTO_GetShiftState [18:45:51]wFMCommunicate request_size=4 [18:45:51]MH_SAM_APDU [18:45:51]CAPDU: 80 13 01 00 [18:45:51]Write to MH i2c: E2 08 00 55 26 80 13 01 00 00 00 00 00 F8 [18:45:51]Write i2c OK [18:45:51]MH_I2C_Read... [18:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:51]Read from MH i2c: E2 [18:45:51]MH_I2C_Read... [18:45:51]Read from MH i2c: E2 0E 00 [18:45:51]MH_I2C_Read... [18:45:51]Read from MH i2c: E2 0E 00 55 26 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 11 [18:45:51]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:45:51]wFMCommunicate OK [18:45:51]SAM_PROTO_GetShiftState done [18:45:51]FM_GetShiftState done [18:45:51]opened in 1726965840 [18:45:51]opened+sec_in_day 1727052240 [18:45:51]quantity*price = 26000 [18:45:51]sum+1 = 26001 [18:45:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 191 22.09.2024 18:45 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115473 ФПД: 131552398443112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T184554&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115473&fm=131552398443112&tin=02508201610067®Number=0000000000091831&sum=26000 0 [18:45:52]StoreToDocumentArchive [18:45:52]shift 471 fd 115473 [18:45:52]save to /storage/0471/doc_00115473 [18:45:52]save last doc name /storage/0471/doc_00115473 to /storage/kkm_last_doc_name [18:45:52]save OK [18:45:52]Clear old archive folders... [18:45:52]ProcessDocumentItem done err = 0, tmpTLVsize=276 [18:45:52]tlvbuf is 01C94700 [18:45:52]SAM_PROTO_ClearQueue [18:45:52]wFMCommunicate request_size=4 [18:45:52]MH_SAM_APDU [18:45:52]CAPDU: 80 09 00 00 [18:45:52]Write to MH i2c: E2 08 00 62 26 80 09 00 00 00 00 00 00 FA [18:45:52]Write i2c OK [18:45:52]MH_I2C_Read... [18:45:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:52]Read from MH i2c: E2 [18:45:52]MH_I2C_Read... [18:45:52]Read from MH i2c: E2 03 00 [18:45:52]MH_I2C_Read... [18:45:52]Read from MH i2c: E2 03 00 62 26 00 90 00 FC [18:45:52]RAPDU: 90 00 [18:45:52]wFMCommunicate OK [18:45:52]SAM_PROTO_ClearQueue done [18:45:52]KKMCreateOFDPacket [18:45:52]OFDProtocolAddRootSTLVToBuf [18:45:52]FM_MakeSignedData [18:45:52]FM_MakeSignedData [18:45:52]SAM_PROTO_SignData [18:45:52]wFMCommunicate request_size=4 [18:45:52]MH_SAM_APDU [18:45:52]CAPDU: 80 0D 01 02 [18:45:52]Write to MH i2c: E2 08 00 63 26 80 0D 01 02 00 00 00 00 02 [18:45:52]Write i2c OK [18:45:52]MH_I2C_Read... [18:45:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:53]Read from MH i2c: E2 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: E2 03 00 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: E2 03 00 63 26 00 90 00 FD [18:45:53]RAPDU: 90 00 [18:45:53]wFMCommunicate OK [18:45:53]wFMCommunicate request_size=255 [18:45:53]MH_SAM_APDU [18:45:53]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 E2 65 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 [18:45:53]Write to MH i2c: E2 02 01 64 26 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 E2 65 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 00 00 08 [18:45:53]Write i2c OK [18:45:53]MH_I2C_Read... [18:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:53]Read from MH i2c: E2 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: E2 03 00 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: E2 03 00 64 26 00 90 00 FE [18:45:53]RAPDU: 90 00 [18:45:53]wFMCommunicate OK [18:45:53]wFMCommunicate request_size=35 [18:45:53]MH_SAM_APDU [18:45:53]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 11 C3 01 00 35 04 06 00 77 A5 6D FA 82 68 [18:45:53]Write to MH i2c: E2 26 00 65 26 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 11 C3 01 00 35 04 06 00 77 A5 6D FA 82 68 00 00 35 [18:45:53]Write i2c OK [18:45:53]MH_I2C_Read... [18:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:53]Read from MH i2c: E2 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: E2 03 00 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: E2 03 00 65 26 00 90 00 FF [18:45:53]RAPDU: 90 00 [18:45:53]wFMCommunicate OK [18:45:53]wFMCommunicate request_size=4 [18:45:53]MH_SAM_APDU [18:45:53]CAPDU: 80 0D 03 02 [18:45:53]Write to MH i2c: E2 08 00 66 26 80 0D 03 02 00 00 00 00 07 [18:45:53]Write i2c OK [18:45:53]MH_I2C_Read... [18:45:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:53]Read from MH i2c: E2 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: E2 0B 00 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: E2 0B 00 66 26 00 3A 62 24 8B 4B 01 2C 94 90 00 5F [18:45:53]RAPDU: 3A 62 24 8B 4B 01 2C 94 90 00 [18:45:53]wFMCommunicate OK [18:45:53]SAM_PROTO_SignData done [18:45:53]FM_MakeSignedData done [18:45:53]CreateOFDProtocolMessage [18:45:53]wFMCommunicate request_size=4 [18:45:53]MH_SAM_APDU [18:45:53]CAPDU: 80 11 00 00 [18:45:53]Write to MH i2c: E2 08 00 67 26 80 11 00 00 00 00 00 00 07 [18:45:53]Write i2c OK [18:45:53]MH_I2C_Read... [18:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:53]Read from MH i2c: E2 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: E2 17 00 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: E2 17 00 67 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 55 [18:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:45:53]wFMCommunicate OK [18:45:53]CreateOFDProtocolMessage done [18:45:53]OFDSenderStorePacket 115473 [18:45:53]StoreOFDPacket docnum=115473 [18:45:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 E6 8F 20 01 EE F9 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 E2 65 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 11 C3 01 00 35 04 06 00 77 A5 6D FA 82 68 3A 62 24 8B 4B 01 2C 94 [18:45:53]CheckFolder [18:45:53]dirname=/storage/ofd_packets [18:45:53]CheckFolder done [18:45:53]ProducePacketName [18:45:53]name=ofd_packets/00115473 [18:45:53]NVStorageSaveData ofd_packets/00115473 [18:45:53]File name is /storage/ofd_packets/00115473 [18:45:53]Write 326 bytes [18:45:53]NVStorageSaveData done [18:45:53]OFDSenderStorePacket done [18:45:53]KKMCreateOFDPacket done [18:45:53]NVStorageSaveData kkm_last_timestamp [18:45:53]File name is /storage/kkm_last_timestamp [18:45:53]Write 4 bytes [18:45:53]NVStorageSaveData done [18:45:53]ExternCall_PrintAddStr [18:45:53]wPrintStart [18:45:53]Write to MH i2c: 01 00 00 68 26 8E [18:45:53]Write i2c OK [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: 01 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: 01 07 00 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: 01 07 00 68 26 00 00 00 00 00 FF 0F A3 [18:45:53]RasterBufferAndPrint [18:45:53]line Счет N : (3)343906 [18:45:53]line ИНН: 02508201610067 [18:45:53]line Контрольно-Кассовый Чек [18:45:53]line ПРОДАЖА [18:45:53]line Товар: 2000036230011 [18:45:53]line Кофе Латте XL(GABB TRADE) [18:45:53]line 2.000 * 130.00 [18:45:53]line = 260.00 [18:45:53]line НДС 12% НСП 1% [18:45:53]line > о реализуемом товаре [18:45:53]line ИТОГО: 260.00 [18:45:53]line НСП 1% : 2.30 [18:45:53]line НДС 12% : 27.61 [18:45:53]line Наличными: 260.00 [18:45:53]line Безнал.: 0.00 [18:45:53]line Место: АЗС № 90 "Партнер Нефть" [18:45:53]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:45:53]line СНО: Общий режим [18:45:53]line Чек 191 22.09.2024 18:45 [18:45:53]line Смена: 471 ФФД: 1.0 [18:45:53]line ЗНМ: 0300000120 [18:45:53]line РНМ: 0000000000091831 [18:45:53]line Версия ККМ: 001 [18:45:53]line ФМ: 0000000000871830 [18:45:53]line ФД: 115473 [18:45:53]line ФПД: 131552398443112 [18:45:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T184554&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115473&fm=131552398443112&tin=02508201610067®Number=0000000000091831&sum=26000 [18:45:53]line 0 [18:45:53]written 0, free lines is 4095 [18:45:53]OFD Sender: Processing packet 115473 [packets to send 481, broken 480] [18:45:53]ProducePacketName [18:45:53]name=ofd_packets/00115473 [18:45:53]OFD Sender: To server: pG, [18:45:53]CommunicateWithHost lk.salyk.kg:30040 [18:45:53]ConnectInit lk.salyk.kg [18:45:53]Connected sock=10 [18:45:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 E6 8F 20 01 EE F9 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 E2 65 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 11 C3 01 00 35 04 06 00 77 A5 6D FA 82 68 3A 62 24 8B 4B 01 2C 94 [18:45:53]Write to MH i2c: 01 00 00 8F 26 B5 [18:45:53]Write i2c OK [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: 01 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: 01 07 00 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: 01 07 00 8F 26 00 00 00 00 00 77 0C 3F [18:45:53]RasterBufferAndPrint [18:45:53]line [18:45:53]line [18:45:53]line [18:45:53]line [18:45:53]line [18:45:53]written 0, free lines is 3195 [18:45:53]MH_Cut [18:45:53]Write to MH i2c: D1 01 00 96 26 01 8E [18:45:53]Write i2c OK [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: D1 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: D1 01 00 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: D1 01 00 96 26 00 8D [18:45:53]Write to MH i2c: 01 00 00 97 26 BD [18:45:53]Write i2c OK [18:45:53]MH_I2C_Read... [18:45:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1F E6 47 00 4A 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 11 C3 01 00 F4 03 04 00 27 0B F0 66 B6 04 01 00 00 B3 F7 68 F5 20 75 6F 6B [18:45:54]CommunicateWithHost err = 0 [18:45:54]CheckOFDResponse [18:45:54]1017 (14) - 77093643461234 [18:45:54]1041 (16) - 0000000000871830 [18:45:54]1040 (4) - 115473 [18:45:54]1012 (4) - 22.09.2024 12:18 [18:45:54]1206 (1) - 0 [18:45:54]OFD Sender: Remove packet 115473 [18:45:54]ProducePacketName [18:45:54]name=ofd_packets/00115473 [18:45:54]NVStorageDeleteData [18:45:54]OFD Sender: No OFD packet to send [18:45:55]*** Cut start [18:45:55]*** Partial cut [18:45:55]*** CUTSNS_PIN = 1 [18:45:55]*** CUTSNS_PIN = 0 [18:45:55]*** Brake cut motor [18:45:55]Read from MH i2c: 01 [18:45:55]MH_I2C_Read... [18:45:55]*** Stop cut motor [18:45:55]*** Cut end [18:45:55]Read from MH i2c: 01 07 00 [18:45:55]MH_I2C_Read... [18:45:55]Read from MH i2c: 01 07 00 97 26 00 00 00 00 00 FF 0F D2 [18:45:55]process_action close_receipt done [18:45:55]requested_data is exist [18:45:55]produce_requested_data [18:45:55]requested_item fm.sn is exist - process it [18:45:55]wFMCommunicate request_size=4 [18:45:55]MH_SAM_APDU [18:45:55]CAPDU: 80 11 00 00 [18:45:55]Write to MH i2c: E2 08 00 98 26 80 11 00 00 00 00 00 00 38 [18:45:55]Write i2c OK [18:45:55]MH_I2C_Read... [18:45:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:55]Read from MH i2c: E2 [18:45:55]MH_I2C_Read... [18:45:55]Read from MH i2c: E2 17 00 [18:45:55]MH_I2C_Read... [18:45:55]Read from MH i2c: E2 17 00 98 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 86 [18:45:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:45:55]wFMCommunicate OK [18:45:55]requested_item fd.num is exist - process it [18:45:55]SAM_PROTO_GetFieldsCounters [18:45:55]wFMCommunicate request_size=4 [18:45:55]MH_SAM_APDU [18:45:55]CAPDU: 80 13 00 00 [18:45:55]Write to MH i2c: E2 08 00 99 26 80 13 00 00 00 00 00 00 3B [18:45:55]Write i2c OK [18:45:55]MH_I2C_Read... [18:45:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:56]Read from MH i2c: E2 [18:45:56]MH_I2C_Read... [18:45:56]Read from MH i2c: E2 62 00 [18:45:56]MH_I2C_Read... [18:45:56]Read from MH i2c: E2 62 00 99 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 11 C3 01 00 0E 04 04 00 D7 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 3E [18:45:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 11 C3 01 00 0E 04 04 00 D7 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 [18:45:56]wFMCommunicate OK [18:45:56]SAM_PROTO_GetFieldsCounters done [18:45:56]requested_item shift.num is exist - process it [18:45:56]requested_item shift.opened is exist - process it [18:45:56]req_shift_opened [18:45:56]FM_GetShiftState [18:45:56]SAM_PROTO_GetShiftState [18:45:56]wFMCommunicate request_size=4 [18:45:56]MH_SAM_APDU [18:45:56]CAPDU: 80 13 01 00 [18:45:56]Write to MH i2c: E2 08 00 9A 26 80 13 01 00 00 00 00 00 3D [18:45:56]Write i2c OK [18:45:56]MH_I2C_Read... [18:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:56]Read from MH i2c: E2 [18:45:56]MH_I2C_Read... [18:45:56]Read from MH i2c: E2 0E 00 [18:45:56]MH_I2C_Read... [18:45:56]Read from MH i2c: E2 0E 00 9A 26 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 56 [18:45:56]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:45:56]wFMCommunicate OK [18:45:56]SAM_PROTO_GetShiftState done [18:45:56]FM_GetShiftState done [18:45:56]req_shift_opened done [18:45:56]requested_item shift.open_date is exist - process it [18:45:56]req_shift_open_date [18:45:56]req_shift_open_date done [18:45:56]produce_requested_data done [18:45:56]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115473,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:45:56]process_action_free close_receipt [18:45:56]json_value_free [18:45:56]json_value_free done [18:45:56]process_json_proto returns [18:45:56]Send response to host [18:45:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115473,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:45:56]free response buf [18:45:56]execute_script done [18:45:56]execute_script returns [18:45:56]free content buf [18:45:56]Sock 8.Close socket [18:45:56]Sock 8.Thread stoped [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:35]accept exits with 9 [18:46:35]New connection [18:46:35]New thread 3066682724 created [18:46:35]Thread 3066826084 joined [18:46:35]Waiting for new connection... [18:46:35] Sock 9.Parse request [18:46:35]Sock 9.Check first char [18:46:35]Sock 9.First char is OK [18:46:35]request: POST /json_proto HTTP/1.0 [18:46:35]Method: POST [18:46:35]URL: /json_proto [18:46:35]Method is POST - this is cgi request [18:46:35]url: /json_proto [18:46:35]query_string will be loaded in cgi processing [18:46:35]execute_cgi json_proto POST (null) [18:46:35]execute_cgi path=json_proto method=POST [18:46:35]POST find Content-Length [18:46:35]Host: 172.17.41.136:8080 [18:46:35]Content-Length: 665 [18:46:35]Content-Type: application/json [18:46:35] [18:46:35]POST finish read [18:46:35]Found Content-Length = 665 [18:46:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343907", "tax_sys" : 0, "items" : [ { "code": "4700000481514", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 URBAN 312 1,0 \u043B \u041F\u042D\u0422", "price" : 176.00, "quantity" : 3.000, "sum" : 528.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 528.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:35]execute_script... [18: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 : (3)343907", "tax_sys" : 0, "items" : [ { "code": "4700000481514", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 URBAN 312 1,0 \u043B \u041F\u042D\u0422", "price" : 176.00, "quantity" : 3.000, "sum" : 528.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 528.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:35]POST & json_proto [18:46:35]process_json_proto [18:46:35]json parsed OK: [18:46:35]protocol is kg_v1.0 [18:46:35]action value=close_receipt [18:46:35]process_action close_receipt [18:46:35]cmd_close_receipt [18:46:35]MH_GetDate [18:46:35]Write to MH i2c: F0 00 00 9B 26 B0 [18:46:35]Write i2c OK [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: F0 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: F0 09 00 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: F0 09 00 9B 26 00 0E 66 F0 66 1B D0 5A 64 2C [18:46:35]GetLastDocTimeStamp 1727030754 [18:46:35]current date 1727030798 [18:46:35]FM_GetShiftState [18:46:35]SAM_PROTO_GetShiftState [18:46:35]wFMCommunicate request_size=4 [18:46:35]MH_SAM_APDU [18:46:35]CAPDU: 80 13 01 00 [18:46:35]Write to MH i2c: E2 08 00 9C 26 80 13 01 00 00 00 00 00 3F [18:46:35]Write i2c OK [18:46:35]MH_I2C_Read... [18:46:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:35]Read from MH i2c: E2 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: E2 0E 00 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: E2 0E 00 9C 26 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 58 [18:46:35]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:46:35]wFMCommunicate OK [18:46:35]SAM_PROTO_GetShiftState done [18:46:35]FM_GetShiftState done [18:46:35]opened in 1726965840 [18:46:35]opened+sec_in_day 1727052240 [18:46:35]quantity*price = 52800 [18:46:35]sum+1 = 52801 [18:46:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 528.00 НСП 1% : 4.67 НДС 12% : 56.07 Наличными: 528.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 192 22.09.2024 18:46 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115474 ФПД: 34235239604912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T184638&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115474&fm=34235239604912&tin=02508201610067®Number=0000000000091831&sum=52800 0 [18:46:36]StoreToDocumentArchive [18:46:36]shift 471 fd 115474 [18:46:36]save to /storage/0471/doc_00115474 [18:46:36]save last doc name /storage/0471/doc_00115474 to /storage/kkm_last_doc_name [18:46:36]save OK [18:46:36]Clear old archive folders... [18:46:36]ProcessDocumentItem done err = 0, tmpTLVsize=289 [18:46:36]tlvbuf is 01C060B0 [18:46:36]SAM_PROTO_ClearQueue [18:46:36]wFMCommunicate request_size=4 [18:46:36]MH_SAM_APDU [18:46:36]CAPDU: 80 09 00 00 [18:46:36]Write to MH i2c: E2 08 00 A9 26 80 09 00 00 00 00 00 00 41 [18:46:36]Write i2c OK [18:46:36]MH_I2C_Read... [18:46:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:36]Read from MH i2c: E2 [18:46:36]MH_I2C_Read... [18:46:36]Read from MH i2c: E2 03 00 [18:46:36]MH_I2C_Read... [18:46:36]Read from MH i2c: E2 03 00 A9 26 00 90 00 43 [18:46:36]RAPDU: 90 00 [18:46:36]wFMCommunicate OK [18:46:36]SAM_PROTO_ClearQueue done [18:46:36]KKMCreateOFDPacket [18:46:36]OFDProtocolAddRootSTLVToBuf [18:46:36]FM_MakeSignedData [18:46:36]FM_MakeSignedData [18:46:36]SAM_PROTO_SignData [18:46:36]wFMCommunicate request_size=4 [18:46:36]MH_SAM_APDU [18:46:36]CAPDU: 80 0D 01 02 [18:46:36]Write to MH i2c: E2 08 00 AA 26 80 0D 01 02 00 00 00 00 49 [18:46:36]Write i2c OK [18:46:36]MH_I2C_Read... [18:46:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:36]Read from MH i2c: E2 [18:46:36]MH_I2C_Read... [18:46:36]Read from MH i2c: E2 03 00 [18:46:36]MH_I2C_Read... [18:46:36]Read from MH i2c: E2 03 00 AA 26 00 90 00 44 [18:46:36]RAPDU: 90 00 [18:46:36]wFMCommunicate OK [18:46:36]wFMCommunicate request_size=255 [18:46:36]MH_SAM_APDU [18:46:36]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C0 44 00 00 00 00 13 04 06 00 40 CE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 CE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 15 00 00 00 00 07 04 06 00 40 CE 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 0E 66 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [18:46:37]Write to MH i2c: E2 02 01 AB 26 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C0 44 00 00 00 00 13 04 06 00 40 CE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 CE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 15 00 00 00 00 07 04 06 00 40 CE 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 0E 66 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 3B [18:46:37]Write i2c OK [18:46:37]MH_I2C_Read... [18:46:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:37]Read from MH i2c: E2 [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: E2 03 00 [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: E2 03 00 AB 26 00 90 00 45 [18:46:37]RAPDU: 90 00 [18:46:37]wFMCommunicate OK [18:46:37]wFMCommunicate request_size=48 [18:46:37]MH_SAM_APDU [18:46:37]CAPDU: 80 0D 02 02 2B 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 12 C3 01 00 35 04 06 00 1F 23 03 4B A2 B0 [18:46:37]Write to MH i2c: E2 33 00 AC 26 80 0D 02 02 2B 00 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 12 C3 01 00 35 04 06 00 1F 23 03 4B A2 B0 00 00 F7 [18:46:37]Write i2c OK [18:46:37]MH_I2C_Read... [18:46:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:37]Read from MH i2c: E2 [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: E2 03 00 [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: E2 03 00 AC 26 00 90 00 46 [18:46:37]RAPDU: 90 00 [18:46:37]wFMCommunicate OK [18:46:37]wFMCommunicate request_size=4 [18:46:37]MH_SAM_APDU [18:46:37]CAPDU: 80 0D 03 02 [18:46:37]Write to MH i2c: E2 08 00 AD 26 80 0D 03 02 00 00 00 00 4E [18:46:37]Write i2c OK [18:46:37]MH_I2C_Read... [18:46:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:37]Read from MH i2c: E2 [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: E2 0B 00 [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: E2 0B 00 AD 26 00 F6 C4 70 79 CE 51 32 D5 90 00 18 [18:46:37]RAPDU: F6 C4 70 79 CE 51 32 D5 90 00 [18:46:37]wFMCommunicate OK [18:46:37]SAM_PROTO_SignData done [18:46:37]FM_MakeSignedData done [18:46:37]CreateOFDProtocolMessage [18:46:37]wFMCommunicate request_size=4 [18:46:37]MH_SAM_APDU [18:46:37]CAPDU: 80 11 00 00 [18:46:37]Write to MH i2c: E2 08 00 AE 26 80 11 00 00 00 00 00 00 4E [18:46:37]Write i2c OK [18:46:37]MH_I2C_Read... [18:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:37]Read from MH i2c: E2 [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: E2 17 00 [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: E2 17 00 AE 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9C [18:46:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:46:37]wFMCommunicate OK [18:46:37]CreateOFDProtocolMessage done [18:46:37]OFDSenderStorePacket 115474 [18:46:37]StoreOFDPacket docnum=115474 [18:46:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 01 00 00 33 53 2D 01 A0 F8 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C0 44 00 00 00 00 13 04 06 00 40 CE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 CE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 15 00 00 00 00 07 04 06 00 40 CE 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 0E 66 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 12 C3 01 00 35 04 06 00 1F 23 03 4B A2 B0 F6 C4 70 79 CE 51 32 D5 [18:46:37]CheckFolder [18:46:37]dirname=/storage/ofd_packets [18:46:37]CheckFolder done [18:46:37]ProducePacketName [18:46:37]name=ofd_packets/00115474 [18:46:37]NVStorageSaveData ofd_packets/00115474 [18:46:37]File name is /storage/ofd_packets/00115474 [18:46:37]Write 339 bytes [18:46:37]NVStorageSaveData done [18:46:37]OFDSenderStorePacket done [18:46:37]KKMCreateOFDPacket done [18:46:37]NVStorageSaveData kkm_last_timestamp [18:46:37]File name is /storage/kkm_last_timestamp [18:46:37]Write 4 bytes [18:46:37]NVStorageSaveData done [18:46:37]ExternCall_PrintAddStr [18:46:37]wPrintStart [18:46:37]Write to MH i2c: 01 00 00 AF 26 D5 [18:46:37]OFD Sender: Processing packet 115474 [packets to send 481, broken 480] [18:46:37]ProducePacketName [18:46:37]name=ofd_packets/00115474 [18:46:37]OFD Sender: To server: pG, [18:46:37]CommunicateWithHost lk.salyk.kg:30040 [18:46:37]ConnectInit lk.salyk.kg [18:46:37]Write i2c OK [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: 01 [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: 01 07 00 [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: 01 07 00 AF 26 00 00 00 00 00 FF 0F EA [18:46:37]RasterBufferAndPrint [18:46:37]line Счет N : (3)343907 [18:46:37]line ИНН: 02508201610067 [18:46:37]line Контрольно-Кассовый Чек [18:46:37]line ПРОДАЖА [18:46:37]line Товар: 4700000481514 [18:46:37]line ПИВО СВЕТЛОЕ URBAN 312 1,0 л ПЭТ [18:46:37]line 3.000 * 176.00 [18:46:37]line = 528.00 [18:46:37]line НДС 12% НСП 1% [18:46:37]line > о реализуемом товаре [18:46:37]line ИТОГО: 528.00 [18:46:37]line НСП 1% : 4.67 [18:46:37]line НДС 12% : 56.07 [18:46:37]line Наличными: 528.00 [18:46:37]line Безнал.: 0.00 [18:46:37]line Место: АЗС № 90 "Партнер Нефть" [18:46:37]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:46:37]line СНО: Общий режим [18:46:37]line Чек 192 22.09.2024 18:46 [18:46:37]line Смена: 471 ФФД: 1.0 [18:46:37]line ЗНМ: 0300000120 [18:46:37]line РНМ: 0000000000091831 [18:46:37]line Версия ККМ: 001 [18:46:37]line ФМ: 0000000000871830 [18:46:37]line ФД: 115474 [18:46:37]line ФПД: 34235239604912 [18:46:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T184638&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115474&fm=34235239604912&tin=02508201610067®Number=0000000000091831&sum=52800 [18:46:37]line 0 [18:46:37]written 0, free lines is 4095 [18:46:37]Connected sock=10 [18: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 31 38 33 30 35 01 00 00 33 53 2D 01 A0 F8 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C0 44 00 00 00 00 13 04 06 00 40 CE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 CE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 15 00 00 00 00 07 04 06 00 40 CE 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 0E 66 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 12 C3 01 00 35 04 06 00 1F 23 03 4B A2 B0 F6 C4 70 79 CE 51 32 D5 [18:46:37]Write to MH i2c: 01 00 00 D7 26 FD [18:46:37]Write i2c OK [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: 01 [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: 01 07 00 [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: 01 07 00 D7 26 00 00 00 00 00 61 0C 71 [18:46:37]RasterBufferAndPrint [18:46:37]line [18:46:37]line [18:46:37]line [18:46:37]line [18:46:37]line [18:46:37]written 0, free lines is 3174 [18:46:37]MH_Cut [18:46:37]Write to MH i2c: D1 01 00 DE 26 01 D6 [18:46:37]Write i2c OK [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: D1 [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: D1 01 00 [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: D1 01 00 DE 26 00 D5 [18:46:37]Write to MH i2c: 01 00 00 DF 26 05 [18:46:37]Write i2c OK [18:46:37]MH_I2C_Read... [18:46:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 24 60 47 00 45 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 31 38 33 30 10 04 04 00 12 C3 01 00 F4 03 04 00 53 0B F0 66 B6 04 01 00 00 30 F1 00 57 BC 92 E5 EC [18:46:38]CommunicateWithHost err = 0 [18:46:38]CheckOFDResponse [18:46:38]1017 (14) - 77093643461234 [18:46:38]1041 (16) - 0000000000871830 [18:46:38]1040 (4) - 115474 [18:46:38]1012 (4) - 22.09.2024 12:19 [18:46:38]1206 (1) - 0 [18:46:38]OFD Sender: Remove packet 115474 [18:46:38]ProducePacketName [18:46:38]name=ofd_packets/00115474 [18:46:38]NVStorageDeleteData [18:46:38]OFD Sender: No OFD packet to send [18:46:39]*** Cut start [18:46:39]*** Partial cut [18:46:39]*** CUTSNS_PIN = 1 [18:46:39]*** CUTSNS_PIN = 0 [18:46:39]*** Brake cut motor [18:46:39]Read from MH i2c: 01 [18:46:39]MH_I2C_Read... [18:46:39]*** Stop cut motor [18:46:39]*** Cut end [18:46:39]Read from MH i2c: 01 07 00 [18:46:39]MH_I2C_Read... [18:46:39]Read from MH i2c: 01 07 00 DF 26 00 00 00 00 00 FF 0F 1A [18:46:39]process_action close_receipt done [18:46:39]requested_data is exist [18:46:39]produce_requested_data [18:46:39]requested_item fm.sn is exist - process it [18:46:39]wFMCommunicate request_size=4 [18:46:39]MH_SAM_APDU [18:46:39]CAPDU: 80 11 00 00 [18:46:39]Write to MH i2c: E2 08 00 E0 26 80 11 00 00 00 00 00 00 80 [18:46:39]Write i2c OK [18:46:39]MH_I2C_Read... [18:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:39]Read from MH i2c: E2 [18:46:39]MH_I2C_Read... [18:46:39]Read from MH i2c: E2 17 00 [18:46:39]MH_I2C_Read... [18:46:39]Read from MH i2c: E2 17 00 E0 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CE [18:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:46:39]wFMCommunicate OK [18:46:39]requested_item fd.num is exist - process it [18:46:39]SAM_PROTO_GetFieldsCounters [18:46:39]wFMCommunicate request_size=4 [18:46:39]MH_SAM_APDU [18:46:39]CAPDU: 80 13 00 00 [18:46:39]Write to MH i2c: E2 08 00 E1 26 80 13 00 00 00 00 00 00 83 [18:46:39]Write i2c OK [18:46:39]MH_I2C_Read... [18:46:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:40]Read from MH i2c: E2 [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: E2 62 00 [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: E2 62 00 E1 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 12 C3 01 00 0E 04 04 00 D7 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 8A [18:46:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 12 C3 01 00 0E 04 04 00 D7 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 [18:46:40]wFMCommunicate OK [18:46:40]SAM_PROTO_GetFieldsCounters done [18:46:40]requested_item shift.num is exist - process it [18:46:40]requested_item shift.opened is exist - process it [18:46:40]req_shift_opened [18:46:40]FM_GetShiftState [18:46:40]SAM_PROTO_GetShiftState [18:46:40]wFMCommunicate request_size=4 [18:46:40]MH_SAM_APDU [18:46:40]CAPDU: 80 13 01 00 [18:46:40]Write to MH i2c: E2 08 00 E2 26 80 13 01 00 00 00 00 00 85 [18:46:40]Write i2c OK [18:46:40]MH_I2C_Read... [18:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:40]Read from MH i2c: E2 [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: E2 0E 00 [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: E2 0E 00 E2 26 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 9E [18:46:40]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:46:40]wFMCommunicate OK [18:46:40]SAM_PROTO_GetShiftState done [18:46:40]FM_GetShiftState done [18:46:40]req_shift_opened done [18:46:40]requested_item shift.open_date is exist - process it [18:46:40]req_shift_open_date [18:46:40]req_shift_open_date done [18:46:40]produce_requested_data done [18:46:40]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115474,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:46:40]process_action_free close_receipt [18:46:40]json_value_free [18:46:40]json_value_free done [18:46:40]process_json_proto returns [18:46:40]Send response to host [18:46:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115474,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:46:40]free response buf [18:46:40]execute_script done [18:46:40]execute_script returns [18:46:40]free content buf [18:46:40]Sock 9.Close socket [18:46:40]Sock 9.Thread stoped [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]accept exits with 8 [18:48:28]New connection [18:48:28]New thread 3066826084 created [18:48:28]Thread 3066682724 joined [18:48:28]Waiting for new connection... [18:48:28] Sock 8.Parse request [18:48:28]Sock 8.Check first char [18:48:28]Sock 8.First char is OK [18:48:28]request: POST /json_proto HTTP/1.0 [18:48:28]Method: POST [18:48:28]URL: /json_proto [18:48:28]Method is POST - this is cgi request [18:48:28]url: /json_proto [18:48:28]query_string will be loaded in cgi processing [18:48:28]execute_cgi json_proto POST (null) [18:48:28]execute_cgi path=json_proto method=POST [18:48:28]POST find Content-Length [18:48:28]Host: 172.17.41.136:8080 [18:48:28]Content-Length: 681 [18:48:28]Content-Type: application/json [18:48:28] [18:48:28]POST finish read [18:48:28]Found Content-Length = 681 [18:48:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343908", "tax_sys" : 0, "items" : [ { "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:28]execute_script... [18:48: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 : (3)343908", "tax_sys" : 0, "items" : [ { "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:28]POST & json_proto [18:48:28]process_json_proto [18:48:28]json parsed OK: [18:48:28]protocol is kg_v1.0 [18:48:28]action value=close_receipt [18:48:28]process_action close_receipt [18:48:28]cmd_close_receipt [18:48:28]MH_GetDate [18:48:28]Write to MH i2c: F0 00 00 E3 26 F8 [18:48:28]Write i2c OK [18:48:28]MH_I2C_Read... [18:48:28]Read from MH i2c: F0 [18:48:28]MH_I2C_Read... [18:48:28]Read from MH i2c: F0 09 00 [18:48:28]MH_I2C_Read... [18:48:28]Read from MH i2c: F0 09 00 E3 26 00 7F 66 F0 66 1B D0 5A 64 E5 [18:48:28]GetLastDocTimeStamp 1727030798 [18:48:28]current date 1727030911 [18:48:28]FM_GetShiftState [18:48:28]SAM_PROTO_GetShiftState [18:48:28]wFMCommunicate request_size=4 [18:48:28]MH_SAM_APDU [18:48:28]CAPDU: 80 13 01 00 [18:48:28]Write to MH i2c: E2 08 00 E4 26 80 13 01 00 00 00 00 00 87 [18:48:28]Write i2c OK [18:48:28]MH_I2C_Read... [18:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:28]Read from MH i2c: E2 [18:48:28]MH_I2C_Read... [18:48:28]Read from MH i2c: E2 0E 00 [18:48:28]MH_I2C_Read... [18:48:28]Read from MH i2c: E2 0E 00 E4 26 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A0 [18:48:28]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:48:28]wFMCommunicate OK [18:48:28]SAM_PROTO_GetShiftState done [18:48:28]FM_GetShiftState done [18:48:28]opened in 1726965840 [18:48:28]opened+sec_in_day 1727052240 [18:48:28]quantity*price = 7000 [18:48:28]sum+1 = 7001 [18:48:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 193 22.09.2024 18:48 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115475 ФПД: 139469594465208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T184831&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115475&fm=139469594465208&tin=02508201610067®Number=0000000000091831&sum=7000 0 [18:48:29]StoreToDocumentArchive [18:48:29]shift 471 fd 115475 [18:48:29]save to /storage/0471/doc_00115475 [18:48:29]save last doc name /storage/0471/doc_00115475 to /storage/kkm_last_doc_name [18:48:29]save OK [18:48:29]Clear old archive folders... [18:48:29]ProcessDocumentItem done err = 0, tmpTLVsize=292 [18:48:29]tlvbuf is 01C50F70 [18:48:29]SAM_PROTO_ClearQueue [18:48:29]wFMCommunicate request_size=4 [18:48:29]MH_SAM_APDU [18:48:29]CAPDU: 80 09 00 00 [18:48:29]Write to MH i2c: E2 08 00 F1 26 80 09 00 00 00 00 00 00 89 [18:48:29]Write i2c OK [18:48:29]MH_I2C_Read... [18:48:29]Read from MH i2c: E2 [18:48:29]MH_I2C_Read... [18:48:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:29]Read from MH i2c: E2 03 00 [18:48:29]MH_I2C_Read... [18:48:29]Read from MH i2c: E2 03 00 F1 26 00 90 00 8B [18:48:29]RAPDU: 90 00 [18:48:29]wFMCommunicate OK [18:48:29]SAM_PROTO_ClearQueue done [18:48:29]KKMCreateOFDPacket [18:48:29]OFDProtocolAddRootSTLVToBuf [18:48:29]FM_MakeSignedData [18:48:29]FM_MakeSignedData [18:48:29]SAM_PROTO_SignData [18:48:29]wFMCommunicate request_size=4 [18:48:29]MH_SAM_APDU [18:48:29]CAPDU: 80 0D 01 02 [18:48:29]Write to MH i2c: E2 08 00 F2 26 80 0D 01 02 00 00 00 00 91 [18:48:29]Write i2c OK [18:48:29]MH_I2C_Read... [18:48:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:29]Read from MH i2c: E2 [18:48:29]MH_I2C_Read... [18:48:29]Read from MH i2c: E2 03 00 [18:48:29]MH_I2C_Read... [18:48:29]Read from MH i2c: E2 03 00 F2 26 00 90 00 8C [18:48:29]RAPDU: 90 00 [18:48:29]wFMCommunicate OK [18:48:29]wFMCommunicate request_size=255 [18:48:29]MH_SAM_APDU [18:48:29]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 7F 66 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [18:48:29]Write to MH i2c: E2 02 01 F3 26 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 7F 66 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 59 [18:48:29]Write i2c OK [18:48:29]MH_I2C_Read... [18:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:30]Read from MH i2c: E2 [18:48:30]MH_I2C_Read... [18:48:30]Read from MH i2c: E2 03 00 [18:48:30]MH_I2C_Read... [18:48:30]Read from MH i2c: E2 03 00 F3 26 00 90 00 8D [18:48:30]RAPDU: 90 00 [18:48:30]wFMCommunicate OK [18:48:30]wFMCommunicate request_size=51 [18:48:30]MH_SAM_APDU [18:48:30]CAPDU: 80 0D 02 02 2E 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 13 C3 01 00 35 04 06 00 7E D8 CB A2 93 B8 [18:48:30]Write to MH i2c: E2 36 00 F4 26 80 0D 02 02 2E 00 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 13 C3 01 00 35 04 06 00 7E D8 CB A2 93 B8 00 00 02 [18:48:30]Write i2c OK [18:48:30]MH_I2C_Read... [18:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:30]Read from MH i2c: E2 [18:48:30]MH_I2C_Read... [18:48:30]Read from MH i2c: E2 03 00 [18:48:30]MH_I2C_Read... [18:48:30]Read from MH i2c: E2 03 00 F4 26 00 90 00 8E [18:48:30]RAPDU: 90 00 [18:48:30]wFMCommunicate OK [18:48:30]wFMCommunicate request_size=4 [18:48:30]MH_SAM_APDU [18:48:30]CAPDU: 80 0D 03 02 [18:48:30]Write to MH i2c: E2 08 00 F5 26 80 0D 03 02 00 00 00 00 96 [18:48:30]Write i2c OK [18:48:30]MH_I2C_Read... [18:48:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:30]Read from MH i2c: E2 [18:48:30]MH_I2C_Read... [18:48:30]Read from MH i2c: E2 0B 00 [18:48:30]MH_I2C_Read... [18:48:30]Read from MH i2c: E2 0B 00 F5 26 00 22 35 FF 08 4C E8 18 8A 90 00 CB [18:48:30]RAPDU: 22 35 FF 08 4C E8 18 8A 90 00 [18:48:30]wFMCommunicate OK [18:48:30]SAM_PROTO_SignData done [18:48:30]FM_MakeSignedData done [18:48:30]CreateOFDProtocolMessage [18:48:30]wFMCommunicate request_size=4 [18:48:30]MH_SAM_APDU [18:48:30]CAPDU: 80 11 00 00 [18:48:30]Write to MH i2c: E2 08 00 F6 26 80 11 00 00 00 00 00 00 96 [18:48:30]Write i2c OK [18:48:30]MH_I2C_Read... [18:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:30]Read from MH i2c: E2 [18:48:30]MH_I2C_Read... [18:48:30]Read from MH i2c: E2 17 00 [18:48:30]MH_I2C_Read... [18:48:30]Read from MH i2c: E2 17 00 F6 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E4 [18:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:48:30]wFMCommunicate OK [18:48:30]CreateOFDProtocolMessage done [18:48:30]OFDSenderStorePacket 115475 [18:48:30]StoreOFDPacket docnum=115475 [18:48:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 38 01 00 00 3E FF 30 01 2D E7 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 7F 66 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 13 C3 01 00 35 04 06 00 7E D8 CB A2 93 B8 22 35 FF 08 4C E8 18 8A [18:48:30]CheckFolder [18:48:30]dirname=/storage/ofd_packets [18:48:30]CheckFolder done [18:48:30]ProducePacketName [18:48:30]name=ofd_packets/00115475 [18:48:30]NVStorageSaveData ofd_packets/00115475 [18:48:30]File name is /storage/ofd_packets/00115475 [18:48:30]Write 342 bytes [18:48:30]NVStorageSaveData done [18:48:30]OFDSenderStorePacket done [18:48:30]KKMCreateOFDPacket done [18:48:30]NVStorageSaveData kkm_last_timestamp [18:48:30]File name is /storage/kkm_last_timestamp [18:48:30]Write 4 bytes [18:48:30]NVStorageSaveData done [18:48:30]ExternCall_PrintAddStr [18:48:30]wPrintStart [18:48:30]Write to MH i2c: 01 00 00 F7 26 1D [18:48:30]Write i2c OK [18:48:30]MH_I2C_Read... [18:48:30]Read from MH i2c: 01 [18:48:30]MH_I2C_Read... [18:48:30]Read from MH i2c: 01 07 00 [18:48:30]MH_I2C_Read... [18:48:30]Read from MH i2c: 01 07 00 F7 26 00 00 00 00 00 FF 0F 32 [18:48:30]RasterBufferAndPrint [18:48:30]line Счет N : (3)343908 [18:48:30]line ИНН: 02508201610067 [18:48:30]line Контрольно-Кассовый Чек [18:48:30]line ПРОДАЖА [18:48:30]line Товар: 4870202522008 [18:48:30]line Напиток Maxi Чай Грушевый 0,45л [18:48:30]line 1.000 * 70.00 [18:48:30]line = 70.00 [18:48:30]line НДС 12% НСП 1% [18:48:30]line > о реализуемом товаре [18:48:30]line ИТОГО: 70.00 [18:48:30]line НСП 1% : 0.62 [18:48:30]line НДС 12% : 7.43 [18:48:30]line Наличными: 70.00 [18:48:30]line Безнал.: 0.00 [18:48:30]line Место: АЗС № 90 "Партнер Нефть" [18:48:30]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:48:30]line СНО: Общий режим [18:48:30]line Чек 193 22.09.2024 18:48 [18:48:30]line Смена: 471 ФФД: 1.0 [18:48:30]line ЗНМ: 0300000120 [18:48:30]line РНМ: 0000000000091831 [18:48:30]line Версия ККМ: 001 [18:48:30]line ФМ: 0000000000871830 [18:48:30]line ФД: 115475 [18:48:30]line ФПД: 139469594465208 [18:48:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T184831&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115475&fm=139469594465208&tin=02508201610067®Number=0000000000091831&sum=7000 [18:48:30]line 0 [18:48:30]OFD Sender: Processing packet 115475 [packets to send 481, broken 480] [18:48:30]ProducePacketName [18:48:30]name=ofd_packets/00115475 [18:48:30]OFD Sender: To server: pG, [18:48:30]CommunicateWithHost lk.salyk.kg:30040 [18:48:30]ConnectInit lk.salyk.kg [18:48:30]written 0, free lines is 4095 [18:48:31]Connected sock=10 [18:48:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 38 01 00 00 3E FF 30 01 2D E7 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 7F 66 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 13 C3 01 00 35 04 06 00 7E D8 CB A2 93 B8 22 35 FF 08 4C E8 18 8A [18:48:31]Write to MH i2c: 01 00 00 1F 27 46 [18:48:31]Write i2c OK [18:48:31]MH_I2C_Read... [18:48:31]Read from MH i2c: 01 [18:48:31]MH_I2C_Read... [18:48:31]Read from MH i2c: 01 07 00 [18:48:31]MH_I2C_Read... [18:48:31]Read from MH i2c: 01 07 00 1F 27 00 00 00 00 00 66 0C BF [18:48:31]RasterBufferAndPrint [18:48:31]line [18:48:31]line [18:48:31]line [18:48:31]line [18:48:31]line [18:48:31]written 0, free lines is 3178 [18:48:31]MH_Cut [18:48:31]Write to MH i2c: D1 01 00 26 27 01 1F [18:48:31]Write i2c OK [18:48:31]MH_I2C_Read... [18:48:31]Read from MH i2c: D1 [18:48:31]MH_I2C_Read... [18:48:31]Read from MH i2c: D1 01 00 [18:48:31]MH_I2C_Read... [18:48:31]Read from MH i2c: D1 01 00 26 27 00 1E [18:48:31]Write to MH i2c: 01 00 00 27 27 4E [18:48:31]Write i2c OK [18:48:31]MH_I2C_Read... [18:48:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 9E D5 47 00 BB 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 13 C3 01 00 F4 03 04 00 C4 0B F0 66 B6 04 01 00 00 86 59 F4 1A D6 E7 3D 1A [18:48:31]CommunicateWithHost err = 0 [18:48:31]CheckOFDResponse [18:48:31]1017 (14) - 77093643461234 [18:48:31]1041 (16) - 0000000000871830 [18:48:31]1040 (4) - 115475 [18:48:31]1012 (4) - 22.09.2024 12:21 [18:48:31]1206 (1) - 0 [18:48:31]OFD Sender: Remove packet 115475 [18:48:31]ProducePacketName [18:48:31]name=ofd_packets/00115475 [18:48:31]NVStorageDeleteData [18:48:31]OFD Sender: No OFD packet to send [18:48:32]*** Cut start [18:48:32]*** Partial cut [18:48:32]*** CUTSNS_PIN = 1 [18:48:32]*** CUTSNS_PIN = 0 [18:48:32]*** Brake cut motor [18:48:33]Read from MH i2c: 01 [18:48:33]MH_I2C_Read... [18:48:33]*** Stop cut motor [18:48:33]*** Cut end [18:48:33]Read from MH i2c: 01 07 00 [18:48:33]MH_I2C_Read... [18:48:33]Read from MH i2c: 01 07 00 27 27 00 00 00 00 00 FF 0F 63 [18:48:33]process_action close_receipt done [18:48:33]requested_data is exist [18:48:33]produce_requested_data [18:48:33]requested_item fm.sn is exist - process it [18:48:33]wFMCommunicate request_size=4 [18:48:33]MH_SAM_APDU [18:48:33]CAPDU: 80 11 00 00 [18:48:33]Write to MH i2c: E2 08 00 28 27 80 11 00 00 00 00 00 00 C9 [18:48:33]Write i2c OK [18:48:33]MH_I2C_Read... [18:48:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:33]Read from MH i2c: E2 [18:48:33]MH_I2C_Read... [18:48:33]Read from MH i2c: E2 17 00 [18:48:33]MH_I2C_Read... [18:48:33]Read from MH i2c: E2 17 00 28 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 17 [18:48:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:48:33]wFMCommunicate OK [18:48:33]requested_item fd.num is exist - process it [18:48:33]SAM_PROTO_GetFieldsCounters [18:48:33]wFMCommunicate request_size=4 [18:48:33]MH_SAM_APDU [18:48:33]CAPDU: 80 13 00 00 [18:48:33]Write to MH i2c: E2 08 00 29 27 80 13 00 00 00 00 00 00 CC [18:48:33]Write i2c OK [18:48:33]MH_I2C_Read... [18:48:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:33]Read from MH i2c: E2 [18:48:33]MH_I2C_Read... [18:48:33]Read from MH i2c: E2 62 00 [18:48:33]MH_I2C_Read... [18:48:33]Read from MH i2c: E2 62 00 29 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 13 C3 01 00 0E 04 04 00 D7 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 D7 [18: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 13 C3 01 00 0E 04 04 00 D7 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 [18:48:33]wFMCommunicate OK [18:48:33]SAM_PROTO_GetFieldsCounters done [18:48:33]requested_item shift.num is exist - process it [18:48:33]requested_item shift.opened is exist - process it [18:48:33]req_shift_opened [18:48:33]FM_GetShiftState [18:48:33]SAM_PROTO_GetShiftState [18:48:33]wFMCommunicate request_size=4 [18:48:33]MH_SAM_APDU [18:48:33]CAPDU: 80 13 01 00 [18:48:33]Write to MH i2c: E2 08 00 2A 27 80 13 01 00 00 00 00 00 CE [18:48:33]Write i2c OK [18:48:33]MH_I2C_Read... [18:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:33]Read from MH i2c: E2 [18:48:33]MH_I2C_Read... [18:48:33]Read from MH i2c: E2 0E 00 [18:48:33]MH_I2C_Read... [18:48:33]Read from MH i2c: E2 0E 00 2A 27 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 E7 [18:48:33]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:48:33]wFMCommunicate OK [18:48:33]SAM_PROTO_GetShiftState done [18:48:33]FM_GetShiftState done [18:48:33]req_shift_opened done [18:48:33]requested_item shift.open_date is exist - process it [18:48:33]req_shift_open_date [18:48:33]req_shift_open_date done [18:48:33]produce_requested_data done [18:48:33]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115475,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:48:33]process_action_free close_receipt [18:48:33]json_value_free [18:48:33]json_value_free done [18:48:33]process_json_proto returns [18:48:33]Send response to host [18:48:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115475,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:48:33]free response buf [18:48:33]execute_script done [18:48:33]execute_script returns [18:48:33]free content buf [18:48:33]Sock 8.Close socket [18:48:33]Sock 8.Thread stoped [18:48:36]OFD Sender: No OFD packet to send [18:48:41]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:11]OFD Sender: No OFD packet to send [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:37]OFD Sender: No OFD packet to send [18:49:42]OFD Sender: No OFD packet to send [18:49:47]OFD Sender: No OFD packet to send [18:49:52]OFD Sender: No OFD packet to send [18:49:57]OFD Sender: No OFD packet to send [18:50:02]OFD Sender: No OFD packet to send [18:50:07]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:32]OFD Sender: No OFD packet to send [18:50:34]accept exits with 9 [18:50:34]New connection [18:50:34]New thread 3066682724 created [18:50:34]Thread 3066826084 joined [18:50:34]Waiting for new connection... [18:50:34] Sock 9.Parse request [18:50:34]Sock 9.Check first char [18:50:34]Sock 9.First char is OK [18:50:34]request: POST /json_proto HTTP/1.0 [18:50:34]Method: POST [18:50:34]URL: /json_proto [18:50:34]Method is POST - this is cgi request [18:50:34]url: /json_proto [18:50:34]query_string will be loaded in cgi processing [18:50:34]execute_cgi json_proto POST (null) [18:50:34]execute_cgi path=json_proto method=POST [18:50:34]POST find Content-Length [18:50:34]Host: 172.17.41.136:8080 [18:50:34]Content-Length: 647 [18:50:34]Content-Type: application/json [18:50:34] [18:50:34]POST finish read [18:50:34]Found Content-Length = 647 [18:50:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343909", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:34]execute_script... [18:50:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343909", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:34]POST & json_proto [18:50:34]process_json_proto [18:50:34]json parsed OK: [18:50:34]protocol is kg_v1.0 [18:50:34]action value=close_receipt [18:50:34]process_action close_receipt [18:50:34]cmd_close_receipt [18:50:34]MH_GetDate [18:50:34]Write to MH i2c: F0 00 00 2B 27 41 [18:50:34]Write i2c OK [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: F0 [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: F0 09 00 [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: F0 09 00 2B 27 00 FD 66 F0 66 1B D0 5A 64 AC [18:50:34]GetLastDocTimeStamp 1727030911 [18:50:34]current date 1727031037 [18:50:34]FM_GetShiftState [18:50:34]SAM_PROTO_GetShiftState [18:50:34]wFMCommunicate request_size=4 [18:50:34]MH_SAM_APDU [18:50:34]CAPDU: 80 13 01 00 [18:50:34]Write to MH i2c: E2 08 00 2C 27 80 13 01 00 00 00 00 00 D0 [18:50:34]Write i2c OK [18:50:34]MH_I2C_Read... [18:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:34]Read from MH i2c: E2 [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: E2 0E 00 [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: E2 0E 00 2C 27 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 E9 [18:50:34]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:50:34]wFMCommunicate OK [18:50:34]SAM_PROTO_GetShiftState done [18:50:34]FM_GetShiftState done [18:50:34]opened in 1726965840 [18:50:34]opened+sec_in_day 1727052240 [18:50:34]quantity*price = 13000 [18:50:34]sum+1 = 13001 [18:50:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 194 22.09.2024 18:50 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115476 ФПД: 213582376300814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T185037&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115476&fm=213582376300814&tin=02508201610067®Number=0000000000091831&sum=13000 0 [18:50:35]StoreToDocumentArchive [18:50:35]shift 471 fd 115476 [18:50:35]save to /storage/0471/doc_00115476 [18:50:35]save last doc name /storage/0471/doc_00115476 to /storage/kkm_last_doc_name [18:50:35]save OK [18:50:35]Clear old archive folders... [18:50:35]ProcessDocumentItem done err = 0, tmpTLVsize=272 [18:50:35]tlvbuf is 01C18C70 [18:50:35]SAM_PROTO_ClearQueue [18:50:35]wFMCommunicate request_size=4 [18:50:35]MH_SAM_APDU [18:50:35]CAPDU: 80 09 00 00 [18:50:35]Write to MH i2c: E2 08 00 39 27 80 09 00 00 00 00 00 00 D2 [18:50:35]Write i2c OK [18:50:35]MH_I2C_Read... [18:50:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:35]Read from MH i2c: E2 [18:50:35]MH_I2C_Read... [18:50:35]Read from MH i2c: E2 03 00 [18:50:35]MH_I2C_Read... [18:50:35]Read from MH i2c: E2 03 00 39 27 00 90 00 D4 [18:50:35]RAPDU: 90 00 [18:50:35]wFMCommunicate OK [18:50:35]SAM_PROTO_ClearQueue done [18:50:35]KKMCreateOFDPacket [18:50:35]OFDProtocolAddRootSTLVToBuf [18:50:35]FM_MakeSignedData [18:50:35]FM_MakeSignedData [18:50:35]SAM_PROTO_SignData [18:50:35]wFMCommunicate request_size=4 [18:50:35]MH_SAM_APDU [18:50:35]CAPDU: 80 0D 01 02 [18:50:35]Write to MH i2c: E2 08 00 3A 27 80 0D 01 02 00 00 00 00 DA [18:50:35]Write i2c OK [18:50:35]MH_I2C_Read... [18:50:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:35]Read from MH i2c: E2 [18:50:35]MH_I2C_Read... [18:50:35]Read from MH i2c: E2 03 00 [18:50:35]MH_I2C_Read... [18:50:35]Read from MH i2c: E2 03 00 3A 27 00 90 00 D5 [18:50:35]RAPDU: 90 00 [18:50:35]wFMCommunicate OK [18:50:35]wFMCommunicate request_size=255 [18:50:35]MH_SAM_APDU [18:50:35]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 FD 66 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [18:50:35]Write to MH i2c: E2 02 01 3B 27 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 FD 66 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 C8 [18:50:36]Write i2c OK [18:50:36]MH_I2C_Read... [18:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:36]Read from MH i2c: E2 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: E2 03 00 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: E2 03 00 3B 27 00 90 00 D6 [18:50:36]RAPDU: 90 00 [18:50:36]wFMCommunicate OK [18:50:36]wFMCommunicate request_size=31 [18:50:36]MH_SAM_APDU [18:50:36]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 33 30 10 04 04 00 14 C3 01 00 35 04 06 00 C2 40 85 AB 71 0E [18:50:36]Write to MH i2c: E2 22 00 3C 27 80 0D 02 02 1A 00 30 30 38 37 31 38 33 30 10 04 04 00 14 C3 01 00 35 04 06 00 C2 40 85 AB 71 0E 00 00 8C [18:50:36]Write i2c OK [18:50:36]MH_I2C_Read... [18:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:36]Read from MH i2c: E2 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: E2 03 00 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: E2 03 00 3C 27 00 90 00 D7 [18:50:36]RAPDU: 90 00 [18:50:36]wFMCommunicate OK [18:50:36]wFMCommunicate request_size=4 [18:50:36]MH_SAM_APDU [18:50:36]CAPDU: 80 0D 03 02 [18:50:36]Write to MH i2c: E2 08 00 3D 27 80 0D 03 02 00 00 00 00 DF [18:50:36]Write i2c OK [18:50:36]MH_I2C_Read... [18:50:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:36]Read from MH i2c: E2 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: E2 0B 00 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: E2 0B 00 3D 27 00 E0 3E 7D 32 2E ED CA 98 90 00 2A [18:50:36]RAPDU: E0 3E 7D 32 2E ED CA 98 90 00 [18:50:36]wFMCommunicate OK [18:50:36]SAM_PROTO_SignData done [18:50:36]FM_MakeSignedData done [18:50:36]CreateOFDProtocolMessage [18:50:36]wFMCommunicate request_size=4 [18:50:36]MH_SAM_APDU [18:50:36]CAPDU: 80 11 00 00 [18:50:36]Write to MH i2c: E2 08 00 3E 27 80 11 00 00 00 00 00 00 DF [18:50:36]Write i2c OK [18:50:36]MH_I2C_Read... [18:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:36]Read from MH i2c: E2 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: E2 17 00 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: E2 17 00 3E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2D [18:50:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:50:36]wFMCommunicate OK [18:50:36]CreateOFDProtocolMessage done [18:50:36]OFDSenderStorePacket 115476 [18:50:36]StoreOFDPacket docnum=115476 [18:50:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 2E 27 1C 01 FA 46 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 FD 66 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 14 C3 01 00 35 04 06 00 C2 40 85 AB 71 0E E0 3E 7D 32 2E ED CA 98 [18:50:36]CheckFolder [18:50:36]dirname=/storage/ofd_packets [18:50:36]CheckFolder done [18:50:36]ProducePacketName [18:50:36]name=ofd_packets/00115476 [18:50:36]NVStorageSaveData ofd_packets/00115476 [18:50:36]File name is /storage/ofd_packets/00115476 [18:50:36]Write 322 bytes [18:50:36]NVStorageSaveData done [18:50:36]OFDSenderStorePacket done [18:50:36]KKMCreateOFDPacket done [18:50:36]NVStorageSaveData kkm_last_timestamp [18:50:36]File name is /storage/kkm_last_timestamp [18:50:36]Write 4 bytes [18:50:36]NVStorageSaveData done [18:50:36]ExternCall_PrintAddStr [18:50:36]wPrintStart [18:50:36]Write to MH i2c: 01 00 00 3F 27 66 [18:50:36]Write i2c OK [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: 01 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: 01 07 00 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: 01 07 00 3F 27 00 00 00 00 00 FF 0F 7B [18:50:36]RasterBufferAndPrint [18:50:36]line Счет N : (3)343909 [18:50:36]line ИНН: 02508201610067 [18:50:36]line Контрольно-Кассовый Чек [18:50:36]line ПРОДАЖА [18:50:36]line Товар: 47011656 [18:50:36]line Водка Пшеничная 0,1л [18:50:36]line 2.000 * 65.00 [18:50:36]line = 130.00 [18:50:36]line НДС 12% НСП 1% [18:50:36]line > о реализуемом товаре [18:50:36]line ИТОГО: 130.00 [18:50:36]line НСП 1% : 1.15 [18:50:36]line НДС 12% : 13.80 [18:50:36]line Наличными: 130.00 [18:50:36]line Безнал.: 0.00 [18:50:36]line Место: АЗС № 90 "Партнер Нефть" [18:50:36]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:50:36]line СНО: Общий режим [18:50:36]line Чек 194 22.09.2024 18:50 [18:50:36]line Смена: 471 ФФД: 1.0 [18:50:36]line ЗНМ: 0300000120 [18:50:36]line РНМ: 0000000000091831 [18:50:36]line Версия ККМ: 001 [18:50:36]line ФМ: 0000000000871830 [18:50:36]line ФД: 115476 [18:50:36]line ФПД: 213582376300814 [18:50:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T185037&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115476&fm=213582376300814&tin=02508201610067®Number=0000000000091831&sum=13000 [18:50:36]OFD Sender: Processing packet 115476 [packets to send 481, broken 480] [18:50:36]ProducePacketName [18:50:36]name=ofd_packets/00115476 [18:50:36]OFD Sender: To server: pG, [18:50:36]CommunicateWithHost lk.salyk.kg:30040 [18:50:36]ConnectInit lk.salyk.kg [18:50:36]line 0 [18:50:36]written 0, free lines is 4095 [18:50:36]Connected sock=11 [18:50:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 2E 27 1C 01 FA 46 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 FD 66 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 14 C3 01 00 35 04 06 00 C2 40 85 AB 71 0E E0 3E 7D 32 2E ED CA 98 [18:50:36]Write to MH i2c: 01 00 00 66 27 8D [18:50:36]Write i2c OK [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: 01 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: 01 07 00 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: 01 07 00 66 27 00 00 00 00 00 90 0C 30 [18:50:36]RasterBufferAndPrint [18:50:36]line [18:50:36]line [18:50:36]line [18:50:36]line [18:50:36]line [18:50:36]written 0, free lines is 3220 [18:50:36]MH_Cut [18:50:36]Write to MH i2c: D1 01 00 6D 27 01 66 [18:50:36]Write i2c OK [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: D1 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: D1 01 00 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: D1 01 00 6D 27 00 65 [18:50:36]Write to MH i2c: 01 00 00 6E 27 95 [18:50:36]Write i2c OK [18:50:36]MH_I2C_Read... [18:50:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 94 34 47 00 AC 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 14 C3 01 00 F4 03 04 00 42 0C F0 66 B6 04 01 00 00 19 7F D8 98 62 AB 3D A0 [18:50:37]CommunicateWithHost err = 0 [18:50:37]CheckOFDResponse [18:50:37]1017 (14) - 77093643461234 [18:50:37]1041 (16) - 0000000000871830 [18:50:37]1040 (4) - 115476 [18:50:37]1012 (4) - 22.09.2024 12:23 [18:50:37]1206 (1) - 0 [18:50:37]OFD Sender: Remove packet 115476 [18:50:37]ProducePacketName [18:50:37]name=ofd_packets/00115476 [18:50:37]NVStorageDeleteData [18:50:37]OFD Sender: No OFD packet to send [18:50:38]*** Cut start [18:50:38]*** Partial cut [18:50:38]*** CUTSNS_PIN = 1 [18:50:38]*** CUTSNS_PIN = 0 [18:50:38]*** Brake cut motor [18:50:38]Read from MH i2c: 01 [18:50:38]MH_I2C_Read... [18:50:38]*** Stop cut motor [18:50:38]*** Cut end [18:50:38]Read from MH i2c: 01 07 00 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: 01 07 00 6E 27 00 00 00 00 00 FF 0F AA [18:50:38]process_action close_receipt done [18:50:38]requested_data is exist [18:50:38]produce_requested_data [18:50:38]requested_item fm.sn is exist - process it [18:50:38]wFMCommunicate request_size=4 [18:50:38]MH_SAM_APDU [18:50:38]CAPDU: 80 11 00 00 [18:50:38]Write to MH i2c: E2 08 00 6F 27 80 11 00 00 00 00 00 00 10 [18:50:38]Write i2c OK [18:50:38]MH_I2C_Read... [18:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:38]Read from MH i2c: E2 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: E2 17 00 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: E2 17 00 6F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5E [18:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:50:38]wFMCommunicate OK [18:50:38]requested_item fd.num is exist - process it [18:50:38]SAM_PROTO_GetFieldsCounters [18:50:38]wFMCommunicate request_size=4 [18:50:38]MH_SAM_APDU [18:50:38]CAPDU: 80 13 00 00 [18:50:38]Write to MH i2c: E2 08 00 70 27 80 13 00 00 00 00 00 00 13 [18:50:38]Write i2c OK [18:50:38]MH_I2C_Read... [18:50:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:38]Read from MH i2c: E2 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: E2 62 00 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: E2 62 00 70 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 14 C3 01 00 0E 04 04 00 D7 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 22 [18:50:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 14 C3 01 00 0E 04 04 00 D7 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 [18:50:38]wFMCommunicate OK [18:50:38]SAM_PROTO_GetFieldsCounters done [18:50:38]requested_item shift.num is exist - process it [18:50:38]requested_item shift.opened is exist - process it [18:50:38]req_shift_opened [18:50:38]FM_GetShiftState [18:50:38]SAM_PROTO_GetShiftState [18:50:38]wFMCommunicate request_size=4 [18:50:38]MH_SAM_APDU [18:50:38]CAPDU: 80 13 01 00 [18:50:38]Write to MH i2c: E2 08 00 71 27 80 13 01 00 00 00 00 00 15 [18:50:38]Write i2c OK [18:50:38]MH_I2C_Read... [18:50:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:39]Read from MH i2c: E2 [18:50:39]MH_I2C_Read... [18:50:39]Read from MH i2c: E2 0E 00 [18:50:39]MH_I2C_Read... [18:50:39]Read from MH i2c: E2 0E 00 71 27 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 2E [18:50:39]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:50:39]wFMCommunicate OK [18:50:39]SAM_PROTO_GetShiftState done [18:50:39]FM_GetShiftState done [18:50:39]req_shift_opened done [18:50:39]requested_item shift.open_date is exist - process it [18:50:39]req_shift_open_date [18:50:39]req_shift_open_date done [18:50:39]produce_requested_data done [18:50:39]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115476,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:50:39]process_action_free close_receipt [18:50:39]json_value_free [18:50:39]json_value_free done [18:50:39]process_json_proto returns [18:50:39]Send response to host [18:50:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115476,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:50:39]free response buf [18:50:39]execute_script done [18:50:39]execute_script returns [18:50:39]free content buf [18:50:39]Sock 9.Close socket [18:50:39]Sock 9.Thread stoped [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:29]accept exits with 8 [18:51:29]New connection [18:51:29]New thread 3066826084 created [18:51:29]Thread 3066682724 joined [18:51:29]Waiting for new connection... [18:51:29] Sock 8.Parse request [18:51:29]Sock 8.Check first char [18:51:29]Sock 8.First char is OK [18:51:29]request: POST /json_proto HTTP/1.0 [18:51:29]Method: POST [18:51:29]URL: /json_proto [18:51:29]Method is POST - this is cgi request [18:51:29]url: /json_proto [18:51:29]query_string will be loaded in cgi processing [18:51:29]execute_cgi json_proto POST (null) [18:51:29]execute_cgi path=json_proto method=POST [18:51:29]POST find Content-Length [18:51:29]Host: 172.17.41.136:8080 [18:51:29]Content-Length: 620 [18:51:29]Content-Type: application/json [18:51:29] [18:51:29]POST finish read [18:51:29]Found Content-Length = 620 [18:51:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343910", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:29]execute_script... [18:51:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343910", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:29]POST & json_proto [18:51:29]process_json_proto [18:51:29]json parsed OK: [18:51:29]protocol is kg_v1.0 [18:51:29]action value=close_receipt [18:51:29]process_action close_receipt [18:51:29]cmd_close_receipt [18:51:29]MH_GetDate [18:51:29]Write to MH i2c: F0 00 00 72 27 88 [18:51:29]Write i2c OK [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: F0 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: F0 09 00 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: F0 09 00 72 27 00 34 67 F0 66 1B D0 5A 64 2B [18:51:29]GetLastDocTimeStamp 1727031037 [18:51:29]current date 1727031092 [18:51:29]FM_GetShiftState [18:51:29]SAM_PROTO_GetShiftState [18:51:29]wFMCommunicate request_size=4 [18:51:29]MH_SAM_APDU [18:51:29]CAPDU: 80 13 01 00 [18:51:29]Write to MH i2c: E2 08 00 73 27 80 13 01 00 00 00 00 00 17 [18:51:29]Write i2c OK [18:51:29]MH_I2C_Read... [18:51:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:29]Read from MH i2c: E2 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: E2 0E 00 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: E2 0E 00 73 27 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 30 [18:51:29]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:51:29]wFMCommunicate OK [18:51:29]SAM_PROTO_GetShiftState done [18:51:29]FM_GetShiftState done [18:51:29]opened in 1726965840 [18:51:29]opened+sec_in_day 1727052240 [18:51:29]quantity*price = 40500 [18:51:29]sum+1 = 40501 [18:51:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 195 22.09.2024 18:51 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115477 ФПД: 254429125924388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T185132&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115477&fm=254429125924388&tin=02508201610067®Number=0000000000091831&sum=40500 0 [18:51:30]StoreToDocumentArchive [18:51:30]shift 471 fd 115477 [18:51:30]save to /storage/0471/doc_00115477 [18:51:30]save last doc name /storage/0471/doc_00115477 to /storage/kkm_last_doc_name [18:51:30]save OK [18:51:30]Clear old archive folders... [18:51:30]ProcessDocumentItem done err = 0, tmpTLVsize=280 [18:51:30]tlvbuf is 01CF1650 [18:51:30]SAM_PROTO_ClearQueue [18:51:30]wFMCommunicate request_size=4 [18:51:30]MH_SAM_APDU [18:51:30]CAPDU: 80 09 00 00 [18:51:30]Write to MH i2c: E2 08 00 80 27 80 09 00 00 00 00 00 00 19 [18:51:30]Write i2c OK [18:51:30]MH_I2C_Read... [18:51:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:30]Read from MH i2c: E2 [18:51:30]MH_I2C_Read... [18:51:30]Read from MH i2c: E2 03 00 [18:51:30]MH_I2C_Read... [18:51:30]Read from MH i2c: E2 03 00 80 27 00 90 00 1B [18:51:30]RAPDU: 90 00 [18:51:30]wFMCommunicate OK [18:51:30]SAM_PROTO_ClearQueue done [18:51:30]KKMCreateOFDPacket [18:51:30]OFDProtocolAddRootSTLVToBuf [18:51:30]FM_MakeSignedData [18:51:30]FM_MakeSignedData [18:51:30]SAM_PROTO_SignData [18:51:30]wFMCommunicate request_size=4 [18:51:30]MH_SAM_APDU [18:51:30]CAPDU: 80 0D 01 02 [18:51:30]Write to MH i2c: E2 08 00 81 27 80 0D 01 02 00 00 00 00 21 [18:51:30]Write i2c OK [18:51:30]MH_I2C_Read... [18:51:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:30]Read from MH i2c: E2 [18:51:30]MH_I2C_Read... [18:51:30]Read from MH i2c: E2 03 00 [18:51:30]MH_I2C_Read... [18:51:30]Read from MH i2c: E2 03 00 81 27 00 90 00 1C [18:51:30]RAPDU: 90 00 [18:51:30]wFMCommunicate OK [18:51:30]wFMCommunicate request_size=255 [18:51:30]MH_SAM_APDU [18:51:30]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 34 67 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 [18:51:30]Write to MH i2c: E2 02 01 82 27 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 34 67 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 00 00 A5 [18:51:31]Write i2c OK [18:51:31]MH_I2C_Read... [18:51:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:31]Read from MH i2c: E2 [18:51:31]MH_I2C_Read... [18:51:31]Read from MH i2c: E2 03 00 [18:51:31]MH_I2C_Read... [18:51:31]Read from MH i2c: E2 03 00 82 27 00 90 00 1D [18:51:31]RAPDU: 90 00 [18:51:31]wFMCommunicate OK [18:51:31]wFMCommunicate request_size=39 [18:51:31]MH_SAM_APDU [18:51:31]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 15 C3 01 00 35 04 06 00 E7 66 E5 AB D6 24 [18:51:31]Write to MH i2c: E2 2A 00 83 27 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 15 C3 01 00 35 04 06 00 E7 66 E5 AB D6 24 00 00 8A [18:51:31]Write i2c OK [18:51:31]MH_I2C_Read... [18:51:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:31]Read from MH i2c: E2 [18:51:31]MH_I2C_Read... [18:51:31]Read from MH i2c: E2 03 00 [18:51:31]MH_I2C_Read... [18:51:31]Read from MH i2c: E2 03 00 83 27 00 90 00 1E [18:51:31]RAPDU: 90 00 [18:51:31]wFMCommunicate OK [18:51:31]wFMCommunicate request_size=4 [18:51:31]MH_SAM_APDU [18:51:31]CAPDU: 80 0D 03 02 [18:51:31]Write to MH i2c: E2 08 00 84 27 80 0D 03 02 00 00 00 00 26 [18:51:31]Write i2c OK [18:51:31]MH_I2C_Read... [18:51:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:31]Read from MH i2c: E2 [18:51:31]MH_I2C_Read... [18:51:31]Read from MH i2c: E2 0B 00 [18:51:31]MH_I2C_Read... [18:51:31]Read from MH i2c: E2 0B 00 84 27 00 12 2E 04 9D E9 4E C6 42 90 00 47 [18:51:31]RAPDU: 12 2E 04 9D E9 4E C6 42 90 00 [18:51:31]wFMCommunicate OK [18:51:31]SAM_PROTO_SignData done [18:51:31]FM_MakeSignedData done [18:51:31]CreateOFDProtocolMessage [18:51:31]wFMCommunicate request_size=4 [18:51:31]MH_SAM_APDU [18:51:31]CAPDU: 80 11 00 00 [18:51:31]Write to MH i2c: E2 08 00 85 27 80 11 00 00 00 00 00 00 26 [18:51:31]Write i2c OK [18:51:31]MH_I2C_Read... [18:51:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:31]Read from MH i2c: E2 [18:51:31]MH_I2C_Read... [18:51:31]Read from MH i2c: E2 17 00 [18:51:31]MH_I2C_Read... [18:51:31]Read from MH i2c: E2 17 00 85 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 74 [18:51:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:51:31]wFMCommunicate OK [18:51:31]CreateOFDProtocolMessage done [18:51:31]OFDSenderStorePacket 115477 [18:51:31]StoreOFDPacket docnum=115477 [18:51:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2C 01 00 00 AA 43 24 01 7E 98 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 34 67 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 15 C3 01 00 35 04 06 00 E7 66 E5 AB D6 24 12 2E 04 9D E9 4E C6 42 [18:51:31]CheckFolder [18:51:31]dirname=/storage/ofd_packets [18:51:31]CheckFolder done [18:51:31]ProducePacketName [18:51:31]name=ofd_packets/00115477 [18:51:31]NVStorageSaveData ofd_packets/00115477 [18:51:31]File name is /storage/ofd_packets/00115477 [18:51:31]Write 330 bytes [18:51:31]NVStorageSaveData done [18:51:31]OFDSenderStorePacket done [18:51:31]KKMCreateOFDPacket done [18:51:31]NVStorageSaveData kkm_last_timestamp [18:51:31]File name is /storage/kkm_last_timestamp [18:51:31]Write 4 bytes [18:51:31]NVStorageSaveData done [18:51:31]ExternCall_PrintAddStr [18:51:31]wPrintStart [18:51:31]Write to MH i2c: 01 00 00 86 27 AD [18:51:31]Write i2c OK [18:51:31]MH_I2C_Read... [18:51:31]Read from MH i2c: 01 [18:51:31]MH_I2C_Read... [18:51:31]Read from MH i2c: 01 07 00 [18:51:31]MH_I2C_Read... [18:51:31]Read from MH i2c: 01 07 00 86 27 00 00 00 00 00 FF 0F C2 [18:51:31]RasterBufferAndPrint [18:51:31]line Счет N : (3)343910 [18:51:31]line ИНН: 02508201610067 [18:51:31]line Контрольно-Кассовый Чек [18:51:31]line ПРОДАЖА [18:51:31]line Товар: 4650063110756 [18:51:31]line Масло Gazpromneft Super 10w40 1л [18:51:31]line 1.000 * 405.00 [18:51:31]line = 405.00 [18:51:31]line НДС 12% НСП 1% [18:51:31]line > о реализуемом товаре [18:51:31]line ИТОГО: 405.00 [18:51:31]line НСП 1% : 3.58 [18:51:31]line НДС 12% : 43.01 [18:51:31]line Наличными: 405.00 [18:51:31]line Безнал.: 0.00 [18:51:31]line Место: АЗС № 90 "Партнер Нефть" [18:51:31]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:51:31]line СНО: Общий режим [18:51:31]line Чек 195 22.09.2024 18:51 [18:51:31]line Смена: 471 ФФД: 1.0 [18:51:31]line ЗНМ: 0300000120 [18:51:31]line РНМ: 0000000000091831 [18:51:31]line Версия ККМ: 001 [18:51:31]line ФМ: 0000000000871830 [18:51:31]line ФД: 115477 [18:51:31]line ФПД: 254429125924388 [18:51:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T185132&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115477&fm=254429125924388&tin=02508201610067®Number=0000000000091831&sum=40500 [18:51:31]line 0 [18:51:31]OFD Sender: Processing packet 115477 [packets to send 481, broken 480] [18:51:31]ProducePacketName [18:51:31]name=ofd_packets/00115477 [18:51:31]OFD Sender: To server: pG, [18:51:31]CommunicateWithHost lk.salyk.kg:30040 [18:51:31]ConnectInit lk.salyk.kg [18:51:31]written 0, free lines is 4095 [18:51:31]Connected sock=10 [18:51:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2C 01 00 00 AA 43 24 01 7E 98 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 34 67 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 15 C3 01 00 35 04 06 00 E7 66 E5 AB D6 24 12 2E 04 9D E9 4E C6 42 [18:51:31]Write to MH i2c: 01 00 00 AE 27 D5 [18:51:31]Write i2c OK [18:51:31]MH_I2C_Read... [18:51:31]Read from MH i2c: 01 [18:51:31]MH_I2C_Read... [18:51:31]Read from MH i2c: 01 07 00 [18:51:31]MH_I2C_Read... [18:51:31]Read from MH i2c: 01 07 00 AE 27 00 00 00 00 00 6B 0C 53 [18:51:31]RasterBufferAndPrint [18:51:31]line [18:51:31]line [18:51:31]line [18:51:31]line [18:51:31]line [18:51:31]written 0, free lines is 3185 [18:51:31]MH_Cut [18:51:31]Write to MH i2c: D1 01 00 B5 27 01 AE [18:51:31]Write i2c OK [18:51:31]MH_I2C_Read... [18:51:31]Read from MH i2c: D1 [18:51:31]MH_I2C_Read... [18:51:31]Read from MH i2c: D1 01 00 [18:51:31]MH_I2C_Read... [18:51:31]Read from MH i2c: D1 01 00 B5 27 00 AD [18:51:31]Write to MH i2c: 01 00 00 B6 27 DD [18:51:31]Write i2c OK [18:51:31]MH_I2C_Read... [18:51:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E2 41 47 00 08 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 15 C3 01 00 F4 03 04 00 79 0C F0 66 B6 04 01 00 00 B7 ED ED 38 BA 61 A1 2D [18:51:32]CommunicateWithHost err = 0 [18:51:32]CheckOFDResponse [18:51:32]1017 (14) - 77093643461234 [18:51:32]1041 (16) - 0000000000871830 [18:51:32]1040 (4) - 115477 [18:51:32]1012 (4) - 22.09.2024 12:24 [18:51:32]1206 (1) - 0 [18:51:32]OFD Sender: Remove packet 115477 [18:51:32]ProducePacketName [18:51:32]name=ofd_packets/00115477 [18:51:32]NVStorageDeleteData [18:51:32]OFD Sender: No OFD packet to send [18:51:33]*** Cut start [18:51:33]*** Partial cut [18:51:33]*** CUTSNS_PIN = 1 [18:51:33]*** CUTSNS_PIN = 0 [18:51:33]*** Brake cut motor [18:51:33]Read from MH i2c: 01 [18:51:33]MH_I2C_Read... [18:51:33]*** Stop cut motor [18:51:33]*** Cut end [18:51:33]Read from MH i2c: 01 07 00 [18:51:33]MH_I2C_Read... [18:51:33]Read from MH i2c: 01 07 00 B6 27 00 00 00 00 00 FF 0F F2 [18:51:33]process_action close_receipt done [18:51:33]requested_data is exist [18:51:33]produce_requested_data [18:51:33]requested_item fm.sn is exist - process it [18:51:33]wFMCommunicate request_size=4 [18:51:33]MH_SAM_APDU [18:51:33]CAPDU: 80 11 00 00 [18:51:33]Write to MH i2c: E2 08 00 B7 27 80 11 00 00 00 00 00 00 58 [18:51:33]Write i2c OK [18:51:33]MH_I2C_Read... [18:51:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:33]Read from MH i2c: E2 [18:51:33]MH_I2C_Read... [18:51:33]Read from MH i2c: E2 17 00 [18:51:33]MH_I2C_Read... [18:51:33]Read from MH i2c: E2 17 00 B7 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A6 [18:51:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:51:33]wFMCommunicate OK [18:51:33]requested_item fd.num is exist - process it [18:51:33]SAM_PROTO_GetFieldsCounters [18:51:33]wFMCommunicate request_size=4 [18:51:33]MH_SAM_APDU [18:51:33]CAPDU: 80 13 00 00 [18:51:33]Write to MH i2c: E2 08 00 B8 27 80 13 00 00 00 00 00 00 5B [18:51:33]Write i2c OK [18:51:33]MH_I2C_Read... [18:51:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:34]Read from MH i2c: E2 [18:51:34]MH_I2C_Read... [18:51:34]Read from MH i2c: E2 62 00 [18:51:34]MH_I2C_Read... [18:51:34]Read from MH i2c: E2 62 00 B8 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 15 C3 01 00 0E 04 04 00 D7 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 6E [18:51:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 15 C3 01 00 0E 04 04 00 D7 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 [18:51:34]wFMCommunicate OK [18:51:34]SAM_PROTO_GetFieldsCounters done [18:51:34]requested_item shift.num is exist - process it [18:51:34]requested_item shift.opened is exist - process it [18:51:34]req_shift_opened [18:51:34]FM_GetShiftState [18:51:34]SAM_PROTO_GetShiftState [18:51:34]wFMCommunicate request_size=4 [18:51:34]MH_SAM_APDU [18:51:34]CAPDU: 80 13 01 00 [18:51:34]Write to MH i2c: E2 08 00 B9 27 80 13 01 00 00 00 00 00 5D [18:51:34]Write i2c OK [18:51:34]MH_I2C_Read... [18:51:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:34]Read from MH i2c: E2 [18:51:34]MH_I2C_Read... [18:51:34]Read from MH i2c: E2 0E 00 [18:51:34]MH_I2C_Read... [18:51:34]Read from MH i2c: E2 0E 00 B9 27 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 76 [18:51:34]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:51:34]wFMCommunicate OK [18:51:34]SAM_PROTO_GetShiftState done [18:51:34]FM_GetShiftState done [18:51:34]req_shift_opened done [18:51:34]requested_item shift.open_date is exist - process it [18:51:34]req_shift_open_date [18:51:34]req_shift_open_date done [18:51:34]produce_requested_data done [18:51:34]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115477,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:51:34]process_action_free close_receipt [18:51:34]json_value_free [18:51:34]json_value_free done [18:51:34]process_json_proto returns [18:51:34]Send response to host [18:51:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115477,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:51:34]free response buf [18:51:34]execute_script done [18:51:34]execute_script returns [18:51:34]free content buf [18:51:34]Sock 8.Close socket [18:51:34]Sock 8.Thread stoped [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:24]accept exits with 9 [18:52:24]New connection [18:52:24]New thread 3066682724 created [18:52:24]Thread 3066826084 joined [18:52:24]Waiting for new connection... [18:52:24] Sock 9.Parse request [18:52:24]Sock 9.Check first char [18:52:24]Sock 9.First char is OK [18:52:24]request: POST /json_proto HTTP/1.0 [18:52:24]Method: POST [18:52:24]URL: /json_proto [18:52:24]Method is POST - this is cgi request [18:52:24]url: /json_proto [18:52:24]query_string will be loaded in cgi processing [18:52:24]execute_cgi json_proto POST (null) [18:52:24]execute_cgi path=json_proto method=POST [18:52:24]POST find Content-Length [18:52:24]Host: 172.17.41.136:8080 [18:52:24]Content-Length: 1203 [18:52:24]Content-Type: application/json [18:52:24] [18:52:24]POST finish read [18:52:24]Found Content-Length = 1203 [18:52:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343911", "tax_sys" : 0, "items" : [ { "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 227.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:24]execute_script... [18:52:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343911", "tax_sys" : 0, "items" : [ { "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 227.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:24]POST & json_proto [18:52:24]process_json_proto [18:52:24]json parsed OK: [18:52:24]protocol is kg_v1.0 [18:52:24]action value=close_receipt [18:52:24]process_action close_receipt [18:52:24]cmd_close_receipt [18:52:24]MH_GetDate [18:52:24]Write to MH i2c: F0 00 00 BA 27 D0 [18:52:24]Write i2c OK [18:52:24]MH_I2C_Read... [18:52:24]Read from MH i2c: F0 [18:52:24]MH_I2C_Read... [18:52:24]Read from MH i2c: F0 09 00 [18:52:24]MH_I2C_Read... [18:52:24]Read from MH i2c: F0 09 00 BA 27 00 6A 67 F0 66 1B D0 5A 64 A9 [18:52:24]GetLastDocTimeStamp 1727031092 [18:52:24]current date 1727031146 [18:52:24]FM_GetShiftState [18:52:24]SAM_PROTO_GetShiftState [18:52:24]wFMCommunicate request_size=4 [18:52:24]MH_SAM_APDU [18:52:24]CAPDU: 80 13 01 00 [18:52:24]Write to MH i2c: E2 08 00 BB 27 80 13 01 00 00 00 00 00 5F [18:52:24]Write i2c OK [18:52:24]MH_I2C_Read... [18:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:24]Read from MH i2c: E2 [18:52:24]MH_I2C_Read... [18:52:24]Read from MH i2c: E2 0E 00 [18:52:24]MH_I2C_Read... [18:52:24]Read from MH i2c: E2 0E 00 BB 27 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 78 [18:52:24]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:52:24]wFMCommunicate OK [18:52:24]SAM_PROTO_GetShiftState done [18:52:24]FM_GetShiftState done [18:52:24]opened in 1726965840 [18:52:24]opened+sec_in_day 1727052240 [18:52:24]quantity*price = 9300 [18:52:24]sum+1 = 9301 [18:52:24]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700026030031 Курут orbit 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 227.00 НСП 1% : 2.00 НДС 12% : 24.11 Наличными: 227.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 196 22.09.2024 18:52 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115478 ФПД: 89197451685918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T185226&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115478&fm=89197451685918&tin=02508201610067®Number=0000000000091831&sum=22700 0 [18:52:25]StoreToDocumentArchive [18:52:25]shift 471 fd 115478 [18:52:25]save to /storage/0471/doc_00115478 [18:52:25]save last doc name /storage/0471/doc_00115478 to /storage/kkm_last_doc_name [18:52:25]save OK [18:52:25]Clear old archive folders... [18:52:25]ProcessDocumentItem done err = 0, tmpTLVsize=505 [18:52:25]tlvbuf is 01CE7600 [18:52:25]SAM_PROTO_ClearQueue [18:52:25]wFMCommunicate request_size=4 [18:52:25]MH_SAM_APDU [18:52:25]CAPDU: 80 09 00 00 [18:52:25]Write to MH i2c: E2 08 00 C8 27 80 09 00 00 00 00 00 00 61 [18:52:25]Write i2c OK [18:52:25]MH_I2C_Read... [18:52:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:25]Read from MH i2c: E2 [18:52:25]MH_I2C_Read... [18:52:25]Read from MH i2c: E2 03 00 [18:52:25]MH_I2C_Read... [18:52:25]Read from MH i2c: E2 03 00 C8 27 00 90 00 63 [18:52:25]RAPDU: 90 00 [18:52:25]wFMCommunicate OK [18:52:25]SAM_PROTO_ClearQueue done [18:52:25]KKMCreateOFDPacket [18:52:25]OFDProtocolAddRootSTLVToBuf [18:52:25]FM_MakeSignedData [18:52:25]FM_MakeSignedData [18:52:25]SAM_PROTO_SignData [18:52:25]wFMCommunicate request_size=4 [18:52:25]MH_SAM_APDU [18:52:25]CAPDU: 80 0D 01 02 [18:52:25]Write to MH i2c: E2 08 00 C9 27 80 0D 01 02 00 00 00 00 69 [18:52:25]Write i2c OK [18:52:25]MH_I2C_Read... [18:52:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:25]Read from MH i2c: E2 [18:52:25]MH_I2C_Read... [18:52:25]Read from MH i2c: E2 03 00 [18:52:25]MH_I2C_Read... [18:52:25]Read from MH i2c: E2 03 00 C9 27 00 90 00 64 [18:52:25]RAPDU: 90 00 [18:52:25]wFMCommunicate OK [18:52:25]wFMCommunicate request_size=255 [18:52:25]MH_SAM_APDU [18:52:25]CAPDU: 80 0D 02 02 FA 03 00 F9 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [18:52:25]Write to MH i2c: E2 02 01 CA 27 80 0D 02 02 FA 00 03 00 F9 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 0A [18:52:25]Write i2c OK [18:52:25]MH_I2C_Read... [18:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:25]Read from MH i2c: E2 [18:52:25]MH_I2C_Read... [18:52:25]Read from MH i2c: E2 03 00 [18:52:25]MH_I2C_Read... [18:52:25]Read from MH i2c: E2 03 00 CA 27 00 90 00 65 [18:52:25]RAPDU: 90 00 [18:52:25]wFMCommunicate OK [18:52:25]wFMCommunicate request_size=255 [18:52:25]MH_SAM_APDU [18:52:25]CAPDU: 80 0D 02 02 FA 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 09 00 00 00 00 07 04 06 00 AC 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 6A 67 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 16 C3 01 00 35 [18:52:25]Write to MH i2c: E2 02 01 CB 27 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 09 00 00 00 00 07 04 06 00 AC 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 6A 67 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 16 C3 01 00 35 00 00 5D [18:52:26]Write i2c OK [18:52:26]MH_I2C_Read... [18:52:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:26]Read from MH i2c: E2 [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: E2 03 00 [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: E2 03 00 CB 27 00 90 00 66 [18:52:26]RAPDU: 90 00 [18:52:26]wFMCommunicate OK [18:52:26]wFMCommunicate request_size=14 [18:52:26]MH_SAM_APDU [18:52:26]CAPDU: 80 0D 02 02 09 04 06 00 51 1F E6 6C 30 1E [18:52:26]Write to MH i2c: E2 11 00 CC 27 80 0D 02 02 09 00 04 06 00 51 1F E6 6C 30 1E 00 00 99 [18:52:26]Write i2c OK [18:52:26]MH_I2C_Read... [18:52:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:26]Read from MH i2c: E2 [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: E2 03 00 [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: E2 03 00 CC 27 00 90 00 67 [18:52:26]RAPDU: 90 00 [18:52:26]wFMCommunicate OK [18:52:26]wFMCommunicate request_size=4 [18:52:26]MH_SAM_APDU [18:52:26]CAPDU: 80 0D 03 02 [18:52:26]Write to MH i2c: E2 08 00 CD 27 80 0D 03 02 00 00 00 00 6F [18:52:26]Write i2c OK [18:52:26]MH_I2C_Read... [18:52:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:26]Read from MH i2c: E2 [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: E2 0B 00 [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: E2 0B 00 CD 27 00 D5 7D B8 86 1F 63 EF 4F 90 00 C0 [18:52:26]RAPDU: D5 7D B8 86 1F 63 EF 4F 90 00 [18:52:26]wFMCommunicate OK [18:52:26]SAM_PROTO_SignData done [18:52:26]FM_MakeSignedData done [18:52:26]CreateOFDProtocolMessage [18:52:26]wFMCommunicate request_size=4 [18:52:26]MH_SAM_APDU [18:52:26]CAPDU: 80 11 00 00 [18:52:26]Write to MH i2c: E2 08 00 CE 27 80 11 00 00 00 00 00 00 6F [18:52:26]Write i2c OK [18:52:26]MH_I2C_Read... [18:52:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:26]Read from MH i2c: E2 [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: E2 17 00 [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: E2 17 00 CE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BD [18:52:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:52:26]wFMCommunicate OK [18:52:26]CreateOFDProtocolMessage done [18:52:26]OFDSenderStorePacket 115478 [18:52:26]StoreOFDPacket docnum=115478 [18:52:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 02 00 00 7E 8A 05 02 E4 EA 5A 03 01 00 03 00 F9 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 09 00 00 00 00 07 04 06 00 AC 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 6A 67 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 16 C3 01 00 35 04 06 00 51 1F E6 6C 30 1E D5 7D B8 86 1F 63 EF 4F [18:52:26]CheckFolder [18:52:26]dirname=/storage/ofd_packets [18:52:26]CheckFolder done [18:52:26]ProducePacketName [18:52:26]name=ofd_packets/00115478 [18:52:26]NVStorageSaveData ofd_packets/00115478 [18:52:26]File name is /storage/ofd_packets/00115478 [18:52:26]Write 555 bytes [18:52:26]NVStorageSaveData done [18:52:26]OFDSenderStorePacket done [18:52:26]KKMCreateOFDPacket done [18:52:26]NVStorageSaveData kkm_last_timestamp [18:52:26]File name is /storage/kkm_last_timestamp [18:52:26]Write 4 bytes [18:52:26]NVStorageSaveData done [18:52:26]ExternCall_PrintAddStr [18:52:26]wPrintStart [18:52:26]Write to MH i2c: 01 00 00 CF 27 F6 [18:52:26]Write i2c OK [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: 01 [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: 01 07 00 [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: 01 07 00 CF 27 00 00 00 00 00 FF 0F 0B [18:52:26]RasterBufferAndPrint [18:52:26]line Счет N : (3)343911 [18:52:26]line ИНН: 02508201610067 [18:52:26]line Контрольно-Кассовый Чек [18:52:26]line ПРОДАЖА [18:52:26]line Товар: 4603290004879 [18:52:26]line Печ.сах.FORSITE Сэнд.кокос.вк [18:52:26]line 1.000 * 93.00 [18:52:26]line = 93.00 [18:52:26]line НДС 12% НСП 1% [18:52:26]line > о реализуемом товаре [18:52:26]line Товар: 4660085515163 [18:52:26]line Шок Батончик Сникерс супер 95/80г [18:52:26]line 1.000 * 85.00 [18:52:26]line = 85.00 [18:52:26]line НДС 12% НСП 1% [18:52:26]line > о реализуемом товаре [18:52:26]line Товар: 4700026030031 [18:52:26]line Курут orbit [18:52:26]line 1.000 * 49.00 [18:52:26]line = 49.00 [18:52:26]line НДС 12% НСП 1% [18:52:26]line > о реализуемом товаре [18:52:26]line ИТОГО: 227.00 [18:52:26]line НСП 1% : 2.00 [18:52:26]line НДС 12% : 24.11 [18:52:26]line Наличными: 227.00 [18:52:26]line Безнал.: 0.00 [18:52:26]line Место: АЗС № 90 "Партнер Нефть" [18:52:26]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:52:26]line СНО: Общий режим [18:52:26]line Чек 196 22.09.2024 18:52 [18:52:26]line Смена: 471 ФФД: 1.0 [18:52:26]line ЗНМ: 0300000120 [18:52:26]line РНМ: 0000000000091831 [18:52:26]line Версия ККМ: 001 [18:52:26]line ФМ: 0000000000871830 [18:52:26]line ФД: 115478 [18:52:26]line ФПД: 89197451685918 [18:52:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T185226&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115478&fm=89197451685918&tin=02508201610067®Number=0000000000091831&sum=22700 [18:52:26]line 0 [18:52:26]written 0, free lines is 4095 [18:52:26]OFD Sender: Processing packet 115478 [packets to send 481, broken 480] [18:52:26]ProducePacketName [18:52:26]name=ofd_packets/00115478 [18:52:26]OFD Sender: To server: pG, [18:52:26]CommunicateWithHost lk.salyk.kg:30040 [18:52:26]ConnectInit lk.salyk.kg [18:52:26]Connected sock=10 [18:52:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 02 00 00 7E 8A 05 02 E4 EA 5A 03 01 00 03 00 F9 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 09 00 00 00 00 07 04 06 00 AC 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 6A 67 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 16 C3 01 00 35 04 06 00 51 1F E6 6C 30 1E D5 7D B8 86 1F 63 EF 4F [18:52:27]Write to MH i2c: 01 00 00 03 28 2B [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: 01 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: 01 07 00 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: 01 07 00 03 28 00 00 00 00 00 6C 0B A9 [18:52:27]RasterBufferAndPrint [18:52:27]line [18:52:27]line [18:52:27]line [18:52:27]line [18:52:27]line [18:52:27]written 0, free lines is 2927 [18:52:27]MH_Cut [18:52:27]Write to MH i2c: D1 01 00 0A 28 01 04 [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: D1 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: D1 01 00 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: D1 01 00 0A 28 00 03 [18:52:27]Write to MH i2c: 01 00 00 0B 28 33 [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E2 C0 47 00 1E BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 16 C3 01 00 F4 03 04 00 B0 0C F0 66 B6 04 01 00 00 6D 9C 17 CD 37 4B 83 EE [18:52:27]CommunicateWithHost err = 0 [18:52:27]CheckOFDResponse [18:52:27]1017 (14) - 77093643461234 [18:52:27]1041 (16) - 0000000000871830 [18:52:27]1040 (4) - 115478 [18:52:27]1012 (4) - 22.09.2024 12:25 [18:52:27]1206 (1) - 0 [18:52:27]OFD Sender: Remove packet 115478 [18:52:27]ProducePacketName [18:52:27]name=ofd_packets/00115478 [18:52:27]NVStorageDeleteData [18:52:27]OFD Sender: No OFD packet to send [18:52:28]*** Cut start [18:52:28]*** Partial cut [18:52:28]*** CUTSNS_PIN = 1 [18:52:28]*** CUTSNS_PIN = 0 [18:52:28]*** Brake cut motor [18:52:29]Read from MH i2c: 01 [18:52:29]MH_I2C_Read... [18:52:29]*** Stop cut motor [18:52:29]*** Cut end [18:52:29]Read from MH i2c: 01 07 00 [18:52:29]MH_I2C_Read... [18:52:29]Read from MH i2c: 01 07 00 0B 28 00 00 00 00 00 FF 0F 48 [18:52:29]process_action close_receipt done [18:52:29]requested_data is exist [18:52:29]produce_requested_data [18:52:29]requested_item fm.sn is exist - process it [18:52:29]wFMCommunicate request_size=4 [18:52:29]MH_SAM_APDU [18:52:29]CAPDU: 80 11 00 00 [18:52:29]Write to MH i2c: E2 08 00 0C 28 80 11 00 00 00 00 00 00 AE [18:52:29]Write i2c OK [18:52:29]MH_I2C_Read... [18:52:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:29]Read from MH i2c: E2 [18:52:29]MH_I2C_Read... [18:52:29]Read from MH i2c: E2 17 00 [18:52:29]MH_I2C_Read... [18:52:29]Read from MH i2c: E2 17 00 0C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FC [18:52:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:52:29]wFMCommunicate OK [18:52:29]requested_item fd.num is exist - process it [18:52:29]SAM_PROTO_GetFieldsCounters [18:52:29]wFMCommunicate request_size=4 [18:52:29]MH_SAM_APDU [18:52:29]CAPDU: 80 13 00 00 [18:52:29]Write to MH i2c: E2 08 00 0D 28 80 13 00 00 00 00 00 00 B1 [18:52:29]Write i2c OK [18:52:29]MH_I2C_Read... [18:52:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:29]Read from MH i2c: E2 [18:52:29]MH_I2C_Read... [18:52:29]Read from MH i2c: E2 62 00 [18:52:29]MH_I2C_Read... [18:52:29]Read from MH i2c: E2 62 00 0D 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 16 C3 01 00 0E 04 04 00 D7 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 C8 [18: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 16 C3 01 00 0E 04 04 00 D7 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 [18:52:29]wFMCommunicate OK [18:52:29]SAM_PROTO_GetFieldsCounters done [18:52:29]requested_item shift.num is exist - process it [18:52:29]requested_item shift.opened is exist - process it [18:52:29]req_shift_opened [18:52:29]FM_GetShiftState [18:52:29]SAM_PROTO_GetShiftState [18:52:29]wFMCommunicate request_size=4 [18:52:29]MH_SAM_APDU [18:52:29]CAPDU: 80 13 01 00 [18:52:29]Write to MH i2c: E2 08 00 0E 28 80 13 01 00 00 00 00 00 B3 [18:52:29]Write i2c OK [18:52:29]MH_I2C_Read... [18:52:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:29]Read from MH i2c: E2 [18:52:29]MH_I2C_Read... [18:52:29]Read from MH i2c: E2 0E 00 [18:52:29]MH_I2C_Read... [18:52:29]Read from MH i2c: E2 0E 00 0E 28 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 CC [18:52:29]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:52:29]wFMCommunicate OK [18:52:29]SAM_PROTO_GetShiftState done [18:52:29]FM_GetShiftState done [18:52:29]req_shift_opened done [18:52:29]requested_item shift.open_date is exist - process it [18:52:29]req_shift_open_date [18:52:29]req_shift_open_date done [18:52:29]produce_requested_data done [18:52:29]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115478,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:52:29]process_action_free close_receipt [18:52:29]json_value_free [18:52:29]json_value_free done [18:52:29]process_json_proto returns [18:52:29]Send response to host [18:52:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115478,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:52:29]free response buf [18:52:29]execute_script done [18:52:29]execute_script returns [18:52:29]free content buf [18:52:29]Sock 9.Close socket [18:52:29]Sock 9.Thread stoped [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:53]accept exits with 8 [18:53:53]New connection [18:53:53]New thread 3066826084 created [18:53:53]Thread 3066682724 joined [18:53:53]Waiting for new connection... [18:53:53] Sock 8.Parse request [18:53:53]Sock 8.Check first char [18:53:53]Sock 8.First char is OK [18:53:53]request: POST /json_proto HTTP/1.0 [18:53:53]Method: POST [18:53:53]URL: /json_proto [18:53:53]Method is POST - this is cgi request [18:53:53]url: /json_proto [18:53:53]query_string will be loaded in cgi processing [18:53:53]execute_cgi json_proto POST (null) [18:53:53]execute_cgi path=json_proto method=POST [18:53:53]POST find Content-Length [18:53:53]Host: 172.17.41.136:8080 [18:53:53]Content-Length: 798 [18:53:53]Content-Type: application/json [18:53:53] [18:53:53]POST finish read [18:53:53]Found Content-Length = 798 [18:53:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343912", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:53]execute_script... [18:53:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343912", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:53]POST & json_proto [18:53:53]process_json_proto [18:53:53]json parsed OK: [18:53:53]protocol is kg_v1.0 [18:53:53]action value=close_receipt [18:53:53]process_action close_receipt [18:53:53]cmd_close_receipt [18:53:53]MH_GetDate [18:53:53]Write to MH i2c: F0 00 00 0F 28 26 [18:53:53]Write i2c OK [18:53:53]MH_I2C_Read... [18:53:53]Read from MH i2c: F0 [18:53:53]MH_I2C_Read... [18:53:53]Read from MH i2c: F0 09 00 [18:53:53]MH_I2C_Read... [18:53:53]Read from MH i2c: F0 09 00 0F 28 00 C4 67 F0 66 1B D0 5A 64 59 [18:53:53]GetLastDocTimeStamp 1727031146 [18:53:53]current date 1727031236 [18:53:53]FM_GetShiftState [18:53:53]SAM_PROTO_GetShiftState [18:53:53]wFMCommunicate request_size=4 [18:53:53]MH_SAM_APDU [18:53:53]CAPDU: 80 13 01 00 [18:53:53]Write to MH i2c: E2 08 00 10 28 80 13 01 00 00 00 00 00 B5 [18:53:53]Write i2c OK [18:53:53]MH_I2C_Read... [18:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:53]Read from MH i2c: E2 [18:53:53]MH_I2C_Read... [18:53:53]Read from MH i2c: E2 0E 00 [18:53:53]MH_I2C_Read... [18:53:53]Read from MH i2c: E2 0E 00 10 28 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 CE [18:53:53]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:53:53]wFMCommunicate OK [18:53:53]SAM_PROTO_GetShiftState done [18:53:53]FM_GetShiftState done [18:53:53]opened in 1726965840 [18:53:53]opened+sec_in_day 1727052240 [18:53:53]quantity*price = 14400 [18:53:53]sum+1 = 14401 [18:53:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 197 22.09.2024 18:53 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115479 ФПД: 215658599824486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T185356&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115479&fm=215658599824486&tin=02508201610067®Number=0000000000091831&sum=14400 0 [18:53:54]StoreToDocumentArchive [18:53:54]shift 471 fd 115479 [18:53:54]save to /storage/0471/doc_00115479 [18:53:54]save last doc name /storage/0471/doc_00115479 to /storage/kkm_last_doc_name [18:53:54]save OK [18:53:54]Clear old archive folders... [18:53:54]ProcessDocumentItem done err = 0, tmpTLVsize=273 [18:53:54]tlvbuf is 01C93C20 [18:53:54]SAM_PROTO_ClearQueue [18:53:54]wFMCommunicate request_size=4 [18:53:54]MH_SAM_APDU [18:53:54]CAPDU: 80 09 00 00 [18:53:54]Write to MH i2c: E2 08 00 1D 28 80 09 00 00 00 00 00 00 B7 [18:53:54]Write i2c OK [18:53:54]MH_I2C_Read... [18:53:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:55]Read from MH i2c: E2 [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: E2 03 00 [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: E2 03 00 1D 28 00 90 00 B9 [18:53:55]RAPDU: 90 00 [18:53:55]wFMCommunicate OK [18:53:55]SAM_PROTO_ClearQueue done [18:53:55]KKMCreateOFDPacket [18:53:55]OFDProtocolAddRootSTLVToBuf [18:53:55]FM_MakeSignedData [18:53:55]FM_MakeSignedData [18:53:55]SAM_PROTO_SignData [18:53:55]wFMCommunicate request_size=4 [18:53:55]MH_SAM_APDU [18:53:55]CAPDU: 80 0D 01 02 [18:53:55]Write to MH i2c: E2 08 00 1E 28 80 0D 01 02 00 00 00 00 BF [18:53:55]Write i2c OK [18:53:55]MH_I2C_Read... [18:53:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:55]Read from MH i2c: E2 [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: E2 03 00 [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: E2 03 00 1E 28 00 90 00 BA [18:53:55]RAPDU: 90 00 [18:53:55]wFMCommunicate OK [18:53:55]wFMCommunicate request_size=255 [18:53:55]MH_SAM_APDU [18:53:55]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 C4 67 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 [18:53:55]Write to MH i2c: E2 02 01 1F 28 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 C4 67 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 44 [18:53:55]Write i2c OK [18:53:55]MH_I2C_Read... [18:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:55]Read from MH i2c: E2 [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: E2 03 00 [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: E2 03 00 1F 28 00 90 00 BB [18:53:55]RAPDU: 90 00 [18:53:55]wFMCommunicate OK [18:53:55]wFMCommunicate request_size=32 [18:53:55]MH_SAM_APDU [18:53:55]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 33 30 10 04 04 00 17 C3 01 00 35 04 06 00 C4 23 EE 3C 3C 66 [18:53:55]Write to MH i2c: E2 23 00 20 28 80 0D 02 02 1B 00 30 30 30 38 37 31 38 33 30 10 04 04 00 17 C3 01 00 35 04 06 00 C4 23 EE 3C 3C 66 00 00 A8 [18:53:55]Write i2c OK [18:53:55]MH_I2C_Read... [18:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:55]Read from MH i2c: E2 [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: E2 03 00 [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: E2 03 00 20 28 00 90 00 BC [18:53:55]RAPDU: 90 00 [18:53:55]wFMCommunicate OK [18:53:55]wFMCommunicate request_size=4 [18:53:55]MH_SAM_APDU [18:53:55]CAPDU: 80 0D 03 02 [18:53:55]Write to MH i2c: E2 08 00 21 28 80 0D 03 02 00 00 00 00 C4 [18:53:55]Write i2c OK [18:53:55]MH_I2C_Read... [18:53:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:55]Read from MH i2c: E2 [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: E2 0B 00 [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: E2 0B 00 21 28 00 BA CB 47 53 67 0C 10 A0 90 00 07 [18:53:55]RAPDU: BA CB 47 53 67 0C 10 A0 90 00 [18:53:55]wFMCommunicate OK [18:53:55]SAM_PROTO_SignData done [18:53:55]FM_MakeSignedData done [18:53:55]CreateOFDProtocolMessage [18:53:55]wFMCommunicate request_size=4 [18:53:55]MH_SAM_APDU [18:53:55]CAPDU: 80 11 00 00 [18:53:55]Write to MH i2c: E2 08 00 22 28 80 11 00 00 00 00 00 00 C4 [18:53:55]Write i2c OK [18:53:55]MH_I2C_Read... [18:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:55]Read from MH i2c: E2 [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: E2 17 00 [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: E2 17 00 22 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 12 [18:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:53:55]wFMCommunicate OK [18:53:55]CreateOFDProtocolMessage done [18:53:55]OFDSenderStorePacket 115479 [18:53:55]StoreOFDPacket docnum=115479 [18:53:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 25 01 00 00 0E 22 1D 01 85 AE 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 C4 67 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 17 C3 01 00 35 04 06 00 C4 23 EE 3C 3C 66 BA CB 47 53 67 0C 10 A0 [18:53:55]CheckFolder [18:53:55]dirname=/storage/ofd_packets [18:53:55]CheckFolder done [18:53:55]ProducePacketName [18:53:55]name=ofd_packets/00115479 [18:53:55]NVStorageSaveData ofd_packets/00115479 [18:53:55]File name is /storage/ofd_packets/00115479 [18:53:55]Write 323 bytes [18:53:55]NVStorageSaveData done [18:53:55]OFDSenderStorePacket done [18:53:55]KKMCreateOFDPacket done [18:53:55]NVStorageSaveData kkm_last_timestamp [18:53:55]File name is /storage/kkm_last_timestamp [18:53:55]Write 4 bytes [18:53:55]NVStorageSaveData done [18:53:55]ExternCall_PrintAddStr [18:53:55]wPrintStart [18:53:55]Write to MH i2c: 01 00 00 23 28 4B [18:53:55]Write i2c OK [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: 01 [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: 01 07 00 [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: 01 07 00 23 28 00 00 00 00 00 FF 0F 60 [18:53:55]RasterBufferAndPrint [18:53:55]line Счет N : (3)343912 [18:53:55]line ИНН: 02508201610067 [18:53:55]line Контрольно-Кассовый Чек [18:53:55]line ПРОДАЖА [18:53:55]line Товар: 48743570 [18:53:55]line Сигареты Winston XStyle Blue [18:53:55]line 1.000 * 144.00 [18:53:55]line = 144.00 [18:53:55]line НДС 12% НСП 1% [18:53:55]line > о реализуемом товаре [18:53:55]line ИТОГО: 144.00 [18:53:55]line НСП 1% : 1.27 [18:53:55]line НДС 12% : 15.29 [18:53:55]line Наличными: 0.00 [18:53:55]line Безнал.: 144.00 [18:53:55]line Место: АЗС № 90 "Партнер Нефть" [18:53:55]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:53:55]line СНО: Общий режим [18:53:55]line Чек 197 22.09.2024 18:53 [18:53:55]line Смена: 471 ФФД: 1.0 [18:53:55]line ЗНМ: 0300000120 [18:53:55]line РНМ: 0000000000091831 [18:53:55]line Версия ККМ: 001 [18:53:55]line Платежная система: Бакай Банк [18:53:55]line ФМ: 0000000000871830 [18:53:55]line ФД: 115479 [18:53:55]line ФПД: 215658599824486 [18:53:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T185356&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115479&fm=215658599824486&tin=02508201610067®Number=0000000000091831&sum=14400 [18:53:55]line 0 [18:53:55]written 0, free lines is 4095 [18:53:55]OFD Sender: Processing packet 115479 [packets to send 481, broken 480] [18:53:55]ProducePacketName [18:53:55]name=ofd_packets/00115479 [18:53:55]OFD Sender: To server: pG, [18:53:55]CommunicateWithHost lk.salyk.kg:30040 [18:53:55]ConnectInit lk.salyk.kg [18:53:55]Connected sock=10 [18:53:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 25 01 00 00 0E 22 1D 01 85 AE 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 C4 67 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 17 C3 01 00 35 04 06 00 C4 23 EE 3C 3C 66 BA CB 47 53 67 0C 10 A0 [18:53:55]Write to MH i2c: 01 00 00 4C 28 74 [18:53:55]Write i2c OK [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: 01 [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: 01 07 00 [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: 01 07 00 4C 28 00 00 00 00 00 65 0C EC [18:53:55]RasterBufferAndPrint [18:53:55]line [18:53:55]line [18:53:55]line [18:53:55]line [18:53:55]line [18:53:55]written 0, free lines is 3178 [18:53:55]MH_Cut [18:53:55]Write to MH i2c: D1 01 00 53 28 01 4D [18:53:55]Write i2c OK [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: D1 [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: D1 01 00 [18:53:55]MH_I2C_Read... [18:53:55]Read from MH i2c: D1 01 00 53 28 00 4C [18:53:55]Write to MH i2c: 01 00 00 54 28 7C [18:53:55]Write i2c OK [18:53:55]MH_I2C_Read... [18:53:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 06 05 47 00 CC EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 17 C3 01 00 F4 03 04 00 09 0D F0 66 B6 04 01 00 00 37 A6 67 67 4C 14 E7 0D [18:53:56]CommunicateWithHost err = 0 [18:53:56]CheckOFDResponse [18:53:56]1017 (14) - 77093643461234 [18:53:56]1041 (16) - 0000000000871830 [18:53:56]1040 (4) - 115479 [18:53:56]1012 (4) - 22.09.2024 12:26 [18:53:56]1206 (1) - 0 [18:53:56]OFD Sender: Remove packet 115479 [18:53:56]ProducePacketName [18:53:56]name=ofd_packets/00115479 [18:53:56]NVStorageDeleteData [18:53:56]OFD Sender: No OFD packet to send [18:53:57]*** Cut start [18:53:57]*** Partial cut [18:53:57]*** CUTSNS_PIN = 1 [18:53:57]*** CUTSNS_PIN = 0 [18:53:57]*** Brake cut motor [18:53:57]Read from MH i2c: 01 [18:53:57]MH_I2C_Read... [18:53:57]*** Stop cut motor [18:53:57]*** Cut end [18:53:57]Read from MH i2c: 01 07 00 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: 01 07 00 54 28 00 00 00 00 00 FF 0F 91 [18:53:57]process_action close_receipt done [18:53:57]requested_data is exist [18:53:57]produce_requested_data [18:53:57]requested_item fm.sn is exist - process it [18:53:57]wFMCommunicate request_size=4 [18:53:57]MH_SAM_APDU [18:53:57]CAPDU: 80 11 00 00 [18:53:57]Write to MH i2c: E2 08 00 55 28 80 11 00 00 00 00 00 00 F7 [18:53:57]Write i2c OK [18:53:57]MH_I2C_Read... [18:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:57]Read from MH i2c: E2 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: E2 17 00 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: E2 17 00 55 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 45 [18:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:53:57]wFMCommunicate OK [18:53:57]requested_item fd.num is exist - process it [18:53:57]SAM_PROTO_GetFieldsCounters [18:53:57]wFMCommunicate request_size=4 [18:53:57]MH_SAM_APDU [18:53:57]CAPDU: 80 13 00 00 [18:53:57]Write to MH i2c: E2 08 00 56 28 80 13 00 00 00 00 00 00 FA [18:53:57]Write i2c OK [18:53:57]MH_I2C_Read... [18:53:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:58]Read from MH i2c: E2 [18:53:58]MH_I2C_Read... [18:53:58]Read from MH i2c: E2 62 00 [18:53:58]MH_I2C_Read... [18:53:58]Read from MH i2c: E2 62 00 56 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 17 C3 01 00 0E 04 04 00 D7 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 [18: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 17 C3 01 00 0E 04 04 00 D7 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 [18:53:58]wFMCommunicate OK [18:53:58]SAM_PROTO_GetFieldsCounters done [18:53:58]requested_item shift.num is exist - process it [18:53:58]requested_item shift.opened is exist - process it [18:53:58]req_shift_opened [18:53:58]FM_GetShiftState [18:53:58]SAM_PROTO_GetShiftState [18:53:58]wFMCommunicate request_size=4 [18:53:58]MH_SAM_APDU [18:53:58]CAPDU: 80 13 01 00 [18:53:58]Write to MH i2c: E2 08 00 57 28 80 13 01 00 00 00 00 00 FC [18:53:58]Write i2c OK [18:53:58]MH_I2C_Read... [18:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:58]Read from MH i2c: E2 [18:53:58]MH_I2C_Read... [18:53:58]Read from MH i2c: E2 0E 00 [18:53:58]MH_I2C_Read... [18:53:58]Read from MH i2c: E2 0E 00 57 28 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 15 [18:53:58]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [18:53:58]wFMCommunicate OK [18:53:58]SAM_PROTO_GetShiftState done [18:53:58]FM_GetShiftState done [18:53:58]req_shift_opened done [18:53:58]requested_item shift.open_date is exist - process it [18:53:58]req_shift_open_date [18:53:58]req_shift_open_date done [18:53:58]produce_requested_data done [18:53:58]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115479,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [18:53:58]process_action_free close_receipt [18:53:58]json_value_free [18:53:58]json_value_free done [18:53:58]process_json_proto returns [18:53:58]Send response to host [18:53:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115479,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [18:53:58]free response buf [18:53:58]execute_script done [18:53:58]execute_script returns [18:53:58]free content buf [18:53:58]Sock 8.Close socket [18:53:58]Sock 8.Thread stoped [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:27]OFD Sender: No OFD packet to send [18:56:32]OFD Sender: No OFD packet to send [18:56:37]OFD Sender: No OFD packet to send [18:56:42]OFD Sender: No OFD packet to send [18:56:47]OFD Sender: No OFD packet to send [18:56:52]OFD Sender: No OFD packet to send [18:56:57]OFD Sender: No OFD packet to send [18:57:02]OFD Sender: No OFD packet to send [18:57:07]OFD Sender: No OFD packet to send [18:57:12]OFD Sender: No OFD packet to send [18:57:17]OFD Sender: No OFD packet to send [18:57:22]OFD Sender: No OFD packet to send [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]ConnectInit Can't connect to host [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]OFD Sender: No OFD packet to send [19:02:07]OFD Sender: No OFD packet to send [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:33]OFD Sender: No OFD packet to send [19:03:33]accept exits with 9 [19:03:33]New connection [19:03:33]New thread 3066682724 created [19:03:33]Thread 3066826084 joined [19:03:33]Waiting for new connection... [19:03:33] Sock 9.Parse request [19:03:33]Sock 9.Check first char [19:03:33]Sock 9.First char is OK [19:03:33]request: POST /json_proto HTTP/1.0 [19:03:33]Method: POST [19:03:33]URL: /json_proto [19:03:33]Method is POST - this is cgi request [19:03:33]url: /json_proto [19:03:33]query_string will be loaded in cgi processing [19:03:33]execute_cgi json_proto POST (null) [19:03:33]execute_cgi path=json_proto method=POST [19:03:33]POST find Content-Length [19:03:33]Host: 172.17.41.136:8080 [19:03:33]Content-Length: 623 [19:03:33]Content-Type: application/json [19:03:33] [19:03:33]POST finish read [19:03:33]Found Content-Length = 623 [19:03:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343913", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:33]execute_script... [19:03:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343913", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:33]POST & json_proto [19:03:33]process_json_proto [19:03:33]json parsed OK: [19:03:33]protocol is kg_v1.0 [19:03:33]action value=close_receipt [19:03:33]process_action close_receipt [19:03:33]cmd_close_receipt [19:03:33]MH_GetDate [19:03:33]Write to MH i2c: F0 00 00 58 28 6F [19:03:33]Write i2c OK [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: F0 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: F0 09 00 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: F0 09 00 58 28 00 08 6A F0 66 1B D0 5A 64 E9 [19:03:33]GetLastDocTimeStamp 1727031236 [19:03:33]current date 1727031816 [19:03:33]FM_GetShiftState [19:03:33]SAM_PROTO_GetShiftState [19:03:33]wFMCommunicate request_size=4 [19:03:33]MH_SAM_APDU [19:03:33]CAPDU: 80 13 01 00 [19:03:33]Write to MH i2c: E2 08 00 59 28 80 13 01 00 00 00 00 00 FE [19:03:33]Write i2c OK [19:03:33]MH_I2C_Read... [19:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:33]Read from MH i2c: E2 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: E2 0E 00 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: E2 0E 00 59 28 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 17 [19:03:33]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [19:03:33]wFMCommunicate OK [19:03:33]SAM_PROTO_GetShiftState done [19:03:33]FM_GetShiftState done [19:03:33]opened in 1726965840 [19:03:33]opened+sec_in_day 1727052240 [19:03:33]quantity*price = 14400 [19:03:33]sum+1 = 14401 [19:03:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 198 22.09.2024 19:03 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115480 ФПД: 144967076455106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T190336&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115480&fm=144967076455106&tin=02508201610067®Number=0000000000091831&sum=14400 0 [19:03:34]StoreToDocumentArchive [19:03:34]shift 471 fd 115480 [19:03:34]save to /storage/0471/doc_00115480 [19:03:34]save last doc name /storage/0471/doc_00115480 to /storage/kkm_last_doc_name [19:03:34]save OK [19:03:34]Clear old archive folders... [19:03:34]ProcessDocumentItem done err = 0, tmpTLVsize=275 [19:03:34]tlvbuf is 01C94610 [19:03:34]SAM_PROTO_ClearQueue [19:03:34]wFMCommunicate request_size=4 [19:03:34]MH_SAM_APDU [19:03:34]CAPDU: 80 09 00 00 [19:03:34]Write to MH i2c: E2 08 00 66 28 80 09 00 00 00 00 00 00 00 [19:03:34]Write i2c OK [19:03:34]MH_I2C_Read... [19:03:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:34]Read from MH i2c: E2 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 03 00 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 03 00 66 28 00 90 00 02 [19:03:34]RAPDU: 90 00 [19:03:34]wFMCommunicate OK [19:03:34]SAM_PROTO_ClearQueue done [19:03:34]KKMCreateOFDPacket [19:03:34]OFDProtocolAddRootSTLVToBuf [19:03:34]FM_MakeSignedData [19:03:34]FM_MakeSignedData [19:03:34]SAM_PROTO_SignData [19:03:34]wFMCommunicate request_size=4 [19:03:34]MH_SAM_APDU [19:03:34]CAPDU: 80 0D 01 02 [19:03:34]Write to MH i2c: E2 08 00 67 28 80 0D 01 02 00 00 00 00 08 [19:03:34]Write i2c OK [19:03:34]MH_I2C_Read... [19:03:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:35]Read from MH i2c: E2 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: E2 03 00 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: E2 03 00 67 28 00 90 00 03 [19:03:35]RAPDU: 90 00 [19:03:35]wFMCommunicate OK [19:03:35]wFMCommunicate request_size=255 [19:03:35]MH_SAM_APDU [19:03:35]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 C6 00 00 00 F4 03 04 00 08 6A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 [19:03:35]Write to MH i2c: E2 02 01 68 28 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 C6 00 00 00 F4 03 04 00 08 6A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 00 00 70 [19:03:35]Write i2c OK [19:03:35]MH_I2C_Read... [19:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:35]Read from MH i2c: E2 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: E2 03 00 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: E2 03 00 68 28 00 90 00 04 [19:03:35]RAPDU: 90 00 [19:03:35]wFMCommunicate OK [19:03:35]wFMCommunicate request_size=34 [19:03:35]MH_SAM_APDU [19:03:35]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 18 C3 01 00 35 04 06 00 83 D8 C7 18 A2 C2 [19:03:35]Write to MH i2c: E2 25 00 69 28 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 18 C3 01 00 35 04 06 00 83 D8 C7 18 A2 C2 00 00 41 [19:03:35]Write i2c OK [19:03:35]MH_I2C_Read... [19:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:35]Read from MH i2c: E2 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: E2 03 00 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: E2 03 00 69 28 00 90 00 05 [19:03:35]RAPDU: 90 00 [19:03:35]wFMCommunicate OK [19:03:35]wFMCommunicate request_size=4 [19:03:35]MH_SAM_APDU [19:03:35]CAPDU: 80 0D 03 02 [19:03:35]Write to MH i2c: E2 08 00 6A 28 80 0D 03 02 00 00 00 00 0D [19:03:35]Write i2c OK [19:03:35]MH_I2C_Read... [19:03:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:35]Read from MH i2c: E2 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: E2 0B 00 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: E2 0B 00 6A 28 00 9A 0F 7B D2 5C 45 AB 26 90 00 76 [19:03:35]RAPDU: 9A 0F 7B D2 5C 45 AB 26 90 00 [19:03:35]wFMCommunicate OK [19:03:35]SAM_PROTO_SignData done [19:03:35]FM_MakeSignedData done [19:03:35]CreateOFDProtocolMessage [19:03:35]wFMCommunicate request_size=4 [19:03:35]MH_SAM_APDU [19:03:35]CAPDU: 80 11 00 00 [19:03:35]Write to MH i2c: E2 08 00 6B 28 80 11 00 00 00 00 00 00 0D [19:03:35]Write i2c OK [19:03:35]MH_I2C_Read... [19:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:35]Read from MH i2c: E2 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: E2 17 00 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: E2 17 00 6B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5B [19:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [19:03:35]wFMCommunicate OK [19:03:35]CreateOFDProtocolMessage done [19:03:35]OFDSenderStorePacket 115480 [19:03:35]StoreOFDPacket docnum=115480 [19:03:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 C1 52 1F 01 ED 72 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 C6 00 00 00 F4 03 04 00 08 6A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 18 C3 01 00 35 04 06 00 83 D8 C7 18 A2 C2 9A 0F 7B D2 5C 45 AB 26 [19:03:35]CheckFolder [19:03:35]dirname=/storage/ofd_packets [19:03:35]CheckFolder done [19:03:35]ProducePacketName [19:03:35]name=ofd_packets/00115480 [19:03:35]NVStorageSaveData ofd_packets/00115480 [19:03:35]File name is /storage/ofd_packets/00115480 [19:03:35]Write 325 bytes [19:03:35]NVStorageSaveData done [19:03:35]OFDSenderStorePacket done [19:03:35]KKMCreateOFDPacket done [19:03:35]NVStorageSaveData kkm_last_timestamp [19:03:35]File name is /storage/kkm_last_timestamp [19:03:35]Write 4 bytes [19:03:35]NVStorageSaveData done [19:03:35]ExternCall_PrintAddStr [19:03:35]wPrintStart [19:03:35]Write to MH i2c: 01 00 00 6C 28 94 [19:03:35]Write i2c OK [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: 01 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: 01 07 00 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: 01 07 00 6C 28 00 00 00 00 00 FF 0F A9 [19:03:35]RasterBufferAndPrint [19:03:35]line Счет N : (3)343913 [19:03:35]line ИНН: 02508201610067 [19:03:35]line Контрольно-Кассовый Чек [19:03:35]line ПРОДАЖА [19:03:35]line Товар: 48743587 [19:03:35]line Сигареты Winston XStyle Silver [19:03:35]line 1.000 * 144.00 [19:03:35]line = 144.00 [19:03:35]line НДС 12% НСП 1% [19:03:35]line > о реализуемом товаре [19:03:35]line ИТОГО: 144.00 [19:03:35]line НСП 1% : 1.27 [19:03:35]line НДС 12% : 15.29 [19:03:35]line Наличными: 144.00 [19:03:35]line Безнал.: 0.00 [19:03:35]line Место: АЗС № 90 "Партнер Нефть" [19:03:35]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [19:03:35]line СНО: Общий режим [19:03:35]line Чек 198 22.09.2024 19:03 [19:03:35]line Смена: 471 ФФД: 1.0 [19:03:35]line ЗНМ: 0300000120 [19:03:35]line РНМ: 0000000000091831 [19:03:35]line Версия ККМ: 001 [19:03:35]line ФМ: 0000000000871830 [19:03:35]line ФД: 115480 [19:03:35]line ФПД: 144967076455106 [19:03:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T190336&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115480&fm=144967076455106&tin=02508201610067®Number=0000000000091831&sum=14400 [19:03:35]line 0 [19:03:35]written 0, free lines is 4095 [19:03:35]OFD Sender: Processing packet 115480 [packets to send 481, broken 480] [19:03:35]ProducePacketName [19:03:35]name=ofd_packets/00115480 [19:03:35]OFD Sender: To server: pG, [19:03:35]CommunicateWithHost lk.salyk.kg:30040 [19:03:35]ConnectInit lk.salyk.kg [19:03:35]Connected sock=5 [19:03:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 C1 52 1F 01 ED 72 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 C6 00 00 00 F4 03 04 00 08 6A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 18 C3 01 00 35 04 06 00 83 D8 C7 18 A2 C2 9A 0F 7B D2 5C 45 AB 26 [19:03:35]Write to MH i2c: 01 00 00 94 28 BC [19:03:35]Write i2c OK [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: 01 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: 01 07 00 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: 01 07 00 94 28 00 00 00 00 00 64 0C 33 [19:03:35]RasterBufferAndPrint [19:03:35]line [19:03:35]line [19:03:35]line [19:03:35]line [19:03:35]line [19:03:35]written 0, free lines is 3178 [19:03:35]MH_Cut [19:03:35]Write to MH i2c: D1 01 00 9B 28 01 95 [19:03:35]Write i2c OK [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: D1 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: D1 01 00 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: D1 01 00 9B 28 00 94 [19:03:35]Write to MH i2c: 01 00 00 9C 28 C4 [19:03:35]Write i2c OK [19:03:35]MH_I2C_Read... [19:03:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 11 A5 47 00 1D 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 18 C3 01 00 F4 03 04 00 4D 0F F0 66 B6 04 01 00 00 79 3B FD 34 1E 38 6D 3D [19:03:36]CommunicateWithHost err = 0 [19:03:36]CheckOFDResponse [19:03:36]1017 (14) - 77093643461234 [19:03:36]1041 (16) - 0000000000871830 [19:03:36]1040 (4) - 115480 [19:03:36]1012 (4) - 22.09.2024 12:36 [19:03:36]1206 (1) - 0 [19:03:36]OFD Sender: Remove packet 115480 [19:03:36]ProducePacketName [19:03:36]name=ofd_packets/00115480 [19:03:36]NVStorageDeleteData [19:03:36]OFD Sender: No OFD packet to send [19:03:37]*** Cut start [19:03:37]*** Partial cut [19:03:37]*** CUTSNS_PIN = 1 [19:03:37]*** CUTSNS_PIN = 0 [19:03:37]*** Brake cut motor [19:03:37]Read from MH i2c: 01 [19:03:37]MH_I2C_Read... [19:03:37]*** Stop cut motor [19:03:37]*** Cut end [19:03:37]Read from MH i2c: 01 07 00 [19:03:37]MH_I2C_Read... [19:03:37]Read from MH i2c: 01 07 00 9C 28 00 00 00 00 00 FF 0F D9 [19:03:37]process_action close_receipt done [19:03:37]requested_data is exist [19:03:37]produce_requested_data [19:03:37]requested_item fm.sn is exist - process it [19:03:37]wFMCommunicate request_size=4 [19:03:37]MH_SAM_APDU [19:03:37]CAPDU: 80 11 00 00 [19:03:37]Write to MH i2c: E2 08 00 9D 28 80 11 00 00 00 00 00 00 3F [19:03:37]Write i2c OK [19:03:37]MH_I2C_Read... [19:03:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:37]Read from MH i2c: E2 [19:03:37]MH_I2C_Read... [19:03:37]Read from MH i2c: E2 17 00 [19:03:37]MH_I2C_Read... [19:03:37]Read from MH i2c: E2 17 00 9D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8D [19:03:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [19:03:37]wFMCommunicate OK [19:03:37]requested_item fd.num is exist - process it [19:03:37]SAM_PROTO_GetFieldsCounters [19:03:37]wFMCommunicate request_size=4 [19:03:37]MH_SAM_APDU [19:03:37]CAPDU: 80 13 00 00 [19:03:37]Write to MH i2c: E2 08 00 9E 28 80 13 00 00 00 00 00 00 42 [19:03:37]Write i2c OK [19:03:37]MH_I2C_Read... [19:03:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:38]Read from MH i2c: E2 [19:03:38]MH_I2C_Read... [19:03:38]Read from MH i2c: E2 62 00 [19:03:38]MH_I2C_Read... [19:03:38]Read from MH i2c: E2 62 00 9E 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 18 C3 01 00 0E 04 04 00 D7 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 61 [19: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 18 C3 01 00 0E 04 04 00 D7 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 [19:03:38]wFMCommunicate OK [19:03:38]SAM_PROTO_GetFieldsCounters done [19:03:38]requested_item shift.num is exist - process it [19:03:38]requested_item shift.opened is exist - process it [19:03:38]req_shift_opened [19:03:38]FM_GetShiftState [19:03:38]SAM_PROTO_GetShiftState [19:03:38]wFMCommunicate request_size=4 [19:03:38]MH_SAM_APDU [19:03:38]CAPDU: 80 13 01 00 [19:03:38]Write to MH i2c: E2 08 00 9F 28 80 13 01 00 00 00 00 00 44 [19:03:38]Write i2c OK [19:03:38]MH_I2C_Read... [19:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:38]Read from MH i2c: E2 [19:03:38]MH_I2C_Read... [19:03:38]Read from MH i2c: E2 0E 00 [19:03:38]MH_I2C_Read... [19:03:38]Read from MH i2c: E2 0E 00 9F 28 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 5D [19:03:38]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [19:03:38]wFMCommunicate OK [19:03:38]SAM_PROTO_GetShiftState done [19:03:38]FM_GetShiftState done [19:03:38]req_shift_opened done [19:03:38]requested_item shift.open_date is exist - process it [19:03:38]req_shift_open_date [19:03:38]req_shift_open_date done [19:03:38]produce_requested_data done [19:03:38]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115480,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [19:03:38]process_action_free close_receipt [19:03:38]json_value_free [19:03:38]json_value_free done [19:03:38]process_json_proto returns [19:03:38]Send response to host [19:03:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115480,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [19:03:38]free response buf [19:03:38]execute_script done [19:03:38]execute_script returns [19:03:38]free content buf [19:03:38]Sock 9.Close socket [19:03:38]Sock 9.Thread stoped [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:17]OFD Sender: No OFD packet to send [19:05:22]OFD Sender: No OFD packet to send [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:47]OFD Sender: No OFD packet to send [19:07:52]OFD Sender: No OFD packet to send [19:07:57]OFD Sender: No OFD packet to send [19:08:02]OFD Sender: No OFD packet to send [19:08:07]OFD Sender: No OFD packet to send [19:08:12]OFD Sender: No OFD packet to send [19:08:17]OFD Sender: No OFD packet to send [19:08:22]OFD Sender: No OFD packet to send [19:08:27]OFD Sender: No OFD packet to send [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:23]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:58]OFD Sender: No OFD packet to send [19:15:03]OFD Sender: No OFD packet to send [19:15:08]OFD Sender: No OFD packet to send [19:15:13]OFD Sender: No OFD packet to send [19:15:18]OFD Sender: No OFD packet to send [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:29]OFD Sender: No OFD packet to send [19:24:34]OFD Sender: No OFD packet to send [19:24:39]OFD Sender: No OFD packet to send [19:24:44]OFD Sender: No OFD packet to send [19:24:49]OFD Sender: No OFD packet to send [19:24:54]OFD Sender: No OFD packet to send [19:24:59]OFD Sender: No OFD packet to send [19:25:04]OFD Sender: No OFD packet to send [19:25:09]OFD Sender: No OFD packet to send [19:25:14]OFD Sender: No OFD packet to send [19:25:19]OFD Sender: No OFD packet to send [19:25:24]OFD Sender: No OFD packet to send [19:25:29]OFD Sender: No OFD packet to send [19:25:34]OFD Sender: No OFD packet to send [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26: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:25]OFD Sender: No OFD packet to send [19:30:30]OFD Sender: No OFD packet to send [19:30:35]OFD Sender: No OFD packet to send [19:30:40]OFD Sender: No OFD packet to send [19:30:45]OFD Sender: No OFD packet to send [19:30:50]OFD Sender: No OFD packet to send [19:30:55]OFD Sender: No OFD packet to send [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:10]OFD Sender: No OFD packet to send [19:31:15]OFD Sender: No OFD packet to send [19:31:20]OFD Sender: No OFD packet to send [19:31:25]OFD Sender: No OFD packet to send [19:31:30]OFD Sender: No OFD packet to send [19:31:35]OFD Sender: No OFD packet to send [19:31:40]OFD Sender: No OFD packet to send [19:31:45]OFD Sender: No OFD packet to send [19:31:50]OFD Sender: No OFD packet to send [19:31:54]accept exits with 8 [19:31:54]New connection [19:31:54]New thread 3066826084 created [19:31:54]Thread 3066682724 joined [19:31:54]Waiting for new connection... [19:31:54] Sock 8.Parse request [19:31:54]Sock 8.Check first char [19:31:54]Sock 8.First char is OK [19:31:54]request: POST /json_proto HTTP/1.0 [19:31:54]Method: POST [19:31:54]URL: /json_proto [19:31:54]Method is POST - this is cgi request [19:31:54]url: /json_proto [19:31:54]query_string will be loaded in cgi processing [19:31:54]execute_cgi json_proto POST (null) [19:31:54]execute_cgi path=json_proto method=POST [19:31:54]POST find Content-Length [19:31:54]Host: 172.17.41.136:8080 [19:31:54]Content-Length: 935 [19:31:54]Content-Type: application/json [19:31:54] [19:31:54]POST finish read [19:31:54]Found Content-Length = 935 [19:31:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343914", "tax_sys" : 0, "items" : [ { "code": "4700041420084", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST ANTIBACTERIAL 100 \u0448\u0442", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:54]execute_script... [19:31:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343914", "tax_sys" : 0, "items" : [ { "code": "4700041420084", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST ANTIBACTERIAL 100 \u0448\u0442", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:54]POST & json_proto [19:31:54]process_json_proto [19:31:54]json parsed OK: [19:31:54]protocol is kg_v1.0 [19:31:54]action value=close_receipt [19:31:54]process_action close_receipt [19:31:54]cmd_close_receipt [19:31:54]MH_GetDate [19:31:54]Write to MH i2c: F0 00 00 A0 28 B7 [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: F0 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: F0 09 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: F0 09 00 A0 28 00 AD 70 F0 66 1B D0 5A 64 DC [19:31:54]GetLastDocTimeStamp 1727031816 [19:31:54]current date 1727033517 [19:31:54]FM_GetShiftState [19:31:54]SAM_PROTO_GetShiftState [19:31:54]wFMCommunicate request_size=4 [19:31:54]MH_SAM_APDU [19:31:54]CAPDU: 80 13 01 00 [19:31:54]Write to MH i2c: E2 08 00 A1 28 80 13 01 00 00 00 00 00 46 [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:54]Read from MH i2c: E2 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 0E 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 0E 00 A1 28 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 5F [19:31:54]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [19:31:54]wFMCommunicate OK [19:31:54]SAM_PROTO_GetShiftState done [19:31:54]FM_GetShiftState done [19:31:54]opened in 1726965840 [19:31:54]opened+sec_in_day 1727052240 [19:31:54]quantity*price = 19000 [19:31:54]sum+1 = 19001 [19:31:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 320.00 НСП 1% : 2.83 НДС 12% : 33.98 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 199 22.09.2024 19:31 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115481 ФПД: 7855681198178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T193157&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115481&fm=7855681198178&tin=02508201610067®Number=0000000000091831&sum=32000 0 [19:31:56]StoreToDocumentArchive [19:31:56]shift 471 fd 115481 [19:31:56]save to /storage/0471/doc_00115481 [19:31:56]save last doc name /storage/0471/doc_00115481 to /storage/kkm_last_doc_name [19:31:56]save OK [19:31:56]Clear old archive folders... [19:31:56]ProcessDocumentItem done err = 0, tmpTLVsize=409 [19:31:56]tlvbuf is B6EBBA90 [19:31:56]SAM_PROTO_ClearQueue [19:31:56]wFMCommunicate request_size=4 [19:31:56]MH_SAM_APDU [19:31:56]CAPDU: 80 09 00 00 [19:31:56]Write to MH i2c: E2 08 00 AE 28 80 09 00 00 00 00 00 00 48 [19:31:56]Write i2c OK [19:31:56]MH_I2C_Read... [19:31:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:56]Read from MH i2c: E2 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 03 00 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 03 00 AE 28 00 90 00 4A [19:31:56]RAPDU: 90 00 [19:31:56]wFMCommunicate OK [19:31:56]SAM_PROTO_ClearQueue done [19:31:56]KKMCreateOFDPacket [19:31:56]OFDProtocolAddRootSTLVToBuf [19:31:56]FM_MakeSignedData [19:31:56]FM_MakeSignedData [19:31:56]SAM_PROTO_SignData [19:31:56]wFMCommunicate request_size=4 [19:31:56]MH_SAM_APDU [19:31:56]CAPDU: 80 0D 01 02 [19:31:56]Write to MH i2c: E2 08 00 AF 28 80 0D 01 02 00 00 00 00 50 [19:31:56]Write i2c OK [19:31:56]MH_I2C_Read... [19:31:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:56]Read from MH i2c: E2 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 03 00 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 03 00 AF 28 00 90 00 4B [19:31:56]RAPDU: 90 00 [19:31:56]wFMCommunicate OK [19:31:56]wFMCommunicate request_size=255 [19:31:56]MH_SAM_APDU [19:31:56]CAPDU: 80 0D 02 02 FA 03 00 99 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 [19:31:56]Write to MH i2c: E2 02 01 B0 28 80 0D 02 02 FA 00 03 00 99 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 00 00 89 [19:31:56]Write i2c OK [19:31:56]MH_I2C_Read... [19:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:56]Read from MH i2c: E2 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 03 00 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 03 00 B0 28 00 90 00 4C [19:31:56]RAPDU: 90 00 [19:31:56]wFMCommunicate OK [19:31:56]wFMCommunicate request_size=168 [19:31:56]MH_SAM_APDU [19:31:56]CAPDU: 80 0D 02 02 A3 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 AD 70 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 19 C3 01 00 35 04 06 00 07 25 0B 16 58 62 [19:31:56]Write to MH i2c: E2 AB 00 B1 28 80 0D 02 02 A3 00 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 AD 70 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 19 C3 01 00 35 04 06 00 07 25 0B 16 58 62 00 00 33 [19:31:56]Write i2c OK [19:31:56]MH_I2C_Read... [19:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:56]Read from MH i2c: E2 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 03 00 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 03 00 B1 28 00 90 00 4D [19:31:56]RAPDU: 90 00 [19:31:56]wFMCommunicate OK [19:31:56]wFMCommunicate request_size=4 [19:31:56]MH_SAM_APDU [19:31:56]CAPDU: 80 0D 03 02 [19:31:56]Write to MH i2c: E2 08 00 B2 28 80 0D 03 02 00 00 00 00 55 [19:31:56]Write i2c OK [19:31:56]MH_I2C_Read... [19:31:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:56]Read from MH i2c: E2 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 0B 00 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 0B 00 B2 28 00 EA 94 0F CD 9E 7A C8 A7 90 00 37 [19:31:56]RAPDU: EA 94 0F CD 9E 7A C8 A7 90 00 [19:31:56]wFMCommunicate OK [19:31:56]SAM_PROTO_SignData done [19:31:56]FM_MakeSignedData done [19:31:56]CreateOFDProtocolMessage [19:31:56]wFMCommunicate request_size=4 [19:31:56]MH_SAM_APDU [19:31:56]CAPDU: 80 11 00 00 [19:31:56]Write to MH i2c: E2 08 00 B3 28 80 11 00 00 00 00 00 00 55 [19:31:56]Write i2c OK [19:31:56]MH_I2C_Read... [19:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:56]Read from MH i2c: E2 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 17 00 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 17 00 B3 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A3 [19:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [19:31:56]wFMCommunicate OK [19:31:56]CreateOFDProtocolMessage done [19:31:56]OFDSenderStorePacket 115481 [19:31:56]StoreOFDPacket docnum=115481 [19:31:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 AD 01 00 00 3C 26 A5 01 C8 BE 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 AD 70 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 19 C3 01 00 35 04 06 00 07 25 0B 16 58 62 EA 94 0F CD 9E 7A C8 A7 [19:31:56]CheckFolder [19:31:56]dirname=/storage/ofd_packets [19:31:56]CheckFolder done [19:31:56]ProducePacketName [19:31:56]name=ofd_packets/00115481 [19:31:56]NVStorageSaveData ofd_packets/00115481 [19:31:56]File name is /storage/ofd_packets/00115481 [19:31:56]Write 459 bytes [19:31:56]NVStorageSaveData done [19:31:56]OFDSenderStorePacket done [19:31:56]KKMCreateOFDPacket done [19:31:56]NVStorageSaveData kkm_last_timestamp [19:31:56]File name is /storage/kkm_last_timestamp [19:31:56]Write 4 bytes [19:31:56]NVStorageSaveData done [19:31:56]ExternCall_PrintAddStr [19:31:56]wPrintStart [19:31:56]Write to MH i2c: 01 00 00 B4 28 DC [19:31:56]Write i2c OK [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: 01 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: 01 07 00 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: 01 07 00 B4 28 00 00 00 00 00 FF 0F F1 [19:31:56]RasterBufferAndPrint [19:31:56]line Счет N : (3)343914 [19:31:56]line ИНН: 02508201610067 [19:31:57]line Контрольно-Кассовый Чек [19:31:57]line ПРОДАЖА [19:31:57]line Товар: 4700041420084 [19:31:57]line Салфетки влажн BEST ANTIBACTERIAL 100 шт [19:31:57]line 1.000 * 190.00 [19:31:57]line = 190.00 [19:31:57]line НДС 12% НСП 1% [19:31:57]line > о реализуемом товаре [19:31:57]line Товар: 2000036220012 [19:31:57]line Кофе Капучино XL(GABB TRADE) [19:31:57]line 1.000 * 130.00 [19:31:57]line = 130.00 [19:31:57]line НДС 12% НСП 1% [19:31:57]line > о реализуемом товаре [19:31:57]line ИТОГО: 320.00 [19:31:57]line НСП 1% : 2.83 [19:31:57]line НДС 12% : 33.98 [19:31:57]line Наличными: 320.00 [19:31:57]line Безнал.: 0.00 [19:31:57]line Место: АЗС № 90 "Партнер Нефть" [19:31:57]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [19:31:57]line СНО: Общий режим [19:31:57]line Чек 199 22.09.2024 19:31 [19:31:57]line Смена: 471 ФФД: 1.0 [19:31:57]line ЗНМ: 0300000120 [19:31:57]line РНМ: 0000000000091831 [19:31:57]line Версия ККМ: 001 [19:31:57]line ФМ: 0000000000871830 [19:31:57]line ФД: 115481 [19:31:57]line ФПД: 7855681198178 [19:31:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T193157&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115481&fm=7855681198178&tin=02508201610067®Number=0000000000091831&sum=32000 [19:31:57]line 0 [19:31:57]OFD Sender: Processing packet 115481 [packets to send 481, broken 480] [19:31:57]ProducePacketName [19:31:57]name=ofd_packets/00115481 [19:31:57]OFD Sender: To server: pG, [19:31:57]CommunicateWithHost lk.salyk.kg:30040 [19:31:57]ConnectInit lk.salyk.kg [19:31:57]written 0, free lines is 4095 [19:31:57]Connected sock=9 [19:31:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 AD 01 00 00 3C 26 A5 01 C8 BE 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 AD 70 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 19 C3 01 00 35 04 06 00 07 25 0B 16 58 62 EA 94 0F CD 9E 7A C8 A7 [19:31:57]Write to MH i2c: 01 00 00 E3 28 0B [19:31:57]Write i2c OK [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: 01 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: 01 07 00 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: 01 07 00 E3 28 00 00 00 00 00 DA 0B F7 [19:31:57]RasterBufferAndPrint [19:31:57]line [19:31:57]line [19:31:57]line [19:31:57]line [19:31:57]line [19:31:57]written 0, free lines is 3040 [19:31:57]MH_Cut [19:31:57]Write to MH i2c: D1 01 00 EA 28 01 E4 [19:31:57]Write i2c OK [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: D1 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: D1 01 00 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: D1 01 00 EA 28 00 E3 [19:31:57]Write to MH i2c: 01 00 00 EB 28 13 [19:31:57]Write i2c OK [19:31:57]MH_I2C_Read... [19:31:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 21 69 47 00 E8 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 19 C3 01 00 F4 03 04 00 F2 15 F0 66 B6 04 01 00 00 01 7C D1 D1 F3 C1 81 13 [19:31:57]CommunicateWithHost err = 0 [19:31:57]CheckOFDResponse [19:31:57]1017 (14) - 77093643461234 [19:31:57]1041 (16) - 0000000000871830 [19:31:57]1040 (4) - 115481 [19:31:57]1012 (4) - 22.09.2024 13:04 [19:31:57]1206 (1) - 0 [19:31:57]OFD Sender: Remove packet 115481 [19:31:57]ProducePacketName [19:31:57]name=ofd_packets/00115481 [19:31:57]NVStorageDeleteData [19:31:58]OFD Sender: No OFD packet to send [19:31:59]*** Cut start [19:31:59]*** Partial cut [19:31:59]*** CUTSNS_PIN = 1 [19:31:59]*** CUTSNS_PIN = 0 [19:31:59]*** Brake cut motor [19:31:59]Read from MH i2c: 01 [19:31:59]MH_I2C_Read... [19:31:59]*** Stop cut motor [19:31:59]*** Cut end [19:31:59]Read from MH i2c: 01 07 00 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: 01 07 00 EB 28 00 00 00 00 00 FF 0F 28 [19:31:59]process_action close_receipt done [19:31:59]requested_data is exist [19:31:59]produce_requested_data [19:31:59]requested_item fm.sn is exist - process it [19:31:59]wFMCommunicate request_size=4 [19:31:59]MH_SAM_APDU [19:31:59]CAPDU: 80 11 00 00 [19:31:59]Write to MH i2c: E2 08 00 EC 28 80 11 00 00 00 00 00 00 8E [19:31:59]Write i2c OK [19:31:59]MH_I2C_Read... [19:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:59]Read from MH i2c: E2 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: E2 17 00 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: E2 17 00 EC 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 DC [19:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [19:31:59]wFMCommunicate OK [19:31:59]requested_item fd.num is exist - process it [19:31:59]SAM_PROTO_GetFieldsCounters [19:31:59]wFMCommunicate request_size=4 [19:31:59]MH_SAM_APDU [19:31:59]CAPDU: 80 13 00 00 [19:31:59]Write to MH i2c: E2 08 00 ED 28 80 13 00 00 00 00 00 00 91 [19:31:59]Write i2c OK [19:31:59]MH_I2C_Read... [19:31:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:59]Read from MH i2c: E2 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: E2 62 00 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: E2 62 00 ED 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 19 C3 01 00 0E 04 04 00 D7 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 B4 [19:31:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 19 C3 01 00 0E 04 04 00 D7 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 [19:31:59]wFMCommunicate OK [19:31:59]SAM_PROTO_GetFieldsCounters done [19:31:59]requested_item shift.num is exist - process it [19:31:59]requested_item shift.opened is exist - process it [19:31:59]req_shift_opened [19:31:59]FM_GetShiftState [19:31:59]SAM_PROTO_GetShiftState [19:31:59]wFMCommunicate request_size=4 [19:31:59]MH_SAM_APDU [19:31:59]CAPDU: 80 13 01 00 [19:31:59]Write to MH i2c: E2 08 00 EE 28 80 13 01 00 00 00 00 00 93 [19:31:59]Write i2c OK [19:31:59]MH_I2C_Read... [19:31:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:59]Read from MH i2c: E2 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: E2 0E 00 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: E2 0E 00 EE 28 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 AC [19:31:59]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [19:31:59]wFMCommunicate OK [19:31:59]SAM_PROTO_GetShiftState done [19:31:59]FM_GetShiftState done [19:31:59]req_shift_opened done [19:31:59]requested_item shift.open_date is exist - process it [19:31:59]req_shift_open_date [19:31:59]req_shift_open_date done [19:31:59]produce_requested_data done [19:31:59]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115481,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [19:31:59]process_action_free close_receipt [19:31:59]json_value_free [19:31:59]json_value_free done [19:31:59]process_json_proto returns [19:31:59]Send response to host [19:31:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115481,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [19:31:59]free response buf [19:31:59]execute_script done [19:31:59]execute_script returns [19:31:59]free content buf [19:31:59]Sock 8.Close socket [19:31:59]Sock 8.Thread stoped [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:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37: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:34]accept exits with 10 [19:38:34]New connection [19:38:34]New thread 3066682724 created [19:38:34]Thread 3066826084 joined [19:38:34]Waiting for new connection... [19:38:34] Sock 10.Parse request [19:38:34]Sock 10.Check first char [19:38:34]Sock 10.First char is OK [19:38:34]request: POST /json_proto HTTP/1.0 [19:38:34]Method: POST [19:38:34]URL: /json_proto [19:38:34]Method is POST - this is cgi request [19:38:34]url: /json_proto [19:38:34]query_string will be loaded in cgi processing [19:38:34]execute_cgi json_proto POST (null) [19:38:34]execute_cgi path=json_proto method=POST [19:38:34]POST find Content-Length [19:38:34]Host: 172.17.41.136:8080 [19:38:34]Content-Length: 647 [19:38:34]Content-Type: application/json [19:38:34] [19:38:34]POST finish read [19:38:34]Found Content-Length = 647 [19:38:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343915", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:34]execute_script... [19:38:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343915", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:34]POST & json_proto [19:38:34]process_json_proto [19:38:34]json parsed OK: [19:38:34]protocol is kg_v1.0 [19:38:34]action value=close_receipt [19:38:34]process_action close_receipt [19:38:34]cmd_close_receipt [19:38:34]MH_GetDate [19:38:34]Write to MH i2c: F0 00 00 EF 28 06 [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: F0 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: F0 09 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: F0 09 00 EF 28 00 3D 72 F0 66 1B D0 5A 64 BD [19:38:34]GetLastDocTimeStamp 1727033517 [19:38:34]current date 1727033917 [19:38:34]FM_GetShiftState [19:38:34]SAM_PROTO_GetShiftState [19:38:34]wFMCommunicate request_size=4 [19:38:34]MH_SAM_APDU [19:38:34]CAPDU: 80 13 01 00 [19:38:34]Write to MH i2c: E2 08 00 F0 28 80 13 01 00 00 00 00 00 95 [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:34]Read from MH i2c: E2 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 0E 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 0E 00 F0 28 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 AE [19:38:34]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [19:38:34]wFMCommunicate OK [19:38:34]SAM_PROTO_GetShiftState done [19:38:34]FM_GetShiftState done [19:38:34]opened in 1726965840 [19:38:34]opened+sec_in_day 1727052240 [19:38:34]quantity*price = 13000 [19:38:34]sum+1 = 13001 [19:38:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 200 22.09.2024 19:38 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115482 ФПД: 267734692924624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T193837&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115482&fm=267734692924624&tin=02508201610067®Number=0000000000091831&sum=13000 0 [19:38:35]StoreToDocumentArchive [19:38:35]shift 471 fd 115482 [19:38:35]save to /storage/0471/doc_00115482 [19:38:35]save last doc name /storage/0471/doc_00115482 to /storage/kkm_last_doc_name [19:38:35]save OK [19:38:35]Clear old archive folders... [19:38:35]ProcessDocumentItem done err = 0, tmpTLVsize=272 [19:38:35]tlvbuf is 01C25890 [19:38:35]SAM_PROTO_ClearQueue [19:38:35]wFMCommunicate request_size=4 [19:38:35]MH_SAM_APDU [19:38:35]CAPDU: 80 09 00 00 [19:38:35]Write to MH i2c: E2 08 00 FD 28 80 09 00 00 00 00 00 00 97 [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:35]Read from MH i2c: E2 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 03 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 03 00 FD 28 00 90 00 99 [19:38:35]RAPDU: 90 00 [19:38:35]wFMCommunicate OK [19:38:35]SAM_PROTO_ClearQueue done [19:38:35]KKMCreateOFDPacket [19:38:35]OFDProtocolAddRootSTLVToBuf [19:38:35]FM_MakeSignedData [19:38:35]FM_MakeSignedData [19:38:35]SAM_PROTO_SignData [19:38:35]wFMCommunicate request_size=4 [19:38:35]MH_SAM_APDU [19:38:35]CAPDU: 80 0D 01 02 [19:38:35]Write to MH i2c: E2 08 00 FE 28 80 0D 01 02 00 00 00 00 9F [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:35]Read from MH i2c: E2 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 03 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 03 00 FE 28 00 90 00 9A [19:38:35]RAPDU: 90 00 [19:38:35]wFMCommunicate OK [19:38:35]wFMCommunicate request_size=255 [19:38:35]MH_SAM_APDU [19:38:35]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 3D 72 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [19:38:35]Write to MH i2c: E2 02 01 FF 28 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 3D 72 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 DF [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:36]Read from MH i2c: E2 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 03 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 03 00 FF 28 00 90 00 9B [19:38:36]RAPDU: 90 00 [19:38:36]wFMCommunicate OK [19:38:36]wFMCommunicate request_size=31 [19:38:36]MH_SAM_APDU [19:38:36]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 33 30 10 04 04 00 1A C3 01 00 35 04 06 00 F3 80 D7 44 0C D0 [19:38:36]Write to MH i2c: E2 22 00 00 29 80 0D 02 02 1A 00 30 30 38 37 31 38 33 30 10 04 04 00 1A C3 01 00 35 04 06 00 F3 80 D7 44 0C D0 00 00 11 [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:36]Read from MH i2c: E2 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 03 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 03 00 00 29 00 90 00 9D [19:38:36]RAPDU: 90 00 [19:38:36]wFMCommunicate OK [19:38:36]wFMCommunicate request_size=4 [19:38:36]MH_SAM_APDU [19:38:36]CAPDU: 80 0D 03 02 [19:38:36]Write to MH i2c: E2 08 00 01 29 80 0D 03 02 00 00 00 00 A5 [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:36]Read from MH i2c: E2 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 0B 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 0B 00 01 29 00 E6 95 7A 33 96 ED 48 88 90 00 21 [19:38:36]RAPDU: E6 95 7A 33 96 ED 48 88 90 00 [19:38:36]wFMCommunicate OK [19:38:36]SAM_PROTO_SignData done [19:38:36]FM_MakeSignedData done [19:38:36]CreateOFDProtocolMessage [19:38:36]wFMCommunicate request_size=4 [19:38:36]MH_SAM_APDU [19:38:36]CAPDU: 80 11 00 00 [19:38:36]Write to MH i2c: E2 08 00 02 29 80 11 00 00 00 00 00 00 A5 [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:36]Read from MH i2c: E2 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 17 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 17 00 02 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F3 [19:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [19:38:36]wFMCommunicate OK [19:38:36]CreateOFDProtocolMessage done [19:38:36]OFDSenderStorePacket 115482 [19:38:36]StoreOFDPacket docnum=115482 [19:38:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 4D 6A 1C 01 3A BA 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 3D 72 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1A C3 01 00 35 04 06 00 F3 80 D7 44 0C D0 E6 95 7A 33 96 ED 48 88 [19:38:36]CheckFolder [19:38:36]dirname=/storage/ofd_packets [19:38:36]CheckFolder done [19:38:36]ProducePacketName [19:38:36]name=ofd_packets/00115482 [19:38:36]NVStorageSaveData ofd_packets/00115482 [19:38:36]File name is /storage/ofd_packets/00115482 [19:38:36]Write 322 bytes [19:38:36]NVStorageSaveData done [19:38:36]OFDSenderStorePacket done [19:38:36]KKMCreateOFDPacket done [19:38:36]NVStorageSaveData kkm_last_timestamp [19:38:36]File name is /storage/kkm_last_timestamp [19:38:36]Write 4 bytes [19:38:36]NVStorageSaveData done [19:38:36]ExternCall_PrintAddStr [19:38:36]wPrintStart [19:38:36]Write to MH i2c: 01 00 00 03 29 2C [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: 01 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: 01 07 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: 01 07 00 03 29 00 00 00 00 00 FF 0F 41 [19:38:36]RasterBufferAndPrint [19:38:36]line Счет N : (3)343915 [19:38:36]line ИНН: 02508201610067 [19:38:36]line Контрольно-Кассовый Чек [19:38:36]line ПРОДАЖА [19:38:36]line Товар: 47011656 [19:38:36]line Водка Пшеничная 0,1л [19:38:36]line 2.000 * 65.00 [19:38:36]line = 130.00 [19:38:36]line НДС 12% НСП 1% [19:38:36]line > о реализуемом товаре [19:38:36]line ИТОГО: 130.00 [19:38:36]line НСП 1% : 1.15 [19:38:36]line НДС 12% : 13.80 [19:38:36]line Наличными: 130.00 [19:38:36]line Безнал.: 0.00 [19:38:36]line Место: АЗС № 90 "Партнер Нефть" [19:38:36]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [19:38:36]line СНО: Общий режим [19:38:36]line Чек 200 22.09.2024 19:38 [19:38:36]line Смена: 471 ФФД: 1.0 [19:38:36]line ЗНМ: 0300000120 [19:38:36]line РНМ: 0000000000091831 [19:38:36]line Версия ККМ: 001 [19:38:36]line ФМ: 0000000000871830 [19:38:36]line ФД: 115482 [19:38:36]line ФПД: 267734692924624 [19:38:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T193837&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115482&fm=267734692924624&tin=02508201610067®Number=0000000000091831&sum=13000 [19:38:36]line 0 [19:38:36]written 0, free lines is 4095 [19:38:36]OFD Sender: Processing packet 115482 [packets to send 481, broken 480] [19:38:36]ProducePacketName [19:38:36]name=ofd_packets/00115482 [19:38:36]OFD Sender: To server: pG, [19:38:36]CommunicateWithHost lk.salyk.kg:30040 [19:38:36]ConnectInit lk.salyk.kg [19:38:36]Write to MH i2c: 01 00 00 2A 29 53 [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: 01 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: 01 07 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: 01 07 00 2A 29 00 00 00 00 00 83 0C E9 [19:38:36]RasterBufferAndPrint [19:38:36]line [19:38:36]line [19:38:36]line [19:38:36]line [19:38:36]line [19:38:36]written 0, free lines is 3207 [19:38:36]MH_Cut [19:38:36]Write to MH i2c: D1 01 00 31 29 01 2C [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: D1 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: D1 01 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: D1 01 00 31 29 00 2B [19:38:36]Write to MH i2c: 01 00 00 32 29 5B [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:37]Connected sock=9 [19:38:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 4D 6A 1C 01 3A BA 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 3D 72 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1A C3 01 00 35 04 06 00 F3 80 D7 44 0C D0 E6 95 7A 33 96 ED 48 88 [19:38:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D6 43 47 00 5D D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1A C3 01 00 F4 03 04 00 82 17 F0 66 B6 04 01 00 00 74 47 7B A9 DE DF 41 7D [19:38:37]CommunicateWithHost err = 0 [19:38:37]CheckOFDResponse [19:38:37]1017 (14) - 77093643461234 [19:38:37]1041 (16) - 0000000000871830 [19:38:37]1040 (4) - 115482 [19:38:37]1012 (4) - 22.09.2024 13:11 [19:38:37]1206 (1) - 0 [19:38:37]OFD Sender: Remove packet 115482 [19:38:37]ProducePacketName [19:38:37]name=ofd_packets/00115482 [19:38:37]NVStorageDeleteData [19:38:37]OFD Sender: No OFD packet to send [19:38:38]*** Cut start [19:38:38]*** Partial cut [19:38:38]*** CUTSNS_PIN = 1 [19:38:38]*** CUTSNS_PIN = 0 [19:38:38]*** Brake cut motor [19:38:38]Read from MH i2c: 01 [19:38:38]MH_I2C_Read... [19:38:38]*** Stop cut motor [19:38:38]*** Cut end [19:38:38]Read from MH i2c: 01 07 00 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: 01 07 00 32 29 00 00 00 00 00 FF 0F 70 [19:38:38]process_action close_receipt done [19:38:38]requested_data is exist [19:38:38]produce_requested_data [19:38:38]requested_item fm.sn is exist - process it [19:38:38]wFMCommunicate request_size=4 [19:38:38]MH_SAM_APDU [19:38:38]CAPDU: 80 11 00 00 [19:38:38]Write to MH i2c: E2 08 00 33 29 80 11 00 00 00 00 00 00 D6 [19:38:38]Write i2c OK [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: E2 [19:38:38]MH_I2C_Read... [19:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:38]Read from MH i2c: E2 17 00 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: E2 17 00 33 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 24 [19:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [19:38:38]wFMCommunicate OK [19:38:38]requested_item fd.num is exist - process it [19:38:38]SAM_PROTO_GetFieldsCounters [19:38:38]wFMCommunicate request_size=4 [19:38:38]MH_SAM_APDU [19:38:38]CAPDU: 80 13 00 00 [19:38:38]Write to MH i2c: E2 08 00 34 29 80 13 00 00 00 00 00 00 D9 [19:38:38]Write i2c OK [19:38:38]MH_I2C_Read... [19:38:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:38]Read from MH i2c: E2 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: E2 62 00 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: E2 62 00 34 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1A C3 01 00 0E 04 04 00 D7 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 00 [19:38:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1A C3 01 00 0E 04 04 00 D7 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 [19:38:38]wFMCommunicate OK [19:38:38]SAM_PROTO_GetFieldsCounters done [19:38:38]requested_item shift.num is exist - process it [19:38:38]requested_item shift.opened is exist - process it [19:38:38]req_shift_opened [19:38:38]FM_GetShiftState [19:38:38]SAM_PROTO_GetShiftState [19:38:38]wFMCommunicate request_size=4 [19:38:38]MH_SAM_APDU [19:38:38]CAPDU: 80 13 01 00 [19:38:38]Write to MH i2c: E2 08 00 35 29 80 13 01 00 00 00 00 00 DB [19:38:38]Write i2c OK [19:38:38]MH_I2C_Read... [19:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:39]Read from MH i2c: E2 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: E2 0E 00 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: E2 0E 00 35 29 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F4 [19:38:39]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [19:38:39]wFMCommunicate OK [19:38:39]SAM_PROTO_GetShiftState done [19:38:39]FM_GetShiftState done [19:38:39]req_shift_opened done [19:38:39]requested_item shift.open_date is exist - process it [19:38:39]req_shift_open_date [19:38:39]req_shift_open_date done [19:38:39]produce_requested_data done [19:38:39]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115482,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [19:38:39]process_action_free close_receipt [19:38:39]json_value_free [19:38:39]json_value_free done [19:38:39]process_json_proto returns [19:38:39]Send response to host [19:38:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115482,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [19:38:39]free response buf [19:38:39]execute_script done [19:38:39]execute_script returns [19:38:39]free content buf [19:38:39]Sock 10.Close socket [19:38:39]Sock 10.Thread stoped [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:13]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:13]OFD Sender: No OFD packet to send [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:14]accept exits with 8 [19:42:14]New connection [19:42:14]New thread 3066826084 created [19:42:14]Thread 3066682724 joined [19:42:14]Waiting for new connection... [19:42:14] Sock 8.Parse request [19:42:14]Sock 8.Check first char [19:42:14]Sock 8.First char is OK [19:42:14]request: POST /json_proto HTTP/1.0 [19:42:14]Method: POST [19:42:14]URL: /json_proto [19:42:14]Method is POST - this is cgi request [19:42:14]url: /json_proto [19:42:14]query_string will be loaded in cgi processing [19:42:14]execute_cgi json_proto POST (null) [19:42:14]execute_cgi path=json_proto method=POST [19:42:14]POST find Content-Length [19:42:14]Host: 172.17.41.136:8080 [19:42:14]Content-Length: 821 [19:42:14]Content-Type: application/json [19:42:14] [19:42:14]POST finish read [19:42:14]Found Content-Length = 821 [19:42:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343916", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:14]execute_script... [19: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 : (3)343916", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:14]POST & json_proto [19:42:14]process_json_proto [19:42:14]json parsed OK: [19:42:14]protocol is kg_v1.0 [19:42:14]action value=close_receipt [19:42:14]process_action close_receipt [19:42:14]cmd_close_receipt [19:42:14]MH_GetDate [19:42:14]Write to MH i2c: F0 00 00 36 29 4E [19:42:14]Write i2c OK [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: F0 [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: F0 09 00 [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: F0 09 00 36 29 00 19 73 F0 66 1B D0 5A 64 E2 [19:42:14]GetLastDocTimeStamp 1727033917 [19:42:14]current date 1727034137 [19:42:14]FM_GetShiftState [19:42:14]SAM_PROTO_GetShiftState [19:42:14]wFMCommunicate request_size=4 [19:42:14]MH_SAM_APDU [19:42:14]CAPDU: 80 13 01 00 [19:42:14]Write to MH i2c: E2 08 00 37 29 80 13 01 00 00 00 00 00 DD [19:42:14]Write i2c OK [19:42:14]MH_I2C_Read... [19:42:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:14]Read from MH i2c: E2 [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: E2 0E 00 [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: E2 0E 00 37 29 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F6 [19:42:14]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [19:42:14]wFMCommunicate OK [19:42:14]SAM_PROTO_GetShiftState done [19:42:14]FM_GetShiftState done [19:42:14]opened in 1726965840 [19:42:14]opened+sec_in_day 1727052240 [19:42:14]quantity*price = 4200 [19:42:14]sum+1 = 4201 [19:42:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 42.00 НСП 1% : 0.37 НДС 12% : 4.46 Наличными: 0.00 Безнал.: 42.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 201 22.09.2024 19:42 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115483 ФПД: 20776623401080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T194217&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115483&fm=20776623401080&tin=02508201610067®Number=0000000000091831&sum=4200 0 [19:42:15]StoreToDocumentArchive [19:42:15]shift 471 fd 115483 [19:42:15]save to /storage/0471/doc_00115483 [19:42:15]save last doc name /storage/0471/doc_00115483 to /storage/kkm_last_doc_name [19:42:15]save OK [19:42:15]Clear old archive folders... [19:42:15]ProcessDocumentItem done err = 0, tmpTLVsize=275 [19:42:15]tlvbuf is B6EBBBC0 [19:42:15]SAM_PROTO_ClearQueue [19:42:15]wFMCommunicate request_size=4 [19:42:15]MH_SAM_APDU [19:42:15]CAPDU: 80 09 00 00 [19:42:15]Write to MH i2c: E2 08 00 44 29 80 09 00 00 00 00 00 00 DF [19:42:15]Write i2c OK [19:42:15]MH_I2C_Read... [19:42:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:15]Read from MH i2c: E2 [19:42:15]MH_I2C_Read... [19:42:15]Read from MH i2c: E2 03 00 [19:42:15]MH_I2C_Read... [19:42:15]Read from MH i2c: E2 03 00 44 29 00 90 00 E1 [19:42:15]RAPDU: 90 00 [19:42:15]wFMCommunicate OK [19:42:15]SAM_PROTO_ClearQueue done [19:42:15]KKMCreateOFDPacket [19:42:15]OFDProtocolAddRootSTLVToBuf [19:42:15]FM_MakeSignedData [19:42:15]FM_MakeSignedData [19:42:15]SAM_PROTO_SignData [19:42:15]wFMCommunicate request_size=4 [19:42:15]MH_SAM_APDU [19:42:15]CAPDU: 80 0D 01 02 [19:42:15]Write to MH i2c: E2 08 00 45 29 80 0D 01 02 00 00 00 00 E7 [19:42:15]Write i2c OK [19:42:15]MH_I2C_Read... [19:42:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:16]Read from MH i2c: E2 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 03 00 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 03 00 45 29 00 90 00 E2 [19:42:16]RAPDU: 90 00 [19:42:16]wFMCommunicate OK [19:42:16]wFMCommunicate request_size=255 [19:42:16]MH_SAM_APDU [19:42:16]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 10 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 19 73 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 [19:42:16]Write to MH i2c: E2 02 01 46 29 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 10 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 19 73 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 00 00 DF [19:42:16]Write i2c OK [19:42:16]MH_I2C_Read... [19:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:16]Read from MH i2c: E2 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 03 00 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 03 00 46 29 00 90 00 E3 [19:42:16]RAPDU: 90 00 [19:42:16]wFMCommunicate OK [19:42:16]wFMCommunicate request_size=34 [19:42:16]MH_SAM_APDU [19:42:16]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1B C3 01 00 35 04 06 00 12 E5 6F 41 E8 78 [19:42:16]Write to MH i2c: E2 25 00 47 29 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1B C3 01 00 35 04 06 00 12 E5 6F 41 E8 78 00 00 8C [19:42:16]Write i2c OK [19:42:16]MH_I2C_Read... [19:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:16]Read from MH i2c: E2 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 03 00 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 03 00 47 29 00 90 00 E4 [19:42:16]RAPDU: 90 00 [19:42:16]wFMCommunicate OK [19:42:16]wFMCommunicate request_size=4 [19:42:16]MH_SAM_APDU [19:42:16]CAPDU: 80 0D 03 02 [19:42:16]Write to MH i2c: E2 08 00 48 29 80 0D 03 02 00 00 00 00 EC [19:42:16]Write i2c OK [19:42:16]MH_I2C_Read... [19:42:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:16]Read from MH i2c: E2 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 0B 00 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 0B 00 48 29 00 A4 96 FB 9B 0B 24 AA DC 90 00 72 [19:42:16]RAPDU: A4 96 FB 9B 0B 24 AA DC 90 00 [19:42:16]wFMCommunicate OK [19:42:16]SAM_PROTO_SignData done [19:42:16]FM_MakeSignedData done [19:42:16]CreateOFDProtocolMessage [19:42:16]wFMCommunicate request_size=4 [19:42:16]MH_SAM_APDU [19:42:16]CAPDU: 80 11 00 00 [19:42:16]Write to MH i2c: E2 08 00 49 29 80 11 00 00 00 00 00 00 EC [19:42:16]Write i2c OK [19:42:16]MH_I2C_Read... [19:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:16]Read from MH i2c: E2 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 17 00 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 17 00 49 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3A [19:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [19:42:16]wFMCommunicate OK [19:42:16]CreateOFDProtocolMessage done [19:42:16]OFDSenderStorePacket 115483 [19:42:16]StoreOFDPacket docnum=115483 [19:42:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 9E D9 1F 01 74 6A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 10 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 19 73 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1B C3 01 00 35 04 06 00 12 E5 6F 41 E8 78 A4 96 FB 9B 0B 24 AA DC [19:42:16]CheckFolder [19:42:16]dirname=/storage/ofd_packets [19:42:16]CheckFolder done [19:42:16]ProducePacketName [19:42:16]name=ofd_packets/00115483 [19:42:16]NVStorageSaveData ofd_packets/00115483 [19:42:16]File name is /storage/ofd_packets/00115483 [19:42:16]Write 325 bytes [19:42:16]NVStorageSaveData done [19:42:16]OFDSenderStorePacket done [19:42:16]KKMCreateOFDPacket done [19:42:16]NVStorageSaveData kkm_last_timestamp [19:42:16]File name is /storage/kkm_last_timestamp [19:42:16]Write 4 bytes [19:42:16]NVStorageSaveData done [19:42:16]ExternCall_PrintAddStr [19:42:16]wPrintStart [19:42:16]Write to MH i2c: 01 00 00 4A 29 73 [19:42:16]Write i2c OK [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: 01 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: 01 07 00 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: 01 07 00 4A 29 00 00 00 00 00 FF 0F 88 [19:42:16]RasterBufferAndPrint [19:42:16]line Счет N : (3)343916 [19:42:16]line ИНН: 02508201610067 [19:42:16]line Контрольно-Кассовый Чек [19:42:16]line ПРОДАЖА [19:42:16]line Товар: 5449000005489 [19:42:16]line Вода Бонаква 1л б/г [19:42:16]line 1.000 * 42.00 [19:42:16]line = 42.00 [19:42:16]line НДС 12% НСП 1% [19:42:16]line > о реализуемом товаре [19:42:16]line ИТОГО: 42.00 [19:42:16]line НСП 1% : 0.37 [19:42:16]line НДС 12% : 4.46 [19:42:16]line Наличными: 0.00 [19:42:16]line Безнал.: 42.00 [19:42:16]line Место: АЗС № 90 "Партнер Нефть" [19:42:16]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [19:42:16]line СНО: Общий режим [19:42:16]line Чек 201 22.09.2024 19:42 [19:42:16]line Смена: 471 ФФД: 1.0 [19:42:16]line ЗНМ: 0300000120 [19:42:16]line РНМ: 0000000000091831 [19:42:16]line Версия ККМ: 001 [19:42:16]line Платежная система: Бакай Банк [19:42:16]line ФМ: 0000000000871830 [19:42:16]line ФД: 115483 [19:42:16]line ФПД: 20776623401080 [19:42:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T194217&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115483&fm=20776623401080&tin=02508201610067®Number=0000000000091831&sum=4200 [19:42:16]line 0 [19:42:16]written 0, free lines is 4095 [19:42:16]OFD Sender: Processing packet 115483 [packets to send 481, broken 480] [19:42:16]ProducePacketName [19:42:16]name=ofd_packets/00115483 [19:42:16]OFD Sender: To server: pG, [19:42:16]CommunicateWithHost lk.salyk.kg:30040 [19:42:16]ConnectInit lk.salyk.kg [19:42:16]Connected sock=9 [19: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 31 38 33 30 27 01 00 00 9E D9 1F 01 74 6A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 10 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 19 73 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1B C3 01 00 35 04 06 00 12 E5 6F 41 E8 78 A4 96 FB 9B 0B 24 AA DC [19:42:16]Write to MH i2c: 01 00 00 73 29 9C [19:42:16]Write i2c OK [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: 01 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: 01 07 00 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: 01 07 00 73 29 00 00 00 00 00 4E 0C FD [19:42:16]RasterBufferAndPrint [19:42:16]line [19:42:16]line [19:42:16]line [19:42:16]line [19:42:16]line [19:42:16]written 0, free lines is 3156 [19:42:16]MH_Cut [19:42:16]Write to MH i2c: D1 01 00 7A 29 01 75 [19:42:16]Write i2c OK [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: D1 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: D1 01 00 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: D1 01 00 7A 29 00 74 [19:42:16]Write to MH i2c: 01 00 00 7B 29 A4 [19:42:16]Write i2c OK [19:42:16]MH_I2C_Read... [19:42:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 7F 75 47 00 41 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1B C3 01 00 F4 03 04 00 5E 18 F0 66 B6 04 01 00 00 2C 3B 2A 6B 5F 8F 28 9F [19:42:17]CommunicateWithHost err = 0 [19:42:17]CheckOFDResponse [19:42:17]1017 (14) - 77093643461234 [19:42:17]1041 (16) - 0000000000871830 [19:42:17]1040 (4) - 115483 [19:42:17]1012 (4) - 22.09.2024 13:15 [19:42:17]1206 (1) - 0 [19:42:17]OFD Sender: Remove packet 115483 [19:42:17]ProducePacketName [19:42:17]name=ofd_packets/00115483 [19:42:17]NVStorageDeleteData [19:42:17]OFD Sender: No OFD packet to send [19:42:18]*** Cut start [19:42:18]*** Partial cut [19:42:18]*** CUTSNS_PIN = 1 [19:42:18]*** CUTSNS_PIN = 0 [19:42:18]*** Brake cut motor [19:42:18]Read from MH i2c: 01 [19:42:18]MH_I2C_Read... [19:42:18]*** Stop cut motor [19:42:18]*** Cut end [19:42:18]Read from MH i2c: 01 07 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: 01 07 00 7B 29 00 00 00 00 00 FF 0F B9 [19:42:18]process_action close_receipt done [19:42:18]requested_data is exist [19:42:18]produce_requested_data [19:42:18]requested_item fm.sn is exist - process it [19:42:18]wFMCommunicate request_size=4 [19:42:18]MH_SAM_APDU [19:42:18]CAPDU: 80 11 00 00 [19:42:18]Write to MH i2c: E2 08 00 7C 29 80 11 00 00 00 00 00 00 1F [19:42:18]Write i2c OK [19:42:18]MH_I2C_Read... [19:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:18]Read from MH i2c: E2 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 17 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 17 00 7C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6D [19:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [19:42:18]wFMCommunicate OK [19:42:18]requested_item fd.num is exist - process it [19:42:18]SAM_PROTO_GetFieldsCounters [19:42:18]wFMCommunicate request_size=4 [19:42:18]MH_SAM_APDU [19:42:18]CAPDU: 80 13 00 00 [19:42:18]Write to MH i2c: E2 08 00 7D 29 80 13 00 00 00 00 00 00 22 [19:42:18]Write i2c OK [19:42:18]MH_I2C_Read... [19:42:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:19]Read from MH i2c: E2 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 62 00 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 62 00 7D 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1B C3 01 00 0E 04 04 00 D7 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 4D [19:42: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1B C3 01 00 0E 04 04 00 D7 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 [19:42:19]wFMCommunicate OK [19:42:19]SAM_PROTO_GetFieldsCounters done [19:42:19]requested_item shift.num is exist - process it [19:42:19]requested_item shift.opened is exist - process it [19:42:19]req_shift_opened [19:42:19]FM_GetShiftState [19:42:19]SAM_PROTO_GetShiftState [19:42:19]wFMCommunicate request_size=4 [19:42:19]MH_SAM_APDU [19:42:19]CAPDU: 80 13 01 00 [19:42:19]Write to MH i2c: E2 08 00 7E 29 80 13 01 00 00 00 00 00 24 [19:42:19]Write i2c OK [19:42:19]MH_I2C_Read... [19:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:19]Read from MH i2c: E2 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 0E 00 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 0E 00 7E 29 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 3D [19:42:19]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [19:42:19]wFMCommunicate OK [19:42:19]SAM_PROTO_GetShiftState done [19:42:19]FM_GetShiftState done [19:42:19]req_shift_opened done [19:42:19]requested_item shift.open_date is exist - process it [19:42:19]req_shift_open_date [19:42:19]req_shift_open_date done [19:42:19]produce_requested_data done [19:42:19]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115483,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [19:42:19]process_action_free close_receipt [19:42:19]json_value_free [19:42:19]json_value_free done [19:42:19]process_json_proto returns [19:42:19]Send response to host [19:42:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115483,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [19:42:19]free response buf [19:42:19]execute_script done [19:42:19]execute_script returns [19:42:19]free content buf [19:42:19]Sock 8.Close socket [19:42:19]Sock 8.Thread stoped [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:31]accept exits with 10 [19:45:31]New connection [19:45:31]New thread 3066682724 created [19:45:31]Thread 3066826084 joined [19:45:31]Waiting for new connection... [19:45:31] Sock 10.Parse request [19:45:31]Sock 10.Check first char [19:45:31]Sock 10.First char is OK [19:45:31]request: POST /json_proto HTTP/1.0 [19:45:31]Method: POST [19:45:31]URL: /json_proto [19:45:31]Method is POST - this is cgi request [19:45:31]url: /json_proto [19:45:31]query_string will be loaded in cgi processing [19:45:31]execute_cgi json_proto POST (null) [19:45:31]execute_cgi path=json_proto method=POST [19:45:31]POST find Content-Length [19:45:31]Host: 172.17.41.136:8080 [19:45:31]Content-Length: 653 [19:45:31]Content-Type: application/json [19:45:31] [19:45:31]POST finish read [19:45:31]Found Content-Length = 653 [19:45:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343917", "tax_sys" : 0, "items" : [ { "code": "4870215622016", "name": "\u0412\u043E\u0434\u043A\u0430 \u043E\u0441\u043E\u0431\u0430\u044F MOROSHA FOREST SOUL OF KYRG", "price" : 720.00, "quantity" : 1.000, "sum" : 720.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 720.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:31]execute_script... [19:45:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343917", "tax_sys" : 0, "items" : [ { "code": "4870215622016", "name": "\u0412\u043E\u0434\u043A\u0430 \u043E\u0441\u043E\u0431\u0430\u044F MOROSHA FOREST SOUL OF KYRG", "price" : 720.00, "quantity" : 1.000, "sum" : 720.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 720.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:31]POST & json_proto [19:45:31]process_json_proto [19:45:31]json parsed OK: [19:45:31]protocol is kg_v1.0 [19:45:31]action value=close_receipt [19:45:31]process_action close_receipt [19:45:31]cmd_close_receipt [19:45:31]MH_GetDate [19:45:31]Write to MH i2c: F0 00 00 7F 29 97 [19:45:31]Write i2c OK [19:45:31]MH_I2C_Read... [19:45:31]Read from MH i2c: F0 [19:45:31]MH_I2C_Read... [19:45:31]Read from MH i2c: F0 09 00 [19:45:31]MH_I2C_Read... [19:45:31]Read from MH i2c: F0 09 00 7F 29 00 DE 73 F0 66 1B D0 5A 64 F0 [19:45:31]GetLastDocTimeStamp 1727034137 [19:45:31]current date 1727034334 [19:45:31]FM_GetShiftState [19:45:31]SAM_PROTO_GetShiftState [19:45:31]wFMCommunicate request_size=4 [19:45:31]MH_SAM_APDU [19:45:31]CAPDU: 80 13 01 00 [19:45:31]Write to MH i2c: E2 08 00 80 29 80 13 01 00 00 00 00 00 26 [19:45:31]Write i2c OK [19:45:31]MH_I2C_Read... [19:45:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:31]Read from MH i2c: E2 [19:45:31]MH_I2C_Read... [19:45:31]Read from MH i2c: E2 0E 00 [19:45:31]MH_I2C_Read... [19:45:31]Read from MH i2c: E2 0E 00 80 29 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 3F [19:45:31]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [19:45:31]wFMCommunicate OK [19:45:31]SAM_PROTO_GetShiftState done [19:45:31]FM_GetShiftState done [19:45:31]opened in 1726965840 [19:45:31]opened+sec_in_day 1727052240 [19:45:31]quantity*price = 72000 [19:45:31]sum+1 = 72001 [19:45:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 720.00 НСП 1% : 6.37 НДС 12% : 76.46 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 202 22.09.2024 19:45 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115484 ФПД: 171846933328201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T194534&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115484&fm=171846933328201&tin=02508201610067®Number=0000000000091831&sum=72000 0 [19:45:32]StoreToDocumentArchive [19:45:32]shift 471 fd 115484 [19:45:32]save to /storage/0471/doc_00115484 [19:45:32]save last doc name /storage/0471/doc_00115484 to /storage/kkm_last_doc_name [19:45:32]save OK [19:45:32]Clear old archive folders... [19:45:32]ProcessDocumentItem done err = 0, tmpTLVsize=293 [19:45:32]tlvbuf is B6EBB7C0 [19:45:32]SAM_PROTO_ClearQueue [19:45:32]wFMCommunicate request_size=4 [19:45:32]MH_SAM_APDU [19:45:32]CAPDU: 80 09 00 00 [19:45:32]Write to MH i2c: E2 08 00 8D 29 80 09 00 00 00 00 00 00 28 [19:45:32]Write i2c OK [19:45:32]MH_I2C_Read... [19:45:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:32]Read from MH i2c: E2 [19:45:32]MH_I2C_Read... [19:45:32]Read from MH i2c: E2 03 00 [19:45:32]MH_I2C_Read... [19:45:32]Read from MH i2c: E2 03 00 8D 29 00 90 00 2A [19:45:32]RAPDU: 90 00 [19:45:32]wFMCommunicate OK [19:45:32]SAM_PROTO_ClearQueue done [19:45:32]KKMCreateOFDPacket [19:45:32]OFDProtocolAddRootSTLVToBuf [19:45:32]FM_MakeSignedData [19:45:32]FM_MakeSignedData [19:45:32]SAM_PROTO_SignData [19:45:32]wFMCommunicate request_size=4 [19:45:32]MH_SAM_APDU [19:45:32]CAPDU: 80 0D 01 02 [19:45:32]Write to MH i2c: E2 08 00 8E 29 80 0D 01 02 00 00 00 00 30 [19:45:32]Write i2c OK [19:45:32]MH_I2C_Read... [19:45:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:32]Read from MH i2c: E2 [19:45:32]MH_I2C_Read... [19:45:32]Read from MH i2c: E2 03 00 [19:45:32]MH_I2C_Read... [19:45:32]Read from MH i2c: E2 03 00 8E 29 00 90 00 2B [19:45:32]RAPDU: 90 00 [19:45:32]wFMCommunicate OK [19:45:32]wFMCommunicate request_size=255 [19:45:32]MH_SAM_APDU [19:45:32]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 31 35 36 32 32 30 31 36 06 04 33 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 BE D1 81 D0 BE D0 B1 D0 B0 D1 8F 20 4D 4F 52 4F 53 48 41 20 46 4F 52 45 53 54 20 53 4F 55 4C 20 4F 46 20 4B 59 52 47 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 19 01 00 00 00 13 04 06 00 40 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 DE 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 CA 00 00 00 F4 03 04 00 DE 73 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [19:45:32]Write to MH i2c: E2 02 01 8F 29 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 31 35 36 32 32 30 31 36 06 04 33 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 BE D1 81 D0 BE D0 B1 D0 B0 D1 8F 20 4D 4F 52 4F 53 48 41 20 46 4F 52 45 53 54 20 53 4F 55 4C 20 4F 46 20 4B 59 52 47 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 19 01 00 00 00 13 04 06 00 40 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 DE 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 CA 00 00 00 F4 03 04 00 DE 73 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 A6 [19:45:33]Write i2c OK [19:45:33]MH_I2C_Read... [19:45:33]OFD Sender: No OFD packet to send [19:45:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:33]Read from MH i2c: E2 [19:45:33]MH_I2C_Read... [19:45:33]Read from MH i2c: E2 03 00 [19:45:33]MH_I2C_Read... [19:45:33]Read from MH i2c: E2 03 00 8F 29 00 90 00 2C [19:45:33]RAPDU: 90 00 [19:45:33]wFMCommunicate OK [19:45:33]wFMCommunicate request_size=52 [19:45:33]MH_SAM_APDU [19:45:33]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1C C3 01 00 35 04 06 00 9C 4B 3B 6A B1 49 [19:45:33]Write to MH i2c: E2 37 00 90 29 80 0D 02 02 2F 00 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1C C3 01 00 35 04 06 00 9C 4B 3B 6A B1 49 00 00 54 [19:45:33]Write i2c OK [19:45:33]MH_I2C_Read... [19:45:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:33]Read from MH i2c: E2 [19:45:33]MH_I2C_Read... [19:45:33]Read from MH i2c: E2 03 00 [19:45:33]MH_I2C_Read... [19:45:33]Read from MH i2c: E2 03 00 90 29 00 90 00 2D [19:45:33]RAPDU: 90 00 [19:45:33]wFMCommunicate OK [19:45:33]wFMCommunicate request_size=4 [19:45:33]MH_SAM_APDU [19:45:33]CAPDU: 80 0D 03 02 [19:45:33]Write to MH i2c: E2 08 00 91 29 80 0D 03 02 00 00 00 00 35 [19:45:33]Write i2c OK [19:45:33]MH_I2C_Read... [19:45:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:33]Read from MH i2c: E2 [19:45:33]MH_I2C_Read... [19:45:33]Read from MH i2c: E2 0B 00 [19:45:33]MH_I2C_Read... [19:45:33]Read from MH i2c: E2 0B 00 91 29 00 9A 9A 23 70 FB 35 AC CA 90 00 A3 [19:45:33]RAPDU: 9A 9A 23 70 FB 35 AC CA 90 00 [19:45:33]wFMCommunicate OK [19:45:33]SAM_PROTO_SignData done [19:45:33]FM_MakeSignedData done [19:45:33]CreateOFDProtocolMessage [19:45:33]wFMCommunicate request_size=4 [19:45:33]MH_SAM_APDU [19:45:33]CAPDU: 80 11 00 00 [19:45:33]Write to MH i2c: E2 08 00 92 29 80 11 00 00 00 00 00 00 35 [19:45:33]Write i2c OK [19:45:33]MH_I2C_Read... [19:45:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:33]Read from MH i2c: E2 [19:45:33]MH_I2C_Read... [19:45:33]Read from MH i2c: E2 17 00 [19:45:33]MH_I2C_Read... [19:45:33]Read from MH i2c: E2 17 00 92 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 83 [19:45:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [19:45:33]wFMCommunicate OK [19:45:33]CreateOFDProtocolMessage done [19:45:33]OFDSenderStorePacket 115484 [19:45:33]StoreOFDPacket docnum=115484 [19:45:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 39 01 00 00 23 57 31 01 CC 4A 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 31 35 36 32 32 30 31 36 06 04 33 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 BE D1 81 D0 BE D0 B1 D0 B0 D1 8F 20 4D 4F 52 4F 53 48 41 20 46 4F 52 45 53 54 20 53 4F 55 4C 20 4F 46 20 4B 59 52 47 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 19 01 00 00 00 13 04 06 00 40 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 DE 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 CA 00 00 00 F4 03 04 00 DE 73 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1C C3 01 00 35 04 06 00 9C 4B 3B 6A B1 49 9A 9A 23 70 FB 35 AC CA [19:45:33]CheckFolder [19:45:33]dirname=/storage/ofd_packets [19:45:33]CheckFolder done [19:45:33]ProducePacketName [19:45:33]name=ofd_packets/00115484 [19:45:33]NVStorageSaveData ofd_packets/00115484 [19:45:33]File name is /storage/ofd_packets/00115484 [19:45:33]Write 343 bytes [19:45:33]NVStorageSaveData done [19:45:33]OFDSenderStorePacket done [19:45:33]KKMCreateOFDPacket done [19:45:33]NVStorageSaveData kkm_last_timestamp [19:45:33]File name is /storage/kkm_last_timestamp [19:45:33]Write 4 bytes [19:45:33]NVStorageSaveData done [19:45:33]ExternCall_PrintAddStr [19:45:33]wPrintStart [19:45:33]Write to MH i2c: 01 00 00 93 29 BC [19:45:33]Write i2c OK [19:45:33]MH_I2C_Read... [19:45:33]Read from MH i2c: 01 [19:45:33]MH_I2C_Read... [19:45:33]Read from MH i2c: 01 07 00 [19:45:33]MH_I2C_Read... [19:45:33]Read from MH i2c: 01 07 00 93 29 00 00 00 00 00 FF 0F D1 [19:45:33]RasterBufferAndPrint [19:45:33]line Счет N : (3)343917 [19:45:33]line ИНН: 02508201610067 [19:45:33]line Контрольно-Кассовый Чек [19:45:33]line ПРОДАЖА [19:45:33]line Товар: 4870215622016 [19:45:33]line Водка особая MOROSHA FOREST SOUL OF KYRG [19:45:33]line 1.000 * 720.00 [19:45:33]line = 720.00 [19:45:33]line НДС 12% НСП 1% [19:45:33]line > о реализуемом товаре [19:45:33]line ИТОГО: 720.00 [19:45:33]line НСП 1% : 6.37 [19:45:33]line НДС 12% : 76.46 [19:45:33]line Наличными: 720.00 [19:45:33]line Безнал.: 0.00 [19:45:33]line Место: АЗС № 90 "Партнер Нефть" [19:45:33]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [19:45:33]line СНО: Общий режим [19:45:33]line Чек 202 22.09.2024 19:45 [19:45:33]line Смена: 471 ФФД: 1.0 [19:45:33]line ЗНМ: 0300000120 [19:45:33]line РНМ: 0000000000091831 [19:45:33]line Версия ККМ: 001 [19:45:33]line ФМ: 0000000000871830 [19:45:33]line ФД: 115484 [19:45:33]line ФПД: 171846933328201 [19:45:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T194534&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115484&fm=171846933328201&tin=02508201610067®Number=0000000000091831&sum=72000 [19:45:33]line 0 [19:45:33]OFD Sender: Processing packet 115484 [packets to send 481, broken 480] [19:45:33]ProducePacketName [19:45:33]name=ofd_packets/00115484 [19:45:33]OFD Sender: To server: pG, [19:45:33]CommunicateWithHost lk.salyk.kg:30040 [19:45:33]ConnectInit lk.salyk.kg [19:45:33]written 0, free lines is 4095 [19:45:34]Connected sock=9 [19:45:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 39 01 00 00 23 57 31 01 CC 4A 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 31 35 36 32 32 30 31 36 06 04 33 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 BE D1 81 D0 BE D0 B1 D0 B0 D1 8F 20 4D 4F 52 4F 53 48 41 20 46 4F 52 45 53 54 20 53 4F 55 4C 20 4F 46 20 4B 59 52 47 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 19 01 00 00 00 13 04 06 00 40 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 DE 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 CA 00 00 00 F4 03 04 00 DE 73 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1C C3 01 00 35 04 06 00 9C 4B 3B 6A B1 49 9A 9A 23 70 FB 35 AC CA [19:45:34]Write to MH i2c: 01 00 00 BB 29 E4 [19:45:34]Write i2c OK [19:45:34]MH_I2C_Read... [19:45:34]Read from MH i2c: 01 [19:45:34]MH_I2C_Read... [19:45:34]Read from MH i2c: 01 07 00 [19:45:34]MH_I2C_Read... [19:45:34]Read from MH i2c: 01 07 00 BB 29 00 00 00 00 00 5E 0C 55 [19:45:34]RasterBufferAndPrint [19:45:34]line [19:45:34]line [19:45:34]line [19:45:34]line [19:45:34]line [19:45:34]written 0, free lines is 3169 [19:45:34]MH_Cut [19:45:34]Write to MH i2c: D1 01 00 C2 29 01 BD [19:45:34]Write i2c OK [19:45:34]MH_I2C_Read... [19:45:34]Read from MH i2c: D1 [19:45:34]MH_I2C_Read... [19:45:34]Read from MH i2c: D1 01 00 [19:45:34]MH_I2C_Read... [19:45:34]Read from MH i2c: D1 01 00 C2 29 00 BC [19:45:34]Write to MH i2c: 01 00 00 C3 29 EC [19:45:34]Write i2c OK [19:45:34]MH_I2C_Read... [19:45:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C1 E0 47 00 78 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1C C3 01 00 F4 03 04 00 23 19 F0 66 B6 04 01 00 00 09 93 2F 57 98 98 FE 55 [19:45:34]CommunicateWithHost err = 0 [19:45:34]CheckOFDResponse [19:45:34]1017 (14) - 77093643461234 [19:45:34]1041 (16) - 0000000000871830 [19:45:34]1040 (4) - 115484 [19:45:34]1012 (4) - 22.09.2024 13:18 [19:45:34]1206 (1) - 0 [19:45:34]OFD Sender: Remove packet 115484 [19:45:34]ProducePacketName [19:45:34]name=ofd_packets/00115484 [19:45:34]NVStorageDeleteData [19:45:34]OFD Sender: No OFD packet to send [19:45:35]*** Cut start [19:45:35]*** Partial cut [19:45:35]*** CUTSNS_PIN = 1 [19:45:35]*** CUTSNS_PIN = 0 [19:45:35]*** Brake cut motor [19:45:36]Read from MH i2c: 01 [19:45:36]MH_I2C_Read... [19:45:36]*** Stop cut motor [19:45:36]*** Cut end [19:45:36]Read from MH i2c: 01 07 00 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: 01 07 00 C3 29 00 00 00 00 00 FF 0F 01 [19:45:36]process_action close_receipt done [19:45:36]requested_data is exist [19:45:36]produce_requested_data [19:45:36]requested_item fm.sn is exist - process it [19:45:36]wFMCommunicate request_size=4 [19:45:36]MH_SAM_APDU [19:45:36]CAPDU: 80 11 00 00 [19:45:36]Write to MH i2c: E2 08 00 C4 29 80 11 00 00 00 00 00 00 67 [19:45:36]Write i2c OK [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: E2 [19:45:36]MH_I2C_Read... [19:45:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:36]Read from MH i2c: E2 17 00 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: E2 17 00 C4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B5 [19:45:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [19:45:36]wFMCommunicate OK [19:45:36]requested_item fd.num is exist - process it [19:45:36]SAM_PROTO_GetFieldsCounters [19:45:36]wFMCommunicate request_size=4 [19:45:36]MH_SAM_APDU [19:45:36]CAPDU: 80 13 00 00 [19:45:36]Write to MH i2c: E2 08 00 C5 29 80 13 00 00 00 00 00 00 6A [19:45:36]Write i2c OK [19:45:36]MH_I2C_Read... [19:45:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:36]Read from MH i2c: E2 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: E2 62 00 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: E2 62 00 C5 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1C C3 01 00 0E 04 04 00 D7 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 99 [19:45:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1C C3 01 00 0E 04 04 00 D7 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 [19:45:36]wFMCommunicate OK [19:45:36]SAM_PROTO_GetFieldsCounters done [19:45:36]requested_item shift.num is exist - process it [19:45:36]requested_item shift.opened is exist - process it [19:45:36]req_shift_opened [19:45:36]FM_GetShiftState [19:45:36]SAM_PROTO_GetShiftState [19:45:36]wFMCommunicate request_size=4 [19:45:36]MH_SAM_APDU [19:45:36]CAPDU: 80 13 01 00 [19:45:36]Write to MH i2c: E2 08 00 C6 29 80 13 01 00 00 00 00 00 6C [19:45:36]Write i2c OK [19:45:36]MH_I2C_Read... [19:45:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:36]Read from MH i2c: E2 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: E2 0E 00 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: E2 0E 00 C6 29 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 85 [19:45:36]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [19:45:36]wFMCommunicate OK [19:45:36]SAM_PROTO_GetShiftState done [19:45:36]FM_GetShiftState done [19:45:36]req_shift_opened done [19:45:36]requested_item shift.open_date is exist - process it [19:45:36]req_shift_open_date [19:45:36]req_shift_open_date done [19:45:36]produce_requested_data done [19:45:36]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115484,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [19:45:36]process_action_free close_receipt [19:45:36]json_value_free [19:45:36]json_value_free done [19:45:36]process_json_proto returns [19:45:36]Send response to host [19:45:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115484,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [19:45:36]free response buf [19:45:36]execute_script done [19:45:36]execute_script returns [19:45:36]free content buf [19:45:36]Sock 10.Close socket [19:45:36]Sock 10.Thread stoped [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19: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]OFD Sender: No OFD packet to send [19:46:40]OFD Sender: No OFD packet to send [19:46:45]OFD Sender: No OFD packet to send [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:05]OFD Sender: No OFD packet to send [19:47:10]OFD Sender: No OFD packet to send [19:47:15]OFD Sender: No OFD packet to send [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:49]accept exits with 8 [19:50:49]New connection [19:50:49]New thread 3066826084 created [19:50:49]Thread 3066682724 joined [19:50:49]Waiting for new connection... [19:50:49] Sock 8.Parse request [19:50:49]Sock 8.Check first char [19:50:49]Sock 8.First char is OK [19:50:49]request: POST /json_proto HTTP/1.0 [19:50:49]Method: POST [19:50:49]URL: /json_proto [19:50:49]Method is POST - this is cgi request [19:50:49]url: /json_proto [19:50:49]query_string will be loaded in cgi processing [19:50:49]execute_cgi json_proto POST (null) [19:50:49]execute_cgi path=json_proto method=POST [19:50:49]POST find Content-Length [19:50:49]Host: 172.17.41.136:8080 [19:50:49]Content-Length: 652 [19:50:49]Content-Type: application/json [19:50:49] [19:50:49]POST finish read [19:50:49]Found Content-Length = 652 [19:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343918", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:49]execute_script... [19:50:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343918", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:49]POST & json_proto [19:50:49]process_json_proto [19:50:49]json parsed OK: [19:50:49]protocol is kg_v1.0 [19:50:49]action value=close_receipt [19:50:49]process_action close_receipt [19:50:49]cmd_close_receipt [19:50:49]MH_GetDate [19:50:49]Write to MH i2c: F0 00 00 C7 29 DF [19:50:49]Write i2c OK [19:50:49]MH_I2C_Read... [19:50:49]Read from MH i2c: F0 [19:50:49]MH_I2C_Read... [19:50:49]Read from MH i2c: F0 09 00 [19:50:49]MH_I2C_Read... [19:50:49]Read from MH i2c: F0 09 00 C7 29 00 1C 75 F0 66 1B D0 5A 64 78 [19:50:49]GetLastDocTimeStamp 1727034334 [19:50:49]current date 1727034652 [19:50:49]FM_GetShiftState [19:50:49]SAM_PROTO_GetShiftState [19:50:49]wFMCommunicate request_size=4 [19:50:49]MH_SAM_APDU [19:50:49]CAPDU: 80 13 01 00 [19:50:49]Write to MH i2c: E2 08 00 C8 29 80 13 01 00 00 00 00 00 6E [19:50:49]Write i2c OK [19:50:49]MH_I2C_Read... [19:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:49]Read from MH i2c: E2 [19:50:49]MH_I2C_Read... [19:50:49]Read from MH i2c: E2 0E 00 [19:50:49]MH_I2C_Read... [19:50:49]Read from MH i2c: E2 0E 00 C8 29 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 87 [19:50:49]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [19:50:49]wFMCommunicate OK [19:50:49]SAM_PROTO_GetShiftState done [19:50:49]FM_GetShiftState done [19:50:49]opened in 1726965840 [19:50:49]opened+sec_in_day 1727052240 [19:50:49]quantity*price = 25000 [19:50:49]sum+1 = 25001 [19:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 203 22.09.2024 19:50 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115485 ФПД: 227283675415406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T195052&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115485&fm=227283675415406&tin=02508201610067®Number=0000000000091831&sum=25000 0 [19:50:50]StoreToDocumentArchive [19:50:50]shift 471 fd 115485 [19:50:50]save to /storage/0471/doc_00115485 [19:50:50]save last doc name /storage/0471/doc_00115485 to /storage/kkm_last_doc_name [19:50:50]save OK [19:50:50]Clear old archive folders... [19:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=284 [19:50:50]tlvbuf is 01C1B260 [19:50:50]SAM_PROTO_ClearQueue [19:50:50]wFMCommunicate request_size=4 [19:50:50]MH_SAM_APDU [19:50:50]CAPDU: 80 09 00 00 [19:50:50]Write to MH i2c: E2 08 00 D5 29 80 09 00 00 00 00 00 00 70 [19:50:50]Write i2c OK [19:50:50]MH_I2C_Read... [19:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:50]Read from MH i2c: E2 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: E2 03 00 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: E2 03 00 D5 29 00 90 00 72 [19:50:50]RAPDU: 90 00 [19:50:50]wFMCommunicate OK [19:50:50]SAM_PROTO_ClearQueue done [19:50:50]KKMCreateOFDPacket [19:50:50]OFDProtocolAddRootSTLVToBuf [19:50:50]FM_MakeSignedData [19:50:50]FM_MakeSignedData [19:50:50]SAM_PROTO_SignData [19:50:50]wFMCommunicate request_size=4 [19:50:50]MH_SAM_APDU [19:50:50]CAPDU: 80 0D 01 02 [19:50:50]Write to MH i2c: E2 08 00 D6 29 80 0D 01 02 00 00 00 00 78 [19:50:50]Write i2c OK [19:50:50]MH_I2C_Read... [19:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:50]Read from MH i2c: E2 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: E2 03 00 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: E2 03 00 D6 29 00 90 00 73 [19:50:50]RAPDU: 90 00 [19:50:50]wFMCommunicate OK [19:50:50]wFMCommunicate request_size=255 [19:50:50]MH_SAM_APDU [19:50:50]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 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 5F 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 CB 00 00 00 F4 03 04 00 1C 75 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [19:50:50]Write to MH i2c: E2 02 01 D7 29 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 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 5F 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 CB 00 00 00 F4 03 04 00 1C 75 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 3F [19:50:50]Write i2c OK [19:50:50]MH_I2C_Read... [19:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:51]Read from MH i2c: E2 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 03 00 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 03 00 D7 29 00 90 00 74 [19:50:51]RAPDU: 90 00 [19:50:51]wFMCommunicate OK [19:50:51]wFMCommunicate request_size=43 [19:50:51]MH_SAM_APDU [19:50:51]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1D C3 01 00 35 04 06 00 CE B6 9A BC 83 6E [19:50:51]Write to MH i2c: E2 2E 00 D8 29 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1D C3 01 00 35 04 06 00 CE B6 9A BC 83 6E 00 00 0A [19:50:51]Write i2c OK [19:50:51]MH_I2C_Read... [19:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:51]Read from MH i2c: E2 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 03 00 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 03 00 D8 29 00 90 00 75 [19:50:51]RAPDU: 90 00 [19:50:51]wFMCommunicate OK [19:50:51]wFMCommunicate request_size=4 [19:50:51]MH_SAM_APDU [19:50:51]CAPDU: 80 0D 03 02 [19:50:51]Write to MH i2c: E2 08 00 D9 29 80 0D 03 02 00 00 00 00 7D [19:50:51]Write i2c OK [19:50:51]MH_I2C_Read... [19:50:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:51]Read from MH i2c: E2 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 0B 00 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 0B 00 D9 29 00 36 D6 6B F7 3D DB E8 C0 90 00 AC [19:50:51]RAPDU: 36 D6 6B F7 3D DB E8 C0 90 00 [19:50:51]wFMCommunicate OK [19:50:51]SAM_PROTO_SignData done [19:50:51]FM_MakeSignedData done [19:50:51]CreateOFDProtocolMessage [19:50:51]wFMCommunicate request_size=4 [19:50:51]MH_SAM_APDU [19:50:51]CAPDU: 80 11 00 00 [19:50:51]Write to MH i2c: E2 08 00 DA 29 80 11 00 00 00 00 00 00 7D [19:50:51]Write i2c OK [19:50:51]MH_I2C_Read... [19:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:51]Read from MH i2c: E2 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 17 00 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 17 00 DA 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CB [19:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [19:50:51]wFMCommunicate OK [19:50:51]CreateOFDProtocolMessage done [19:50:51]OFDSenderStorePacket 115485 [19:50:51]StoreOFDPacket docnum=115485 [19:50:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 B4 14 28 01 FD 5F 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 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 5F 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 CB 00 00 00 F4 03 04 00 1C 75 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1D C3 01 00 35 04 06 00 CE B6 9A BC 83 6E 36 D6 6B F7 3D DB E8 C0 [19:50:51]CheckFolder [19:50:51]dirname=/storage/ofd_packets [19:50:51]CheckFolder done [19:50:51]ProducePacketName [19:50:51]name=ofd_packets/00115485 [19:50:51]NVStorageSaveData ofd_packets/00115485 [19:50:51]File name is /storage/ofd_packets/00115485 [19:50:51]Write 334 bytes [19:50:51]NVStorageSaveData done [19:50:51]OFDSenderStorePacket done [19:50:51]KKMCreateOFDPacket done [19:50:51]NVStorageSaveData kkm_last_timestamp [19:50:51]File name is /storage/kkm_last_timestamp [19:50:51]Write 4 bytes [19:50:51]NVStorageSaveData done [19:50:51]ExternCall_PrintAddStr [19:50:51]wPrintStart [19:50:51]Write to MH i2c: 01 00 00 DB 29 04 [19:50:51]Write i2c OK [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: 01 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: 01 07 00 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: 01 07 00 DB 29 00 00 00 00 00 FF 0F 19 [19:50:51]RasterBufferAndPrint [19:50:51]line Счет N : (3)343918 [19:50:51]line ИНН: 02508201610067 [19:50:51]line Контрольно-Кассовый Чек [19:50:51]line ПРОДАЖА [19:50:51]line Товар: 2000036190018 [19:50:51]line Кофе Американо XL(GABB TRADE) [19:50:51]line 2.000 * 125.00 [19:50:51]line = 250.00 [19:50:51]line НДС 12% НСП 1% [19:50:51]line > о реализуемом товаре [19:50:51]line ИТОГО: 250.00 [19:50:51]line НСП 1% : 2.21 [19:50:51]line НДС 12% : 26.55 [19:50:51]line Наличными: 250.00 [19:50:51]line Безнал.: 0.00 [19:50:51]line Место: АЗС № 90 "Партнер Нефть" [19:50:51]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [19:50:51]line СНО: Общий режим [19:50:51]line Чек 203 22.09.2024 19:50 [19:50:51]line Смена: 471 ФФД: 1.0 [19:50:51]line ЗНМ: 0300000120 [19:50:51]line РНМ: 0000000000091831 [19:50:51]line Версия ККМ: 001 [19:50:51]line ФМ: 0000000000871830 [19:50:51]line ФД: 115485 [19:50:51]line ФПД: 227283675415406 [19:50:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T195052&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115485&fm=227283675415406&tin=02508201610067®Number=0000000000091831&sum=25000 [19:50:51]line 0 [19:50:51]written 0, free lines is 4095 [19:50:51]OFD Sender: Processing packet 115485 [packets to send 481, broken 480] [19:50:51]ProducePacketName [19:50:51]name=ofd_packets/00115485 [19:50:51]OFD Sender: To server: pG, [19:50:51]CommunicateWithHost lk.salyk.kg:30040 [19:50:51]ConnectInit lk.salyk.kg [19:50:51]Write to MH i2c: 01 00 00 03 2A 2D [19:50:51]Write i2c OK [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: 01 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: 01 07 00 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: 01 07 00 03 2A 00 00 00 00 00 62 0C A2 [19:50:51]RasterBufferAndPrint [19:50:51]line [19:50:51]line [19:50:51]line [19:50:51]line [19:50:51]line [19:50:51]written 0, free lines is 3173 [19:50:51]MH_Cut [19:50:51]Write to MH i2c: D1 01 00 0A 2A 01 06 [19:50:51]Write i2c OK [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: D1 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: D1 01 00 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: D1 01 00 0A 2A 00 05 [19:50:51]Write to MH i2c: 01 00 00 0B 2A 35 [19:50:51]Write i2c OK [19:50:51]MH_I2C_Read... [19:50:53]*** Cut start [19:50:53]*** Partial cut [19:50:53]*** CUTSNS_PIN = 1 [19:50:53]*** CUTSNS_PIN = 0 [19:50:53]*** Brake cut motor [19:50:53]Read from MH i2c: 01 [19:50:53]MH_I2C_Read... [19:50:53]*** Stop cut motor [19:50:53]*** Cut end [19:50:53]Read from MH i2c: 01 07 00 [19:50:53]MH_I2C_Read... [19:50:53]Read from MH i2c: 01 07 00 0B 2A 00 00 00 00 00 FF 0F 4A [19:50:53]process_action close_receipt done [19:50:53]requested_data is exist [19:50:53]produce_requested_data [19:50:53]requested_item fm.sn is exist - process it [19:50:53]wFMCommunicate request_size=4 [19:50:53]MH_SAM_APDU [19:50:53]CAPDU: 80 11 00 00 [19:50:53]Write to MH i2c: E2 08 00 0C 2A 80 11 00 00 00 00 00 00 B0 [19:50:53]Write i2c OK [19:50:53]MH_I2C_Read... [19:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:53]Read from MH i2c: E2 [19:50:53]MH_I2C_Read... [19:50:53]Read from MH i2c: E2 17 00 [19:50:53]MH_I2C_Read... [19:50:53]Read from MH i2c: E2 17 00 0C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FE [19:50:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [19:50:53]wFMCommunicate OK [19:50:53]requested_item fd.num is exist - process it [19:50:53]SAM_PROTO_GetFieldsCounters [19:50:53]wFMCommunicate request_size=4 [19:50:53]MH_SAM_APDU [19:50:53]CAPDU: 80 13 00 00 [19:50:53]Write to MH i2c: E2 08 00 0D 2A 80 13 00 00 00 00 00 00 B3 [19:50:53]Write i2c OK [19:50:53]MH_I2C_Read... [19:50:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:53]Read from MH i2c: E2 [19:50:53]MH_I2C_Read... [19:50:53]Read from MH i2c: E2 62 00 [19:50:53]MH_I2C_Read... [19:50:53]Read from MH i2c: E2 62 00 0D 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1D C3 01 00 0E 04 04 00 D7 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 E6 [19:50:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1D C3 01 00 0E 04 04 00 D7 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 [19:50:53]wFMCommunicate OK [19:50:53]SAM_PROTO_GetFieldsCounters done [19:50:53]requested_item shift.num is exist - process it [19:50:53]requested_item shift.opened is exist - process it [19:50:53]req_shift_opened [19:50:53]FM_GetShiftState [19:50:53]SAM_PROTO_GetShiftState [19:50:53]wFMCommunicate request_size=4 [19:50:53]MH_SAM_APDU [19:50:53]CAPDU: 80 13 01 00 [19:50:53]Write to MH i2c: E2 08 00 0E 2A 80 13 01 00 00 00 00 00 B5 [19:50:53]Write i2c OK [19:50:53]MH_I2C_Read... [19:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:54]Read from MH i2c: E2 [19:50:54]MH_I2C_Read... [19:50:54]Read from MH i2c: E2 0E 00 [19:50:54]MH_I2C_Read... [19:50:54]Read from MH i2c: E2 0E 00 0E 2A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 CE [19:50:54]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [19:50:54]wFMCommunicate OK [19:50:54]SAM_PROTO_GetShiftState done [19:50:54]FM_GetShiftState done [19:50:54]req_shift_opened done [19:50:54]requested_item shift.open_date is exist - process it [19:50:54]req_shift_open_date [19:50:54]req_shift_open_date done [19:50:54]produce_requested_data done [19:50:54]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115485,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [19:50:54]process_action_free close_receipt [19:50:54]json_value_free [19:50:54]json_value_free done [19:50:54]process_json_proto returns [19:50:54]Send response to host [19:50:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115485,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [19:50:54]free response buf [19:50:54]execute_script done [19:50:54]execute_script returns [19:50:54]free content buf [19:50:54]Sock 8.Close socket [19:50:54]Sock 8.Thread stoped [19:53:04]ConnectInit Can't connect to host [19:53:04]CommunicateWithHost connect error [19:53:04]CommunicateWithHost err = -1 [19:53:04]OFD Sender: Server communicate error [19:53:09]OFD Sender: Processing packet 115485 [packets to send 481, broken 480] [19:53:09]ProducePacketName [19:53:09]name=ofd_packets/00115485 [19:53:09]OFD Sender: To server: pG, [19:53:09]CommunicateWithHost lk.salyk.kg:30040 [19:53:09]ConnectInit lk.salyk.kg [19:53:10]Connected sock=8 [19:53:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 B4 14 28 01 FD 5F 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 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 5F 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 CB 00 00 00 F4 03 04 00 1C 75 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1D C3 01 00 35 04 06 00 CE B6 9A BC 83 6E 36 D6 6B F7 3D DB E8 C0 [19:53:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6B B9 47 00 92 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1D C3 01 00 F4 03 04 00 EB 1A F0 66 B6 04 01 00 00 53 84 2B 67 1C 25 95 88 [19:53:10]CommunicateWithHost err = 0 [19:53:10]CheckOFDResponse [19:53:10]1017 (14) - 77093643461234 [19:53:10]1041 (16) - 0000000000871830 [19:53:10]1040 (4) - 115485 [19:53:10]1012 (4) - 22.09.2024 13:26 [19:53:10]1206 (1) - 0 [19:53:10]OFD Sender: Remove packet 115485 [19:53:10]ProducePacketName [19:53:10]name=ofd_packets/00115485 [19:53:10]NVStorageDeleteData [19:53:11]OFD Sender: No OFD packet to send [19:53:16]OFD Sender: No OFD packet to send [19:53:21]OFD Sender: No OFD packet to send [19:53:26]OFD Sender: No OFD packet to send [19:53:31]OFD Sender: No OFD packet to send [19:53:36]OFD Sender: No OFD packet to send [19:53:41]OFD Sender: No OFD packet to send [19:53:46]OFD Sender: No OFD packet to send [19:53:51]OFD Sender: No OFD packet to send [19:53:56]OFD Sender: No OFD packet to send [19:54:01]OFD Sender: No OFD packet to send [19:54:06]OFD Sender: No OFD packet to send [19:54:11]OFD Sender: No OFD packet to send [19:54:16]OFD Sender: No OFD packet to send [19:54:21]OFD Sender: No OFD packet to send [19:54:26]OFD Sender: No OFD packet to send [19:54:31]OFD Sender: No OFD packet to send [19:54:36]OFD Sender: No OFD packet to send [19:54:41]OFD Sender: No OFD packet to send [19:54:46]OFD Sender: No OFD packet to send [19:54:51]OFD Sender: No OFD packet to send [19:54:56]OFD Sender: No OFD packet to send [19:55:01]OFD Sender: No OFD packet to send [19:55:06]OFD Sender: No OFD packet to send [19:55:11]OFD Sender: No OFD packet to send [19:55:16]OFD Sender: No OFD packet to send [19:55:21]OFD Sender: No OFD packet to send [19:55:26]OFD Sender: No OFD packet to send [19:55:31]OFD Sender: No OFD packet to send [19:55:36]OFD Sender: No OFD packet to send [19:55:41]OFD Sender: No OFD packet to send [19:55:46]OFD Sender: No OFD packet to send [19:55:51]OFD Sender: No OFD packet to send [19:55:56]OFD Sender: No OFD packet to send [19:56:01]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]OFD Sender: No OFD packet to send [19:57:26]OFD Sender: No OFD packet to send [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]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:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [20:01:12]OFD Sender: No OFD packet to send [20:01:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]accept exits with 9 [20:05:42]New connection [20:05:42]New thread 3066682724 created [20:05:42]Thread 3066826084 joined [20:05:42]Waiting for new connection... [20:05:42] Sock 9.Parse request [20:05:42]Sock 9.Check first char [20:05:42]Sock 9.First char is OK [20:05:42]request: POST /json_proto HTTP/1.0 [20:05:42]Method: POST [20:05:42]URL: /json_proto [20:05:42]Method is POST - this is cgi request [20:05:42]url: /json_proto [20:05:42]query_string will be loaded in cgi processing [20:05:42]execute_cgi json_proto POST (null) [20:05:42]execute_cgi path=json_proto method=POST [20:05:42]POST find Content-Length [20:05:42]Host: 172.17.41.136:8080 [20:05:42]Content-Length: 1422 [20:05:42]Content-Type: application/json [20:05:42] [20:05:42]POST finish read [20:05:42]Found Content-Length = 1422 [20:05:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343919", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:42]execute_script... [20:05:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343919", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:42]POST & json_proto [20:05:42]process_json_proto [20:05:42]json parsed OK: [20:05:42]protocol is kg_v1.0 [20:05:42]action value=close_receipt [20:05:42]process_action close_receipt [20:05:42]cmd_close_receipt [20:05:42]MH_GetDate [20:05:42]Write to MH i2c: F0 00 00 0F 2A 28 [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: F0 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: F0 09 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: F0 09 00 0F 2A 00 99 78 F0 66 1B D0 5A 64 41 [20:05:42]GetLastDocTimeStamp 1727034652 [20:05:42]current date 1727035545 [20:05:42]FM_GetShiftState [20:05:42]SAM_PROTO_GetShiftState [20:05:42]wFMCommunicate request_size=4 [20:05:42]MH_SAM_APDU [20:05:42]CAPDU: 80 13 01 00 [20:05:42]Write to MH i2c: E2 08 00 10 2A 80 13 01 00 00 00 00 00 B7 [20:05:42]OFD Sender: No OFD packet to send [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 0E 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 0E 00 10 2A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D0 [20:05:42]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:05:42]wFMCommunicate OK [20:05:42]SAM_PROTO_GetShiftState done [20:05:42]FM_GetShiftState done [20:05:42]opened in 1726965840 [20:05:42]opened+sec_in_day 1727052240 [20:05:42]quantity*price = 5000 [20:05:42]sum+1 = 5001 [20:05:42]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 1.000 * 55.00 = 55.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032760017 Слойка DC треугольная мясо110г 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032800010 Сочник DC творог 75 г 1.000 * 30.00 = 30.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.76 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 204 22.09.2024 20:05 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115486 ФПД: 77269419107126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T200545&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115486&fm=77269419107126&tin=02508201610067®Number=0000000000091831&sum=20000 0 [20:05:44]StoreToDocumentArchive [20:05:44]shift 471 fd 115486 [20:05:44]save to /storage/0471/doc_00115486 [20:05:44]save last doc name /storage/0471/doc_00115486 to /storage/kkm_last_doc_name [20:05:44]save OK [20:05:44]Clear old archive folders... [20:05:44]ProcessDocumentItem done err = 0, tmpTLVsize=604 [20:05:44]tlvbuf is 01C94180 [20:05:44]SAM_PROTO_ClearQueue [20:05:44]wFMCommunicate request_size=4 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 09 00 00 [20:05:44]Write to MH i2c: E2 08 00 1D 2A 80 09 00 00 00 00 00 00 B9 [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:44]Read from MH i2c: E2 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 1D 2A 00 90 00 BB [20:05:44]RAPDU: 90 00 [20:05:44]wFMCommunicate OK [20:05:44]SAM_PROTO_ClearQueue done [20:05:44]KKMCreateOFDPacket [20:05:44]OFDProtocolAddRootSTLVToBuf [20:05:44]FM_MakeSignedData [20:05:44]FM_MakeSignedData [20:05:44]SAM_PROTO_SignData [20:05:44]wFMCommunicate request_size=4 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 0D 01 02 [20:05:44]Write to MH i2c: E2 08 00 1E 2A 80 0D 01 02 00 00 00 00 C1 [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:44]Read from MH i2c: E2 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 1E 2A 00 90 00 BC [20:05:44]RAPDU: 90 00 [20:05:44]wFMCommunicate OK [20:05:44]wFMCommunicate request_size=255 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 0D 02 02 FA 03 00 5C 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 [20:05:44]Write to MH i2c: E2 02 01 1F 2A 80 0D 02 02 FA 00 03 00 5C 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 00 00 BF [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:44]Read from MH i2c: E2 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 1F 2A 00 90 00 BD [20:05:44]RAPDU: 90 00 [20:05:44]wFMCommunicate OK [20:05:44]wFMCommunicate request_size=255 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 0D 02 02 FA 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 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 B0 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 [20:05:44]Write to MH i2c: E2 02 01 20 2A 80 0D 02 02 FA 00 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 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 B0 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 00 00 28 [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:44]Read from MH i2c: E2 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 20 2A 00 90 00 BE [20:05:44]RAPDU: 90 00 [20:05:44]wFMCommunicate OK [20:05:44]wFMCommunicate request_size=113 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 0D 02 02 6C 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 CC 00 00 00 F4 03 04 00 99 78 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1E C3 01 00 35 04 06 00 46 46 B0 47 23 36 [20:05:44]Write to MH i2c: E2 74 00 21 2A 80 0D 02 02 6C 00 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 CC 00 00 00 F4 03 04 00 99 78 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1E C3 01 00 35 04 06 00 46 46 B0 47 23 36 00 00 D5 [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:44]Read from MH i2c: E2 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 21 2A 00 90 00 BF [20:05:44]RAPDU: 90 00 [20:05:44]wFMCommunicate OK [20:05:44]wFMCommunicate request_size=4 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 0D 03 02 [20:05:44]Write to MH i2c: E2 08 00 22 2A 80 0D 03 02 00 00 00 00 C7 [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:44]Read from MH i2c: E2 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 0B 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 0B 00 22 2A 00 A1 F3 48 A9 90 D9 9D BE 90 00 11 [20:05:44]RAPDU: A1 F3 48 A9 90 D9 9D BE 90 00 [20:05:44]wFMCommunicate OK [20:05:44]SAM_PROTO_SignData done [20:05:44]FM_MakeSignedData done [20:05:44]CreateOFDProtocolMessage [20:05:44]wFMCommunicate request_size=4 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 11 00 00 [20:05:44]Write to MH i2c: E2 08 00 23 2A 80 11 00 00 00 00 00 00 C7 [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:44]Read from MH i2c: E2 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 17 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 17 00 23 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 15 [20:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:05:44]wFMCommunicate OK [20:05:44]CreateOFDProtocolMessage done [20:05:44]OFDSenderStorePacket 115486 [20:05:44]StoreOFDPacket docnum=115486 [20:05:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 70 02 00 00 EB 57 68 02 48 17 5A 03 01 00 03 00 5C 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 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 B0 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 CC 00 00 00 F4 03 04 00 99 78 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1E C3 01 00 35 04 06 00 46 46 B0 47 23 36 A1 F3 48 A9 90 D9 9D BE [20:05:44]CheckFolder [20:05:44]dirname=/storage/ofd_packets [20:05:44]CheckFolder done [20:05:44]ProducePacketName [20:05:44]name=ofd_packets/00115486 [20:05:44]NVStorageSaveData ofd_packets/00115486 [20:05:44]File name is /storage/ofd_packets/00115486 [20:05:44]Write 654 bytes [20:05:44]NVStorageSaveData done [20:05:44]OFDSenderStorePacket done [20:05:44]KKMCreateOFDPacket done [20:05:44]NVStorageSaveData kkm_last_timestamp [20:05:44]File name is /storage/kkm_last_timestamp [20:05:44]Write 4 bytes [20:05:44]NVStorageSaveData done [20:05:44]ExternCall_PrintAddStr [20:05:44]wPrintStart [20:05:44]Write to MH i2c: 01 00 00 24 2A 4E [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: 01 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: 01 07 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: 01 07 00 24 2A 00 00 00 00 00 FF 0F 63 [20:05:44]RasterBufferAndPrint [20:05:44]line Счет N : (3)343919 [20:05:44]line ИНН: 02508201610067 [20:05:44]line Контрольно-Кассовый Чек [20:05:44]line ПРОДАЖА [20:05:44]line Товар: 4700000160358 [20:05:44]line Вода Легенда 1л [20:05:44]line 1.000 * 50.00 [20:05:44]line = 50.00 [20:05:44]line НДС 12% НСП 1% [20:05:44]line > о реализуемом товаре [20:05:44]line Товар: 4870112003925 [20:05:44]line Конд ULKER-Albeni 40gr (6*24) [20:05:44]line 1.000 * 55.00 [20:05:44]line = 55.00 [20:05:44]line НДС 12% НСП 1% [20:05:44]line > о реализуемом товаре [20:05:44]line Товар: 2000032760017 [20:05:44]line Слойка DC треугольная мясо110г [20:05:44]line 1.000 * 65.00 [20:05:44]line = 65.00 [20:05:44]line НДС 12% НСП 1% [20:05:44]line > о реализуемом товаре [20:05:45]line Товар: 2000032800010 [20:05:45]line Сочник DC творог 75 г [20:05:45]line 1.000 * 30.00 [20:05:45]line = 30.00 [20:05:45]line НДС 12% НСП 1% [20:05:45]line > о реализуемом товаре [20:05:45]line ИТОГО: 200.00 [20:05:45]line НСП 1% : 1.76 [20:05:45]line НДС 12% : 21.24 [20:05:45]line Наличными: 200.00 [20:05:45]line Безнал.: 0.00 [20:05:45]line Место: АЗС № 90 "Партнер Нефть" [20:05:45]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:05:45]line СНО: Общий режим [20:05:45]line Чек 204 22.09.2024 20:05 [20:05:45]line Смена: 471 ФФД: 1.0 [20:05:45]line ЗНМ: 0300000120 [20:05:45]line РНМ: 0000000000091831 [20:05:45]line Версия ККМ: 001 [20:05:45]line ФМ: 0000000000871830 [20:05:45]line ФД: 115486 [20:05:45]line ФПД: 77269419107126 [20:05:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T200545&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115486&fm=77269419107126&tin=02508201610067®Number=0000000000091831&sum=20000 [20:05:45]OFD Sender: Processing packet 115486 [packets to send 481, broken 480] [20:05:45]ProducePacketName [20:05:45]name=ofd_packets/00115486 [20:05:45]OFD Sender: To server: pG, [20:05:45]CommunicateWithHost lk.salyk.kg:30040 [20:05:45]ConnectInit lk.salyk.kg [20:05:45]line 0 [20:05:45]written 0, free lines is 4095 [20:05:45]Connected sock=11 [20:05:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 70 02 00 00 EB 57 68 02 48 17 5A 03 01 00 03 00 5C 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 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 B0 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 CC 00 00 00 F4 03 04 00 99 78 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1E C3 01 00 35 04 06 00 46 46 B0 47 23 36 A1 F3 48 A9 90 D9 9D BE [20:05:45]Write to MH i2c: 01 00 00 5E 2A 88 [20:05:45]Write i2c OK [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: 01 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: 01 07 00 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: 01 07 00 5E 2A 00 00 00 00 00 E1 0A 7A [20:05:45]RasterBufferAndPrint [20:05:45]line [20:05:45]line [20:05:45]line [20:05:45]line [20:05:45]line [20:05:45]written 0, free lines is 2789 [20:05:45]MH_Cut [20:05:45]Write to MH i2c: D1 01 00 65 2A 01 61 [20:05:45]Write i2c OK [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: D1 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: D1 01 00 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: D1 01 00 65 2A 00 60 [20:05:45]Write to MH i2c: 01 00 00 66 2A 90 [20:05:45]Write i2c OK [20:05:45]MH_I2C_Read... [20:05:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 9A 33 47 00 24 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1E C3 01 00 F4 03 04 00 DF 1D F0 66 B6 04 01 00 00 4C 87 E5 9F A7 C7 D3 F8 [20:05:46]CommunicateWithHost err = 0 [20:05:46]CheckOFDResponse [20:05:46]1017 (14) - 77093643461234 [20:05:46]1041 (16) - 0000000000871830 [20:05:46]1040 (4) - 115486 [20:05:46]1012 (4) - 22.09.2024 13:38 [20:05:46]1206 (1) - 0 [20:05:46]OFD Sender: Remove packet 115486 [20:05:46]ProducePacketName [20:05:46]name=ofd_packets/00115486 [20:05:46]NVStorageDeleteData [20:05:46]OFD Sender: No OFD packet to send [20:05:47]*** Cut start [20:05:47]*** Partial cut [20:05:47]*** CUTSNS_PIN = 1 [20:05:47]*** CUTSNS_PIN = 0 [20:05:47]*** Brake cut motor [20:05:48]Read from MH i2c: 01 [20:05:48]MH_I2C_Read... [20:05:48]*** Stop cut motor [20:05:48]*** Cut end [20:05:48]Read from MH i2c: 01 07 00 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: 01 07 00 66 2A 00 00 00 00 00 FF 0F A5 [20:05:48]process_action close_receipt done [20:05:48]requested_data is exist [20:05:48]produce_requested_data [20:05:48]requested_item fm.sn is exist - process it [20:05:48]wFMCommunicate request_size=4 [20:05:48]MH_SAM_APDU [20:05:48]CAPDU: 80 11 00 00 [20:05:48]Write to MH i2c: E2 08 00 67 2A 80 11 00 00 00 00 00 00 0B [20:05:48]Write i2c OK [20:05:48]MH_I2C_Read... [20:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:48]Read from MH i2c: E2 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: E2 17 00 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: E2 17 00 67 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 59 [20:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:05:48]wFMCommunicate OK [20:05:48]requested_item fd.num is exist - process it [20:05:48]SAM_PROTO_GetFieldsCounters [20:05:48]wFMCommunicate request_size=4 [20:05:48]MH_SAM_APDU [20:05:48]CAPDU: 80 13 00 00 [20:05:48]Write to MH i2c: E2 08 00 68 2A 80 13 00 00 00 00 00 00 0E [20:05:48]Write i2c OK [20:05:48]MH_I2C_Read... [20:05:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:48]Read from MH i2c: E2 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: E2 62 00 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: E2 62 00 68 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1E C3 01 00 0E 04 04 00 D7 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 45 [20:05:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1E C3 01 00 0E 04 04 00 D7 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 [20:05:48]wFMCommunicate OK [20:05:48]SAM_PROTO_GetFieldsCounters done [20:05:48]requested_item shift.num is exist - process it [20:05:48]requested_item shift.opened is exist - process it [20:05:48]req_shift_opened [20:05:48]FM_GetShiftState [20:05:48]SAM_PROTO_GetShiftState [20:05:48]wFMCommunicate request_size=4 [20:05:48]MH_SAM_APDU [20:05:48]CAPDU: 80 13 01 00 [20:05:48]Write to MH i2c: E2 08 00 69 2A 80 13 01 00 00 00 00 00 10 [20:05:48]Write i2c OK [20:05:48]MH_I2C_Read... [20:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:48]Read from MH i2c: E2 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: E2 0E 00 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: E2 0E 00 69 2A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 29 [20:05:48]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:05:48]wFMCommunicate OK [20:05:48]SAM_PROTO_GetShiftState done [20:05:48]FM_GetShiftState done [20:05:48]req_shift_opened done [20:05:48]requested_item shift.open_date is exist - process it [20:05:48]req_shift_open_date [20:05:48]req_shift_open_date done [20:05:48]produce_requested_data done [20:05:48]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115486,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [20:05:48]process_action_free close_receipt [20:05:48]json_value_free [20:05:48]json_value_free done [20:05:48]process_json_proto returns [20:05:48]Send response to host [20:05:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115486,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [20:05:48]free response buf [20:05:48]execute_script done [20:05:48]execute_script returns [20:05:48]free content buf [20:05:48]Sock 9.Close socket [20:05:48]Sock 9.Thread stoped [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:01]accept exits with 8 [20:12:01]New connection [20:12:01]New thread 3066826084 created [20:12:01]Thread 3066682724 joined [20:12:01]Waiting for new connection... [20:12:01] Sock 8.Parse request [20:12:01]Sock 8.Check first char [20:12:01]Sock 8.First char is OK [20:12:01]request: POST /json_proto HTTP/1.0 [20:12:01]Method: POST [20:12:01]URL: /json_proto [20:12:01]Method is POST - this is cgi request [20:12:01]url: /json_proto [20:12:01]query_string will be loaded in cgi processing [20:12:01]execute_cgi json_proto POST (null) [20:12:01]execute_cgi path=json_proto method=POST [20:12:01]POST find Content-Length [20:12:01]Host: 172.17.41.136:8080 [20:12:01]Content-Length: 1186 [20:12:01]Content-Type: application/json [20:12:01] [20:12:01]POST finish read [20:12:01]Found Content-Length = 1186 [20:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343920", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:01]execute_script... [20:12:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343920", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:01]POST & json_proto [20:12:01]process_json_proto [20:12:01]json parsed OK: [20:12:01]protocol is kg_v1.0 [20:12:01]action value=close_receipt [20:12:01]process_action close_receipt [20:12:01]cmd_close_receipt [20:12:01]MH_GetDate [20:12:01]Write to MH i2c: F0 00 00 6A 2A 83 [20:12:01]Write i2c OK [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: F0 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: F0 09 00 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: F0 09 00 6A 2A 00 14 7A F0 66 1B D0 5A 64 19 [20:12:01]GetLastDocTimeStamp 1727035545 [20:12:01]current date 1727035924 [20:12:01]FM_GetShiftState [20:12:01]SAM_PROTO_GetShiftState [20:12:01]wFMCommunicate request_size=4 [20:12:01]MH_SAM_APDU [20:12:01]CAPDU: 80 13 01 00 [20:12:01]Write to MH i2c: E2 08 00 6B 2A 80 13 01 00 00 00 00 00 12 [20:12:01]Write i2c OK [20:12:01]MH_I2C_Read... [20:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:02]Read from MH i2c: E2 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 0E 00 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 0E 00 6B 2A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 2B [20:12:02]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:12:02]wFMCommunicate OK [20:12:02]SAM_PROTO_GetShiftState done [20:12:02]FM_GetShiftState done [20:12:02]opened in 1726965840 [20:12:02]opened+sec_in_day 1727052240 [20:12:02]quantity*price = 5000 [20:12:02]sum+1 = 5001 [20:12:02]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.16 НДС 12% : 26.02 Наличными: 245.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 205 22.09.2024 20:12 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115487 ФПД: 58162383449166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T201204&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115487&fm=58162383449166&tin=02508201610067®Number=0000000000091831&sum=24500 0 [20:12:03]StoreToDocumentArchive [20:12:03]shift 471 fd 115487 [20:12:03]save to /storage/0471/doc_00115487 [20:12:03]save last doc name /storage/0471/doc_00115487 to /storage/kkm_last_doc_name [20:12:03]save OK [20:12:03]Clear old archive folders... [20:12:03]ProcessDocumentItem done err = 0, tmpTLVsize=494 [20:12:03]tlvbuf is 01C785F0 [20:12:03]SAM_PROTO_ClearQueue [20:12:03]wFMCommunicate request_size=4 [20:12:03]MH_SAM_APDU [20:12:03]CAPDU: 80 09 00 00 [20:12:03]Write to MH i2c: E2 08 00 78 2A 80 09 00 00 00 00 00 00 14 [20:12:03]Write i2c OK [20:12:03]MH_I2C_Read... [20:12:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:03]Read from MH i2c: E2 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 03 00 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 03 00 78 2A 00 90 00 16 [20:12:03]RAPDU: 90 00 [20:12:03]wFMCommunicate OK [20:12:03]SAM_PROTO_ClearQueue done [20:12:03]KKMCreateOFDPacket [20:12:03]OFDProtocolAddRootSTLVToBuf [20:12:03]FM_MakeSignedData [20:12:03]FM_MakeSignedData [20:12:03]SAM_PROTO_SignData [20:12:03]wFMCommunicate request_size=4 [20:12:03]MH_SAM_APDU [20:12:03]CAPDU: 80 0D 01 02 [20:12:03]Write to MH i2c: E2 08 00 79 2A 80 0D 01 02 00 00 00 00 1C [20:12:03]Write i2c OK [20:12:03]MH_I2C_Read... [20:12:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:03]Read from MH i2c: E2 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 03 00 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 03 00 79 2A 00 90 00 17 [20:12:03]RAPDU: 90 00 [20:12:03]wFMCommunicate OK [20:12:03]wFMCommunicate request_size=255 [20:12:03]MH_SAM_APDU [20:12:03]CAPDU: 80 0D 02 02 FA 03 00 EE 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 [20:12:03]Write to MH i2c: E2 02 01 7A 2A 80 0D 02 02 FA 00 03 00 EE 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 00 00 4F [20:12:03]Write i2c OK [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 [20:12:03]MH_I2C_Read... [20:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:03]Read from MH i2c: E2 03 00 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 03 00 7A 2A 00 90 00 18 [20:12:03]RAPDU: 90 00 [20:12:03]wFMCommunicate OK [20:12:03]wFMCommunicate request_size=253 [20:12:03]MH_SAM_APDU [20:12:03]CAPDU: 80 0D 02 02 F8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 14 7A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1F C3 01 00 35 04 06 00 34 E5 FC 34 6C 4E [20:12:03]Write to MH i2c: E2 00 01 7B 2A 80 0D 02 02 F8 00 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 14 7A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1F C3 01 00 35 04 06 00 34 E5 FC 34 6C 4E 00 00 54 [20:12:03]Write i2c OK [20:12:03]MH_I2C_Read... [20:12:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:04]Read from MH i2c: E2 [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: E2 03 00 [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: E2 03 00 7B 2A 00 90 00 19 [20:12:04]RAPDU: 90 00 [20:12:04]wFMCommunicate OK [20:12:04]wFMCommunicate request_size=4 [20:12:04]MH_SAM_APDU [20:12:04]CAPDU: 80 0D 03 02 [20:12:04]Write to MH i2c: E2 08 00 7C 2A 80 0D 03 02 00 00 00 00 21 [20:12:04]Write i2c OK [20:12:04]MH_I2C_Read... [20:12:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:04]Read from MH i2c: E2 [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: E2 0B 00 [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: E2 0B 00 7C 2A 00 3A 83 9F 5C 5B 1E 00 2E 90 00 81 [20:12:04]RAPDU: 3A 83 9F 5C 5B 1E 00 2E 90 00 [20:12:04]wFMCommunicate OK [20:12:04]SAM_PROTO_SignData done [20:12:04]FM_MakeSignedData done [20:12:04]CreateOFDProtocolMessage [20:12:04]wFMCommunicate request_size=4 [20:12:04]MH_SAM_APDU [20:12:04]CAPDU: 80 11 00 00 [20:12:04]Write to MH i2c: E2 08 00 7D 2A 80 11 00 00 00 00 00 00 21 [20:12:04]Write i2c OK [20:12:04]MH_I2C_Read... [20:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:04]Read from MH i2c: E2 [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: E2 17 00 [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: E2 17 00 7D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6F [20:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:12:04]wFMCommunicate OK [20:12:04]CreateOFDProtocolMessage done [20:12:04]OFDSenderStorePacket 115487 [20:12:04]StoreOFDPacket docnum=115487 [20:12:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 02 02 00 00 CB 8D FA 01 65 80 5A 03 01 00 03 00 EE 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 14 7A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1F C3 01 00 35 04 06 00 34 E5 FC 34 6C 4E 3A 83 9F 5C 5B 1E 00 2E [20:12:04]CheckFolder [20:12:04]dirname=/storage/ofd_packets [20:12:04]CheckFolder done [20:12:04]ProducePacketName [20:12:04]name=ofd_packets/00115487 [20:12:04]NVStorageSaveData ofd_packets/00115487 [20:12:04]File name is /storage/ofd_packets/00115487 [20:12:04]Write 544 bytes [20:12:04]NVStorageSaveData done [20:12:04]OFDSenderStorePacket done [20:12:04]KKMCreateOFDPacket done [20:12:04]NVStorageSaveData kkm_last_timestamp [20:12:04]File name is /storage/kkm_last_timestamp [20:12:04]Write 4 bytes [20:12:04]NVStorageSaveData done [20:12:04]ExternCall_PrintAddStr [20:12:04]wPrintStart [20:12:04]Write to MH i2c: 01 00 00 7E 2A A8 [20:12:04]Write i2c OK [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: 01 [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: 01 07 00 [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: 01 07 00 7E 2A 00 00 00 00 00 FF 0F BD [20:12:04]RasterBufferAndPrint [20:12:04]line Счет N : (3)343920 [20:12:04]line ИНН: 02508201610067 [20:12:04]line Контрольно-Кассовый Чек [20:12:04]line ПРОДАЖА [20:12:04]line Товар: 4700000160358 [20:12:04]line Вода Легенда 1л [20:12:04]line 1.000 * 50.00 [20:12:04]line = 50.00 [20:12:04]line НДС 12% НСП 1% [20:12:04]line > о реализуемом товаре [20:12:04]line Товар: 4870001570071 [20:12:04]line Напиток Pepsi 1л [20:12:04]line 1.000 * 110.00 [20:12:04]line = 110.00 [20:12:04]line НДС 12% НСП 1% [20:12:04]line > о реализуемом товаре [20:12:04]line Товар: 4660085515163 [20:12:04]line Шок Батончик Сникерс супер 95/80г [20:12:04]line 1.000 * 85.00 [20:12:04]line = 85.00 [20:12:04]line НДС 12% НСП 1% [20:12:04]line > о реализуемом товаре [20:12:04]line ИТОГО: 245.00 [20:12:04]line НСП 1% : 2.16 [20:12:04]line НДС 12% : 26.02 [20:12:04]line Наличными: 245.00 [20:12:04]line Безнал.: 0.00 [20:12:04]line Место: АЗС № 90 "Партнер Нефть" [20:12:04]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:12:04]line СНО: Общий режим [20:12:04]line Чек 205 22.09.2024 20:12 [20:12:04]line Смена: 471 ФФД: 1.0 [20:12:04]line ЗНМ: 0300000120 [20:12:04]line РНМ: 0000000000091831 [20:12:04]line Версия ККМ: 001 [20:12:04]line ФМ: 0000000000871830 [20:12:04]line ФД: 115487 [20:12:04]line ФПД: 58162383449166 [20:12:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T201204&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115487&fm=58162383449166&tin=02508201610067®Number=0000000000091831&sum=24500 [20:12:04]line 0 [20:12:04]written 0, free lines is 4095 [20:12:04]OFD Sender: Processing packet 115487 [packets to send 481, broken 480] [20:12:04]ProducePacketName [20:12:04]name=ofd_packets/00115487 [20:12:04]OFD Sender: To server: pG, [20:12:04]CommunicateWithHost lk.salyk.kg:30040 [20:12:04]ConnectInit lk.salyk.kg [20:12:04]Connected sock=10 [20:12:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 02 02 00 00 CB 8D FA 01 65 80 5A 03 01 00 03 00 EE 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 14 7A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1F C3 01 00 35 04 06 00 34 E5 FC 34 6C 4E 3A 83 9F 5C 5B 1E 00 2E [20:12:04]Write to MH i2c: 01 00 00 B2 2A DC [20:12:04]Write i2c OK [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: 01 [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: 01 07 00 [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: 01 07 00 B2 2A 00 00 00 00 00 6D 0B 5B [20:12:04]RasterBufferAndPrint [20:12:04]line [20:12:04]line [20:12:04]line [20:12:04]line [20:12:04]line [20:12:04]written 0, free lines is 2929 [20:12:04]MH_Cut [20:12:04]Write to MH i2c: D1 01 00 B9 2A 01 B5 [20:12:04]Write i2c OK [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: D1 [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: D1 01 00 [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: D1 01 00 B9 2A 00 B4 [20:12:04]Write to MH i2c: 01 00 00 BA 2A E4 [20:12:04]Write i2c OK [20:12:04]MH_I2C_Read... [20:12:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 5E 1C 47 00 12 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 31 38 33 30 10 04 04 00 1F C3 01 00 F4 03 04 00 5A 1F F0 66 B6 04 01 00 00 4A 0A D6 0F 6E D2 12 C9 [20:12:04]CommunicateWithHost err = 0 [20:12:04]CheckOFDResponse [20:12:04]1017 (14) - 77093643461234 [20:12:04]1041 (16) - 0000000000871830 [20:12:04]1040 (4) - 115487 [20:12:04]1012 (4) - 22.09.2024 13:44 [20:12:04]1206 (1) - 0 [20:12:04]OFD Sender: Remove packet 115487 [20:12:04]ProducePacketName [20:12:04]name=ofd_packets/00115487 [20:12:04]NVStorageDeleteData [20:12:05]OFD Sender: No OFD packet to send [20:12:06]*** Cut start [20:12:06]*** Partial cut [20:12:06]*** CUTSNS_PIN = 1 [20:12:06]*** CUTSNS_PIN = 0 [20:12:06]*** Brake cut motor [20:12:07]Read from MH i2c: 01 [20:12:07]MH_I2C_Read... [20:12:07]*** Stop cut motor [20:12:07]*** Cut end [20:12:07]Read from MH i2c: 01 07 00 [20:12:07]MH_I2C_Read... [20:12:07]Read from MH i2c: 01 07 00 BA 2A 00 00 00 00 00 FF 0F F9 [20:12:07]process_action close_receipt done [20:12:07]requested_data is exist [20:12:07]produce_requested_data [20:12:07]requested_item fm.sn is exist - process it [20:12:07]wFMCommunicate request_size=4 [20:12:07]MH_SAM_APDU [20:12:07]CAPDU: 80 11 00 00 [20:12:07]Write to MH i2c: E2 08 00 BB 2A 80 11 00 00 00 00 00 00 5F [20:12:07]Write i2c OK [20:12:07]MH_I2C_Read... [20:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:07]Read from MH i2c: E2 [20:12:07]MH_I2C_Read... [20:12:07]Read from MH i2c: E2 17 00 [20:12:07]MH_I2C_Read... [20:12:07]Read from MH i2c: E2 17 00 BB 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AD [20:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:12:07]wFMCommunicate OK [20:12:07]requested_item fd.num is exist - process it [20:12:07]SAM_PROTO_GetFieldsCounters [20:12:07]wFMCommunicate request_size=4 [20:12:07]MH_SAM_APDU [20:12:07]CAPDU: 80 13 00 00 [20:12:07]Write to MH i2c: E2 08 00 BC 2A 80 13 00 00 00 00 00 00 62 [20:12:07]Write i2c OK [20:12:07]MH_I2C_Read... [20:12:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:07]Read from MH i2c: E2 [20:12:07]MH_I2C_Read... [20:12:07]Read from MH i2c: E2 62 00 [20:12:07]MH_I2C_Read... [20:12:07]Read from MH i2c: E2 62 00 BC 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1F C3 01 00 0E 04 04 00 D7 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 9D [20:12:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1F C3 01 00 0E 04 04 00 D7 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 [20:12:07]wFMCommunicate OK [20:12:07]SAM_PROTO_GetFieldsCounters done [20:12:07]requested_item shift.num is exist - process it [20:12:07]requested_item shift.opened is exist - process it [20:12:07]req_shift_opened [20:12:07]FM_GetShiftState [20:12:07]SAM_PROTO_GetShiftState [20:12:07]wFMCommunicate request_size=4 [20:12:07]MH_SAM_APDU [20:12:07]CAPDU: 80 13 01 00 [20:12:07]Write to MH i2c: E2 08 00 BD 2A 80 13 01 00 00 00 00 00 64 [20:12:07]Write i2c OK [20:12:07]MH_I2C_Read... [20:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:07]Read from MH i2c: E2 [20:12:07]MH_I2C_Read... [20:12:07]Read from MH i2c: E2 0E 00 [20:12:07]MH_I2C_Read... [20:12:07]Read from MH i2c: E2 0E 00 BD 2A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 7D [20:12:07]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:12:07]wFMCommunicate OK [20:12:07]SAM_PROTO_GetShiftState done [20:12:07]FM_GetShiftState done [20:12:07]req_shift_opened done [20:12:07]requested_item shift.open_date is exist - process it [20:12:07]req_shift_open_date [20:12:07]req_shift_open_date done [20:12:07]produce_requested_data done [20:12:07]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115487,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [20:12:07]process_action_free close_receipt [20:12:07]json_value_free [20:12:07]json_value_free done [20:12:07]process_json_proto returns [20:12:07]Send response to host [20:12:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115487,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [20:12:07]free response buf [20:12:07]execute_script done [20:12:07]execute_script returns [20:12:07]free content buf [20:12:07]Sock 8.Close socket [20:12:07]Sock 8.Thread stoped [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:50]OFD Sender: No OFD packet to send [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:05]OFD Sender: No OFD packet to send [20:15:10]OFD Sender: No OFD packet to send [20:15:15]OFD Sender: No OFD packet to send [20:15:20]OFD Sender: No OFD packet to send [20:15:25]OFD Sender: No OFD packet to send [20:15:30]OFD Sender: No OFD packet to send [20:15:35]OFD Sender: No OFD packet to send [20:15:40]OFD Sender: No OFD packet to send [20:15:45]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:20]accept exits with 9 [20:18:20]New connection [20:18:20]New thread 3066682724 created [20:18:20]Thread 3066826084 joined [20:18:20]Waiting for new connection... [20:18:20] Sock 9.Parse request [20:18:20]Sock 9.Check first char [20:18:20]Sock 9.First char is OK [20:18:20]request: POST /json_proto HTTP/1.0 [20:18:20]Method: POST [20:18:20]URL: /json_proto [20:18:20]Method is POST - this is cgi request [20:18:20]url: /json_proto [20:18:20]query_string will be loaded in cgi processing [20:18:20]execute_cgi json_proto POST (null) [20:18:20]execute_cgi path=json_proto method=POST [20:18:20]POST find Content-Length [20:18:20]Host: 172.17.41.136:8080 [20:18:20]Content-Length: 633 [20:18:20]Content-Type: application/json [20:18:20] [20:18:20]POST finish read [20:18:20]Found Content-Length = 633 [20:18:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343921", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:20]execute_script... [20:18:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343921", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:20]POST & json_proto [20:18:20]process_json_proto [20:18:20]json parsed OK: [20:18:20]protocol is kg_v1.0 [20:18:20]action value=close_receipt [20:18:20]process_action close_receipt [20:18:20]cmd_close_receipt [20:18:20]MH_GetDate [20:18:20]Write to MH i2c: F0 00 00 BE 2A D7 [20:18:20]Write i2c OK [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: F0 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: F0 09 00 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: F0 09 00 BE 2A 00 8F 7B F0 66 1B D0 5A 64 E9 [20:18:20]GetLastDocTimeStamp 1727035924 [20:18:20]current date 1727036303 [20:18:20]FM_GetShiftState [20:18:20]SAM_PROTO_GetShiftState [20:18:20]wFMCommunicate request_size=4 [20:18:20]MH_SAM_APDU [20:18:20]CAPDU: 80 13 01 00 [20:18:20]Write to MH i2c: E2 08 00 BF 2A 80 13 01 00 00 00 00 00 66 [20:18:20]Write i2c OK [20:18:20]MH_I2C_Read... [20:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:20]Read from MH i2c: E2 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: E2 0E 00 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: E2 0E 00 BF 2A 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 7F [20:18:20]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:18:20]wFMCommunicate OK [20:18:20]SAM_PROTO_GetShiftState done [20:18:20]FM_GetShiftState done [20:18:20]opened in 1726965840 [20:18:20]opened+sec_in_day 1727052240 [20:18:20]quantity*price = 13000 [20:18:20]sum+1 = 13001 [20:18:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 206 22.09.2024 20:18 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115488 ФПД: 186004912404313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T201823&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115488&fm=186004912404313&tin=02508201610067®Number=0000000000091831&sum=13000 0 [20:18:21]StoreToDocumentArchive [20:18:21]shift 471 fd 115488 [20:18:21]save to /storage/0471/doc_00115488 [20:18:21]save last doc name /storage/0471/doc_00115488 to /storage/kkm_last_doc_name [20:18:21]save OK [20:18:21]Clear old archive folders... [20:18:21]ProcessDocumentItem done err = 0, tmpTLVsize=285 [20:18:21]tlvbuf is B6D89630 [20:18:21]SAM_PROTO_ClearQueue [20:18:21]wFMCommunicate request_size=4 [20:18:21]MH_SAM_APDU [20:18:21]CAPDU: 80 09 00 00 [20:18:21]Write to MH i2c: E2 08 00 CC 2A 80 09 00 00 00 00 00 00 68 [20:18:21]Write i2c OK [20:18:21]MH_I2C_Read... [20:18:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:21]Read from MH i2c: E2 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: E2 03 00 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: E2 03 00 CC 2A 00 90 00 6A [20:18:21]RAPDU: 90 00 [20:18:21]wFMCommunicate OK [20:18:21]SAM_PROTO_ClearQueue done [20:18:21]KKMCreateOFDPacket [20:18:21]OFDProtocolAddRootSTLVToBuf [20:18:21]FM_MakeSignedData [20:18:21]FM_MakeSignedData [20:18:21]SAM_PROTO_SignData [20:18:21]wFMCommunicate request_size=4 [20:18:21]MH_SAM_APDU [20:18:21]CAPDU: 80 0D 01 02 [20:18:21]Write to MH i2c: E2 08 00 CD 2A 80 0D 01 02 00 00 00 00 70 [20:18:21]Write i2c OK [20:18:21]MH_I2C_Read... [20:18:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:21]Read from MH i2c: E2 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: E2 03 00 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: E2 03 00 CD 2A 00 90 00 6B [20:18:21]RAPDU: 90 00 [20:18:21]wFMCommunicate OK [20:18:21]wFMCommunicate request_size=255 [20:18:21]MH_SAM_APDU [20:18:21]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 8F 7B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 [20:18:21]Write to MH i2c: E2 02 01 CE 2A 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 8F 7B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 00 00 3B [20:18:21]Write i2c OK [20:18:21]MH_I2C_Read... [20:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:22]Read from MH i2c: E2 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 03 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 03 00 CE 2A 00 90 00 6C [20:18:22]RAPDU: 90 00 [20:18:22]wFMCommunicate OK [20:18:22]wFMCommunicate request_size=44 [20:18:22]MH_SAM_APDU [20:18:22]CAPDU: 80 0D 02 02 27 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 20 C3 01 00 35 04 06 00 A9 2B A4 BA F7 59 [20:18:22]Write to MH i2c: E2 2F 00 CF 2A 80 0D 02 02 27 00 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 20 C3 01 00 35 04 06 00 A9 2B A4 BA F7 59 00 00 EF [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:22]Read from MH i2c: E2 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 03 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 03 00 CF 2A 00 90 00 6D [20:18:22]RAPDU: 90 00 [20:18:22]wFMCommunicate OK [20:18:22]wFMCommunicate request_size=4 [20:18:22]MH_SAM_APDU [20:18:22]CAPDU: 80 0D 03 02 [20:18:22]Write to MH i2c: E2 08 00 D0 2A 80 0D 03 02 00 00 00 00 75 [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:22]Read from MH i2c: E2 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 0B 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 0B 00 D0 2A 00 71 18 2F 71 E6 6B D7 71 90 00 38 [20:18:22]RAPDU: 71 18 2F 71 E6 6B D7 71 90 00 [20:18:22]wFMCommunicate OK [20:18:22]SAM_PROTO_SignData done [20:18:22]FM_MakeSignedData done [20:18:22]CreateOFDProtocolMessage [20:18:22]wFMCommunicate request_size=4 [20:18:22]MH_SAM_APDU [20:18:22]CAPDU: 80 11 00 00 [20:18:22]Write to MH i2c: E2 08 00 D1 2A 80 11 00 00 00 00 00 00 75 [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:22]Read from MH i2c: E2 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 17 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 17 00 D1 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C3 [20:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:18:22]wFMCommunicate OK [20:18:22]CreateOFDProtocolMessage done [20:18:22]OFDSenderStorePacket 115488 [20:18:22]StoreOFDPacket docnum=115488 [20:18:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 31 01 00 00 32 41 29 01 4E 62 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 8F 7B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 20 C3 01 00 35 04 06 00 A9 2B A4 BA F7 59 71 18 2F 71 E6 6B D7 71 [20:18:22]CheckFolder [20:18:22]dirname=/storage/ofd_packets [20:18:22]CheckFolder done [20:18:22]ProducePacketName [20:18:22]name=ofd_packets/00115488 [20:18:22]NVStorageSaveData ofd_packets/00115488 [20:18:22]File name is /storage/ofd_packets/00115488 [20:18:22]Write 335 bytes [20:18:22]NVStorageSaveData done [20:18:22]OFDSenderStorePacket done [20:18:22]KKMCreateOFDPacket done [20:18:22]NVStorageSaveData kkm_last_timestamp [20:18:22]File name is /storage/kkm_last_timestamp [20:18:22]Write 4 bytes [20:18:22]NVStorageSaveData done [20:18:22]ExternCall_PrintAddStr [20:18:22]wPrintStart [20:18:22]Write to MH i2c: 01 00 00 D2 2A FC [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: 01 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: 01 07 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: 01 07 00 D2 2A 00 00 00 00 00 FF 0F 11 [20:18:22]RasterBufferAndPrint [20:18:22]line Счет N : (3)343921 [20:18:22]line ИНН: 02508201610067 [20:18:22]line Контрольно-Кассовый Чек [20:18:22]line ПРОДАЖА [20:18:22]line Товар: 48745291 [20:18:22]line Сигареты Parliament SOHO NYC COMPACT BLU [20:18:22]line 1.000 * 130.00 [20:18:22]line = 130.00 [20:18:22]line НДС 12% НСП 1% [20:18:22]line > о реализуемом товаре [20:18:22]line ИТОГО: 130.00 [20:18:22]line НСП 1% : 1.15 [20:18:22]line НДС 12% : 13.80 [20:18:22]line Наличными: 130.00 [20:18:22]line Безнал.: 0.00 [20:18:22]line Место: АЗС № 90 "Партнер Нефть" [20:18:22]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:18:22]line СНО: Общий режим [20:18:22]line Чек 206 22.09.2024 20:18 [20:18:22]line Смена: 471 ФФД: 1.0 [20:18:22]line ЗНМ: 0300000120 [20:18:22]line РНМ: 0000000000091831 [20:18:22]line Версия ККМ: 001 [20:18:22]line ФМ: 0000000000871830 [20:18:22]line ФД: 115488 [20:18:22]line ФПД: 186004912404313 [20:18:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T201823&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115488&fm=186004912404313&tin=02508201610067®Number=0000000000091831&sum=13000 [20:18:22]OFD Sender: Processing packet 115488 [packets to send 481, broken 480] [20:18:22]ProducePacketName [20:18:22]name=ofd_packets/00115488 [20:18:22]OFD Sender: To server: pG, [20:18:22]CommunicateWithHost lk.salyk.kg:30040 [20:18:22]ConnectInit lk.salyk.kg [20:18:22]line 0 [20:18:22]written 0, free lines is 4095 [20:18:22]Connected sock=10 [20:18:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 31 01 00 00 32 41 29 01 4E 62 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 8F 7B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 20 C3 01 00 35 04 06 00 A9 2B A4 BA F7 59 71 18 2F 71 E6 6B D7 71 [20:18:23]Write to MH i2c: 01 00 00 FA 2A 24 [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: 01 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: 01 07 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: 01 07 00 FA 2A 00 00 00 00 00 5E 0C 95 [20:18:23]RasterBufferAndPrint [20:18:23]line [20:18:23]line [20:18:23]line [20:18:23]line [20:18:23]line [20:18:23]written 0, free lines is 3170 [20:18:23]MH_Cut [20:18:23]Write to MH i2c: D1 01 00 01 2B 01 FE [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: D1 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: D1 01 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: D1 01 00 01 2B 00 FD [20:18:23]Write to MH i2c: 01 00 00 02 2B 2D [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 71 AC 47 00 A7 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 20 C3 01 00 F4 03 04 00 D4 20 F0 66 B6 04 01 00 00 DA E8 43 78 7B 2D 0E 97 [20:18:23]CommunicateWithHost err = 0 [20:18:23]CheckOFDResponse [20:18:23]1017 (14) - 77093643461234 [20:18:23]1041 (16) - 0000000000871830 [20:18:23]1040 (4) - 115488 [20:18:23]1012 (4) - 22.09.2024 13:51 [20:18:23]1206 (1) - 0 [20:18:23]OFD Sender: Remove packet 115488 [20:18:23]ProducePacketName [20:18:23]name=ofd_packets/00115488 [20:18:23]NVStorageDeleteData [20:18:23]OFD Sender: No OFD packet to send [20:18:24]*** Cut start [20:18:24]*** Partial cut [20:18:24]*** CUTSNS_PIN = 1 [20:18:24]*** CUTSNS_PIN = 0 [20:18:24]*** Brake cut motor [20:18:25]Read from MH i2c: 01 [20:18:25]MH_I2C_Read... [20:18:25]*** Stop cut motor [20:18:25]*** Cut end [20:18:25]Read from MH i2c: 01 07 00 [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: 01 07 00 02 2B 00 00 00 00 00 FF 0F 42 [20:18:25]process_action close_receipt done [20:18:25]requested_data is exist [20:18:25]produce_requested_data [20:18:25]requested_item fm.sn is exist - process it [20:18:25]wFMCommunicate request_size=4 [20:18:25]MH_SAM_APDU [20:18:25]CAPDU: 80 11 00 00 [20:18:25]Write to MH i2c: E2 08 00 03 2B 80 11 00 00 00 00 00 00 A8 [20:18:25]Write i2c OK [20:18:25]MH_I2C_Read... [20:18:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:25]Read from MH i2c: E2 [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: E2 17 00 [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: E2 17 00 03 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F6 [20:18:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:18:25]wFMCommunicate OK [20:18:25]requested_item fd.num is exist - process it [20:18:25]SAM_PROTO_GetFieldsCounters [20:18:25]wFMCommunicate request_size=4 [20:18:25]MH_SAM_APDU [20:18:25]CAPDU: 80 13 00 00 [20:18:25]Write to MH i2c: E2 08 00 04 2B 80 13 00 00 00 00 00 00 AB [20:18:25]Write i2c OK [20:18:25]MH_I2C_Read... [20:18:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:25]Read from MH i2c: E2 [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: E2 62 00 [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: E2 62 00 04 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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 20 C3 01 00 0E 04 04 00 D7 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 EA [20:18:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 20 C3 01 00 0E 04 04 00 D7 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 [20:18:25]wFMCommunicate OK [20:18:25]SAM_PROTO_GetFieldsCounters done [20:18:25]requested_item shift.num is exist - process it [20:18:25]requested_item shift.opened is exist - process it [20:18:25]req_shift_opened [20:18:25]FM_GetShiftState [20:18:25]SAM_PROTO_GetShiftState [20:18:25]wFMCommunicate request_size=4 [20:18:25]MH_SAM_APDU [20:18:25]CAPDU: 80 13 01 00 [20:18:25]Write to MH i2c: E2 08 00 05 2B 80 13 01 00 00 00 00 00 AD [20:18:25]Write i2c OK [20:18:25]MH_I2C_Read... [20:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:25]Read from MH i2c: E2 [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: E2 0E 00 [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: E2 0E 00 05 2B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C6 [20:18:25]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:18:25]wFMCommunicate OK [20:18:25]SAM_PROTO_GetShiftState done [20:18:25]FM_GetShiftState done [20:18:25]req_shift_opened done [20:18:25]requested_item shift.open_date is exist - process it [20:18:25]req_shift_open_date [20:18:25]req_shift_open_date done [20:18:25]produce_requested_data done [20:18:25]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115488,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [20:18:25]process_action_free close_receipt [20:18:25]json_value_free [20:18:25]json_value_free done [20:18:25]process_json_proto returns [20:18:25]Send response to host [20:18:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115488,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [20:18:25]free response buf [20:18:25]execute_script done [20:18:25]execute_script returns [20:18:25]free content buf [20:18:25]Sock 9.Close socket [20:18:25]Sock 9.Thread stoped [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:25]accept exits with 8 [20:19:25]New connection [20:19:25]New thread 3066826084 created [20:19:25]Thread 3066682724 joined [20:19:25]Waiting for new connection... [20:19:25] Sock 8.Parse request [20:19:25]Sock 8.Check first char [20:19:25]Sock 8.First char is OK [20:19:25]request: POST /json_proto HTTP/1.0 [20:19:25]Method: POST [20:19:25]URL: /json_proto [20:19:25]Method is POST - this is cgi request [20:19:25]url: /json_proto [20:19:25]query_string will be loaded in cgi processing [20:19:25]execute_cgi json_proto POST (null) [20:19:25]execute_cgi path=json_proto method=POST [20:19:25]POST find Content-Length [20:19:25]Host: 172.17.41.136:8080 [20:19:25]Content-Length: 807 [20:19:25]Content-Type: application/json [20:19:25] [20:19:25]POST finish read [20:19:25]Found Content-Length = 807 [20:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343922", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.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" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:25]execute_script... [20:19:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343922", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.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" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:25]POST & json_proto [20:19:25]process_json_proto [20:19:25]json parsed OK: [20:19:25]protocol is kg_v1.0 [20:19:25]action value=close_receipt [20:19:25]process_action close_receipt [20:19:25]cmd_close_receipt [20:19:25]MH_GetDate [20:19:25]Write to MH i2c: F0 00 00 06 2B 20 [20:19:25]Write i2c OK [20:19:25]MH_I2C_Read... [20:19:25]Read from MH i2c: F0 [20:19:25]MH_I2C_Read... [20:19:25]Read from MH i2c: F0 09 00 [20:19:25]MH_I2C_Read... [20:19:25]Read from MH i2c: F0 09 00 06 2B 00 D0 7B F0 66 1B D0 5A 64 73 [20:19:25]GetLastDocTimeStamp 1727036303 [20:19:25]current date 1727036368 [20:19:25]FM_GetShiftState [20:19:25]SAM_PROTO_GetShiftState [20:19:25]wFMCommunicate request_size=4 [20:19:25]MH_SAM_APDU [20:19:25]CAPDU: 80 13 01 00 [20:19:25]Write to MH i2c: E2 08 00 07 2B 80 13 01 00 00 00 00 00 AF [20:19:25]Write i2c OK [20:19:25]MH_I2C_Read... [20:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:25]Read from MH i2c: E2 [20:19:25]MH_I2C_Read... [20:19:25]Read from MH i2c: E2 0E 00 [20:19:25]MH_I2C_Read... [20:19:25]Read from MH i2c: E2 0E 00 07 2B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C8 [20:19:25]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:19:25]wFMCommunicate OK [20:19:25]SAM_PROTO_GetShiftState done [20:19:25]FM_GetShiftState done [20:19:25]opened in 1726965840 [20:19:25]opened+sec_in_day 1727052240 [20:19:25]quantity*price = 26000 [20:19:25]sum+1 = 26001 [20:19:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 0.00 Безнал.: 260.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 207 22.09.2024 20:19 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115489 ФПД: 268152199767349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T201928&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115489&fm=268152199767349&tin=02508201610067®Number=0000000000091831&sum=26000 0 [20:19:26]StoreToDocumentArchive [20:19:26]shift 471 fd 115489 [20:19:26]save to /storage/0471/doc_00115489 [20:19:26]save last doc name /storage/0471/doc_00115489 to /storage/kkm_last_doc_name [20:19:26]save OK [20:19:26]Clear old archive folders... [20:19:26]ProcessDocumentItem done err = 0, tmpTLVsize=282 [20:19:26]tlvbuf is 01C78390 [20:19:26]SAM_PROTO_ClearQueue [20:19:26]wFMCommunicate request_size=4 [20:19:26]MH_SAM_APDU [20:19:26]CAPDU: 80 09 00 00 [20:19:26]Write to MH i2c: E2 08 00 14 2B 80 09 00 00 00 00 00 00 B1 [20:19:26]Write i2c OK [20:19:26]MH_I2C_Read... [20:19:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:26]Read from MH i2c: E2 [20:19:26]MH_I2C_Read... [20:19:26]Read from MH i2c: E2 03 00 [20:19:26]MH_I2C_Read... [20:19:26]Read from MH i2c: E2 03 00 14 2B 00 90 00 B3 [20:19:26]RAPDU: 90 00 [20:19:26]wFMCommunicate OK [20:19:26]SAM_PROTO_ClearQueue done [20:19:26]KKMCreateOFDPacket [20:19:26]OFDProtocolAddRootSTLVToBuf [20:19:26]FM_MakeSignedData [20:19:26]FM_MakeSignedData [20:19:26]SAM_PROTO_SignData [20:19:26]wFMCommunicate request_size=4 [20:19:26]MH_SAM_APDU [20:19:26]CAPDU: 80 0D 01 02 [20:19:26]Write to MH i2c: E2 08 00 15 2B 80 0D 01 02 00 00 00 00 B9 [20:19:26]Write i2c OK [20:19:26]MH_I2C_Read... [20:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:26]Read from MH i2c: E2 [20:19:26]MH_I2C_Read... [20:19:26]Read from MH i2c: E2 03 00 [20:19:26]MH_I2C_Read... [20:19:26]Read from MH i2c: E2 03 00 15 2B 00 90 00 B4 [20:19:26]RAPDU: 90 00 [20:19:26]wFMCommunicate OK [20:19:26]wFMCommunicate request_size=255 [20:19:26]MH_SAM_APDU [20:19:26]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 D0 7B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 [20:19:26]Write to MH i2c: E2 02 01 16 2B 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 D0 7B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 00 00 C7 [20:19:26]Write i2c OK [20:19:26]MH_I2C_Read... [20:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:27]Read from MH i2c: E2 [20:19:27]MH_I2C_Read... [20:19:27]Read from MH i2c: E2 03 00 [20:19:27]MH_I2C_Read... [20:19:27]Read from MH i2c: E2 03 00 16 2B 00 90 00 B5 [20:19:27]RAPDU: 90 00 [20:19:27]wFMCommunicate OK [20:19:27]wFMCommunicate request_size=41 [20:19:27]MH_SAM_APDU [20:19:27]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 21 C3 01 00 35 04 06 00 F3 E2 0C 9C E5 35 [20:19:27]Write to MH i2c: E2 2C 00 17 2B 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 21 C3 01 00 35 04 06 00 F3 E2 0C 9C E5 35 00 00 02 [20:19:27]Write i2c OK [20:19:27]MH_I2C_Read... [20:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:27]Read from MH i2c: E2 [20:19:27]MH_I2C_Read... [20:19:27]Read from MH i2c: E2 03 00 [20:19:27]MH_I2C_Read... [20:19:27]Read from MH i2c: E2 03 00 17 2B 00 90 00 B6 [20:19:27]RAPDU: 90 00 [20:19:27]wFMCommunicate OK [20:19:27]wFMCommunicate request_size=4 [20:19:27]MH_SAM_APDU [20:19:27]CAPDU: 80 0D 03 02 [20:19:27]Write to MH i2c: E2 08 00 18 2B 80 0D 03 02 00 00 00 00 BE [20:19:27]Write i2c OK [20:19:27]MH_I2C_Read... [20:19:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:27]Read from MH i2c: E2 [20:19:27]MH_I2C_Read... [20:19:27]Read from MH i2c: E2 0B 00 [20:19:27]MH_I2C_Read... [20:19:27]Read from MH i2c: E2 0B 00 18 2B 00 BC 2F 75 52 20 C3 8C 42 90 00 22 [20:19:27]RAPDU: BC 2F 75 52 20 C3 8C 42 90 00 [20:19:27]wFMCommunicate OK [20:19:27]SAM_PROTO_SignData done [20:19:27]FM_MakeSignedData done [20:19:27]CreateOFDProtocolMessage [20:19:27]wFMCommunicate request_size=4 [20:19:27]MH_SAM_APDU [20:19:27]CAPDU: 80 11 00 00 [20:19:27]Write to MH i2c: E2 08 00 19 2B 80 11 00 00 00 00 00 00 BE [20:19:27]Write i2c OK [20:19:27]MH_I2C_Read... [20:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:27]Read from MH i2c: E2 [20:19:27]MH_I2C_Read... [20:19:27]Read from MH i2c: E2 17 00 [20:19:27]MH_I2C_Read... [20:19:27]Read from MH i2c: E2 17 00 19 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0C [20:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:19:27]wFMCommunicate OK [20:19:27]CreateOFDProtocolMessage done [20:19:27]OFDSenderStorePacket 115489 [20:19:27]StoreOFDPacket docnum=115489 [20:19:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2E 01 00 00 12 35 26 01 4B 0F 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 D0 7B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 21 C3 01 00 35 04 06 00 F3 E2 0C 9C E5 35 BC 2F 75 52 20 C3 8C 42 [20:19:27]CheckFolder [20:19:27]dirname=/storage/ofd_packets [20:19:27]CheckFolder done [20:19:27]ProducePacketName [20:19:27]name=ofd_packets/00115489 [20:19:27]NVStorageSaveData ofd_packets/00115489 [20:19:27]File name is /storage/ofd_packets/00115489 [20:19:27]Write 332 bytes [20:19:27]NVStorageSaveData done [20:19:27]OFDSenderStorePacket done [20:19:27]KKMCreateOFDPacket done [20:19:27]NVStorageSaveData kkm_last_timestamp [20:19:27]File name is /storage/kkm_last_timestamp [20:19:27]Write 4 bytes [20:19:27]NVStorageSaveData done [20:19:27]ExternCall_PrintAddStr [20:19:27]wPrintStart [20:19:27]Write to MH i2c: 01 00 00 1A 2B 45 [20:19:27]Write i2c OK [20:19:27]MH_I2C_Read... [20:19:27]Read from MH i2c: 01 [20:19:27]MH_I2C_Read... [20:19:27]Read from MH i2c: 01 07 00 [20:19:27]MH_I2C_Read... [20:19:27]Read from MH i2c: 01 07 00 1A 2B 00 00 00 00 00 FF 0F 5A [20:19:27]RasterBufferAndPrint [20:19:27]line Счет N : (3)343922 [20:19:27]line ИНН: 02508201610067 [20:19:27]line Контрольно-Кассовый Чек [20:19:27]line ПРОДАЖА [20:19:27]line Товар: 2000036220012 [20:19:27]line Кофе Капучино XL(GABB TRADE) [20:19:27]line 2.000 * 130.00 [20:19:27]line = 260.00 [20:19:27]line НДС 12% НСП 1% [20:19:27]line > о реализуемом товаре [20:19:27]line ИТОГО: 260.00 [20:19:27]line НСП 1% : 2.30 [20:19:27]line НДС 12% : 27.61 [20:19:27]line Наличными: 0.00 [20:19:27]line Безнал.: 260.00 [20:19:27]line Место: АЗС № 90 "Партнер Нефть" [20:19:27]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:19:27]line СНО: Общий режим [20:19:27]line Чек 207 22.09.2024 20:19 [20:19:27]line Смена: 471 ФФД: 1.0 [20:19:27]line ЗНМ: 0300000120 [20:19:27]line РНМ: 0000000000091831 [20:19:27]line Версия ККМ: 001 [20:19:27]line Платежная система: O! деньги [20:19:27]line ФМ: 0000000000871830 [20:19:27]line ФД: 115489 [20:19:27]line ФПД: 268152199767349 [20:19:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T201928&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115489&fm=268152199767349&tin=02508201610067®Number=0000000000091831&sum=26000 [20:19:27]line 0 [20:19:27]written 0, free lines is 4095 [20:19:27]OFD Sender: Processing packet 115489 [packets to send 481, broken 480] [20:19:27]ProducePacketName [20:19:27]name=ofd_packets/00115489 [20:19:27]OFD Sender: To server: pG, [20:19:27]CommunicateWithHost lk.salyk.kg:30040 [20:19:27]ConnectInit lk.salyk.kg [20:19:27]Connected sock=10 [20: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 31 38 33 30 2E 01 00 00 12 35 26 01 4B 0F 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 D0 7B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 21 C3 01 00 35 04 06 00 F3 E2 0C 9C E5 35 BC 2F 75 52 20 C3 8C 42 [20:19:28]Write to MH i2c: 01 00 00 44 2B 6F [20:19:28]Write i2c OK [20:19:28]MH_I2C_Read... [20:19:28]Read from MH i2c: 01 [20:19:28]MH_I2C_Read... [20:19:28]Read from MH i2c: 01 07 00 [20:19:28]MH_I2C_Read... [20:19:28]Read from MH i2c: 01 07 00 44 2B 00 00 00 00 00 3A 0C BC [20:19:28]RasterBufferAndPrint [20:19:28]line [20:19:28]line [20:19:28]line [20:19:28]line [20:19:28]line [20:19:28]written 0, free lines is 3136 [20:19:28]MH_Cut [20:19:28]Write to MH i2c: D1 01 00 4B 2B 01 48 [20:19:28]Write i2c OK [20:19:28]MH_I2C_Read... [20:19:28]Read from MH i2c: D1 [20:19:28]MH_I2C_Read... [20:19:28]Read from MH i2c: D1 01 00 [20:19:28]MH_I2C_Read... [20:19:28]Read from MH i2c: D1 01 00 4B 2B 00 47 [20:19:28]Write to MH i2c: 01 00 00 4C 2B 77 [20:19:28]Write i2c OK [20:19:28]MH_I2C_Read... [20:19:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 80 0E 47 00 2E E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 21 C3 01 00 F4 03 04 00 15 21 F0 66 B6 04 01 00 00 6C 9D 95 29 FC 0B 88 CE [20:19:28]CommunicateWithHost err = 0 [20:19:28]CheckOFDResponse [20:19:28]1017 (14) - 77093643461234 [20:19:28]1041 (16) - 0000000000871830 [20:19:28]1040 (4) - 115489 [20:19:28]1012 (4) - 22.09.2024 13:52 [20:19:28]1206 (1) - 0 [20:19:28]OFD Sender: Remove packet 115489 [20:19:28]ProducePacketName [20:19:28]name=ofd_packets/00115489 [20:19:28]NVStorageDeleteData [20:19:28]OFD Sender: No OFD packet to send [20:19:29]*** Cut start [20:19:29]*** Partial cut [20:19:29]*** CUTSNS_PIN = 1 [20:19:29]*** CUTSNS_PIN = 0 [20:19:29]*** Brake cut motor [20:19:30]Read from MH i2c: 01 [20:19:30]MH_I2C_Read... [20:19:30]*** Stop cut motor [20:19:30]*** Cut end [20:19:30]Read from MH i2c: 01 07 00 [20:19:30]MH_I2C_Read... [20:19:30]Read from MH i2c: 01 07 00 4C 2B 00 00 00 00 00 FF 0F 8C [20:19:30]process_action close_receipt done [20:19:30]requested_data is exist [20:19:30]produce_requested_data [20:19:30]requested_item fm.sn is exist - process it [20:19:30]wFMCommunicate request_size=4 [20:19:30]MH_SAM_APDU [20:19:30]CAPDU: 80 11 00 00 [20:19:30]Write to MH i2c: E2 08 00 4D 2B 80 11 00 00 00 00 00 00 F2 [20:19:30]Write i2c OK [20:19:30]MH_I2C_Read... [20:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:30]Read from MH i2c: E2 [20:19:30]MH_I2C_Read... [20:19:30]Read from MH i2c: E2 17 00 [20:19:30]MH_I2C_Read... [20:19:30]Read from MH i2c: E2 17 00 4D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 40 [20:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:19:30]wFMCommunicate OK [20:19:30]requested_item fd.num is exist - process it [20:19:30]SAM_PROTO_GetFieldsCounters [20:19:30]wFMCommunicate request_size=4 [20:19:30]MH_SAM_APDU [20:19:30]CAPDU: 80 13 00 00 [20:19:30]Write to MH i2c: E2 08 00 4E 2B 80 13 00 00 00 00 00 00 F5 [20:19:30]Write i2c OK [20:19:30]MH_I2C_Read... [20:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:30]Read from MH i2c: E2 [20:19:30]MH_I2C_Read... [20:19:30]Read from MH i2c: E2 62 00 [20:19:30]MH_I2C_Read... [20:19:30]Read from MH i2c: E2 62 00 4E 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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 21 C3 01 00 0E 04 04 00 D7 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 38 [20:19:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 21 C3 01 00 0E 04 04 00 D7 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 [20:19:30]wFMCommunicate OK [20:19:30]SAM_PROTO_GetFieldsCounters done [20:19:30]requested_item shift.num is exist - process it [20:19:30]requested_item shift.opened is exist - process it [20:19:30]req_shift_opened [20:19:30]FM_GetShiftState [20:19:30]SAM_PROTO_GetShiftState [20:19:30]wFMCommunicate request_size=4 [20:19:30]MH_SAM_APDU [20:19:30]CAPDU: 80 13 01 00 [20:19:30]Write to MH i2c: E2 08 00 4F 2B 80 13 01 00 00 00 00 00 F7 [20:19:30]Write i2c OK [20:19:30]MH_I2C_Read... [20:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:30]Read from MH i2c: E2 [20:19:30]MH_I2C_Read... [20:19:30]Read from MH i2c: E2 0E 00 [20:19:30]MH_I2C_Read... [20:19:30]Read from MH i2c: E2 0E 00 4F 2B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 10 [20:19:30]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:19:30]wFMCommunicate OK [20:19:30]SAM_PROTO_GetShiftState done [20:19:30]FM_GetShiftState done [20:19:30]req_shift_opened done [20:19:30]requested_item shift.open_date is exist - process it [20:19:30]req_shift_open_date [20:19:30]req_shift_open_date done [20:19:30]produce_requested_data done [20:19:30]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115489,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [20:19:30]process_action_free close_receipt [20:19:30]json_value_free [20:19:30]json_value_free done [20:19:30]process_json_proto returns [20:19:30]Send response to host [20:19:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115489,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [20:19:30]free response buf [20:19:30]execute_script done [20:19:30]execute_script returns [20:19:30]free content buf [20:19:30]Sock 8.Close socket [20:19:30]Sock 8.Thread stoped [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:54]accept exits with 9 [20:19:54]New connection [20:19:54]New thread 3066682724 created [20:19:54]Thread 3066826084 joined [20:19:54]Waiting for new connection... [20:19:54] Sock 9.Parse request [20:19:54]Sock 9.Check first char [20:19:54]Sock 9.First char is OK [20:19:54]request: POST /json_proto HTTP/1.0 [20:19:54]Method: POST [20:19:54]URL: /json_proto [20:19:54]Method is POST - this is cgi request [20:19:54]url: /json_proto [20:19:54]query_string will be loaded in cgi processing [20:19:54]execute_cgi json_proto POST (null) [20:19:54]execute_cgi path=json_proto method=POST [20:19:54]POST find Content-Length [20:19:54]Host: 172.17.41.136:8080 [20:19:54]Content-Length: 644 [20:19:54]Content-Type: application/json [20:19:54] [20:19:54]POST finish read [20:19:54]Found Content-Length = 644 [20:19:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343923", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:54]execute_script... [20:19:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343923", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:54]POST & json_proto [20:19:54]process_json_proto [20:19:54]json parsed OK: [20:19:54]protocol is kg_v1.0 [20:19:54]action value=close_receipt [20:19:54]process_action close_receipt [20:19:54]cmd_close_receipt [20:19:54]MH_GetDate [20:19:54]Write to MH i2c: F0 00 00 50 2B 6A [20:19:54]Write i2c OK [20:19:54]MH_I2C_Read... [20:19:54]Read from MH i2c: F0 [20:19:54]MH_I2C_Read... [20:19:54]Read from MH i2c: F0 09 00 [20:19:54]MH_I2C_Read... [20:19:54]Read from MH i2c: F0 09 00 50 2B 00 ED 7B F0 66 1B D0 5A 64 DA [20:19:54]GetLastDocTimeStamp 1727036368 [20:19:54]current date 1727036397 [20:19:54]FM_GetShiftState [20:19:54]SAM_PROTO_GetShiftState [20:19:54]wFMCommunicate request_size=4 [20:19:54]MH_SAM_APDU [20:19:54]CAPDU: 80 13 01 00 [20:19:54]Write to MH i2c: E2 08 00 51 2B 80 13 01 00 00 00 00 00 F9 [20:19:54]Write i2c OK [20:19:54]MH_I2C_Read... [20:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:54]Read from MH i2c: E2 [20:19:54]MH_I2C_Read... [20:19:54]Read from MH i2c: E2 0E 00 [20:19:54]MH_I2C_Read... [20:19:54]Read from MH i2c: E2 0E 00 51 2B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 12 [20:19:54]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:19:54]wFMCommunicate OK [20:19:54]SAM_PROTO_GetShiftState done [20:19:54]FM_GetShiftState done [20:19:54]opened in 1726965840 [20:19:54]opened+sec_in_day 1727052240 [20:19:54]quantity*price = 4200 [20:19:54]sum+1 = 4201 [20:19:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 42.00 НСП 1% : 0.37 НДС 12% : 4.46 Наличными: 42.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 208 22.09.2024 20:19 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115490 ФПД: 271569608321864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T201957&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115490&fm=271569608321864&tin=02508201610067®Number=0000000000091831&sum=4200 0 [20:19:55]StoreToDocumentArchive [20:19:55]shift 471 fd 115490 [20:19:55]save to /storage/0471/doc_00115490 [20:19:55]save last doc name /storage/0471/doc_00115490 to /storage/kkm_last_doc_name [20:19:55]save OK [20:19:55]Clear old archive folders... [20:19:55]ProcessDocumentItem done err = 0, tmpTLVsize=275 [20:19:55]tlvbuf is B6D894E0 [20:19:55]SAM_PROTO_ClearQueue [20:19:55]wFMCommunicate request_size=4 [20:19:55]MH_SAM_APDU [20:19:55]CAPDU: 80 09 00 00 [20:19:55]Write to MH i2c: E2 08 00 5E 2B 80 09 00 00 00 00 00 00 FB [20:19:55]Write i2c OK [20:19:55]MH_I2C_Read... [20:19:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:55]Read from MH i2c: E2 [20:19:55]MH_I2C_Read... [20:19:55]Read from MH i2c: E2 03 00 [20:19:55]MH_I2C_Read... [20:19:55]Read from MH i2c: E2 03 00 5E 2B 00 90 00 FD [20:19:55]RAPDU: 90 00 [20:19:55]wFMCommunicate OK [20:19:55]SAM_PROTO_ClearQueue done [20:19:55]KKMCreateOFDPacket [20:19:55]OFDProtocolAddRootSTLVToBuf [20:19:55]FM_MakeSignedData [20:19:55]FM_MakeSignedData [20:19:55]SAM_PROTO_SignData [20:19:55]wFMCommunicate request_size=4 [20:19:55]MH_SAM_APDU [20:19:55]CAPDU: 80 0D 01 02 [20:19:55]Write to MH i2c: E2 08 00 5F 2B 80 0D 01 02 00 00 00 00 03 [20:19:55]Write i2c OK [20:19:55]MH_I2C_Read... [20:19:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:55]Read from MH i2c: E2 [20:19:55]MH_I2C_Read... [20:19:55]Read from MH i2c: E2 03 00 [20:19:55]MH_I2C_Read... [20:19:55]Read from MH i2c: E2 03 00 5F 2B 00 90 00 FE [20:19:55]RAPDU: 90 00 [20:19:55]wFMCommunicate OK [20:19:55]wFMCommunicate request_size=255 [20:19:55]MH_SAM_APDU [20:19:55]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 ED 7B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 [20:19:55]Write to MH i2c: E2 02 01 60 2B 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 ED 7B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 00 00 DE [20:19:55]Write i2c OK [20:19:55]MH_I2C_Read... [20:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:56]Read from MH i2c: E2 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: E2 03 00 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: E2 03 00 60 2B 00 90 00 FF [20:19:56]RAPDU: 90 00 [20:19:56]wFMCommunicate OK [20:19:56]wFMCommunicate request_size=34 [20:19:56]MH_SAM_APDU [20:19:56]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 22 C3 01 00 35 04 06 00 F6 FD BA 09 2B 48 [20:19:56]Write to MH i2c: E2 25 00 61 2B 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 22 C3 01 00 35 04 06 00 F6 FD BA 09 2B 48 00 00 D1 [20:19:56]Write i2c OK [20:19:56]MH_I2C_Read... [20:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:56]Read from MH i2c: E2 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: E2 03 00 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: E2 03 00 61 2B 00 90 00 00 [20:19:56]RAPDU: 90 00 [20:19:56]wFMCommunicate OK [20:19:56]wFMCommunicate request_size=4 [20:19:56]MH_SAM_APDU [20:19:56]CAPDU: 80 0D 03 02 [20:19:56]Write to MH i2c: E2 08 00 62 2B 80 0D 03 02 00 00 00 00 08 [20:19:56]Write i2c OK [20:19:56]MH_I2C_Read... [20:19:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:56]Read from MH i2c: E2 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: E2 0B 00 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: E2 0B 00 62 2B 00 7F AE 4F EC 10 9E BA 19 90 00 F2 [20:19:56]RAPDU: 7F AE 4F EC 10 9E BA 19 90 00 [20:19:56]wFMCommunicate OK [20:19:56]SAM_PROTO_SignData done [20:19:56]FM_MakeSignedData done [20:19:56]CreateOFDProtocolMessage [20:19:56]wFMCommunicate request_size=4 [20:19:56]MH_SAM_APDU [20:19:56]CAPDU: 80 11 00 00 [20:19:56]Write to MH i2c: E2 08 00 63 2B 80 11 00 00 00 00 00 00 08 [20:19:56]Write i2c OK [20:19:56]MH_I2C_Read... [20:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:56]Read from MH i2c: E2 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: E2 17 00 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: E2 17 00 63 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 56 [20:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:19:56]wFMCommunicate OK [20:19:56]CreateOFDProtocolMessage done [20:19:56]OFDSenderStorePacket 115490 [20:19:56]StoreOFDPacket docnum=115490 [20:19:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 C9 EE 1F 01 66 46 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 ED 7B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 22 C3 01 00 35 04 06 00 F6 FD BA 09 2B 48 7F AE 4F EC 10 9E BA 19 [20:19:56]CheckFolder [20:19:56]dirname=/storage/ofd_packets [20:19:56]CheckFolder done [20:19:56]ProducePacketName [20:19:56]name=ofd_packets/00115490 [20:19:56]NVStorageSaveData ofd_packets/00115490 [20:19:56]File name is /storage/ofd_packets/00115490 [20:19:56]Write 325 bytes [20:19:56]NVStorageSaveData done [20:19:56]OFDSenderStorePacket done [20:19:56]KKMCreateOFDPacket done [20:19:56]NVStorageSaveData kkm_last_timestamp [20:19:56]File name is /storage/kkm_last_timestamp [20:19:56]Write 4 bytes [20:19:56]NVStorageSaveData done [20:19:56]ExternCall_PrintAddStr [20:19:56]wPrintStart [20:19:56]Write to MH i2c: 01 00 00 64 2B 8F [20:19:56]Write i2c OK [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: 01 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: 01 07 00 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: 01 07 00 64 2B 00 00 00 00 00 FF 0F A4 [20:19:56]RasterBufferAndPrint [20:19:56]line Счет N : (3)343923 [20:19:56]line ИНН: 02508201610067 [20:19:56]line Контрольно-Кассовый Чек [20:19:56]line ПРОДАЖА [20:19:56]line Товар: 5449000005489 [20:19:56]line Вода Бонаква 1л б/г [20:19:56]line 1.000 * 42.00 [20:19:56]line = 42.00 [20:19:56]line НДС 12% НСП 1% [20:19:56]line > о реализуемом товаре [20:19:56]line ИТОГО: 42.00 [20:19:56]line НСП 1% : 0.37 [20:19:56]line НДС 12% : 4.46 [20:19:56]line Наличными: 42.00 [20:19:56]line Безнал.: 0.00 [20:19:56]line Место: АЗС № 90 "Партнер Нефть" [20:19:56]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:19:56]line СНО: Общий режим [20:19:56]line Чек 208 22.09.2024 20:19 [20:19:56]line Смена: 471 ФФД: 1.0 [20:19:56]line ЗНМ: 0300000120 [20:19:56]line РНМ: 0000000000091831 [20:19:56]line Версия ККМ: 001 [20:19:56]line ФМ: 0000000000871830 [20:19:56]line ФД: 115490 [20:19:56]line ФПД: 271569608321864 [20:19:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T201957&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115490&fm=271569608321864&tin=02508201610067®Number=0000000000091831&sum=4200 [20:19:56]line 0 [20:19:56]written 0, free lines is 4095 [20:19:56]OFD Sender: Processing packet 115490 [packets to send 481, broken 480] [20:19:56]ProducePacketName [20:19:56]name=ofd_packets/00115490 [20:19:56]OFD Sender: To server: pG, [20:19:56]CommunicateWithHost lk.salyk.kg:30040 [20:19:56]ConnectInit lk.salyk.kg [20:19:56]Connected sock=10 [20:19:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 C9 EE 1F 01 66 46 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 ED 7B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 22 C3 01 00 35 04 06 00 F6 FD BA 09 2B 48 7F AE 4F EC 10 9E BA 19 [20:19:56]Write to MH i2c: 01 00 00 8B 2B B6 [20:19:56]Write i2c OK [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: 01 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: 01 07 00 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: 01 07 00 8B 2B 00 00 00 00 00 7C 0C 45 [20:19:56]RasterBufferAndPrint [20:19:56]line [20:19:56]line [20:19:56]line [20:19:56]line [20:19:56]line [20:19:56]written 0, free lines is 3202 [20:19:56]MH_Cut [20:19:56]Write to MH i2c: D1 01 00 92 2B 01 8F [20:19:56]Write i2c OK [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: D1 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: D1 01 00 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: D1 01 00 92 2B 00 8E [20:19:56]Write to MH i2c: 01 00 00 93 2B BE [20:19:56]Write i2c OK [20:19:56]MH_I2C_Read... [20:19:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 55 D7 47 00 9B 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 22 C3 01 00 F4 03 04 00 32 21 F0 66 B6 04 01 00 00 82 E9 50 04 7F 52 58 C7 [20:19:57]CommunicateWithHost err = 0 [20:19:57]CheckOFDResponse [20:19:57]1017 (14) - 77093643461234 [20:19:57]1041 (16) - 0000000000871830 [20:19:57]1040 (4) - 115490 [20:19:57]1012 (4) - 22.09.2024 13:52 [20:19:57]1206 (1) - 0 [20:19:57]OFD Sender: Remove packet 115490 [20:19:57]ProducePacketName [20:19:57]name=ofd_packets/00115490 [20:19:57]NVStorageDeleteData [20:19:57]OFD Sender: No OFD packet to send [20:19:58]*** Cut start [20:19:58]*** Partial cut [20:19:58]*** CUTSNS_PIN = 1 [20:19:58]*** CUTSNS_PIN = 0 [20:19:58]*** Brake cut motor [20:19:58]Read from MH i2c: 01 [20:19:58]MH_I2C_Read... [20:19:58]*** Stop cut motor [20:19:58]*** Cut end [20:19:58]Read from MH i2c: 01 07 00 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: 01 07 00 93 2B 00 00 00 00 00 FF 0F D3 [20:19:58]process_action close_receipt done [20:19:58]requested_data is exist [20:19:58]produce_requested_data [20:19:58]requested_item fm.sn is exist - process it [20:19:58]wFMCommunicate request_size=4 [20:19:58]MH_SAM_APDU [20:19:58]CAPDU: 80 11 00 00 [20:19:58]Write to MH i2c: E2 08 00 94 2B 80 11 00 00 00 00 00 00 39 [20:19:58]Write i2c OK [20:19:58]MH_I2C_Read... [20:19:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:58]Read from MH i2c: E2 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 17 00 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 17 00 94 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 87 [20:19:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:19:58]wFMCommunicate OK [20:19:58]requested_item fd.num is exist - process it [20:19:58]SAM_PROTO_GetFieldsCounters [20:19:58]wFMCommunicate request_size=4 [20:19:58]MH_SAM_APDU [20:19:58]CAPDU: 80 13 00 00 [20:19:58]Write to MH i2c: E2 08 00 95 2B 80 13 00 00 00 00 00 00 3C [20:19:58]Write i2c OK [20:19:58]MH_I2C_Read... [20:19:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:58]Read from MH i2c: E2 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 62 00 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 62 00 95 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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 22 C3 01 00 0E 04 04 00 D7 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 83 [20:19:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 22 C3 01 00 0E 04 04 00 D7 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 [20:19:58]wFMCommunicate OK [20:19:58]SAM_PROTO_GetFieldsCounters done [20:19:58]requested_item shift.num is exist - process it [20:19:58]requested_item shift.opened is exist - process it [20:19:58]req_shift_opened [20:19:58]FM_GetShiftState [20:19:58]SAM_PROTO_GetShiftState [20:19:58]wFMCommunicate request_size=4 [20:19:58]MH_SAM_APDU [20:19:58]CAPDU: 80 13 01 00 [20:19:58]Write to MH i2c: E2 08 00 96 2B 80 13 01 00 00 00 00 00 3E [20:19:58]Write i2c OK [20:19:58]MH_I2C_Read... [20:19:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:58]Read from MH i2c: E2 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 0E 00 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 0E 00 96 2B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 57 [20:19:58]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:19:58]wFMCommunicate OK [20:19:58]SAM_PROTO_GetShiftState done [20:19:58]FM_GetShiftState done [20:19:58]req_shift_opened done [20:19:58]requested_item shift.open_date is exist - process it [20:19:58]req_shift_open_date [20:19:58]req_shift_open_date done [20:19:58]produce_requested_data done [20:19:58]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115490,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [20:19:58]process_action_free close_receipt [20:19:58]json_value_free [20:19:58]json_value_free done [20:19:58]process_json_proto returns [20:19:58]Send response to host [20:19:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115490,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [20:19:58]free response buf [20:19:58]execute_script done [20:19:58]execute_script returns [20:19:58]free content buf [20:19:58]Sock 9.Close socket [20:19:58]Sock 9.Thread stoped [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:39]accept exits with 8 [20:21:39]New connection [20:21:39]New thread 3066826084 created [20:21:39]Thread 3066682724 joined [20:21:39]Waiting for new connection... [20:21:39] Sock 8.Parse request [20:21:39]Sock 8.Check first char [20:21:39]Sock 8.First char is OK [20:21:39]request: POST /json_proto HTTP/1.0 [20:21:39]Method: POST [20:21:39]URL: /json_proto [20:21:39]Method is POST - this is cgi request [20:21:39]url: /json_proto [20:21:39]query_string will be loaded in cgi processing [20:21:39]execute_cgi json_proto POST (null) [20:21:39]execute_cgi path=json_proto method=POST [20:21:39]POST find Content-Length [20:21:39]Host: 172.17.41.136:8080 [20:21:39]Content-Length: 1755 [20:21:39]Content-Type: application/json [20:21:39] [20:21:39]POST finish read [20:21:39]Found Content-Length = 1755 [20:21:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343924", "tax_sys" : 0, "items" : [ { "code": "4600338007564", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043C\u0443\u043B\u044C\u0442\u0438\u0444\u0440\u0443\u043A\u0442 0,2\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 440.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:39]execute_script... [20:21: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 : (3)343924", "tax_sys" : 0, "items" : [ { "code": "4600338007564", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043C\u0443\u043B\u044C\u0442\u0438\u0444\u0440\u0443\u043A\u0442 0,2\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 440.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:39]POST & json_proto [20:21:39]process_json_proto [20:21:39]json parsed OK: [20:21:39]protocol is kg_v1.0 [20:21:39]action value=close_receipt [20:21:39]process_action close_receipt [20:21:39]cmd_close_receipt [20:21:39]MH_GetDate [20:21:39]Write to MH i2c: F0 00 00 97 2B B1 [20:21:39]Write i2c OK [20:21:39]MH_I2C_Read... [20:21:39]Read from MH i2c: F0 [20:21:39]MH_I2C_Read... [20:21:39]Read from MH i2c: F0 09 00 [20:21:39]MH_I2C_Read... [20:21:39]Read from MH i2c: F0 09 00 97 2B 00 56 7C F0 66 1B D0 5A 64 8B [20:21:39]GetLastDocTimeStamp 1727036397 [20:21:39]current date 1727036502 [20:21:39]FM_GetShiftState [20:21:39]SAM_PROTO_GetShiftState [20:21:39]wFMCommunicate request_size=4 [20:21:39]MH_SAM_APDU [20:21:39]CAPDU: 80 13 01 00 [20:21:39]Write to MH i2c: E2 08 00 98 2B 80 13 01 00 00 00 00 00 40 [20:21:39]Write i2c OK [20:21:39]MH_I2C_Read... [20:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:39]Read from MH i2c: E2 [20:21:39]MH_I2C_Read... [20:21:39]Read from MH i2c: E2 0E 00 [20:21:39]MH_I2C_Read... [20:21:39]Read from MH i2c: E2 0E 00 98 2B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 59 [20:21:39]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:21:39]wFMCommunicate OK [20:21:39]SAM_PROTO_GetShiftState done [20:21:39]FM_GetShiftState done [20:21:39]opened in 1726965840 [20:21:39]opened+sec_in_day 1727052240 [20:21:39]quantity*price = 13000 [20:21:39]sum+1 = 13001 [20:21:39]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600338001623 Вода Фруто НЯНЯ негазир д/детей 0,33л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 440.00 НСП 1% : 3.90 НДС 12% : 46.72 Наличными: 0.00 Безнал.: 440.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 209 22.09.2024 20:21 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115491 ФПД: 223333715511507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T202142&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115491&fm=223333715511507&tin=02508201610067®Number=0000000000091831&sum=44000 0 [20:21:40]StoreToDocumentArchive [20:21:40]shift 471 fd 115491 [20:21:40]save to /storage/0471/doc_00115491 [20:21:40]save last doc name /storage/0471/doc_00115491 to /storage/kkm_last_doc_name [20:21:40]save OK [20:21:40]Clear old archive folders... [20:21:40]ProcessDocumentItem done err = 0, tmpTLVsize=655 [20:21:40]tlvbuf is 01C25030 [20:21:40]SAM_PROTO_ClearQueue [20:21:40]wFMCommunicate request_size=4 [20:21:40]MH_SAM_APDU [20:21:40]CAPDU: 80 09 00 00 [20:21:40]Write to MH i2c: E2 08 00 A5 2B 80 09 00 00 00 00 00 00 42 [20:21:40]Write i2c OK [20:21:40]MH_I2C_Read... [20:21:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:40]Read from MH i2c: E2 [20:21:40]MH_I2C_Read... [20:21:40]Read from MH i2c: E2 03 00 [20:21:40]MH_I2C_Read... [20:21:40]Read from MH i2c: E2 03 00 A5 2B 00 90 00 44 [20:21:40]RAPDU: 90 00 [20:21:40]wFMCommunicate OK [20:21:40]SAM_PROTO_ClearQueue done [20:21:40]KKMCreateOFDPacket [20:21:40]OFDProtocolAddRootSTLVToBuf [20:21:40]FM_MakeSignedData [20:21:40]FM_MakeSignedData [20:21:40]SAM_PROTO_SignData [20:21:40]wFMCommunicate request_size=4 [20:21:40]MH_SAM_APDU [20:21:40]CAPDU: 80 0D 01 02 [20:21:40]Write to MH i2c: E2 08 00 A6 2B 80 0D 01 02 00 00 00 00 4A [20:21:40]Write i2c OK [20:21:40]MH_I2C_Read... [20:21:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:40]Read from MH i2c: E2 [20:21:40]MH_I2C_Read... [20:21:40]Read from MH i2c: E2 03 00 [20:21:40]MH_I2C_Read... [20:21:40]Read from MH i2c: E2 03 00 A6 2B 00 90 00 45 [20:21:40]RAPDU: 90 00 [20:21:40]wFMCommunicate OK [20:21:40]wFMCommunicate request_size=255 [20:21:40]MH_SAM_APDU [20:21:40]CAPDU: 80 0D 02 02 FA 03 00 8F 02 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 [20:21:40]Write to MH i2c: E2 02 01 A7 2B 80 0D 02 02 FA 00 03 00 8F 02 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 00 0E [20:21:40]Write i2c OK [20:21:40]MH_I2C_Read... [20:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:41]Read from MH i2c: E2 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: E2 03 00 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: E2 03 00 A7 2B 00 90 00 46 [20:21:41]RAPDU: 90 00 [20:21:41]wFMCommunicate OK [20:21:41]wFMCommunicate request_size=255 [20:21:41]MH_SAM_APDU [20:21:41]CAPDU: 80 0D 02 02 FA 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB [20:21:41]Write to MH i2c: E2 02 01 A8 2B 80 0D 02 02 FA 00 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 EE [20:21:41]Write i2c OK [20:21:41]MH_I2C_Read... [20:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:41]Read from MH i2c: E2 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: E2 03 00 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: E2 03 00 A8 2B 00 90 00 47 [20:21:41]RAPDU: 90 00 [20:21:41]wFMCommunicate OK [20:21:41]wFMCommunicate request_size=164 [20:21:41]MH_SAM_APDU [20:21:41]CAPDU: 80 0D 02 02 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 56 7C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 23 C3 01 00 35 04 06 00 CB 1E EE C7 88 D3 [20:21:41]Write to MH i2c: E2 A7 00 A9 2B 80 0D 02 02 9F 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 56 7C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 23 C3 01 00 35 04 06 00 CB 1E EE C7 88 D3 00 00 D6 [20:21:41]Write i2c OK [20:21:41]MH_I2C_Read... [20:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:41]Read from MH i2c: E2 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: E2 03 00 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: E2 03 00 A9 2B 00 90 00 48 [20:21:41]RAPDU: 90 00 [20:21:41]wFMCommunicate OK [20:21:41]wFMCommunicate request_size=4 [20:21:41]MH_SAM_APDU [20:21:41]CAPDU: 80 0D 03 02 [20:21:41]Write to MH i2c: E2 08 00 AA 2B 80 0D 03 02 00 00 00 00 50 [20:21:41]Write i2c OK [20:21:41]MH_I2C_Read... [20:21:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:41]Read from MH i2c: E2 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: E2 0B 00 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: E2 0B 00 AA 2B 00 9D FF 97 70 09 89 BB D8 90 00 19 [20:21:41]RAPDU: 9D FF 97 70 09 89 BB D8 90 00 [20:21:41]wFMCommunicate OK [20:21:41]SAM_PROTO_SignData done [20:21:41]FM_MakeSignedData done [20:21:41]CreateOFDProtocolMessage [20:21:41]wFMCommunicate request_size=4 [20:21:41]MH_SAM_APDU [20:21:41]CAPDU: 80 11 00 00 [20:21:41]Write to MH i2c: E2 08 00 AB 2B 80 11 00 00 00 00 00 00 50 [20:21:41]Write i2c OK [20:21:41]MH_I2C_Read... [20:21:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:41]Read from MH i2c: E2 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: E2 17 00 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: E2 17 00 AB 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9E [20:21:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:21:41]wFMCommunicate OK [20:21:41]CreateOFDProtocolMessage done [20:21:41]OFDSenderStorePacket 115491 [20:21:41]StoreOFDPacket docnum=115491 [20:21:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A3 02 00 00 0F DD 9B 02 5A EB 5A 03 01 00 03 00 8F 02 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 56 7C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 23 C3 01 00 35 04 06 00 CB 1E EE C7 88 D3 9D FF 97 70 09 89 BB D8 [20:21:41]CheckFolder [20:21:41]dirname=/storage/ofd_packets [20:21:41]CheckFolder done [20:21:41]ProducePacketName [20:21:41]name=ofd_packets/00115491 [20:21:41]NVStorageSaveData ofd_packets/00115491 [20:21:41]File name is /storage/ofd_packets/00115491 [20:21:41]Write 705 bytes [20:21:41]NVStorageSaveData done [20:21:41]OFDSenderStorePacket done [20:21:41]KKMCreateOFDPacket done [20:21:41]NVStorageSaveData kkm_last_timestamp [20:21:41]File name is /storage/kkm_last_timestamp [20:21:41]Write 4 bytes [20:21:41]NVStorageSaveData done [20:21:41]ExternCall_PrintAddStr [20:21:41]wPrintStart [20:21:41]Write to MH i2c: 01 00 00 AC 2B D7 [20:21:41]Write i2c OK [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: 01 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: 01 07 00 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: 01 07 00 AC 2B 00 00 00 00 00 FF 0F EC [20:21:41]RasterBufferAndPrint [20:21:41]line Счет N : (3)343924 [20:21:41]line ИНН: 02508201610067 [20:21:42]line Контрольно-Кассовый Чек [20:21:42]line ПРОДАЖА [20:21:42]line Товар: 4600338007564 [20:21:42]line Сок Фруто НЯНЯ мультифрукт 0,2л [20:21:42]line 2.000 * 65.00 [20:21:42]line = 130.00 [20:21:42]line НДС 12% НСП 1% [20:21:42]line > о реализуемом товаре [20:21:42]line Товар: 4600338001623 [20:21:42]line Вода Фруто НЯНЯ негазир д/детей 0,33л [20:21:42]line 1.000 * 80.00 [20:21:42]line = 80.00 [20:21:42]line НДС 12% НСП 1% [20:21:42]line > о реализуемом товаре [20:21:42]line Товар: 5449000054227 [20:21:42]line Напиток Кока-Кола 1л [20:21:42]line 1.000 * 105.00 [20:21:42]line = 105.00 [20:21:42]line НДС 12% НСП 1% [20:21:42]line > о реализуемом товаре [20:21:42]line Товар: 2000036190018 [20:21:42]line Кофе Американо XL(GABB TRADE) [20:21:42]line 1.000 * 125.00 [20:21:42]line = 125.00 [20:21:42]line НДС 12% НСП 1% [20:21:42]line > о реализуемом товаре [20:21:42]line ИТОГО: 440.00 [20:21:42]line НСП 1% : 3.90 [20:21:42]line НДС 12% : 46.72 [20:21:42]line Наличными: 0.00 [20:21:42]line Безнал.: 440.00 [20:21:42]line Место: АЗС № 90 "Партнер Нефть" [20:21:42]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:21:42]line СНО: Общий режим [20:21:42]line Чек 209 22.09.2024 20:21 [20:21:42]line Смена: 471 ФФД: 1.0 [20:21:42]line ЗНМ: 0300000120 [20:21:42]line РНМ: 0000000000091831 [20:21:42]line Версия ККМ: 001 [20:21:42]line Платежная система: O! деньги [20:21:42]line ФМ: 0000000000871830 [20:21:42]line ФД: 115491 [20:21:42]line ФПД: 223333715511507 [20:21:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T202142&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115491&fm=223333715511507&tin=02508201610067®Number=0000000000091831&sum=44000 [20:21:42]line 0 [20:21:42]OFD Sender: Processing packet 115491 [packets to send 481, broken 480] [20:21:42]ProducePacketName [20:21:42]name=ofd_packets/00115491 [20:21:42]OFD Sender: To server: pG, [20:21:42]CommunicateWithHost lk.salyk.kg:30040 [20:21:42]ConnectInit lk.salyk.kg [20:21:42]written 0, free lines is 4095 [20:21:42]Connected sock=10 [20:21:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A3 02 00 00 0F DD 9B 02 5A EB 5A 03 01 00 03 00 8F 02 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 56 7C F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 23 C3 01 00 35 04 06 00 CB 1E EE C7 88 D3 9D FF 97 70 09 89 BB D8 [20:21:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 0E 0B 47 00 4D 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 23 C3 01 00 F4 03 04 00 9C 21 F0 66 B6 04 01 00 00 16 65 8D DB 67 7A 9C 6C [20:21:42]CommunicateWithHost err = 0 [20:21:42]CheckOFDResponse [20:21:42]1017 (14) - 77093643461234 [20:21:42]1041 (16) - 0000000000871830 [20:21:42]1040 (4) - 115491 [20:21:42]1012 (4) - 22.09.2024 13:54 [20:21:42]1206 (1) - 0 [20:21:42]OFD Sender: Remove packet 115491 [20:21:42]ProducePacketName [20:21:42]name=ofd_packets/00115491 [20:21:42]NVStorageDeleteData [20:21:42]Write to MH i2c: 01 00 00 EA 2B 15 [20:21:42]Write i2c OK [20:21:42]MH_I2C_Read... [20:21:42]Read from MH i2c: 01 [20:21:42]MH_I2C_Read... [20:21:42]Read from MH i2c: 01 07 00 [20:21:42]MH_I2C_Read... [20:21:42]Read from MH i2c: 01 07 00 EA 2B 00 00 00 00 00 93 0A B9 [20:21:42]RasterBufferAndPrint [20:21:42]line [20:21:42]line [20:21:42]line [20:21:42]line [20:21:42]line [20:21:42]written 0, free lines is 2712 [20:21:42]MH_Cut [20:21:42]Write to MH i2c: D1 01 00 F1 2B 01 EE [20:21:42]Write i2c OK [20:21:42]MH_I2C_Read... [20:21:42]Read from MH i2c: D1 [20:21:42]MH_I2C_Read... [20:21:42]Read from MH i2c: D1 01 00 [20:21:42]MH_I2C_Read... [20:21:42]Read from MH i2c: D1 01 00 F1 2B 00 ED [20:21:42]Write to MH i2c: 01 00 00 F2 2B 1D [20:21:42]Write i2c OK [20:21:42]MH_I2C_Read... [20:21:43]OFD Sender: No OFD packet to send [20:21:44]*** Cut start [20:21:44]*** Partial cut [20:21:44]*** CUTSNS_PIN = 1 [20:21:44]*** CUTSNS_PIN = 0 [20:21:44]*** Brake cut motor [20:21:45]Read from MH i2c: 01 [20:21:45]MH_I2C_Read... [20:21:45]*** Stop cut motor [20:21:45]*** Cut end [20:21:45]Read from MH i2c: 01 07 00 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: 01 07 00 F2 2B 00 00 00 00 00 FF 0F 32 [20:21:45]process_action close_receipt done [20:21:45]requested_data is exist [20:21:45]produce_requested_data [20:21:45]requested_item fm.sn is exist - process it [20:21:45]wFMCommunicate request_size=4 [20:21:45]MH_SAM_APDU [20:21:45]CAPDU: 80 11 00 00 [20:21:45]Write to MH i2c: E2 08 00 F3 2B 80 11 00 00 00 00 00 00 98 [20:21:45]Write i2c OK [20:21:45]MH_I2C_Read... [20:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:45]Read from MH i2c: E2 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: E2 17 00 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: E2 17 00 F3 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E6 [20:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:21:45]wFMCommunicate OK [20:21:45]requested_item fd.num is exist - process it [20:21:45]SAM_PROTO_GetFieldsCounters [20:21:45]wFMCommunicate request_size=4 [20:21:45]MH_SAM_APDU [20:21:45]CAPDU: 80 13 00 00 [20:21:45]Write to MH i2c: E2 08 00 F4 2B 80 13 00 00 00 00 00 00 9B [20:21:45]Write i2c OK [20:21:45]MH_I2C_Read... [20:21:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:45]Read from MH i2c: E2 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: E2 62 00 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: E2 62 00 F4 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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 23 C3 01 00 0E 04 04 00 D7 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 E6 [20:21:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 23 C3 01 00 0E 04 04 00 D7 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 [20:21:45]wFMCommunicate OK [20:21:45]SAM_PROTO_GetFieldsCounters done [20:21:45]requested_item shift.num is exist - process it [20:21:45]requested_item shift.opened is exist - process it [20:21:45]req_shift_opened [20:21:45]FM_GetShiftState [20:21:45]SAM_PROTO_GetShiftState [20:21:45]wFMCommunicate request_size=4 [20:21:45]MH_SAM_APDU [20:21:45]CAPDU: 80 13 01 00 [20:21:45]Write to MH i2c: E2 08 00 F5 2B 80 13 01 00 00 00 00 00 9D [20:21:45]Write i2c OK [20:21:45]MH_I2C_Read... [20:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:45]Read from MH i2c: E2 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: E2 0E 00 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: E2 0E 00 F5 2B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B6 [20:21:45]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:21:45]wFMCommunicate OK [20:21:45]SAM_PROTO_GetShiftState done [20:21:45]FM_GetShiftState done [20:21:45]req_shift_opened done [20:21:45]requested_item shift.open_date is exist - process it [20:21:45]req_shift_open_date [20:21:45]req_shift_open_date done [20:21:45]produce_requested_data done [20:21:45]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115491,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [20:21:45]process_action_free close_receipt [20:21:45]json_value_free [20:21:45]json_value_free done [20:21:45]process_json_proto returns [20:21:45]Send response to host [20:21:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115491,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [20:21:45]free response buf [20:21:45]execute_script done [20:21:45]execute_script returns [20:21:45]free content buf [20:21:45]Sock 8.Close socket [20:21:45]Sock 8.Thread stoped [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:52]accept exits with 9 [20:25:52]New connection [20:25:52]New thread 3066682724 created [20:25:52]Thread 3066826084 joined [20:25:52]Waiting for new connection... [20:25:52] Sock 9.Parse request [20:25:52]Sock 9.Check first char [20:25:52]Sock 9.First char is OK [20:25:52]request: POST /json_proto HTTP/1.0 [20:25:52]Method: POST [20:25:52]URL: /json_proto [20:25:52]Method is POST - this is cgi request [20:25:52]url: /json_proto [20:25:52]query_string will be loaded in cgi processing [20:25:52]execute_cgi json_proto POST (null) [20:25:52]execute_cgi path=json_proto method=POST [20:25:52]POST find Content-Length [20:25:52]Host: 172.17.41.136:8080 [20:25:52]Content-Length: 614 [20:25:52]Content-Type: application/json [20:25:52] [20:25:52]POST finish read [20:25:52]Found Content-Length = 614 [20:25:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343925", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:52]execute_script... [20:25:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343925", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:52]POST & json_proto [20:25:52]process_json_proto [20:25:52]json parsed OK: [20:25:52]protocol is kg_v1.0 [20:25:52]action value=close_receipt [20:25:52]process_action close_receipt [20:25:52]cmd_close_receipt [20:25:52]MH_GetDate [20:25:52]Write to MH i2c: F0 00 00 F6 2B 10 [20:25:52]Write i2c OK [20:25:52]MH_I2C_Read... [20:25:52]Read from MH i2c: F0 [20:25:52]MH_I2C_Read... [20:25:52]Read from MH i2c: F0 09 00 [20:25:52]MH_I2C_Read... [20:25:52]Read from MH i2c: F0 09 00 F6 2B 00 53 7D F0 66 1B D0 5A 64 E8 [20:25:52]GetLastDocTimeStamp 1727036502 [20:25:52]current date 1727036755 [20:25:52]FM_GetShiftState [20:25:52]SAM_PROTO_GetShiftState [20:25:52]wFMCommunicate request_size=4 [20:25:52]MH_SAM_APDU [20:25:52]CAPDU: 80 13 01 00 [20:25:52]Write to MH i2c: E2 08 00 F7 2B 80 13 01 00 00 00 00 00 9F [20:25:52]Write i2c OK [20:25:52]MH_I2C_Read... [20:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:52]Read from MH i2c: E2 [20:25:52]MH_I2C_Read... [20:25:52]Read from MH i2c: E2 0E 00 [20:25:52]MH_I2C_Read... [20:25:52]Read from MH i2c: E2 0E 00 F7 2B 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B8 [20:25:52]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:25:52]wFMCommunicate OK [20:25:52]SAM_PROTO_GetShiftState done [20:25:52]FM_GetShiftState done [20:25:52]opened in 1726965840 [20:25:52]opened+sec_in_day 1727052240 [20:25:52]quantity*price = 11000 [20:25:52]sum+1 = 11001 [20:25:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 210 22.09.2024 20:25 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115492 ФПД: 244515574560203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T202555&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115492&fm=244515574560203&tin=02508201610067®Number=0000000000091831&sum=11000 0 [20:25:53]StoreToDocumentArchive [20:25:53]shift 471 fd 115492 [20:25:53]save to /storage/0471/doc_00115492 [20:25:53]save last doc name /storage/0471/doc_00115492 to /storage/kkm_last_doc_name [20:25:53]save OK [20:25:53]Clear old archive folders... [20:25:53]ProcessDocumentItem done err = 0, tmpTLVsize=266 [20:25:53]tlvbuf is 01C6B8C0 [20:25:53]SAM_PROTO_ClearQueue [20:25:53]wFMCommunicate request_size=4 [20:25:53]MH_SAM_APDU [20:25:53]CAPDU: 80 09 00 00 [20:25:53]Write to MH i2c: E2 08 00 04 2C 80 09 00 00 00 00 00 00 A2 [20:25:53]Write i2c OK [20:25:53]MH_I2C_Read... [20:25:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:53]Read from MH i2c: E2 [20:25:53]MH_I2C_Read... [20:25:53]Read from MH i2c: E2 03 00 [20:25:53]MH_I2C_Read... [20:25:53]Read from MH i2c: E2 03 00 04 2C 00 90 00 A4 [20:25:53]RAPDU: 90 00 [20:25:53]wFMCommunicate OK [20:25:53]SAM_PROTO_ClearQueue done [20:25:53]KKMCreateOFDPacket [20:25:53]OFDProtocolAddRootSTLVToBuf [20:25:53]FM_MakeSignedData [20:25:53]FM_MakeSignedData [20:25:53]SAM_PROTO_SignData [20:25:53]wFMCommunicate request_size=4 [20:25:53]MH_SAM_APDU [20:25:53]CAPDU: 80 0D 01 02 [20:25:53]Write to MH i2c: E2 08 00 05 2C 80 0D 01 02 00 00 00 00 AA [20:25:53]Write i2c OK [20:25:53]MH_I2C_Read... [20:25:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:53]Read from MH i2c: E2 [20:25:53]MH_I2C_Read... [20:25:53]Read from MH i2c: E2 03 00 [20:25:53]MH_I2C_Read... [20:25:53]Read from MH i2c: E2 03 00 05 2C 00 90 00 A5 [20:25:53]RAPDU: 90 00 [20:25:53]wFMCommunicate OK [20:25:53]wFMCommunicate request_size=255 [20:25:53]MH_SAM_APDU [20:25:53]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 53 7D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [20:25:53]Write to MH i2c: E2 02 01 06 2C 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 53 7D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 EE [20:25:53]Write i2c OK [20:25:53]MH_I2C_Read... [20:25:53]OFD Sender: No OFD packet to send [20:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:53]Read from MH i2c: E2 [20:25:53]MH_I2C_Read... [20:25:53]Read from MH i2c: E2 03 00 [20:25:53]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 03 00 06 2C 00 90 00 A6 [20:25:54]RAPDU: 90 00 [20:25:54]wFMCommunicate OK [20:25:54]wFMCommunicate request_size=25 [20:25:54]MH_SAM_APDU [20:25:54]CAPDU: 80 0D 02 02 14 33 30 10 04 04 00 24 C3 01 00 35 04 06 00 DE 62 B7 F6 B5 CB [20:25:54]Write to MH i2c: E2 1C 00 07 2C 80 0D 02 02 14 00 33 30 10 04 04 00 24 C3 01 00 35 04 06 00 DE 62 B7 F6 B5 CB 00 00 E4 [20:25:54]Write i2c OK [20:25:54]MH_I2C_Read... [20:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:54]Read from MH i2c: E2 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 03 00 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 03 00 07 2C 00 90 00 A7 [20:25:54]RAPDU: 90 00 [20:25:54]wFMCommunicate OK [20:25:54]wFMCommunicate request_size=4 [20:25:54]MH_SAM_APDU [20:25:54]CAPDU: 80 0D 03 02 [20:25:54]Write to MH i2c: E2 08 00 08 2C 80 0D 03 02 00 00 00 00 AF [20:25:54]Write i2c OK [20:25:54]MH_I2C_Read... [20:25:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:54]Read from MH i2c: E2 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 0B 00 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 0B 00 08 2C 00 5D 7B 8A 16 DC A4 E0 5E 90 00 E6 [20:25:54]RAPDU: 5D 7B 8A 16 DC A4 E0 5E 90 00 [20:25:54]wFMCommunicate OK [20:25:54]SAM_PROTO_SignData done [20:25:54]FM_MakeSignedData done [20:25:54]CreateOFDProtocolMessage [20:25:54]wFMCommunicate request_size=4 [20:25:54]MH_SAM_APDU [20:25:54]CAPDU: 80 11 00 00 [20:25:54]Write to MH i2c: E2 08 00 09 2C 80 11 00 00 00 00 00 00 AF [20:25:54]Write i2c OK [20:25:54]MH_I2C_Read... [20:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:54]Read from MH i2c: E2 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 17 00 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 17 00 09 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FD [20:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:25:54]wFMCommunicate OK [20:25:54]CreateOFDProtocolMessage done [20:25:54]OFDSenderStorePacket 115492 [20:25:54]StoreOFDPacket docnum=115492 [20:25:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 01 00 00 9E 2A 16 01 83 AD 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 53 7D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 24 C3 01 00 35 04 06 00 DE 62 B7 F6 B5 CB 5D 7B 8A 16 DC A4 E0 5E [20:25:54]CheckFolder [20:25:54]dirname=/storage/ofd_packets [20:25:54]CheckFolder done [20:25:54]ProducePacketName [20:25:54]name=ofd_packets/00115492 [20:25:54]NVStorageSaveData ofd_packets/00115492 [20:25:54]File name is /storage/ofd_packets/00115492 [20:25:54]Write 316 bytes [20:25:54]NVStorageSaveData done [20:25:54]OFDSenderStorePacket done [20:25:54]KKMCreateOFDPacket done [20:25:54]NVStorageSaveData kkm_last_timestamp [20:25:54]File name is /storage/kkm_last_timestamp [20:25:54]Write 4 bytes [20:25:54]NVStorageSaveData done [20:25:54]ExternCall_PrintAddStr [20:25:54]wPrintStart [20:25:54]Write to MH i2c: 01 00 00 0A 2C 36 [20:25:54]Write i2c OK [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: 01 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: 01 07 00 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: 01 07 00 0A 2C 00 00 00 00 00 FF 0F 4B [20:25:54]RasterBufferAndPrint [20:25:54]line Счет N : (3)343925 [20:25:54]line ИНН: 02508201610067 [20:25:54]line Контрольно-Кассовый Чек [20:25:54]line ПРОДАЖА [20:25:54]line Товар: 4870001570071 [20:25:54]line Напиток Pepsi 1л [20:25:54]line 1.000 * 110.00 [20:25:54]line = 110.00 [20:25:54]line НДС 12% НСП 1% [20:25:54]line > о реализуемом товаре [20:25:54]line ИТОГО: 110.00 [20:25:54]line НСП 1% : 0.97 [20:25:54]line НДС 12% : 11.68 [20:25:54]line Наличными: 110.00 [20:25:54]line Безнал.: 0.00 [20:25:54]line Место: АЗС № 90 "Партнер Нефть" [20:25:54]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:25:54]line СНО: Общий режим [20:25:54]line Чек 210 22.09.2024 20:25 [20:25:54]line Смена: 471 ФФД: 1.0 [20:25:54]line ЗНМ: 0300000120 [20:25:54]line РНМ: 0000000000091831 [20:25:54]line Версия ККМ: 001 [20:25:54]line ФМ: 0000000000871830 [20:25:54]line ФД: 115492 [20:25:54]line ФПД: 244515574560203 [20:25:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T202555&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115492&fm=244515574560203&tin=02508201610067®Number=0000000000091831&sum=11000 [20:25:54]line 0 [20:25:54]OFD Sender: Processing packet 115492 [packets to send 481, broken 480] [20:25:54]ProducePacketName [20:25:54]name=ofd_packets/00115492 [20:25:54]OFD Sender: To server: pG, [20:25:54]CommunicateWithHost lk.salyk.kg:30040 [20:25:54]ConnectInit lk.salyk.kg [20:25:54]written 0, free lines is 4095 [20:25:54]Connected sock=10 [20:25:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 01 00 00 9E 2A 16 01 83 AD 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 53 7D F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 24 C3 01 00 35 04 06 00 DE 62 B7 F6 B5 CB 5D 7B 8A 16 DC A4 E0 5E [20:25:54]Write to MH i2c: 01 00 00 31 2C 5D [20:25:54]Write i2c OK [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: 01 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: 01 07 00 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: 01 07 00 31 2C 00 00 00 00 00 80 0C F0 [20:25:54]RasterBufferAndPrint [20:25:54]line [20:25:54]line [20:25:54]line [20:25:54]line [20:25:54]line [20:25:54]written 0, free lines is 3205 [20:25:54]MH_Cut [20:25:54]Write to MH i2c: D1 01 00 38 2C 01 36 [20:25:54]Write i2c OK [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: D1 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: D1 01 00 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: D1 01 00 38 2C 00 35 [20:25:54]Write to MH i2c: 01 00 00 39 2C 65 [20:25:54]Write i2c OK [20:25:54]MH_I2C_Read... [20:25:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 87 C0 47 00 4F 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 31 38 33 30 10 04 04 00 24 C3 01 00 F4 03 04 00 98 22 F0 66 B6 04 01 00 00 4C B3 9E 71 7C 33 90 51 [20:25:55]CommunicateWithHost err = 0 [20:25:55]CheckOFDResponse [20:25:55]1017 (14) - 77093643461234 [20:25:55]1041 (16) - 0000000000871830 [20:25:55]1040 (4) - 115492 [20:25:55]1012 (4) - 22.09.2024 13:58 [20:25:55]1206 (1) - 0 [20:25:55]OFD Sender: Remove packet 115492 [20:25:55]ProducePacketName [20:25:55]name=ofd_packets/00115492 [20:25:55]NVStorageDeleteData [20:25:55]OFD Sender: No OFD packet to send [20:25:56]*** Cut start [20:25:56]*** Partial cut [20:25:56]*** CUTSNS_PIN = 1 [20:25:56]*** CUTSNS_PIN = 0 [20:25:56]*** Brake cut motor [20:25:56]Read from MH i2c: 01 [20:25:56]MH_I2C_Read... [20:25:56]*** Stop cut motor [20:25:56]*** Cut end [20:25:56]Read from MH i2c: 01 07 00 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: 01 07 00 39 2C 00 00 00 00 00 FF 0F 7A [20:25:56]process_action close_receipt done [20:25:56]requested_data is exist [20:25:56]produce_requested_data [20:25:56]requested_item fm.sn is exist - process it [20:25:56]wFMCommunicate request_size=4 [20:25:56]MH_SAM_APDU [20:25:56]CAPDU: 80 11 00 00 [20:25:56]Write to MH i2c: E2 08 00 3A 2C 80 11 00 00 00 00 00 00 E0 [20:25:56]Write i2c OK [20:25:56]MH_I2C_Read... [20:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:56]Read from MH i2c: E2 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: E2 17 00 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: E2 17 00 3A 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2E [20:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:25:56]wFMCommunicate OK [20:25:56]requested_item fd.num is exist - process it [20:25:56]SAM_PROTO_GetFieldsCounters [20:25:56]wFMCommunicate request_size=4 [20:25:56]MH_SAM_APDU [20:25:56]CAPDU: 80 13 00 00 [20:25:56]Write to MH i2c: E2 08 00 3B 2C 80 13 00 00 00 00 00 00 E3 [20:25:56]Write i2c OK [20:25:56]MH_I2C_Read... [20:25:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:57]Read from MH i2c: E2 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: E2 62 00 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: E2 62 00 3B 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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 24 C3 01 00 0E 04 04 00 D7 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 32 [20: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 24 C3 01 00 0E 04 04 00 D7 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 [20:25:57]wFMCommunicate OK [20:25:57]SAM_PROTO_GetFieldsCounters done [20:25:57]requested_item shift.num is exist - process it [20:25:57]requested_item shift.opened is exist - process it [20:25:57]req_shift_opened [20:25:57]FM_GetShiftState [20:25:57]SAM_PROTO_GetShiftState [20:25:57]wFMCommunicate request_size=4 [20:25:57]MH_SAM_APDU [20:25:57]CAPDU: 80 13 01 00 [20:25:57]Write to MH i2c: E2 08 00 3C 2C 80 13 01 00 00 00 00 00 E5 [20:25:57]Write i2c OK [20:25:57]MH_I2C_Read... [20:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:57]Read from MH i2c: E2 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: E2 0E 00 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: E2 0E 00 3C 2C 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 FE [20:25:57]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:25:57]wFMCommunicate OK [20:25:57]SAM_PROTO_GetShiftState done [20:25:57]FM_GetShiftState done [20:25:57]req_shift_opened done [20:25:57]requested_item shift.open_date is exist - process it [20:25:57]req_shift_open_date [20:25:57]req_shift_open_date done [20:25:57]produce_requested_data done [20:25:57]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115492,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [20:25:57]process_action_free close_receipt [20:25:57]json_value_free [20:25:57]json_value_free done [20:25:57]process_json_proto returns [20:25:57]Send response to host [20:25:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115492,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [20:25:57]free response buf [20:25:57]execute_script done [20:25:57]execute_script returns [20:25:57]free content buf [20:25:57]Sock 9.Close socket [20:25:57]Sock 9.Thread stoped [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:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:17]accept exits with 8 [20:32:17]New connection [20:32:17]New thread 3066826084 created [20:32:17]Thread 3066682724 joined [20:32:17]Waiting for new connection... [20:32:17] Sock 8.Parse request [20:32:17]Sock 8.Check first char [20:32:17]Sock 8.First char is OK [20:32:17]request: POST /json_proto HTTP/1.0 [20:32:17]Method: POST [20:32:17]URL: /json_proto [20:32:17]Method is POST - this is cgi request [20:32:17]url: /json_proto [20:32:17]query_string will be loaded in cgi processing [20:32:17]execute_cgi json_proto POST (null) [20:32:17]execute_cgi path=json_proto method=POST [20:32:17]POST find Content-Length [20:32:17]Host: 172.17.41.136:8080 [20:32:17]Content-Length: 756 [20:32:17]Content-Type: application/json [20:32:17] [20:32:17]POST finish read [20:32:17]Found Content-Length = 756 [20:32:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30014395", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:17]execute_script... [20:32: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)24617183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30014395", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:17]POST & json_proto [20:32:17]process_json_proto [20:32:17]json parsed OK: [20:32:17]protocol is kg_v1.0 [20:32:17]action value=close_receipt [20:32:17]process_action close_receipt [20:32:17]cmd_close_receipt [20:32:17]MH_GetDate [20:32:17]Write to MH i2c: F0 00 00 3D 2C 58 [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: F0 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: F0 09 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: F0 09 00 3D 2C 00 D4 7E F0 66 1B D0 5A 64 B2 [20:32:17]GetLastDocTimeStamp 1727036755 [20:32:17]current date 1727037140 [20:32:17]FM_GetShiftState [20:32:17]SAM_PROTO_GetShiftState [20:32:17]wFMCommunicate request_size=4 [20:32:17]MH_SAM_APDU [20:32:17]CAPDU: 80 13 01 00 [20:32:17]Write to MH i2c: E2 08 00 3E 2C 80 13 01 00 00 00 00 00 E7 [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:17]Read from MH i2c: E2 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 0E 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 0E 00 3E 2C 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 00 [20:32:17]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:32:17]wFMCommunicate OK [20:32:17]SAM_PROTO_GetShiftState done [20:32:17]FM_GetShiftState done [20:32:17]opened in 1726965840 [20:32:17]opened+sec_in_day 1727052240 [20:32:17]quantity*price = 0 [20:32:17]sum+1 = 1 [20:32:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 211 22.09.2024 20:32 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30014395 ФМ: 0000000000871830 ФД: 115493 ФПД: 37374208893353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T203220&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115493&fm=37374208893353&tin=02508201610067®Number=0000000000091831&sum=0 [20:32:18]StoreToDocumentArchive [20:32:18]shift 471 fd 115493 [20:32:18]save to /storage/0471/doc_00115493 [20:32:18]save last doc name /storage/0471/doc_00115493 to /storage/kkm_last_doc_name [20:32:18]save OK [20:32:18]Clear old archive folders... [20:32:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:32:18]tlvbuf is 01C49A10 [20:32:18]SAM_PROTO_ClearQueue [20:32:18]wFMCommunicate request_size=4 [20:32:18]MH_SAM_APDU [20:32:18]CAPDU: 80 09 00 00 [20:32:18]Write to MH i2c: E2 08 00 4B 2C 80 09 00 00 00 00 00 00 E9 [20:32:18]Write i2c OK [20:32:18]MH_I2C_Read... [20:32:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:18]Read from MH i2c: E2 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: E2 03 00 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: E2 03 00 4B 2C 00 90 00 EB [20:32:18]RAPDU: 90 00 [20:32:18]wFMCommunicate OK [20:32:18]SAM_PROTO_ClearQueue done [20:32:18]KKMCreateOFDPacket [20:32:18]OFDProtocolAddRootSTLVToBuf [20:32:18]FM_MakeSignedData [20:32:18]FM_MakeSignedData [20:32:18]SAM_PROTO_SignData [20:32:18]wFMCommunicate request_size=4 [20:32:18]MH_SAM_APDU [20:32:18]CAPDU: 80 0D 01 02 [20:32:18]Write to MH i2c: E2 08 00 4C 2C 80 0D 01 02 00 00 00 00 F1 [20:32:18]Write i2c OK [20:32:18]MH_I2C_Read... [20:32:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:18]Read from MH i2c: E2 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: E2 03 00 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: E2 03 00 4C 2C 00 90 00 EC [20:32:18]RAPDU: 90 00 [20:32:18]wFMCommunicate OK [20:32:18]wFMCommunicate request_size=255 [20:32:18]MH_SAM_APDU [20:32:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 D4 7E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 25 C3 01 00 35 04 06 00 21 [20:32:18]Write to MH i2c: E2 02 01 4D 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 D4 7E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 25 C3 01 00 35 04 06 00 21 00 00 87 [20:32:18]Write i2c OK [20:32:18]MH_I2C_Read... [20:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:18]Read from MH i2c: E2 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: E2 03 00 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: E2 03 00 4D 2C 00 90 00 ED [20:32:18]RAPDU: 90 00 [20:32:18]wFMCommunicate OK [20:32:18]wFMCommunicate request_size=10 [20:32:18]MH_SAM_APDU [20:32:18]CAPDU: 80 0D 02 02 05 FD DC 71 E1 A9 [20:32:18]Write to MH i2c: E2 0D 00 4E 2C 80 0D 02 02 05 00 FD DC 71 E1 A9 00 00 D2 [20:32:18]Write i2c OK [20:32:18]MH_I2C_Read... [20:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:18]Read from MH i2c: E2 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: E2 03 00 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: E2 03 00 4E 2C 00 90 00 EE [20:32:18]RAPDU: 90 00 [20:32:18]wFMCommunicate OK [20:32:18]wFMCommunicate request_size=4 [20:32:18]MH_SAM_APDU [20:32:18]CAPDU: 80 0D 03 02 [20:32:18]Write to MH i2c: E2 08 00 4F 2C 80 0D 03 02 00 00 00 00 F6 [20:32:18]Write i2c OK [20:32:18]MH_I2C_Read... [20:32:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:18]Read from MH i2c: E2 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: E2 0B 00 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: E2 0B 00 4F 2C 00 B2 D7 02 B6 F5 D9 E4 42 90 00 2C [20:32:18]RAPDU: B2 D7 02 B6 F5 D9 E4 42 90 00 [20:32:18]wFMCommunicate OK [20:32:18]SAM_PROTO_SignData done [20:32:18]FM_MakeSignedData done [20:32:18]CreateOFDProtocolMessage [20:32:18]wFMCommunicate request_size=4 [20:32:18]MH_SAM_APDU [20:32:18]CAPDU: 80 11 00 00 [20:32:18]Write to MH i2c: E2 08 00 50 2C 80 11 00 00 00 00 00 00 F6 [20:32:18]Write i2c OK [20:32:18]MH_I2C_Read... [20:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:18]Read from MH i2c: E2 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: E2 17 00 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: E2 17 00 50 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 44 [20:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:32:18]wFMCommunicate OK [20:32:18]CreateOFDProtocolMessage done [20:32:18]OFDSenderStorePacket 115493 [20:32:18]StoreOFDPacket docnum=115493 [20:32:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 BB 7B 07 01 B9 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 D4 7E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 25 C3 01 00 35 04 06 00 21 FD DC 71 E1 A9 B2 D7 02 B6 F5 D9 E4 42 [20:32:18]CheckFolder [20:32:18]dirname=/storage/ofd_packets [20:32:18]CheckFolder done [20:32:18]ProducePacketName [20:32:18]name=ofd_packets/00115493 [20:32:18]NVStorageSaveData ofd_packets/00115493 [20:32:18]File name is /storage/ofd_packets/00115493 [20:32:18]Write 301 bytes [20:32:18]NVStorageSaveData done [20:32:18]OFDSenderStorePacket done [20:32:18]KKMCreateOFDPacket done [20:32:18]NVStorageSaveData kkm_last_timestamp [20:32:18]File name is /storage/kkm_last_timestamp [20:32:18]Write 4 bytes [20:32:18]NVStorageSaveData done [20:32:18]ExternCall_PrintAddStr [20:32:18]wPrintStart [20:32:18]Write to MH i2c: 01 00 00 51 2C 7D [20:32:18]Write i2c OK [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: 01 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: 01 07 00 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: 01 07 00 51 2C 00 00 00 00 00 FF 0F 92 [20:32:18]RasterBufferAndPrint [20:32:18]line Счет N : (1)24617183 [20:32:18]line ИНН: 02508201610067 [20:32:18]line Контрольно-Кассовый Чек [20:32:18]line ПРОДАЖА [20:32:18]line ТРК (МРК, ГНК) : 63 [20:32:18]line Товар: 2710124130 [20:32:18]line Аи-92-К-5 [20:32:18]line 10.000 * 0.00 [20:32:18]line = 0.00 [20:32:18]line НДС 12% НСП 1% [20:32:18]line > о реализуемом товаре [20:32:18]line ИТОГО: 0.00 [20:32:18]line НСП 1% : 0.00 [20:32:18]line НДС 12% : 0.00 [20:32:18]line Наличными: 0.00 [20:32:18]line Безнал.: 0.00 [20:32:18]line Место: АЗС № 90 "Партнер Нефть" [20:32:18]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:32:18]line СНО: Общий режим [20:32:18]line Чек 211 22.09.2024 20:32 [20:32:18]line Смена: 471 ФФД: 1.0 [20:32:18]line ЗНМ: 0300000120 [20:32:18]line РНМ: 0000000000091831 [20:32:18]line Версия ККМ: 001 [20:32:18]line Талоны: ТК ГПНА Online [20:32:18]line 30014395 [20:32:18]line ФМ: 0000000000871830 [20:32:18]line ФД: 115493 [20:32:18]line ФПД: 37374208893353 [20:32:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T203220&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115493&fm=37374208893353&tin=02508201610067®Number=0000000000091831&sum=0 [20:32:18]written 0, free lines is 4095 [20:32:18]OFD Sender: Processing packet 115493 [packets to send 481, broken 480] [20:32:18]ProducePacketName [20:32:18]name=ofd_packets/00115493 [20:32:18]OFD Sender: To server: pG, [20:32:18]CommunicateWithHost lk.salyk.kg:30040 [20:32:18]ConnectInit lk.salyk.kg [20:32:19]Connected sock=10 [20:32:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 BB 7B 07 01 B9 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 D4 7E F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 25 C3 01 00 35 04 06 00 21 FD DC 71 E1 A9 B2 D7 02 B6 F5 D9 E4 42 [20:32:19]Write to MH i2c: 01 00 00 7A 2C A6 [20:32:19]Write i2c OK [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: 01 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: 01 07 00 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: 01 07 00 7A 2C 00 00 00 00 00 66 0C 1F [20:32:19]RasterBufferAndPrint [20:32:19]line [20:32:19]line [20:32:19]line [20:32:19]line [20:32:19]line [20:32:19]written 0, free lines is 3178 [20:32:19]MH_Cut [20:32:19]Write to MH i2c: D1 01 00 81 2C 01 7F [20:32:19]Write i2c OK [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: D1 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: D1 01 00 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: D1 01 00 81 2C 00 7E [20:32:19]Write to MH i2c: 01 00 00 82 2C AE [20:32:19]Write i2c OK [20:32:19]MH_I2C_Read... [20:32:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F3 CF 47 00 46 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 31 38 33 30 10 04 04 00 25 C3 01 00 F4 03 04 00 18 24 F0 66 B6 04 01 00 00 51 92 22 3D 3A 63 80 09 [20:32:19]CommunicateWithHost err = 0 [20:32:19]CheckOFDResponse [20:32:19]1017 (14) - 77093643461234 [20:32:19]1041 (16) - 0000000000871830 [20:32:19]1040 (4) - 115493 [20:32:19]1012 (4) - 22.09.2024 14:05 [20:32:19]1206 (1) - 0 [20:32:19]OFD Sender: Remove packet 115493 [20:32:19]ProducePacketName [20:32:19]name=ofd_packets/00115493 [20:32:19]NVStorageDeleteData [20:32:20]OFD Sender: No OFD packet to send [20:32:20]*** Cut start [20:32:20]*** Partial cut [20:32:20]*** CUTSNS_PIN = 1 [20:32:20]*** CUTSNS_PIN = 0 [20:32:20]*** Brake cut motor [20:32:21]Read from MH i2c: 01 [20:32:21]MH_I2C_Read... [20:32:21]*** Stop cut motor [20:32:21]*** Cut end [20:32:21]Read from MH i2c: 01 07 00 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: 01 07 00 82 2C 00 00 00 00 00 FF 0F C3 [20:32:21]process_action close_receipt done [20:32:21]requested_data is exist [20:32:21]produce_requested_data [20:32:21]requested_item fm.sn is exist - process it [20:32:21]wFMCommunicate request_size=4 [20:32:21]MH_SAM_APDU [20:32:21]CAPDU: 80 11 00 00 [20:32:21]Write to MH i2c: E2 08 00 83 2C 80 11 00 00 00 00 00 00 29 [20:32:21]Write i2c OK [20:32:21]MH_I2C_Read... [20:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:21]Read from MH i2c: E2 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 17 00 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 17 00 83 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 77 [20:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:32:21]wFMCommunicate OK [20:32:21]requested_item fd.num is exist - process it [20:32:21]SAM_PROTO_GetFieldsCounters [20:32:21]wFMCommunicate request_size=4 [20:32:21]MH_SAM_APDU [20:32:21]CAPDU: 80 13 00 00 [20:32:21]Write to MH i2c: E2 08 00 84 2C 80 13 00 00 00 00 00 00 2C [20:32:21]Write i2c OK [20:32:21]MH_I2C_Read... [20:32:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:21]Read from MH i2c: E2 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 62 00 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 62 00 84 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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 25 C3 01 00 0E 04 04 00 D7 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 7F [20:32:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 25 C3 01 00 0E 04 04 00 D7 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 [20:32:21]wFMCommunicate OK [20:32:21]SAM_PROTO_GetFieldsCounters done [20:32:21]requested_item shift.num is exist - process it [20:32:21]requested_item shift.opened is exist - process it [20:32:21]req_shift_opened [20:32:21]FM_GetShiftState [20:32:21]SAM_PROTO_GetShiftState [20:32:21]wFMCommunicate request_size=4 [20:32:21]MH_SAM_APDU [20:32:21]CAPDU: 80 13 01 00 [20:32:21]Write to MH i2c: E2 08 00 85 2C 80 13 01 00 00 00 00 00 2E [20:32:21]Write i2c OK [20:32:21]MH_I2C_Read... [20:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:21]Read from MH i2c: E2 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 0E 00 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: E2 0E 00 85 2C 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 47 [20:32:21]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:32:21]wFMCommunicate OK [20:32:21]SAM_PROTO_GetShiftState done [20:32:21]FM_GetShiftState done [20:32:21]req_shift_opened done [20:32:21]requested_item shift.open_date is exist - process it [20:32:21]req_shift_open_date [20:32:21]req_shift_open_date done [20:32:21]produce_requested_data done [20:32:21]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115493,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [20:32:21]process_action_free close_receipt [20:32:21]json_value_free [20:32:21]json_value_free done [20:32:21]process_json_proto returns [20:32:21]Send response to host [20:32:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115493,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [20:32:21]free response buf [20:32:21]execute_script done [20:32:21]execute_script returns [20:32:21]free content buf [20:32:21]Sock 8.Close socket [20:32:21]Sock 8.Thread stoped [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]OFD Sender: No OFD packet to send [20:44:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:41]OFD Sender: No OFD packet to send [20:45:46]OFD Sender: No OFD packet to send [20:45:51]OFD Sender: No OFD packet to send [20:45:56]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:06]accept exits with 9 [20:47:06]New connection [20:47:06]New thread 3066682724 created [20:47:06]Thread 3066826084 joined [20:47:06]Waiting for new connection... [20:47:06] Sock 9.Parse request [20:47:06]Sock 9.Check first char [20:47:06]Sock 9.First char is OK [20:47:06]request: POST /json_proto HTTP/1.0 [20:47:06]Method: POST [20:47:06]URL: /json_proto [20:47:06]Method is POST - this is cgi request [20:47:06]url: /json_proto [20:47:06]query_string will be loaded in cgi processing [20:47:06]execute_cgi json_proto POST (null) [20:47:06]execute_cgi path=json_proto method=POST [20:47:06]POST find Content-Length [20:47:06]Host: 172.17.41.136:8080 [20:47:06]Content-Length: 1283 [20:47:06]Content-Type: application/json [20:47:06] [20:47:06]POST finish read [20:47:06]Found Content-Length = 1283 [20:47:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343926", "tax_sys" : 0, "items" : [ { "code": "4700321005017", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 43.00, "quantity" : 1.000, "sum" : 43.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030024", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043E\u043F\u0447\u0435\u043D\u043D\u044B\u0439", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 217.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:06]execute_script... [20:47:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343926", "tax_sys" : 0, "items" : [ { "code": "4700321005017", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 43.00, "quantity" : 1.000, "sum" : 43.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030024", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043E\u043F\u0447\u0435\u043D\u043D\u044B\u0439", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 217.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:06]POST & json_proto [20:47:06]process_json_proto [20:47:06]json parsed OK: [20:47:06]protocol is kg_v1.0 [20:47:06]action value=close_receipt [20:47:06]process_action close_receipt [20:47:06]cmd_close_receipt [20:47:06]MH_GetDate [20:47:06]Write to MH i2c: F0 00 00 86 2C A1 [20:47:06]Write i2c OK [20:47:06]MH_I2C_Read... [20:47:06]Read from MH i2c: F0 [20:47:06]MH_I2C_Read... [20:47:06]Read from MH i2c: F0 09 00 [20:47:06]MH_I2C_Read... [20:47:06]Read from MH i2c: F0 09 00 86 2C 00 4D 82 F0 66 1B D0 5A 64 78 [20:47:06]GetLastDocTimeStamp 1727037140 [20:47:06]current date 1727038029 [20:47:06]FM_GetShiftState [20:47:06]SAM_PROTO_GetShiftState [20:47:06]wFMCommunicate request_size=4 [20:47:06]MH_SAM_APDU [20:47:06]CAPDU: 80 13 01 00 [20:47:06]Write to MH i2c: E2 08 00 87 2C 80 13 01 00 00 00 00 00 30 [20:47:06]Write i2c OK [20:47:06]MH_I2C_Read... [20:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:06]Read from MH i2c: E2 [20:47:06]MH_I2C_Read... [20:47:06]Read from MH i2c: E2 0E 00 [20:47:06]MH_I2C_Read... [20:47:06]Read from MH i2c: E2 0E 00 87 2C 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 49 [20:47:06]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:47:06]wFMCommunicate OK [20:47:06]SAM_PROTO_GetShiftState done [20:47:06]FM_GetShiftState done [20:47:06]opened in 1726965840 [20:47:06]opened+sec_in_day 1727052240 [20:47:06]quantity*price = 4300 [20:47:06]sum+1 = 4301 [20:47:06]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700026030024 Курут копченный 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202522671 Garden напиток со вкусом граната 1,20 ПЭ 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 217.00 НСП 1% : 1.92 НДС 12% : 23.04 Наличными: 217.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 212 22.09.2024 20:47 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115494 ФПД: 243393776549946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T204710&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115494&fm=243393776549946&tin=02508201610067®Number=0000000000091831&sum=21700 0 [20:47:08]StoreToDocumentArchive [20:47:08]shift 471 fd 115494 [20:47:08]save to /storage/0471/doc_00115494 [20:47:08]save last doc name /storage/0471/doc_00115494 to /storage/kkm_last_doc_name [20:47:08]save OK [20:47:08]Clear old archive folders... [20:47:08]ProcessDocumentItem done err = 0, tmpTLVsize=531 [20:47:08]tlvbuf is 01C1A840 [20:47:08]SAM_PROTO_ClearQueue [20:47:08]wFMCommunicate request_size=4 [20:47:08]MH_SAM_APDU [20:47:08]CAPDU: 80 09 00 00 [20:47:08]Write to MH i2c: E2 08 00 94 2C 80 09 00 00 00 00 00 00 32 [20:47:08]Write i2c OK [20:47:08]MH_I2C_Read... [20:47:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:08]Read from MH i2c: E2 [20:47:08]MH_I2C_Read... [20:47:08]Read from MH i2c: E2 03 00 [20:47:08]MH_I2C_Read... [20:47:08]Read from MH i2c: E2 03 00 94 2C 00 90 00 34 [20:47:08]RAPDU: 90 00 [20:47:08]wFMCommunicate OK [20:47:08]SAM_PROTO_ClearQueue done [20:47:08]KKMCreateOFDPacket [20:47:08]OFDProtocolAddRootSTLVToBuf [20:47:08]FM_MakeSignedData [20:47:08]FM_MakeSignedData [20:47:08]SAM_PROTO_SignData [20:47:08]wFMCommunicate request_size=4 [20:47:08]MH_SAM_APDU [20:47:08]CAPDU: 80 0D 01 02 [20:47:08]Write to MH i2c: E2 08 00 95 2C 80 0D 01 02 00 00 00 00 3A [20:47:08]Write i2c OK [20:47:08]MH_I2C_Read... [20:47:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:08]Read from MH i2c: E2 [20:47:08]MH_I2C_Read... [20:47:08]Read from MH i2c: E2 03 00 [20:47:08]MH_I2C_Read... [20:47:08]Read from MH i2c: E2 03 00 95 2C 00 90 00 35 [20:47:08]RAPDU: 90 00 [20:47:08]wFMCommunicate OK [20:47:08]wFMCommunicate request_size=255 [20:47:08]MH_SAM_APDU [20:47:08]CAPDU: 80 0D 02 02 FA 03 00 13 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 [20:47:08]Write to MH i2c: E2 02 01 96 2C 80 0D 02 02 FA 00 03 00 13 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 00 00 BD [20:47:08]Write i2c OK [20:47:08]MH_I2C_Read... [20:47:08]Read from MH i2c: E2 [20:47:08]MH_I2C_Read... [20:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:08]Read from MH i2c: E2 03 00 [20:47:08]MH_I2C_Read... [20:47:08]Read from MH i2c: E2 03 00 96 2C 00 90 00 36 [20:47:08]RAPDU: 90 00 [20:47:08]wFMCommunicate OK [20:47:08]wFMCommunicate request_size=255 [20:47:08]MH_SAM_APDU [20:47:08]CAPDU: 80 0D 02 02 FA 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 09 00 00 00 00 07 04 06 00 C4 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 4E 82 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 [20:47:08]Write to MH i2c: E2 02 01 97 2C 80 0D 02 02 FA 00 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 09 00 00 00 00 07 04 06 00 C4 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 4E 82 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 00 4E [20:47:08]Write i2c OK [20:47:08]MH_I2C_Read... [20:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:09]Read from MH i2c: E2 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: E2 03 00 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: E2 03 00 97 2C 00 90 00 37 [20:47:09]RAPDU: 90 00 [20:47:09]wFMCommunicate OK [20:47:09]wFMCommunicate request_size=40 [20:47:09]MH_SAM_APDU [20:47:09]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 26 C3 01 00 35 04 06 00 DD 5D 87 97 80 3A [20:47:09]Write to MH i2c: E2 2B 00 98 2C 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 26 C3 01 00 35 04 06 00 DD 5D 87 97 80 3A 00 00 F2 [20:47:09]Write i2c OK [20:47:09]MH_I2C_Read... [20:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:09]Read from MH i2c: E2 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: E2 03 00 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: E2 03 00 98 2C 00 90 00 38 [20:47:09]RAPDU: 90 00 [20:47:09]wFMCommunicate OK [20:47:09]wFMCommunicate request_size=4 [20:47:09]MH_SAM_APDU [20:47:09]CAPDU: 80 0D 03 02 [20:47:09]Write to MH i2c: E2 08 00 99 2C 80 0D 03 02 00 00 00 00 40 [20:47:09]Write i2c OK [20:47:09]MH_I2C_Read... [20:47:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:47:09]Read from MH i2c: E2 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: E2 0B 00 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: E2 0B 00 99 2C 00 E1 8E 70 71 07 8D 24 DF 90 00 28 [20:47:09]RAPDU: E1 8E 70 71 07 8D 24 DF 90 00 [20:47:09]wFMCommunicate OK [20:47:09]SAM_PROTO_SignData done [20:47:09]FM_MakeSignedData done [20:47:09]CreateOFDProtocolMessage [20:47:09]wFMCommunicate request_size=4 [20:47:09]MH_SAM_APDU [20:47:09]CAPDU: 80 11 00 00 [20:47:09]Write to MH i2c: E2 08 00 9A 2C 80 11 00 00 00 00 00 00 40 [20:47:09]Write i2c OK [20:47:09]MH_I2C_Read... [20:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:09]Read from MH i2c: E2 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: E2 17 00 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: E2 17 00 9A 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8E [20:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:47:09]wFMCommunicate OK [20:47:09]CreateOFDProtocolMessage done [20:47:09]OFDSenderStorePacket 115494 [20:47:09]StoreOFDPacket docnum=115494 [20:47:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 02 00 00 8A 2F 1F 02 FB 58 5A 03 01 00 03 00 13 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 09 00 00 00 00 07 04 06 00 C4 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 4E 82 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 26 C3 01 00 35 04 06 00 DD 5D 87 97 80 3A E1 8E 70 71 07 8D 24 DF [20:47:09]CheckFolder [20:47:09]dirname=/storage/ofd_packets [20:47:09]CheckFolder done [20:47:09]ProducePacketName [20:47:09]name=ofd_packets/00115494 [20:47:09]NVStorageSaveData ofd_packets/00115494 [20:47:09]File name is /storage/ofd_packets/00115494 [20:47:09]Write 581 bytes [20:47:09]NVStorageSaveData done [20:47:09]OFDSenderStorePacket done [20:47:09]KKMCreateOFDPacket done [20:47:09]NVStorageSaveData kkm_last_timestamp [20:47:09]File name is /storage/kkm_last_timestamp [20:47:09]Write 4 bytes [20:47:09]NVStorageSaveData done [20:47:09]ExternCall_PrintAddStr [20:47:09]wPrintStart [20:47:09]Write to MH i2c: 01 00 00 9B 2C C7 [20:47:09]Write i2c OK [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: 01 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: 01 07 00 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: 01 07 00 9B 2C 00 00 00 00 00 FF 0F DC [20:47:09]RasterBufferAndPrint [20:47:09]line Счет N : (3)343926 [20:47:09]line ИНН: 02508201610067 [20:47:09]line Контрольно-Кассовый Чек [20:47:09]line ПРОДАЖА [20:47:09]line Товар: 4700321005017 [20:47:09]line Арахис Mike жареный соленый 50г [20:47:09]line 1.000 * 43.00 [20:47:09]line = 43.00 [20:47:09]line НДС 12% НСП 1% [20:47:09]line > о реализуемом товаре [20:47:09]line Товар: 4700026030024 [20:47:09]line Курут копченный [20:47:09]line 1.000 * 49.00 [20:47:09]line = 49.00 [20:47:09]line НДС 12% НСП 1% [20:47:09]line > о реализуемом товаре [20:47:09]line Товар: 4870202522671 [20:47:09]line Garden напиток со вкусом граната 1,20 ПЭ [20:47:09]line 1.000 * 125.00 [20:47:09]line = 125.00 [20:47:09]line НДС 12% НСП 1% [20:47:09]line > о реализуемом товаре [20:47:09]line ИТОГО: 217.00 [20:47:09]line НСП 1% : 1.92 [20:47:09]line НДС 12% : 23.04 [20:47:09]line Наличными: 217.00 [20:47:09]line Безнал.: 0.00 [20:47:09]line Место: АЗС № 90 "Партнер Нефть" [20:47:09]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:47:09]line СНО: Общий режим [20:47:09]line Чек 212 22.09.2024 20:47 [20:47:09]line Смена: 471 ФФД: 1.0 [20:47:09]line ЗНМ: 0300000120 [20:47:09]line РНМ: 0000000000091831 [20:47:09]line Версия ККМ: 001 [20:47:09]line ФМ: 0000000000871830 [20:47:09]line ФД: 115494 [20:47:09]line ФПД: 243393776549946 [20:47:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T204710&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115494&fm=243393776549946&tin=02508201610067®Number=0000000000091831&sum=21700 [20:47:09]line 0 [20:47:09]written 0, free lines is 4095 [20:47:09]OFD Sender: Processing packet 115494 [packets to send 481, broken 480] [20:47:09]ProducePacketName [20:47:09]name=ofd_packets/00115494 [20:47:09]OFD Sender: To server: pG, [20:47:09]CommunicateWithHost lk.salyk.kg:30040 [20:47:09]ConnectInit lk.salyk.kg [20:47:09]Write to MH i2c: 01 00 00 D0 2C FC [20:47:09]Write i2c OK [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: 01 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: 01 07 00 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: 01 07 00 D0 2C 00 00 00 00 00 4D 0B 5B [20:47:09]RasterBufferAndPrint [20:47:09]line [20:47:09]line [20:47:09]line [20:47:09]line [20:47:09]line [20:47:09]written 0, free lines is 2895 [20:47:09]MH_Cut [20:47:09]Write to MH i2c: D1 01 00 D7 2C 01 D5 [20:47:09]Write i2c OK [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: D1 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: D1 01 00 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: D1 01 00 D7 2C 00 D4 [20:47:09]Write to MH i2c: 01 00 00 D8 2C 04 [20:47:09]Write i2c OK [20:47:09]MH_I2C_Read... [20:47:11]*** Cut start [20:47:11]*** Partial cut [20:47:11]*** CUTSNS_PIN = 1 [20:47:11]*** CUTSNS_PIN = 0 [20:47:11]*** Brake cut motor [20:47:12]Read from MH i2c: 01 [20:47:12]MH_I2C_Read... [20:47:12]Read from MH i2c: 01 07 00 [20:47:12]MH_I2C_Read... [20:47:12]*** Stop cut motor [20:47:12]Read from MH i2c: 01 07 00 D8 2C 00 00 00 00 00 FF 0F 19 [20:47:12]process_action close_receipt done [20:47:12]requested_data is exist [20:47:12]produce_requested_data [20:47:12]requested_item fm.sn is exist - process it [20:47:12]wFMCommunicate request_size=4 [20:47:12]MH_SAM_APDU [20:47:12]CAPDU: 80 11 00 00 [20:47:12]Write to MH i2c: E2 08 00 D9 2C 80 11 00 00 00 00 00 00 7F [20:47:12]*** Cut end [20:47:12]Write i2c OK [20:47:12]MH_I2C_Read... [20:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:12]Read from MH i2c: E2 [20:47:12]MH_I2C_Read... [20:47:12]Read from MH i2c: E2 17 00 [20:47:12]MH_I2C_Read... [20:47:12]Read from MH i2c: E2 17 00 D9 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CD [20:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:47:12]wFMCommunicate OK [20:47:12]requested_item fd.num is exist - process it [20:47:12]SAM_PROTO_GetFieldsCounters [20:47:12]wFMCommunicate request_size=4 [20:47:12]MH_SAM_APDU [20:47:12]CAPDU: 80 13 00 00 [20:47:12]Write to MH i2c: E2 08 00 DA 2C 80 13 00 00 00 00 00 00 82 [20:47:12]Write i2c OK [20:47:12]MH_I2C_Read... [20:47:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:12]Read from MH i2c: E2 [20:47:12]MH_I2C_Read... [20:47:12]Read from MH i2c: E2 62 00 [20:47:12]MH_I2C_Read... [20:47:12]Read from MH i2c: E2 62 00 DA 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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 26 C3 01 00 0E 04 04 00 D7 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 D9 [20:47:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 26 C3 01 00 0E 04 04 00 D7 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 [20:47:12]wFMCommunicate OK [20:47:12]SAM_PROTO_GetFieldsCounters done [20:47:12]requested_item shift.num is exist - process it [20:47:12]requested_item shift.opened is exist - process it [20:47:12]req_shift_opened [20:47:12]FM_GetShiftState [20:47:12]SAM_PROTO_GetShiftState [20:47:12]wFMCommunicate request_size=4 [20:47:12]MH_SAM_APDU [20:47:12]CAPDU: 80 13 01 00 [20:47:12]Write to MH i2c: E2 08 00 DB 2C 80 13 01 00 00 00 00 00 84 [20:47:12]Write i2c OK [20:47:12]MH_I2C_Read... [20:47:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:12]Read from MH i2c: E2 [20:47:12]MH_I2C_Read... [20:47:12]Read from MH i2c: E2 0E 00 [20:47:12]MH_I2C_Read... [20:47:12]Read from MH i2c: E2 0E 00 DB 2C 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 9D [20:47:12]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:47:12]wFMCommunicate OK [20:47:12]SAM_PROTO_GetShiftState done [20:47:12]FM_GetShiftState done [20:47:12]req_shift_opened done [20:47:12]requested_item shift.open_date is exist - process it [20:47:12]req_shift_open_date [20:47:12]req_shift_open_date done [20:47:12]produce_requested_data done [20:47:12]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115494,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [20:47:12]process_action_free close_receipt [20:47:12]json_value_free [20:47:12]json_value_free done [20:47:12]process_json_proto returns [20:47:12]Send response to host [20:47:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115494,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [20:47:12]free response buf [20:47:12]execute_script done [20:47:12]execute_script returns [20:47:12]free content buf [20:47:12]Sock 9.Close socket [20:47:12]Sock 9.Thread stoped [20:49:18]ConnectInit Can't connect to host [20:49:18]CommunicateWithHost connect error [20:49:18]CommunicateWithHost err = -1 [20:49:18]OFD Sender: Server communicate error [20:49:24]OFD Sender: Processing packet 115494 [packets to send 481, broken 480] [20:49:24]ProducePacketName [20:49:24]name=ofd_packets/00115494 [20:49:24]OFD Sender: To server: pG, [20:49:24]CommunicateWithHost lk.salyk.kg:30040 [20:49:24]ConnectInit lk.salyk.kg [20:49:24]Connected sock=9 [20:49:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 02 00 00 8A 2F 1F 02 FB 58 5A 03 01 00 03 00 13 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 09 00 00 00 00 07 04 06 00 C4 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 4E 82 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 26 C3 01 00 35 04 06 00 DD 5D 87 97 80 3A E1 8E 70 71 07 8D 24 DF [20:49:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 10 3D 47 00 68 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 26 C3 01 00 F4 03 04 00 1A 28 F0 66 B6 04 01 00 00 41 0A AE 39 9C E8 A7 47 [20:49:24]CommunicateWithHost err = 0 [20:49:24]CheckOFDResponse [20:49:24]1017 (14) - 77093643461234 [20:49:24]1041 (16) - 0000000000871830 [20:49:24]1040 (4) - 115494 [20:49:24]1012 (4) - 22.09.2024 14:22 [20:49:24]1206 (1) - 0 [20:49:24]OFD Sender: Remove packet 115494 [20:49:24]ProducePacketName [20:49:24]name=ofd_packets/00115494 [20:49:24]NVStorageDeleteData [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:38]accept exits with 8 [20:49:38]New connection [20:49:38]New thread 3066826084 created [20:49:38]Thread 3066682724 joined [20:49:38]Waiting for new connection... [20:49:38] Sock 8.Parse request [20:49:38]Sock 8.Check first char [20:49:38]Sock 8.First char is OK [20:49:38]request: POST /json_proto HTTP/1.0 [20:49:38]Method: POST [20:49:38]URL: /json_proto [20:49:38]Method is POST - this is cgi request [20:49:38]url: /json_proto [20:49:38]query_string will be loaded in cgi processing [20:49:38]execute_cgi json_proto POST (null) [20:49:38]execute_cgi path=json_proto method=POST [20:49:38]POST find Content-Length [20:49:38]Host: 172.17.41.136:8080 [20:49:38]Content-Length: 1238 [20:49:38]Content-Type: application/json [20:49:38] [20:49:38]POST finish read [20:49:38]Found Content-Length = 1238 [20:49:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343927", "tax_sys" : 0, "items" : [ { "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:38]execute_script... [20:49:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343927", "tax_sys" : 0, "items" : [ { "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:38]POST & json_proto [20:49:38]process_json_proto [20:49:38]json parsed OK: [20:49:38]protocol is kg_v1.0 [20:49:38]action value=close_receipt [20:49:38]process_action close_receipt [20:49:38]cmd_close_receipt [20:49:38]MH_GetDate [20:49:38]Write to MH i2c: F0 00 00 DC 2C F7 [20:49:38]Write i2c OK [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: F0 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: F0 09 00 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: F0 09 00 DC 2C 00 E6 82 F0 66 1B D0 5A 64 67 [20:49:38]GetLastDocTimeStamp 1727038030 [20:49:38]current date 1727038182 [20:49:38]FM_GetShiftState [20:49:38]SAM_PROTO_GetShiftState [20:49:38]wFMCommunicate request_size=4 [20:49:38]MH_SAM_APDU [20:49:38]CAPDU: 80 13 01 00 [20:49:38]Write to MH i2c: E2 08 00 DD 2C 80 13 01 00 00 00 00 00 86 [20:49:38]Write i2c OK [20:49:38]MH_I2C_Read... [20:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:39]Read from MH i2c: E2 [20:49:39]MH_I2C_Read... [20:49:39]Read from MH i2c: E2 0E 00 [20:49:39]MH_I2C_Read... [20:49:39]Read from MH i2c: E2 0E 00 DD 2C 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 9F [20:49:39]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:49:39]wFMCommunicate OK [20:49:39]SAM_PROTO_GetShiftState done [20:49:39]FM_GetShiftState done [20:49:39]opened in 1726965840 [20:49:39]opened+sec_in_day 1727052240 [20:49:39]quantity*price = 9500 [20:49:39]sum+1 = 9501 [20:49:39]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189332 Холодный чай Fuse персик 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 213 22.09.2024 20:49 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115495 ФПД: 92122231282043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T204942&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115495&fm=92122231282043&tin=02508201610067®Number=0000000000091831&sum=25000 0 [20:49:40]StoreToDocumentArchive [20:49:40]shift 471 fd 115495 [20:49:40]save to /storage/0471/doc_00115495 [20:49:40]save last doc name /storage/0471/doc_00115495 to /storage/kkm_last_doc_name [20:49:40]save OK [20:49:40]Clear old archive folders... [20:49:40]ProcessDocumentItem done err = 0, tmpTLVsize=518 [20:49:40]tlvbuf is 01C50730 [20:49:40]SAM_PROTO_ClearQueue [20:49:40]wFMCommunicate request_size=4 [20:49:40]MH_SAM_APDU [20:49:40]CAPDU: 80 09 00 00 [20:49:40]Write to MH i2c: E2 08 00 EA 2C 80 09 00 00 00 00 00 00 88 [20:49:40]Write i2c OK [20:49:40]MH_I2C_Read... [20:49:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:40]Read from MH i2c: E2 [20:49:40]MH_I2C_Read... [20:49:40]Read from MH i2c: E2 03 00 [20:49:40]MH_I2C_Read... [20:49:40]Read from MH i2c: E2 03 00 EA 2C 00 90 00 8A [20:49:40]RAPDU: 90 00 [20:49:40]wFMCommunicate OK [20:49:40]SAM_PROTO_ClearQueue done [20:49:40]KKMCreateOFDPacket [20:49:40]OFDProtocolAddRootSTLVToBuf [20:49:40]FM_MakeSignedData [20:49:40]FM_MakeSignedData [20:49:40]SAM_PROTO_SignData [20:49:40]wFMCommunicate request_size=4 [20:49:40]MH_SAM_APDU [20:49:40]CAPDU: 80 0D 01 02 [20:49:40]Write to MH i2c: E2 08 00 EB 2C 80 0D 01 02 00 00 00 00 90 [20:49:40]Write i2c OK [20:49:40]MH_I2C_Read... [20:49:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:40]Read from MH i2c: E2 [20:49:40]MH_I2C_Read... [20:49:40]Read from MH i2c: E2 03 00 [20:49:40]MH_I2C_Read... [20:49:40]Read from MH i2c: E2 03 00 EB 2C 00 90 00 8B [20:49:40]RAPDU: 90 00 [20:49:40]wFMCommunicate OK [20:49:40]wFMCommunicate request_size=255 [20:49:40]MH_SAM_APDU [20:49:40]CAPDU: 80 0D 02 02 FA 03 00 06 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 [20:49:40]Write to MH i2c: E2 02 01 EC 2C 80 0D 02 02 FA 00 03 00 06 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 00 00 27 [20:49:40]Write i2c OK [20:49:40]MH_I2C_Read... [20:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:40]Read from MH i2c: E2 [20:49:40]MH_I2C_Read... [20:49:40]Read from MH i2c: E2 03 00 [20:49:40]MH_I2C_Read... [20:49:40]Read from MH i2c: E2 03 00 EC 2C 00 90 00 8C [20:49:40]RAPDU: 90 00 [20:49:40]wFMCommunicate OK [20:49:40]wFMCommunicate request_size=255 [20:49:40]MH_SAM_APDU [20:49:40]CAPDU: 80 0D 02 02 FA 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5F 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 D5 00 00 00 F4 03 04 00 E6 82 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [20:49:40]Write to MH i2c: E2 02 01 ED 2C 80 0D 02 02 FA 00 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5F 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 D5 00 00 00 F4 03 04 00 E6 82 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 B7 [20:49:40]Write i2c OK [20:49:40]MH_I2C_Read... [20:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:41]Read from MH i2c: E2 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 03 00 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 03 00 ED 2C 00 90 00 8D [20:49:41]RAPDU: 90 00 [20:49:41]wFMCommunicate OK [20:49:41]wFMCommunicate request_size=27 [20:49:41]MH_SAM_APDU [20:49:41]CAPDU: 80 0D 02 02 16 31 38 33 30 10 04 04 00 27 C3 01 00 35 04 06 00 53 C8 E0 DF 19 7B [20:49:41]Write to MH i2c: E2 1E 00 EE 2C 80 0D 02 02 16 00 31 38 33 30 10 04 04 00 27 C3 01 00 35 04 06 00 53 C8 E0 DF 19 7B 00 00 3C [20:49:41]Write i2c OK [20:49:41]MH_I2C_Read... [20:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:41]Read from MH i2c: E2 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 03 00 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 03 00 EE 2C 00 90 00 8E [20:49:41]RAPDU: 90 00 [20:49:41]wFMCommunicate OK [20:49:41]wFMCommunicate request_size=4 [20:49:41]MH_SAM_APDU [20:49:41]CAPDU: 80 0D 03 02 [20:49:41]Write to MH i2c: E2 08 00 EF 2C 80 0D 03 02 00 00 00 00 96 [20:49:41]Write i2c OK [20:49:41]MH_I2C_Read... [20:49:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:41]Read from MH i2c: E2 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 0B 00 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 0B 00 EF 2C 00 94 FD C2 90 ED B4 18 5C 90 00 8F [20:49:41]RAPDU: 94 FD C2 90 ED B4 18 5C 90 00 [20:49:41]wFMCommunicate OK [20:49:41]SAM_PROTO_SignData done [20:49:41]FM_MakeSignedData done [20:49:41]CreateOFDProtocolMessage [20:49:41]wFMCommunicate request_size=4 [20:49:41]MH_SAM_APDU [20:49:41]CAPDU: 80 11 00 00 [20:49:41]Write to MH i2c: E2 08 00 F0 2C 80 11 00 00 00 00 00 00 96 [20:49:41]Write i2c OK [20:49:41]MH_I2C_Read... [20:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:41]Read from MH i2c: E2 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 17 00 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 17 00 F0 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E4 [20:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:49:41]wFMCommunicate OK [20:49:41]CreateOFDProtocolMessage done [20:49:41]OFDSenderStorePacket 115495 [20:49:41]StoreOFDPacket docnum=115495 [20:49:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1A 02 00 00 6E 41 12 02 D2 58 5A 03 01 00 03 00 06 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5F 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 D5 00 00 00 F4 03 04 00 E6 82 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 27 C3 01 00 35 04 06 00 53 C8 E0 DF 19 7B 94 FD C2 90 ED B4 18 5C [20:49:41]CheckFolder [20:49:41]dirname=/storage/ofd_packets [20:49:41]CheckFolder done [20:49:41]ProducePacketName [20:49:41]name=ofd_packets/00115495 [20:49:41]NVStorageSaveData ofd_packets/00115495 [20:49:41]File name is /storage/ofd_packets/00115495 [20:49:41]Write 568 bytes [20:49:41]NVStorageSaveData done [20:49:41]OFDSenderStorePacket done [20:49:41]KKMCreateOFDPacket done [20:49:41]NVStorageSaveData kkm_last_timestamp [20:49:41]File name is /storage/kkm_last_timestamp [20:49:41]Write 4 bytes [20:49:41]NVStorageSaveData done [20:49:41]ExternCall_PrintAddStr [20:49:41]wPrintStart [20:49:41]Write to MH i2c: 01 00 00 F1 2C 1D [20:49:41]Write i2c OK [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: 01 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: 01 07 00 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: 01 07 00 F1 2C 00 00 00 00 00 FF 0F 32 [20:49:41]RasterBufferAndPrint [20:49:41]line Счет N : (3)343927 [20:49:41]line ИНН: 02508201610067 [20:49:41]line Контрольно-Кассовый Чек [20:49:41]line ПРОДАЖА [20:49:41]line Товар: 4700003010087 [20:49:41]line Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л [20:49:41]line 1.000 * 95.00 [20:49:41]line = 95.00 [20:49:41]line НДС 12% НСП 1% [20:49:41]line > о реализуемом товаре [20:49:41]line Товар: 5449000189332 [20:49:41]line Холодный чай Fuse персик 1л [20:49:41]line 1.000 * 105.00 [20:49:41]line = 105.00 [20:49:41]line НДС 12% НСП 1% [20:49:41]line > о реализуемом товаре [20:49:41]line Товар: 4700000160358 [20:49:41]line Вода Легенда 1л [20:49:41]line 1.000 * 50.00 [20:49:41]line = 50.00 [20:49:41]line НДС 12% НСП 1% [20:49:41]line > о реализуемом товаре [20:49:41]line ИТОГО: 250.00 [20:49:41]line НСП 1% : 2.21 [20:49:41]line НДС 12% : 26.55 [20:49:41]line Наличными: 250.00 [20:49:41]line Безнал.: 0.00 [20:49:41]line Место: АЗС № 90 "Партнер Нефть" [20:49:41]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:49:41]line СНО: Общий режим [20:49:41]line Чек 213 22.09.2024 20:49 [20:49:41]line Смена: 471 ФФД: 1.0 [20:49:41]line ЗНМ: 0300000120 [20:49:41]line РНМ: 0000000000091831 [20:49:41]line Версия ККМ: 001 [20:49:41]line ФМ: 0000000000871830 [20:49:41]line ФД: 115495 [20:49:41]line ФПД: 92122231282043 [20:49:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T204942&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115495&fm=92122231282043&tin=02508201610067®Number=0000000000091831&sum=25000 [20:49:41]line 0 [20:49:41]written 0, free lines is 4095 [20:49:41]OFD Sender: Processing packet 115495 [packets to send 481, broken 480] [20:49:41]ProducePacketName [20:49:41]name=ofd_packets/00115495 [20:49:41]OFD Sender: To server: pG, [20:49:41]CommunicateWithHost lk.salyk.kg:30040 [20:49:41]ConnectInit lk.salyk.kg [20:49:41]Connected sock=10 [20:49:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1A 02 00 00 6E 41 12 02 D2 58 5A 03 01 00 03 00 06 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5F 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 D5 00 00 00 F4 03 04 00 E6 82 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 27 C3 01 00 35 04 06 00 53 C8 E0 DF 19 7B 94 FD C2 90 ED B4 18 5C [20:49:41]Write to MH i2c: 01 00 00 25 2D 52 [20:49:41]Write i2c OK [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: 01 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: 01 07 00 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: 01 07 00 25 2D 00 00 00 00 00 6B 0B CF [20:49:41]RasterBufferAndPrint [20:49:41]line [20:49:41]line [20:49:41]line [20:49:41]line [20:49:41]line [20:49:41]written 0, free lines is 2927 [20:49:41]MH_Cut [20:49:41]Write to MH i2c: D1 01 00 2C 2D 01 2B [20:49:41]Write i2c OK [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: D1 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: D1 01 00 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: D1 01 00 2C 2D 00 2A [20:49:41]Write to MH i2c: 01 00 00 2D 2D 5A [20:49:41]Write i2c OK [20:49:41]MH_I2C_Read... [20:49:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D1 A5 47 00 45 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 27 C3 01 00 F4 03 04 00 2B 28 F0 66 B6 04 01 00 00 41 67 7B D8 7E BE 45 78 [20:49:41]CommunicateWithHost err = 0 [20:49:41]CheckOFDResponse [20:49:41]1017 (14) - 77093643461234 [20:49:41]1041 (16) - 0000000000871830 [20:49:41]1040 (4) - 115495 [20:49:41]1012 (4) - 22.09.2024 14:22 [20:49:41]1206 (1) - 0 [20:49:41]OFD Sender: Remove packet 115495 [20:49:41]ProducePacketName [20:49:41]name=ofd_packets/00115495 [20:49:41]NVStorageDeleteData [20:49:42]OFD Sender: No OFD packet to send [20:49:43]*** Cut start [20:49:43]*** Partial cut [20:49:43]*** CUTSNS_PIN = 1 [20:49:43]*** CUTSNS_PIN = 0 [20:49:43]*** Brake cut motor [20:49:44]Read from MH i2c: 01 [20:49:44]MH_I2C_Read... [20:49:44]*** Stop cut motor [20:49:44]*** Cut end [20:49:44]Read from MH i2c: 01 07 00 [20:49:44]MH_I2C_Read... [20:49:44]Read from MH i2c: 01 07 00 2D 2D 00 00 00 00 00 FF 0F 6F [20:49:44]process_action close_receipt done [20:49:44]requested_data is exist [20:49:44]produce_requested_data [20:49:44]requested_item fm.sn is exist - process it [20:49:44]wFMCommunicate request_size=4 [20:49:44]MH_SAM_APDU [20:49:44]CAPDU: 80 11 00 00 [20:49:44]Write to MH i2c: E2 08 00 2E 2D 80 11 00 00 00 00 00 00 D5 [20:49:44]Write i2c OK [20:49:44]MH_I2C_Read... [20:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:44]Read from MH i2c: E2 [20:49:44]MH_I2C_Read... [20:49:44]Read from MH i2c: E2 17 00 [20:49:44]MH_I2C_Read... [20:49:44]Read from MH i2c: E2 17 00 2E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 23 [20:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:49:44]wFMCommunicate OK [20:49:44]requested_item fd.num is exist - process it [20:49:44]SAM_PROTO_GetFieldsCounters [20:49:44]wFMCommunicate request_size=4 [20:49:44]MH_SAM_APDU [20:49:44]CAPDU: 80 13 00 00 [20:49:44]Write to MH i2c: E2 08 00 2F 2D 80 13 00 00 00 00 00 00 D8 [20:49:44]Write i2c OK [20:49:44]MH_I2C_Read... [20:49:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:44]Read from MH i2c: E2 [20:49:44]MH_I2C_Read... [20:49:44]Read from MH i2c: E2 62 00 [20:49:44]MH_I2C_Read... [20:49:44]Read from MH i2c: E2 62 00 2F 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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 27 C3 01 00 0E 04 04 00 D7 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 33 [20:49:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 27 C3 01 00 0E 04 04 00 D7 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 [20:49:44]wFMCommunicate OK [20:49:44]SAM_PROTO_GetFieldsCounters done [20:49:44]requested_item shift.num is exist - process it [20:49:44]requested_item shift.opened is exist - process it [20:49:44]req_shift_opened [20:49:44]FM_GetShiftState [20:49:44]SAM_PROTO_GetShiftState [20:49:44]wFMCommunicate request_size=4 [20:49:44]MH_SAM_APDU [20:49:44]CAPDU: 80 13 01 00 [20:49:44]Write to MH i2c: E2 08 00 30 2D 80 13 01 00 00 00 00 00 DA [20:49:44]Write i2c OK [20:49:44]MH_I2C_Read... [20:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:44]Read from MH i2c: E2 [20:49:44]MH_I2C_Read... [20:49:44]Read from MH i2c: E2 0E 00 [20:49:44]MH_I2C_Read... [20:49:44]Read from MH i2c: E2 0E 00 30 2D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F3 [20:49:44]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:49:44]wFMCommunicate OK [20:49:44]SAM_PROTO_GetShiftState done [20:49:44]FM_GetShiftState done [20:49:44]req_shift_opened done [20:49:44]requested_item shift.open_date is exist - process it [20:49:44]req_shift_open_date [20:49:44]req_shift_open_date done [20:49:44]produce_requested_data done [20:49:44]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115495,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [20:49:44]process_action_free close_receipt [20:49:44]json_value_free [20:49:44]json_value_free done [20:49:44]process_json_proto returns [20:49:44]Send response to host [20:49:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115495,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [20:49:44]free response buf [20:49:44]execute_script done [20:49:44]execute_script returns [20:49:44]free content buf [20:49:44]Sock 8.Close socket [20:49:44]Sock 8.Thread stoped [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]accept exits with 9 [20:50:32]New connection [20:50:32]New thread 3066682724 created [20:50:32]Thread 3066826084 joined [20:50:32]Waiting for new connection... [20:50:32] Sock 9.Parse request [20:50:32]Sock 9.Check first char [20:50:32]Sock 9.First char is OK [20:50:32]request: POST /json_proto HTTP/1.0 [20:50:32]Method: POST [20:50:32]URL: /json_proto [20:50:32]Method is POST - this is cgi request [20:50:32]url: /json_proto [20:50:32]query_string will be loaded in cgi processing [20:50:32]execute_cgi json_proto POST (null) [20:50:32]execute_cgi path=json_proto method=POST [20:50:32]POST find Content-Length [20:50:32]Host: 172.17.41.136:8080 [20:50:32]Content-Length: 1744 [20:50:32]Content-Type: application/json [20:50:32] [20:50:32]POST finish read [20:50:32]Found Content-Length = 1744 [20:50:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343928", "tax_sys" : 0, "items" : [ { "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235784", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.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" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:32]execute_script... [20:50:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343928", "tax_sys" : 0, "items" : [ { "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235784", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.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" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:32]POST & json_proto [20:50:32]process_json_proto [20:50:32]json parsed OK: [20:50:32]protocol is kg_v1.0 [20:50:32]action value=close_receipt [20:50:32]process_action close_receipt [20:50:32]cmd_close_receipt [20:50:32]MH_GetDate [20:50:32]Write to MH i2c: F0 00 00 31 2D 4D [20:50:32]Write i2c OK [20:50:32]MH_I2C_Read... [20:50:32]Read from MH i2c: F0 [20:50:32]MH_I2C_Read... [20:50:32]Read from MH i2c: F0 09 00 [20:50:32]MH_I2C_Read... [20:50:32]Read from MH i2c: F0 09 00 31 2D 00 1B 83 F0 66 1B D0 5A 64 F3 [20:50:32]GetLastDocTimeStamp 1727038182 [20:50:32]current date 1727038235 [20:50:32]FM_GetShiftState [20:50:32]SAM_PROTO_GetShiftState [20:50:32]wFMCommunicate request_size=4 [20:50:32]MH_SAM_APDU [20:50:32]CAPDU: 80 13 01 00 [20:50:32]Write to MH i2c: E2 08 00 32 2D 80 13 01 00 00 00 00 00 DC [20:50:32]Write i2c OK [20:50:32]MH_I2C_Read... [20:50:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:32]Read from MH i2c: E2 [20:50:32]MH_I2C_Read... [20:50:32]Read from MH i2c: E2 0E 00 [20:50:32]MH_I2C_Read... [20:50:32]Read from MH i2c: E2 0E 00 32 2D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F5 [20:50:32]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:50:32]wFMCommunicate OK [20:50:32]SAM_PROTO_GetShiftState done [20:50:32]FM_GetShiftState done [20:50:32]opened in 1726965840 [20:50:32]opened+sec_in_day 1727052240 [20:50:32]quantity*price = 6500 [20:50:32]sum+1 = 6501 [20:50:32]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032800010 Сочник DC творог 75 г 1.000 * 30.00 = 30.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607015235784 Печ. сд. Яшкино клубника 137г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001571030 Вода ASU пит н.газ клубн,киви ПЭТ 1л 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.25 НДС 12% : 27.08 Наличными: 0.00 Безнал.: 255.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 214 22.09.2024 20:50 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115496 ФПД: 181476711739501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T205035&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115496&fm=181476711739501&tin=02508201610067®Number=0000000000091831&sum=25500 0 [20:50:33]StoreToDocumentArchive [20:50:33]shift 471 fd 115496 [20:50:33]save to /storage/0471/doc_00115496 [20:50:33]save last doc name /storage/0471/doc_00115496 to /storage/kkm_last_doc_name [20:50:33]save OK [20:50:33]Clear old archive folders... [20:50:33]ProcessDocumentItem done err = 0, tmpTLVsize=653 [20:50:33]tlvbuf is 01C06510 [20:50:33]SAM_PROTO_ClearQueue [20:50:33]wFMCommunicate request_size=4 [20:50:33]MH_SAM_APDU [20:50:33]CAPDU: 80 09 00 00 [20:50:33]Write to MH i2c: E2 08 00 3F 2D 80 09 00 00 00 00 00 00 DE [20:50:33]Write i2c OK [20:50:33]MH_I2C_Read... [20:50:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:33]Read from MH i2c: E2 [20:50:33]MH_I2C_Read... [20:50:33]Read from MH i2c: E2 03 00 [20:50:33]MH_I2C_Read... [20:50:33]Read from MH i2c: E2 03 00 3F 2D 00 90 00 E0 [20:50:33]RAPDU: 90 00 [20:50:33]wFMCommunicate OK [20:50:33]SAM_PROTO_ClearQueue done [20:50:33]KKMCreateOFDPacket [20:50:33]OFDProtocolAddRootSTLVToBuf [20:50:33]FM_MakeSignedData [20:50:33]FM_MakeSignedData [20:50:33]SAM_PROTO_SignData [20:50:33]wFMCommunicate request_size=4 [20:50:33]MH_SAM_APDU [20:50:33]CAPDU: 80 0D 01 02 [20:50:33]Write to MH i2c: E2 08 00 40 2D 80 0D 01 02 00 00 00 00 E6 [20:50:33]Write i2c OK [20:50:33]MH_I2C_Read... [20:50:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:33]Read from MH i2c: E2 [20:50:33]MH_I2C_Read... [20:50:33]Read from MH i2c: E2 03 00 [20:50:33]MH_I2C_Read... [20:50:33]Read from MH i2c: E2 03 00 40 2D 00 90 00 E1 [20:50:33]RAPDU: 90 00 [20:50:33]wFMCommunicate OK [20:50:33]wFMCommunicate request_size=255 [20:50:33]MH_SAM_APDU [20:50:33]CAPDU: 80 0D 02 02 FA 03 00 8D 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 [20:50:33]Write to MH i2c: E2 02 01 41 2D 80 0D 02 02 FA 00 03 00 8D 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 00 00 49 [20:50:33]Write i2c OK [20:50:33]MH_I2C_Read... [20:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:34]Read from MH i2c: E2 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 03 00 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 03 00 41 2D 00 90 00 E2 [20:50:34]RAPDU: 90 00 [20:50:34]wFMCommunicate OK [20:50:34]wFMCommunicate request_size=255 [20:50:34]MH_SAM_APDU [20:50:34]CAPDU: 80 0D 02 02 FA 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 [20:50:34]Write to MH i2c: E2 02 01 42 2D 80 0D 02 02 FA 00 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 22 [20:50:34]Write i2c OK [20:50:34]MH_I2C_Read... [20:50:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:34]Read from MH i2c: E2 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 03 00 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 03 00 42 2D 00 90 00 E3 [20:50:34]RAPDU: 90 00 [20:50:34]wFMCommunicate OK [20:50:34]wFMCommunicate request_size=162 [20:50:34]MH_SAM_APDU [20:50:34]CAPDU: 80 0D 02 02 9D 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 63 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 1B 83 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 28 C3 01 00 35 04 06 00 A5 0D 56 F0 30 6D [20:50:34]Write to MH i2c: E2 A5 00 43 2D 80 0D 02 02 9D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 63 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 1B 83 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 28 C3 01 00 35 04 06 00 A5 0D 56 F0 30 6D 00 00 FA [20:50:34]Write i2c OK [20:50:34]MH_I2C_Read... [20:50:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:34]Read from MH i2c: E2 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 03 00 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 03 00 43 2D 00 90 00 E4 [20:50:34]RAPDU: 90 00 [20:50:34]wFMCommunicate OK [20:50:34]wFMCommunicate request_size=4 [20:50:34]MH_SAM_APDU [20:50:34]CAPDU: 80 0D 03 02 [20:50:34]Write to MH i2c: E2 08 00 44 2D 80 0D 03 02 00 00 00 00 EC [20:50:34]Write i2c OK [20:50:34]MH_I2C_Read... [20:50:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:34]Read from MH i2c: E2 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 0B 00 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 0B 00 44 2D 00 DE 63 70 D8 1F E0 F5 14 90 00 7E [20:50:34]RAPDU: DE 63 70 D8 1F E0 F5 14 90 00 [20:50:34]wFMCommunicate OK [20:50:34]SAM_PROTO_SignData done [20:50:34]FM_MakeSignedData done [20:50:34]CreateOFDProtocolMessage [20:50:34]wFMCommunicate request_size=4 [20:50:34]MH_SAM_APDU [20:50:34]CAPDU: 80 11 00 00 [20:50:34]Write to MH i2c: E2 08 00 45 2D 80 11 00 00 00 00 00 00 EC [20:50:34]Write i2c OK [20:50:34]MH_I2C_Read... [20:50:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:34]Read from MH i2c: E2 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 17 00 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 17 00 45 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3A [20:50:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:50:34]wFMCommunicate OK [20:50:34]CreateOFDProtocolMessage done [20:50:34]OFDSenderStorePacket 115496 [20:50:34]StoreOFDPacket docnum=115496 [20:50:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A1 02 00 00 16 47 99 02 ED 2A 5A 03 01 00 03 00 8D 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 63 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 1B 83 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 28 C3 01 00 35 04 06 00 A5 0D 56 F0 30 6D DE 63 70 D8 1F E0 F5 14 [20:50:34]CheckFolder [20:50:34]dirname=/storage/ofd_packets [20:50:34]CheckFolder done [20:50:34]ProducePacketName [20:50:34]name=ofd_packets/00115496 [20:50:34]NVStorageSaveData ofd_packets/00115496 [20:50:34]File name is /storage/ofd_packets/00115496 [20:50:34]Write 703 bytes [20:50:34]NVStorageSaveData done [20:50:34]OFDSenderStorePacket done [20:50:34]KKMCreateOFDPacket done [20:50:34]NVStorageSaveData kkm_last_timestamp [20:50:34]File name is /storage/kkm_last_timestamp [20:50:34]Write 4 bytes [20:50:34]NVStorageSaveData done [20:50:34]ExternCall_PrintAddStr [20:50:34]wPrintStart [20:50:34]Write to MH i2c: 01 00 00 46 2D 73 [20:50:34]Write i2c OK [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: 01 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: 01 07 00 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: 01 07 00 46 2D 00 00 00 00 00 FF 0F 88 [20:50:34]RasterBufferAndPrint [20:50:34]line Счет N : (3)343928 [20:50:34]line ИНН: 02508201610067 [20:50:34]line Контрольно-Кассовый Чек [20:50:34]line ПРОДАЖА [20:50:34]line Товар: 2000032760017 [20:50:34]line Слойка DC треугольная мясо110г [20:50:34]line 1.000 * 65.00 [20:50:34]line = 65.00 [20:50:34]line НДС 12% НСП 1% [20:50:34]line > о реализуемом товаре [20:50:34]line Товар: 2000032800010 [20:50:34]line Сочник DC творог 75 г [20:50:34]line 1.000 * 30.00 [20:50:34]line = 30.00 [20:50:34]line НДС 12% НСП 1% [20:50:34]line > о реализуемом товаре [20:50:34]line Товар: 4607015235784 [20:50:34]line Печ. сд. Яшкино клубника 137г [20:50:34]line 1.000 * 90.00 [20:50:34]line = 90.00 [20:50:34]line НДС 12% НСП 1% [20:50:34]line > о реализуемом товаре [20:50:34]line Товар: 4870001571030 [20:50:34]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [20:50:34]line 1.000 * 70.00 [20:50:34]line = 70.00 [20:50:34]line НДС 12% НСП 1% [20:50:34]line > о реализуемом товаре [20:50:34]line ИТОГО: 255.00 [20:50:34]line НСП 1% : 2.25 [20:50:34]line НДС 12% : 27.08 [20:50:34]line Наличными: 0.00 [20:50:34]line Безнал.: 255.00 [20:50:34]line Место: АЗС № 90 "Партнер Нефть" [20:50:34]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:50:34]line СНО: Общий режим [20:50:34]line Чек 214 22.09.2024 20:50 [20:50:34]line Смена: 471 ФФД: 1.0 [20:50:34]line ЗНМ: 0300000120 [20:50:34]line РНМ: 0000000000091831 [20:50:34]line Версия ККМ: 001 [20:50:34]line Платежная система: O! деньги [20:50:34]line ФМ: 0000000000871830 [20:50:34]line ФД: 115496 [20:50:34]line ФПД: 181476711739501 [20:50:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T205035&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115496&fm=181476711739501&tin=02508201610067®Number=0000000000091831&sum=25500 [20:50:34]line 0 [20:50:34]OFD Sender: Processing packet 115496 [packets to send 481, broken 480] [20:50:34]ProducePacketName [20:50:34]name=ofd_packets/00115496 [20:50:34]OFD Sender: To server: pG, [20:50:34]CommunicateWithHost lk.salyk.kg:30040 [20:50:34]ConnectInit lk.salyk.kg [20:50:34]written 0, free lines is 4095 [20:50:35]Connected sock=10 [20:50:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A1 02 00 00 16 47 99 02 ED 2A 5A 03 01 00 03 00 8D 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 63 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 1B 83 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 28 C3 01 00 35 04 06 00 A5 0D 56 F0 30 6D DE 63 70 D8 1F E0 F5 14 [20:50:35]Write to MH i2c: 01 00 00 84 2D B1 [20:50:35]Write i2c OK [20:50:35]MH_I2C_Read... [20:50:35]Read from MH i2c: 01 [20:50:35]MH_I2C_Read... [20:50:35]Read from MH i2c: 01 07 00 [20:50:35]MH_I2C_Read... [20:50:35]Read from MH i2c: 01 07 00 84 2D 00 00 00 00 00 8C 0A 4E [20:50:35]RasterBufferAndPrint [20:50:35]line [20:50:35]line [20:50:35]line [20:50:35]line [20:50:35]line [20:50:35]written 0, free lines is 2705 [20:50:35]MH_Cut [20:50:35]Write to MH i2c: D1 01 00 8B 2D 01 8A [20:50:35]Write i2c OK [20:50:35]MH_I2C_Read... [20:50:35]Read from MH i2c: D1 [20:50:35]MH_I2C_Read... [20:50:35]Read from MH i2c: D1 01 00 [20:50:35]MH_I2C_Read... [20:50:35]Read from MH i2c: D1 01 00 8B 2D 00 89 [20:50:35]Write to MH i2c: 01 00 00 8C 2D B9 [20:50:35]Write i2c OK [20:50:35]MH_I2C_Read... [20:50:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 67 A4 47 00 6F 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 31 38 33 30 10 04 04 00 28 C3 01 00 F4 03 04 00 61 28 F0 66 B6 04 01 00 00 ED 76 F5 EA F0 C2 E0 88 [20:50:35]CommunicateWithHost err = 0 [20:50:35]CheckOFDResponse [20:50:35]1017 (14) - 77093643461234 [20:50:35]1041 (16) - 0000000000871830 [20:50:35]1040 (4) - 115496 [20:50:35]1012 (4) - 22.09.2024 14:23 [20:50:35]1206 (1) - 0 [20:50:35]OFD Sender: Remove packet 115496 [20:50:35]ProducePacketName [20:50:35]name=ofd_packets/00115496 [20:50:35]NVStorageDeleteData [20:50:36]OFD Sender: No OFD packet to send [20:50:37]*** Cut start [20:50:37]*** Partial cut [20:50:37]*** CUTSNS_PIN = 1 [20:50:37]*** CUTSNS_PIN = 0 [20:50:37]*** Brake cut motor [20:50:38]Read from MH i2c: 01 [20:50:38]MH_I2C_Read... [20:50:38]*** Stop cut motor [20:50:38]*** Cut end [20:50:38]Read from MH i2c: 01 07 00 [20:50:38]MH_I2C_Read... [20:50:38]Read from MH i2c: 01 07 00 8C 2D 00 00 00 00 00 FF 0F CE [20:50:38]process_action close_receipt done [20:50:38]requested_data is exist [20:50:38]produce_requested_data [20:50:38]requested_item fm.sn is exist - process it [20:50:38]wFMCommunicate request_size=4 [20:50:38]MH_SAM_APDU [20:50:38]CAPDU: 80 11 00 00 [20:50:38]Write to MH i2c: E2 08 00 8D 2D 80 11 00 00 00 00 00 00 34 [20:50:38]Write i2c OK [20:50:38]MH_I2C_Read... [20:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:38]Read from MH i2c: E2 [20:50:38]MH_I2C_Read... [20:50:38]Read from MH i2c: E2 17 00 [20:50:38]MH_I2C_Read... [20:50:38]Read from MH i2c: E2 17 00 8D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 82 [20:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:50:38]wFMCommunicate OK [20:50:38]requested_item fd.num is exist - process it [20:50:38]SAM_PROTO_GetFieldsCounters [20:50:38]wFMCommunicate request_size=4 [20:50:38]MH_SAM_APDU [20:50:38]CAPDU: 80 13 00 00 [20:50:38]Write to MH i2c: E2 08 00 8E 2D 80 13 00 00 00 00 00 00 37 [20:50:38]Write i2c OK [20:50:38]MH_I2C_Read... [20:50:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:38]Read from MH i2c: E2 [20:50:38]MH_I2C_Read... [20:50:38]Read from MH i2c: E2 62 00 [20:50:38]MH_I2C_Read... [20:50:38]Read from MH i2c: E2 62 00 8E 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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 28 C3 01 00 0E 04 04 00 D7 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 96 [20:50:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 28 C3 01 00 0E 04 04 00 D7 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 [20:50:38]wFMCommunicate OK [20:50:38]SAM_PROTO_GetFieldsCounters done [20:50:38]requested_item shift.num is exist - process it [20:50:38]requested_item shift.opened is exist - process it [20:50:38]req_shift_opened [20:50:38]FM_GetShiftState [20:50:38]SAM_PROTO_GetShiftState [20:50:38]wFMCommunicate request_size=4 [20:50:38]MH_SAM_APDU [20:50:38]CAPDU: 80 13 01 00 [20:50:38]Write to MH i2c: E2 08 00 8F 2D 80 13 01 00 00 00 00 00 39 [20:50:38]Write i2c OK [20:50:38]MH_I2C_Read... [20:50:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:38]Read from MH i2c: E2 [20:50:38]MH_I2C_Read... [20:50:38]Read from MH i2c: E2 0E 00 [20:50:38]MH_I2C_Read... [20:50:38]Read from MH i2c: E2 0E 00 8F 2D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 52 [20:50:38]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:50:38]wFMCommunicate OK [20:50:38]SAM_PROTO_GetShiftState done [20:50:38]FM_GetShiftState done [20:50:38]req_shift_opened done [20:50:38]requested_item shift.open_date is exist - process it [20:50:38]req_shift_open_date [20:50:38]req_shift_open_date done [20:50:38]produce_requested_data done [20:50:38]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115496,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [20:50:38]process_action_free close_receipt [20:50:38]json_value_free [20:50:38]json_value_free done [20:50:38]process_json_proto returns [20:50:38]Send response to host [20:50:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115496,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [20:50:38]free response buf [20:50:38]execute_script done [20:50:38]execute_script returns [20:50:38]free content buf [20:50:38]Sock 9.Close socket [20:50:38]Sock 9.Thread stoped [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:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:13]accept exits with 8 [20:57:13]New connection [20:57:13]New thread 3066826084 created [20:57:13]Thread 3066682724 joined [20:57:13]Waiting for new connection... [20:57:13] Sock 8.Parse request [20:57:13]Sock 8.Check first char [20:57:13]Sock 8.First char is OK [20:57:13]request: POST /json_proto HTTP/1.0 [20:57:13]Method: POST [20:57:13]URL: /json_proto [20:57:13]Method is POST - this is cgi request [20:57:13]url: /json_proto [20:57:13]query_string will be loaded in cgi processing [20:57:13]execute_cgi json_proto POST (null) [20:57:13]execute_cgi path=json_proto method=POST [20:57:13]POST find Content-Length [20:57:13]Host: 172.17.41.136:8080 [20:57:13]Content-Length: 683 [20:57:13]Content-Type: application/json [20:57:13] [20:57:13]POST finish read [20:57:13]Found Content-Length = 683 [20:57:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 13.370, "sum" : 500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:13]execute_script... [20:57:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 13.370, "sum" : 500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:13]POST & json_proto [20:57:13]process_json_proto [20:57:13]json parsed OK: [20:57:13]protocol is kg_v1.0 [20:57:13]action value=close_receipt [20:57:13]process_action close_receipt [20:57:13]cmd_close_receipt [20:57:13]MH_GetDate [20:57:13]Write to MH i2c: F0 00 00 90 2D AC [20:57:13]Write i2c OK [20:57:13]MH_I2C_Read... [20:57:13]Read from MH i2c: F0 [20:57:13]MH_I2C_Read... [20:57:13]Read from MH i2c: F0 09 00 [20:57:13]MH_I2C_Read... [20:57:13]Read from MH i2c: F0 09 00 90 2D 00 AC 84 F0 66 1B D0 5A 64 E4 [20:57:13]GetLastDocTimeStamp 1727038235 [20:57:13]current date 1727038636 [20:57:13]FM_GetShiftState [20:57:13]SAM_PROTO_GetShiftState [20:57:13]wFMCommunicate request_size=4 [20:57:13]MH_SAM_APDU [20:57:13]CAPDU: 80 13 01 00 [20:57:13]Write to MH i2c: E2 08 00 91 2D 80 13 01 00 00 00 00 00 3B [20:57:13]Write i2c OK [20:57:13]MH_I2C_Read... [20:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:13]Read from MH i2c: E2 [20:57:13]MH_I2C_Read... [20:57:13]Read from MH i2c: E2 0E 00 [20:57:13]MH_I2C_Read... [20:57:13]Read from MH i2c: E2 0E 00 91 2D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 54 [20:57:13]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:57:13]wFMCommunicate OK [20:57:13]SAM_PROTO_GetShiftState done [20:57:13]FM_GetShiftState done [20:57:13]opened in 1726965840 [20:57:13]opened+sec_in_day 1727052240 [20:57:13]quantity*price = 50003 [20:57:13]sum+1 = 50005 [20:57:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 215 22.09.2024 20:57 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115497 ФПД: 195018340005577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T205716&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115497&fm=195018340005577&tin=02508201610067®Number=0000000000091831&sum=50000 [20:57:14]StoreToDocumentArchive [20:57:14]shift 471 fd 115497 [20:57:14]save to /storage/0471/doc_00115497 [20:57:14]save last doc name /storage/0471/doc_00115497 to /storage/kkm_last_doc_name [20:57:14]save OK [20:57:14]Clear old archive folders... [20:57:14]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:57:14]tlvbuf is 01C78620 [20:57:14]SAM_PROTO_ClearQueue [20:57:14]wFMCommunicate request_size=4 [20:57:14]MH_SAM_APDU [20:57:14]CAPDU: 80 09 00 00 [20:57:14]Write to MH i2c: E2 08 00 9E 2D 80 09 00 00 00 00 00 00 3D [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:14]Read from MH i2c: E2 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 9E 2D 00 90 00 3F [20:57:14]RAPDU: 90 00 [20:57:14]wFMCommunicate OK [20:57:14]SAM_PROTO_ClearQueue done [20:57:14]KKMCreateOFDPacket [20:57:14]OFDProtocolAddRootSTLVToBuf [20:57:14]FM_MakeSignedData [20:57:14]FM_MakeSignedData [20:57:14]SAM_PROTO_SignData [20:57:14]wFMCommunicate request_size=4 [20:57:14]MH_SAM_APDU [20:57:14]CAPDU: 80 0D 01 02 [20:57:14]Write to MH i2c: E2 08 00 9F 2D 80 0D 01 02 00 00 00 00 45 [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:14]Read from MH i2c: E2 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 9F 2D 00 90 00 40 [20:57:14]RAPDU: 90 00 [20:57:14]wFMCommunicate OK [20:57:14]wFMCommunicate request_size=255 [20:57:14]MH_SAM_APDU [20:57:14]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 AC 84 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 29 C3 01 00 35 04 06 00 B1 5E [20:57:14]Write to MH i2c: E2 02 01 A0 2D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 AC 84 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 29 C3 01 00 35 04 06 00 B1 5E 00 00 01 [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:14]Read from MH i2c: E2 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 A0 2D 00 90 00 41 [20:57:14]RAPDU: 90 00 [20:57:14]wFMCommunicate OK [20:57:14]wFMCommunicate request_size=9 [20:57:14]MH_SAM_APDU [20:57:14]CAPDU: 80 0D 02 02 04 3E E1 76 C9 [20:57:14]Write to MH i2c: E2 0C 00 A1 2D 80 0D 02 02 04 00 3E E1 76 C9 00 00 AE [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:14]Read from MH i2c: E2 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 A1 2D 00 90 00 42 [20:57:14]RAPDU: 90 00 [20:57:14]wFMCommunicate OK [20:57:14]wFMCommunicate request_size=4 [20:57:14]MH_SAM_APDU [20:57:14]CAPDU: 80 0D 03 02 [20:57:14]Write to MH i2c: E2 08 00 A2 2D 80 0D 03 02 00 00 00 00 4A [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:14]Read from MH i2c: E2 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 0B 00 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 0B 00 A2 2D 00 A7 07 53 06 62 59 7C 31 90 00 BA [20:57:14]RAPDU: A7 07 53 06 62 59 7C 31 90 00 [20:57:14]wFMCommunicate OK [20:57:14]SAM_PROTO_SignData done [20:57:14]FM_MakeSignedData done [20:57:14]CreateOFDProtocolMessage [20:57:14]wFMCommunicate request_size=4 [20:57:14]MH_SAM_APDU [20:57:14]CAPDU: 80 11 00 00 [20:57:14]Write to MH i2c: E2 08 00 A3 2D 80 11 00 00 00 00 00 00 4A [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:14]Read from MH i2c: E2 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 17 00 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 17 00 A3 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 98 [20:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:57:14]wFMCommunicate OK [20:57:14]CreateOFDProtocolMessage done [20:57:14]OFDSenderStorePacket 115497 [20:57:14]StoreOFDPacket docnum=115497 [20:57:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0E 01 00 00 86 72 06 01 75 F1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 AC 84 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 29 C3 01 00 35 04 06 00 B1 5E 3E E1 76 C9 A7 07 53 06 62 59 7C 31 [20:57:14]CheckFolder [20:57:14]dirname=/storage/ofd_packets [20:57:14]CheckFolder done [20:57:14]ProducePacketName [20:57:14]name=ofd_packets/00115497 [20:57:14]NVStorageSaveData ofd_packets/00115497 [20:57:14]File name is /storage/ofd_packets/00115497 [20:57:14]Write 300 bytes [20:57:14]NVStorageSaveData done [20:57:14]OFDSenderStorePacket done [20:57:14]KKMCreateOFDPacket done [20:57:14]NVStorageSaveData kkm_last_timestamp [20:57:14]File name is /storage/kkm_last_timestamp [20:57:14]Write 4 bytes [20:57:14]NVStorageSaveData done [20:57:14]ExternCall_PrintAddStr [20:57:14]wPrintStart [20:57:14]Write to MH i2c: 01 00 00 A4 2D D1 [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: 01 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: 01 07 00 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: 01 07 00 A4 2D 00 00 00 00 00 FF 0F E6 [20:57:14]RasterBufferAndPrint [20:57:14]line Счет N : (1)24617206 [20:57:14]line ИНН: 02508201610067 [20:57:14]line Контрольно-Кассовый Чек [20:57:14]line ПРОДАЖА [20:57:14]line ТРК (МРК, ГНК) : 71 [20:57:14]line Товар: 2711190000 [20:57:14]line ГАЗ-К-5 [20:57:14]line 13.370 * 37.40 [20:57:14]line = 500.04 [20:57:14]line НДС 12% НСП 1% [20:57:14]line > о реализуемом товаре [20:57:14]line ОКРУГЛЕНИЕ: -0.04 [20:57:14]line ИТОГО: 500.00 [20:57:14]line Внесено: 500.00 [20:57:14]line СДАЧА: 0.00 [20:57:14]line НСП 1% : 4.42 [20:57:14]line НДС 12% : 53.10 [20:57:14]line Наличными: 500.00 [20:57:14]line Безнал.: 0.00 [20:57:14]line Место: АЗС № 90 "Партнер Нефть" [20:57:14]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:57:14]line СНО: Общий режим [20:57:14]line Чек 215 22.09.2024 20:57 [20:57:14]line Смена: 471 ФФД: 1.0 [20:57:14]line ЗНМ: 0300000120 [20:57:14]line РНМ: 0000000000091831 [20:57:14]line Версия ККМ: 001 [20:57:14]line ФМ: 0000000000871830 [20:57:14]line ФД: 115497 [20:57:14]line ФПД: 195018340005577 [20:57:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T205716&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115497&fm=195018340005577&tin=02508201610067®Number=0000000000091831&sum=50000 [20:57:14]written 0, free lines is 4095 [20:57:14]OFD Sender: Processing packet 115497 [packets to send 481, broken 480] [20:57:14]ProducePacketName [20:57:14]name=ofd_packets/00115497 [20:57:14]OFD Sender: To server: pG, [20:57:14]CommunicateWithHost lk.salyk.kg:30040 [20:57:14]ConnectInit lk.salyk.kg [20:57:15]Connected sock=10 [20:57:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0E 01 00 00 86 72 06 01 75 F1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 AC 84 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 29 C3 01 00 35 04 06 00 B1 5E 3E E1 76 C9 A7 07 53 06 62 59 7C 31 [20:57:15]Write to MH i2c: 01 00 00 CE 2D FB [20:57:15]Write i2c OK [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: 01 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: 01 07 00 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: 01 07 00 CE 2D 00 00 00 00 00 49 0C 57 [20:57:15]RasterBufferAndPrint [20:57:15]line [20:57:15]line [20:57:15]line [20:57:15]line [20:57:15]line [20:57:15]written 0, free lines is 3149 [20:57:15]MH_Cut [20:57:15]Write to MH i2c: D1 01 00 D5 2D 01 D4 [20:57:15]Write i2c OK [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: D1 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: D1 01 00 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: D1 01 00 D5 2D 00 D3 [20:57:15]Write to MH i2c: 01 00 00 D6 2D 03 [20:57:15]Write i2c OK [20:57:15]MH_I2C_Read... [20:57:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 BF 8F 47 00 36 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 29 C3 01 00 F4 03 04 00 F0 29 F0 66 B6 04 01 00 00 ED 30 A3 5E B6 9A 2F E8 [20:57:15]CommunicateWithHost err = 0 [20:57:15]CheckOFDResponse [20:57:15]1017 (14) - 77093643461234 [20:57:15]1041 (16) - 0000000000871830 [20:57:15]1040 (4) - 115497 [20:57:15]1012 (4) - 22.09.2024 14:30 [20:57:15]1206 (1) - 0 [20:57:15]OFD Sender: Remove packet 115497 [20:57:15]ProducePacketName [20:57:15]name=ofd_packets/00115497 [20:57:15]NVStorageDeleteData [20:57:15]OFD Sender: No OFD packet to send [20:57:16]*** Cut start [20:57:16]*** Partial cut [20:57:16]*** CUTSNS_PIN = 1 [20:57:16]*** CUTSNS_PIN = 0 [20:57:16]*** Brake cut motor [20:57:17]Read from MH i2c: 01 [20:57:17]MH_I2C_Read... [20:57:17]*** Stop cut motor [20:57:17]*** Cut end [20:57:17]Read from MH i2c: 01 07 00 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: 01 07 00 D6 2D 00 00 00 00 00 FF 0F 18 [20:57:17]process_action close_receipt done [20:57:17]requested_data is exist [20:57:17]produce_requested_data [20:57:17]requested_item fm.sn is exist - process it [20:57:17]wFMCommunicate request_size=4 [20:57:17]MH_SAM_APDU [20:57:17]CAPDU: 80 11 00 00 [20:57:17]Write to MH i2c: E2 08 00 D7 2D 80 11 00 00 00 00 00 00 7E [20:57:17]Write i2c OK [20:57:17]MH_I2C_Read... [20:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:17]Read from MH i2c: E2 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: E2 17 00 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: E2 17 00 D7 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CC [20:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:57:17]wFMCommunicate OK [20:57:17]requested_item fd.num is exist - process it [20:57:17]SAM_PROTO_GetFieldsCounters [20:57:17]wFMCommunicate request_size=4 [20:57:17]MH_SAM_APDU [20:57:17]CAPDU: 80 13 00 00 [20:57:17]Write to MH i2c: E2 08 00 D8 2D 80 13 00 00 00 00 00 00 81 [20:57:17]Write i2c OK [20:57:17]MH_I2C_Read... [20:57:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:17]Read from MH i2c: E2 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: E2 62 00 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: E2 62 00 D8 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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 29 C3 01 00 0E 04 04 00 D7 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 E4 [20:57:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 29 C3 01 00 0E 04 04 00 D7 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 [20:57:17]wFMCommunicate OK [20:57:17]SAM_PROTO_GetFieldsCounters done [20:57:17]requested_item shift.num is exist - process it [20:57:17]requested_item shift.opened is exist - process it [20:57:17]req_shift_opened [20:57:17]FM_GetShiftState [20:57:17]SAM_PROTO_GetShiftState [20:57:17]wFMCommunicate request_size=4 [20:57:17]MH_SAM_APDU [20:57:17]CAPDU: 80 13 01 00 [20:57:17]Write to MH i2c: E2 08 00 D9 2D 80 13 01 00 00 00 00 00 83 [20:57:17]Write i2c OK [20:57:17]MH_I2C_Read... [20:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:17]Read from MH i2c: E2 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: E2 0E 00 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: E2 0E 00 D9 2D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 9C [20:57:17]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [20:57:17]wFMCommunicate OK [20:57:17]SAM_PROTO_GetShiftState done [20:57:17]FM_GetShiftState done [20:57:17]req_shift_opened done [20:57:17]requested_item shift.open_date is exist - process it [20:57:17]req_shift_open_date [20:57:17]req_shift_open_date done [20:57:17]produce_requested_data done [20:57:17]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115497,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [20:57:17]process_action_free close_receipt [20:57:17]json_value_free [20:57:17]json_value_free done [20:57:17]process_json_proto returns [20:57:17]Send response to host [20:57:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115497,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [20:57:17]free response buf [20:57:17]execute_script done [20:57:17]execute_script returns [20:57:17]free content buf [20:57:17]Sock 8.Close socket [20:57:17]Sock 8.Thread stoped [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57:50]OFD Sender: No OFD packet to send [20:57:55]OFD Sender: No OFD packet to send [20:58:00]OFD Sender: No OFD packet to send [20:58:05]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:06]OFD Sender: No OFD packet to send [21:01:11]OFD Sender: No OFD packet to send [21:01:16]OFD Sender: No OFD packet to send [21:01:21]OFD Sender: No OFD packet to send [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [21:05:07]OFD Sender: No OFD packet to send [21:05:12]OFD Sender: No OFD packet to send [21:05:17]OFD Sender: No OFD packet to send [21:05:22]OFD Sender: No OFD packet to send [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:12]OFD Sender: No OFD packet to send [21:06:17]OFD Sender: No OFD packet to send [21:06:22]OFD Sender: No OFD packet to send [21:06:27]OFD Sender: No OFD packet to send [21:06:32]OFD Sender: No OFD packet to send [21:06:37]OFD Sender: No OFD packet to send [21:06:42]OFD Sender: No OFD packet to send [21:06:47]OFD Sender: No OFD packet to send [21:06:52]OFD Sender: No OFD packet to send [21:06:57]OFD Sender: No OFD packet to send [21:07:02]OFD Sender: No OFD packet to send [21:07:07]OFD Sender: No OFD packet to send [21:07:12]OFD Sender: No OFD packet to send [21:07:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:31]accept exits with 9 [21:07:31]New connection [21:07:31]New thread 3066682724 created [21:07:31]Thread 3066826084 joined [21:07:31]Waiting for new connection... [21:07:31] Sock 9.Parse request [21:07:31]Sock 9.Check first char [21:07:31]Sock 9.First char is OK [21:07:31]request: POST /json_proto HTTP/1.0 [21:07:31]Method: POST [21:07:31]URL: /json_proto [21:07:31]Method is POST - this is cgi request [21:07:31]url: /json_proto [21:07:31]query_string will be loaded in cgi processing [21:07:31]execute_cgi json_proto POST (null) [21:07:31]execute_cgi path=json_proto method=POST [21:07:31]POST find Content-Length [21:07:31]Host: 172.17.41.136:8080 [21:07:31]Content-Length: 1646 [21:07:31]Content-Type: application/json [21:07:31] [21:07:31]POST finish read [21:07:31]Found Content-Length = 1646 [21:07:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343929", "tax_sys" : 0, "items" : [ { "code": "4601025117542", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0442\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 0,5", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4601025117788", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0430\u0440\u0431\u0443\u0437 \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 0,5", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622210309396", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \"OREO\" 38 \u0433\u0440", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:31]execute_script... [21:07:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343929", "tax_sys" : 0, "items" : [ { "code": "4601025117542", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0442\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 0,5", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4601025117788", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0430\u0440\u0431\u0443\u0437 \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 0,5", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622210309396", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \"OREO\" 38 \u0433\u0440", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:31]POST & json_proto [21:07:31]process_json_proto [21:07:31]json parsed OK: [21:07:31]protocol is kg_v1.0 [21:07:31]action value=close_receipt [21:07:31]process_action close_receipt [21:07:31]cmd_close_receipt [21:07:31]MH_GetDate [21:07:31]Write to MH i2c: F0 00 00 DA 2D F6 [21:07:31]Write i2c OK [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: F0 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: F0 09 00 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: F0 09 00 DA 2D 00 16 87 F0 66 1B D0 5A 64 9B [21:07:31]GetLastDocTimeStamp 1727038636 [21:07:31]current date 1727039254 [21:07:31]FM_GetShiftState [21:07:31]SAM_PROTO_GetShiftState [21:07:31]wFMCommunicate request_size=4 [21:07:31]MH_SAM_APDU [21:07:31]CAPDU: 80 13 01 00 [21:07:31]Write to MH i2c: E2 08 00 DB 2D 80 13 01 00 00 00 00 00 85 [21:07:31]Write i2c OK [21:07:31]MH_I2C_Read... [21:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:31]Read from MH i2c: E2 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: E2 0E 00 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: E2 0E 00 DB 2D 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 9E [21:07:31]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [21:07:31]wFMCommunicate OK [21:07:31]SAM_PROTO_GetShiftState done [21:07:31]FM_GetShiftState done [21:07:31]opened in 1726965840 [21:07:31]opened+sec_in_day 1727052240 [21:07:31]quantity*price = 8500 [21:07:31]sum+1 = 8501 [21:07:31]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4601025117788 Напиток Фрутмотив арбуз клубника 0,5 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 7622210309396 Печенье "OREO" 38 гр 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870002325441 Вода ASU пит н.газ лимон ПЭТ 0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.64 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 216 22.09.2024 21:07 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115498 ФПД: 113187276011518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T210734&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115498&fm=113187276011518&tin=02508201610067®Number=0000000000091831&sum=30000 0 [21:07:32]StoreToDocumentArchive [21:07:32]shift 471 fd 115498 [21:07:32]save to /storage/0471/doc_00115498 [21:07:32]save last doc name /storage/0471/doc_00115498 to /storage/kkm_last_doc_name [21:07:32]save OK [21:07:32]Clear old archive folders... [21:07:32]ProcessDocumentItem done err = 0, tmpTLVsize=674 [21:07:32]tlvbuf is 01C940F0 [21:07:32]SAM_PROTO_ClearQueue [21:07:32]wFMCommunicate request_size=4 [21:07:32]MH_SAM_APDU [21:07:32]CAPDU: 80 09 00 00 [21:07:32]Write to MH i2c: E2 08 00 E8 2D 80 09 00 00 00 00 00 00 87 [21:07:32]Write i2c OK [21:07:32]MH_I2C_Read... [21:07:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:32]Read from MH i2c: E2 [21:07:32]MH_I2C_Read... [21:07:32]Read from MH i2c: E2 03 00 [21:07:32]MH_I2C_Read... [21:07:32]Read from MH i2c: E2 03 00 E8 2D 00 90 00 89 [21:07:32]RAPDU: 90 00 [21:07:32]wFMCommunicate OK [21:07:32]SAM_PROTO_ClearQueue done [21:07:32]KKMCreateOFDPacket [21:07:32]OFDProtocolAddRootSTLVToBuf [21:07:32]FM_MakeSignedData [21:07:32]FM_MakeSignedData [21:07:32]SAM_PROTO_SignData [21:07:32]wFMCommunicate request_size=4 [21:07:32]MH_SAM_APDU [21:07:32]CAPDU: 80 0D 01 02 [21:07:32]Write to MH i2c: E2 08 00 E9 2D 80 0D 01 02 00 00 00 00 8F [21:07:32]Write i2c OK [21:07:32]MH_I2C_Read... [21:07:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:32]Read from MH i2c: E2 [21:07:32]MH_I2C_Read... [21:07:32]Read from MH i2c: E2 03 00 [21:07:32]MH_I2C_Read... [21:07:32]Read from MH i2c: E2 03 00 E9 2D 00 90 00 8A [21:07:32]RAPDU: 90 00 [21:07:32]wFMCommunicate OK [21:07:32]wFMCommunicate request_size=255 [21:07:32]MH_SAM_APDU [21:07:32]CAPDU: 80 0D 02 02 FA 03 00 A2 02 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 38 38 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 [21:07:32]Write to MH i2c: E2 02 01 EA 2D 80 0D 02 02 FA 00 03 00 A2 02 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 38 38 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 60 [21:07:32]Write i2c OK [21:07:32]MH_I2C_Read... [21:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:33]Read from MH i2c: E2 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 03 00 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 03 00 EA 2D 00 90 00 8B [21:07:33]RAPDU: 90 00 [21:07:33]wFMCommunicate OK [21:07:33]wFMCommunicate request_size=255 [21:07:33]MH_SAM_APDU [21:07:33]CAPDU: 80 0D 02 02 FA 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 [21:07:33]Write to MH i2c: E2 02 01 EB 2D 80 0D 02 02 FA 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 00 00 62 [21:07:33]Write i2c OK [21:07:33]MH_I2C_Read... [21:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:33]Read from MH i2c: E2 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 03 00 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 03 00 EB 2D 00 90 00 8C [21:07:33]RAPDU: 90 00 [21:07:33]wFMCommunicate OK [21:07:33]wFMCommunicate request_size=183 [21:07:33]MH_SAM_APDU [21:07:33]CAPDU: 80 0D 02 02 B2 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 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 16 87 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2A C3 01 00 35 04 06 00 66 F1 77 61 37 FE [21:07:33]Write to MH i2c: E2 BA 00 EC 2D 80 0D 02 02 B2 00 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 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 16 87 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2A C3 01 00 35 04 06 00 66 F1 77 61 37 FE 00 00 B6 [21:07:33]Write i2c OK [21:07:33]MH_I2C_Read... [21:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:33]Read from MH i2c: E2 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 03 00 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 03 00 EC 2D 00 90 00 8D [21:07:33]RAPDU: 90 00 [21:07:33]wFMCommunicate OK [21:07:33]wFMCommunicate request_size=4 [21:07:33]MH_SAM_APDU [21:07:33]CAPDU: 80 0D 03 02 [21:07:33]Write to MH i2c: E2 08 00 ED 2D 80 0D 03 02 00 00 00 00 95 [21:07:33]Write i2c OK [21:07:33]MH_I2C_Read... [21:07:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:33]Read from MH i2c: E2 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 0B 00 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 0B 00 ED 2D 00 D9 04 5A AB 64 22 F4 68 90 00 5A [21:07:33]RAPDU: D9 04 5A AB 64 22 F4 68 90 00 [21:07:33]wFMCommunicate OK [21:07:33]SAM_PROTO_SignData done [21:07:33]FM_MakeSignedData done [21:07:33]CreateOFDProtocolMessage [21:07:33]wFMCommunicate request_size=4 [21:07:33]MH_SAM_APDU [21:07:33]CAPDU: 80 11 00 00 [21:07:33]Write to MH i2c: E2 08 00 EE 2D 80 11 00 00 00 00 00 00 95 [21:07:33]Write i2c OK [21:07:33]MH_I2C_Read... [21:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:33]Read from MH i2c: E2 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 17 00 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 17 00 EE 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E3 [21:07:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:07:33]wFMCommunicate OK [21:07:33]CreateOFDProtocolMessage done [21:07:33]OFDSenderStorePacket 115498 [21:07:33]StoreOFDPacket docnum=115498 [21:07:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B6 02 00 00 50 BA AE 02 80 5C 5A 03 01 00 03 00 A2 02 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 38 38 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 16 87 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2A C3 01 00 35 04 06 00 66 F1 77 61 37 FE D9 04 5A AB 64 22 F4 68 [21:07:33]CheckFolder [21:07:33]dirname=/storage/ofd_packets [21:07:33]CheckFolder done [21:07:33]ProducePacketName [21:07:33]name=ofd_packets/00115498 [21:07:33]NVStorageSaveData ofd_packets/00115498 [21:07:33]File name is /storage/ofd_packets/00115498 [21:07:33]Write 724 bytes [21:07:33]NVStorageSaveData done [21:07:33]OFDSenderStorePacket done [21:07:33]KKMCreateOFDPacket done [21:07:33]NVStorageSaveData kkm_last_timestamp [21:07:33]File name is /storage/kkm_last_timestamp [21:07:33]Write 4 bytes [21:07:33]NVStorageSaveData done [21:07:33]ExternCall_PrintAddStr [21:07:33]wPrintStart [21:07:33]Write to MH i2c: 01 00 00 EF 2D 1C [21:07:33]Write i2c OK [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: 01 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: 01 07 00 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: 01 07 00 EF 2D 00 00 00 00 00 FF 0F 31 [21:07:33]RasterBufferAndPrint [21:07:33]line Счет N : (3)343929 [21:07:33]line ИНН: 02508201610067 [21:07:33]line Контрольно-Кассовый Чек [21:07:33]line ПРОДАЖА [21:07:33]line Товар: 4601025117542 [21:07:33]line Напиток Фрутмотив тропический микс 0,5 [21:07:33]line 1.000 * 85.00 [21:07:33]line = 85.00 [21:07:33]line НДС 12% НСП 1% [21:07:33]line > о реализуемом товаре [21:07:33]line Товар: 4601025117788 [21:07:33]line Напиток Фрутмотив арбуз клубника 0,5 [21:07:33]line 1.000 * 85.00 [21:07:33]line = 85.00 [21:07:33]line НДС 12% НСП 1% [21:07:34]line > о реализуемом товаре [21:07:34]line Товар: 7622210309396 [21:07:34]line Печенье "OREO" 38 гр [21:07:34]line 1.000 * 65.00 [21:07:34]line = 65.00 [21:07:34]line НДС 12% НСП 1% [21:07:34]line > о реализуемом товаре [21:07:34]line Товар: 4870002325441 [21:07:34]line Вода ASU пит н.газ лимон ПЭТ 0,5л [21:07:34]line 1.000 * 65.00 [21:07:34]line = 65.00 [21:07:34]line НДС 12% НСП 1% [21:07:34]line > о реализуемом товаре [21:07:34]line ИТОГО: 300.00 [21:07:34]line НСП 1% : 2.64 [21:07:34]line НДС 12% : 31.86 [21:07:34]line Наличными: 300.00 [21:07:34]line Безнал.: 0.00 [21:07:34]line Место: АЗС № 90 "Партнер Нефть" [21:07:34]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [21:07:34]line СНО: Общий режим [21:07:34]line Чек 216 22.09.2024 21:07 [21:07:34]line Смена: 471 ФФД: 1.0 [21:07:34]line ЗНМ: 0300000120 [21:07:34]line РНМ: 0000000000091831 [21:07:34]line Версия ККМ: 001 [21:07:34]line ФМ: 0000000000871830 [21:07:34]line ФД: 115498 [21:07:34]line ФПД: 113187276011518 [21:07:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T210734&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115498&fm=113187276011518&tin=02508201610067®Number=0000000000091831&sum=30000 [21:07:34]line 0 [21:07:34]OFD Sender: Processing packet 115498 [packets to send 481, broken 480] [21:07:34]ProducePacketName [21:07:34]name=ofd_packets/00115498 [21:07:34]OFD Sender: To server: pG, [21:07:34]CommunicateWithHost lk.salyk.kg:30040 [21:07:34]ConnectInit lk.salyk.kg [21:07:34]written 0, free lines is 4095 [21:07:34]Connected sock=10 [21:07:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B6 02 00 00 50 BA AE 02 80 5C 5A 03 01 00 03 00 A2 02 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 38 38 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 16 87 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2A C3 01 00 35 04 06 00 66 F1 77 61 37 FE D9 04 5A AB 64 22 F4 68 [21:07:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 00 ED 47 00 28 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2A C3 01 00 F4 03 04 00 5C 2C F0 66 B6 04 01 00 00 35 B5 B4 31 C6 44 43 60 [21:07:34]CommunicateWithHost err = 0 [21:07:34]CheckOFDResponse [21:07:34]1017 (14) - 77093643461234 [21:07:34]1041 (16) - 0000000000871830 [21:07:34]1040 (4) - 115498 [21:07:34]1012 (4) - 22.09.2024 14:40 [21:07:34]1206 (1) - 0 [21:07:34]OFD Sender: Remove packet 115498 [21:07:34]ProducePacketName [21:07:34]name=ofd_packets/00115498 [21:07:34]NVStorageDeleteData [21:07:34]Write to MH i2c: 01 00 00 2B 2E 59 [21:07:34]Write i2c OK [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: 01 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: 01 07 00 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: 01 07 00 2B 2E 00 00 00 00 00 BE 0A 28 [21:07:34]RasterBufferAndPrint [21:07:34]line [21:07:34]line [21:07:34]line [21:07:34]line [21:07:34]line [21:07:34]written 0, free lines is 2754 [21:07:34]MH_Cut [21:07:34]Write to MH i2c: D1 01 00 32 2E 01 32 [21:07:34]Write i2c OK [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: D1 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: D1 01 00 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: D1 01 00 32 2E 00 31 [21:07:34]Write to MH i2c: 01 00 00 33 2E 61 [21:07:34]Write i2c OK [21:07:34]MH_I2C_Read... [21:07:35]OFD Sender: No OFD packet to send [21:07:36]*** Cut start [21:07:36]*** Partial cut [21:07:36]*** CUTSNS_PIN = 1 [21:07:36]*** CUTSNS_PIN = 0 [21:07:36]*** Brake cut motor [21:07:37]Read from MH i2c: 01 [21:07:37]MH_I2C_Read... [21:07:37]*** Stop cut motor [21:07:37]*** Cut end [21:07:37]Read from MH i2c: 01 07 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: 01 07 00 33 2E 00 00 00 00 00 FF 0F 76 [21:07:37]process_action close_receipt done [21:07:37]requested_data is exist [21:07:37]produce_requested_data [21:07:37]requested_item fm.sn is exist - process it [21:07:37]wFMCommunicate request_size=4 [21:07:37]MH_SAM_APDU [21:07:37]CAPDU: 80 11 00 00 [21:07:37]Write to MH i2c: E2 08 00 34 2E 80 11 00 00 00 00 00 00 DC [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:37]Read from MH i2c: E2 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 17 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 17 00 34 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2A [21:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:07:37]wFMCommunicate OK [21:07:37]requested_item fd.num is exist - process it [21:07:37]SAM_PROTO_GetFieldsCounters [21:07:37]wFMCommunicate request_size=4 [21:07:37]MH_SAM_APDU [21:07:37]CAPDU: 80 13 00 00 [21:07:37]Write to MH i2c: E2 08 00 35 2E 80 13 00 00 00 00 00 00 DF [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:37]Read from MH i2c: E2 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 62 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 62 00 35 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2A C3 01 00 0E 04 04 00 D7 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 46 [21:07:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2A C3 01 00 0E 04 04 00 D7 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 [21:07:37]wFMCommunicate OK [21:07:37]SAM_PROTO_GetFieldsCounters done [21:07:37]requested_item shift.num is exist - process it [21:07:37]requested_item shift.opened is exist - process it [21:07:37]req_shift_opened [21:07:37]FM_GetShiftState [21:07:37]SAM_PROTO_GetShiftState [21:07:37]wFMCommunicate request_size=4 [21:07:37]MH_SAM_APDU [21:07:37]CAPDU: 80 13 01 00 [21:07:37]Write to MH i2c: E2 08 00 36 2E 80 13 01 00 00 00 00 00 E1 [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:37]Read from MH i2c: E2 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 0E 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 0E 00 36 2E 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 FA [21:07:37]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [21:07:37]wFMCommunicate OK [21:07:37]SAM_PROTO_GetShiftState done [21:07:37]FM_GetShiftState done [21:07:37]req_shift_opened done [21:07:37]requested_item shift.open_date is exist - process it [21:07:37]req_shift_open_date [21:07:37]req_shift_open_date done [21:07:37]produce_requested_data done [21:07:37]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115498,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [21:07:37]process_action_free close_receipt [21:07:37]json_value_free [21:07:37]json_value_free done [21:07:37]process_json_proto returns [21:07:37]Send response to host [21:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115498,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [21:07:37]free response buf [21:07:37]execute_script done [21:07:37]execute_script returns [21:07:37]free content buf [21:07:37]Sock 9.Close socket [21:07:37]Sock 9.Thread stoped [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:09]int [21:11:09]Write to MH i2c: 01 00 00 37 2E 65 [21:11:09]*** FLAG_PRN_PAP1 set [21:11:09]Write i2c OK [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 37 2E 00 01 00 00 00 FF 0F 7B [21:11:09]state=0 [21:11:09]No paper [21:11:09]int line is 0 - check status [21:11:09]Write to MH i2c: 01 00 00 38 2E 66 [21:11:09]*** FLAG_PRN_PAP1 reset [21:11:09]Write i2c OK [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 38 2E 00 00 00 00 00 FF 0F 7B [21:11:09]state=0 [21:11:09]int line is 0 - check status [21:11:09]Write to MH i2c: 01 00 00 39 2E 67 [21:11:09]*** FLAG_PRN_PAP1 set [21:11:09]Write i2c OK [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 39 2E 00 01 00 00 00 FF 0F 7D [21:11:09]state=0 [21:11:09]No paper [21:11:09]int [21:11:09]Write to MH i2c: 01 00 00 3A 2E 68 [21:11:09]Write i2c OK [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 [21:11:09]MH_I2C_Read... [21:11:09]*** FLAG_PRN_PAP1 reset [21:11:09]*** FLAG_PRN_PAP1 set [21:11:09]Read from MH i2c: 01 07 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 3A 2E 00 01 00 00 00 FF 0F 7E [21:11:09]state=0 [21:11:09]No paper [21:11:09]int [21:11:09]Write to MH i2c: 01 00 00 3B 2E 69 [21:11:09]*** FLAG_PRN_PAP2 set [21:11:09]Write i2c OK [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 3B 2E 00 03 00 00 00 FF 0F 81 [21:11:09]state=0 [21:11:09]No paper [21:11:09]Cover opened [21:11:09]int [21:11:09]Write to MH i2c: 01 00 00 3C 2E 6A [21:11:09]*** FLAG_PRN_PAP2 reset [21:11:09]Write i2c OK [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 3C 2E 00 01 00 00 00 FF 0F 80 [21:11:09]state=3 [21:11:09]No paper [21:11:09]Cover closed [21:11:09]int [21:11:09]Write to MH i2c: 01 00 00 3D 2E 6B [21:11:09]*** FLAG_PRN_PAP2 set [21:11:09]Write i2c OK [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 3D 2E 00 03 00 00 00 FF 0F 83 [21:11:09]state=0 [21:11:09]No paper [21:11:09]Cover opened [21:11:09]int [21:11:09]Write to MH i2c: 01 00 00 3E 2E 6C [21:11:09]*** FLAG_PRN_PAP2 reset [21:11:09]Write i2c OK [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 3E 2E 00 01 00 00 00 FF 0F 82 [21:11:09]state=3 [21:11:09]No paper [21:11:09]Cover closed [21:11:09]int [21:11:09]Write to MH i2c: 01 00 00 3F 2E 6D [21:11:09]*** FLAG_PRN_PAP2 set [21:11:09]Write i2c OK [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 3F 2E 00 03 00 00 00 FF 0F 85 [21:11:09]state=0 [21:11:09]No paper [21:11:09]Cover opened [21:11:09]int [21:11:09]Write to MH i2c: 01 00 00 40 2E 6E [21:11:09]*** FLAG_PRN_PAP2 reset [21:11:09]Write i2c OK [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 40 2E 00 01 00 00 00 FF 0F 84 [21:11:09]state=3 [21:11:09]No paper [21:11:09]Cover closed [21:11:09]int [21:11:09]Write to MH i2c: 01 00 00 41 2E 6F [21:11:09]*** FLAG_PRN_PAP2 set [21:11:09]Write i2c OK [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 41 2E 00 03 00 00 00 FF 0F 87 [21:11:09]state=0 [21:11:09]No paper [21:11:09]Cover opened [21:11:10]OFD Sender: No OFD packet to send [21:11:10]int [21:11:10]Write to MH i2c: 01 00 00 42 2E 70 [21:11:10]*** FLAG_PRN_PAP2 reset [21:11:10]Write i2c OK [21:11:10]MH_I2C_Read... [21:11:10]Read from MH i2c: 01 [21:11:10]MH_I2C_Read... [21:11:10]Read from MH i2c: 01 07 00 [21:11:10]MH_I2C_Read... [21:11:10]Read from MH i2c: 01 07 00 42 2E 00 01 00 00 00 FF 0F 86 [21:11:10]state=3 [21:11:10]No paper [21:11:10]Cover closed [21:11:10]int [21:11:10]Write to MH i2c: 01 00 00 43 2E 71 [21:11:10]*** FLAG_PRN_PAP2 set [21:11:10]Write i2c OK [21:11:10]MH_I2C_Read... [21:11:10]Read from MH i2c: 01 [21:11:10]MH_I2C_Read... [21:11:10]Read from MH i2c: 01 07 00 [21:11:10]MH_I2C_Read... [21:11:10]Read from MH i2c: 01 07 00 43 2E 00 03 00 00 00 FF 0F 89 [21:11:10]state=0 [21:11:10]No paper [21:11:10]Cover opened [21:11:10]int [21:11:10]Write to MH i2c: 01 00 00 44 2E 72 [21:11:10]*** FLAG_PRN_PAP2 reset [21:11:10]Write i2c OK [21:11:10]MH_I2C_Read... [21:11:10]Read from MH i2c: 01 [21:11:10]MH_I2C_Read... [21:11:10]Read from MH i2c: 01 07 00 [21:11:10]MH_I2C_Read... [21:11:10]Read from MH i2c: 01 07 00 44 2E 00 01 00 00 00 FF 0F 88 [21:11:10]state=3 [21:11:10]No paper [21:11:10]Cover closed [21:11:12]int [21:11:12]Write to MH i2c: 01 00 00 45 2E 73 [21:11:12]*** FLAG_PRN_PAP2 set [21:11:12]Write i2c OK [21:11:12]MH_I2C_Read... [21:11:12]Read from MH i2c: 01 [21:11:12]MH_I2C_Read... [21:11:12]Read from MH i2c: 01 07 00 [21:11:12]MH_I2C_Read... [21:11:12]Read from MH i2c: 01 07 00 45 2E 00 03 00 00 00 FF 0F 8B [21:11:12]state=0 [21:11:12]No paper [21:11:12]Cover opened [21:11:15]OFD Sender: No OFD packet to send [21:11:17]Write to MH i2c: 01 00 00 46 2E 74 [21:11:17]Write i2c OK [21:11:17]MH_I2C_Read... [21:11:17]Read from MH i2c: 01 [21:11:17]MH_I2C_Read... [21:11:17]Read from MH i2c: 01 07 00 [21:11:17]MH_I2C_Read... [21:11:17]Read from MH i2c: 01 07 00 46 2E 00 03 00 00 00 FF 0F 8C [21:11:17]state=3 [21:11:17]No paper [21:11:17]Cover opened [21:11:19]int [21:11:19]Write to MH i2c: 01 00 00 47 2E 75 [21:11:19]*** FLAG_PRN_PAP2 reset [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: 01 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: 01 07 00 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: 01 07 00 47 2E 00 01 00 00 00 FF 0F 8B [21:11:19]state=3 [21:11:19]No paper [21:11:19]Cover closed [21:11:19]int [21:11:19]Write to MH i2c: 01 00 00 48 2E 76 [21:11:19]*** FLAG_PRN_PAP1 reset [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: 01 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: 01 07 00 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: 01 07 00 48 2E 00 00 00 00 00 FF 0F 8B [21:11:19]state=0 [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12: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: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:31]OFD Sender: No OFD packet to send [21:14:36]OFD Sender: No OFD packet to send [21:14:41]OFD Sender: No OFD packet to send [21:14:46]OFD Sender: No OFD packet to send [21:14:51]OFD Sender: No OFD packet to send [21:14:56]OFD Sender: No OFD packet to send [21:15:01]OFD Sender: No OFD packet to send [21:15:06]OFD Sender: No OFD packet to send [21:15:11]OFD Sender: No OFD packet to send [21:15:16]OFD Sender: No OFD packet to send [21:15:21]OFD Sender: No OFD packet to send [21:15:26]OFD Sender: No OFD packet to send [21:15:31]OFD Sender: No OFD packet to send [21:15:36]OFD Sender: No OFD packet to send [21:15:41]OFD Sender: No OFD packet to send [21:15:46]OFD Sender: No OFD packet to send [21:15:51]OFD Sender: No OFD packet to send [21:15:56]OFD Sender: No OFD packet to send [21:15:58]accept exits with 8 [21:15:58]New connection [21:15:58]New thread 3066826084 created [21:15:58]Thread 3066682724 joined [21:15:58]Waiting for new connection... [21:15:58] Sock 8.Parse request [21:15:58]Sock 8.Check first char [21:15:58]Sock 8.First char is OK [21:15:58]request: POST /json_proto HTTP/1.0 [21:15:58]Method: POST [21:15:58]URL: /json_proto [21:15:58]Method is POST - this is cgi request [21:15:58]url: /json_proto [21:15:58]query_string will be loaded in cgi processing [21:15:58]execute_cgi json_proto POST (null) [21:15:58]execute_cgi path=json_proto method=POST [21:15:58]POST find Content-Length [21:15:58]Host: 172.17.41.136:8080 [21:15:58]Content-Length: 670 [21:15:58]Content-Type: application/json [21:15:58] [21:15:58]POST finish read [21:15:58]Found Content-Length = 670 [21:15:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343930", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:58]execute_script... [21:15:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343930", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:58]POST & json_proto [21:15:58]process_json_proto [21:15:58]json parsed OK: [21:15:58]protocol is kg_v1.0 [21:15:58]action value=close_receipt [21:15:58]process_action close_receipt [21:15:58]cmd_close_receipt [21:15:58]MH_GetDate [21:15:58]Write to MH i2c: F0 00 00 49 2E 66 [21:15:58]Write i2c OK [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: F0 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: F0 09 00 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: F0 09 00 49 2E 00 11 89 F0 66 1B D0 5A 64 08 [21:15:58]GetLastDocTimeStamp 1727039254 [21:15:58]current date 1727039761 [21:15:58]FM_GetShiftState [21:15:58]SAM_PROTO_GetShiftState [21:15:58]wFMCommunicate request_size=4 [21:15:58]MH_SAM_APDU [21:15:58]CAPDU: 80 13 01 00 [21:15:58]Write to MH i2c: E2 08 00 4A 2E 80 13 01 00 00 00 00 00 F5 [21:15:58]Write i2c OK [21:15:58]MH_I2C_Read... [21:15:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:58]Read from MH i2c: E2 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 0E 00 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 0E 00 4A 2E 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 0E [21:15:58]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [21:15:58]wFMCommunicate OK [21:15:58]SAM_PROTO_GetShiftState done [21:15:58]FM_GetShiftState done [21:15:58]opened in 1726965840 [21:15:58]opened+sec_in_day 1727052240 [21:15:58]quantity*price = 15000 [21:15:58]sum+1 = 15001 [21:15:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 217 22.09.2024 21:16 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115499 ФПД: 161942979549755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T211601&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115499&fm=161942979549755&tin=02508201610067®Number=0000000000091831&sum=15000 0 [21:15:59]StoreToDocumentArchive [21:15:59]shift 471 fd 115499 [21:15:59]save to /storage/0471/doc_00115499 [21:15:59]save last doc name /storage/0471/doc_00115499 to /storage/kkm_last_doc_name [21:15:59]save OK [21:15:59]Clear old archive folders... [21:15:59]ProcessDocumentItem done err = 0, tmpTLVsize=287 [21:15:59]tlvbuf is 01C83DF0 [21:15:59]SAM_PROTO_ClearQueue [21:15:59]wFMCommunicate request_size=4 [21:15:59]MH_SAM_APDU [21:15:59]CAPDU: 80 09 00 00 [21:15:59]Write to MH i2c: E2 08 00 57 2E 80 09 00 00 00 00 00 00 F7 [21:15:59]Write i2c OK [21:15:59]MH_I2C_Read... [21:15:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:59]Read from MH i2c: E2 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: E2 03 00 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: E2 03 00 57 2E 00 90 00 F9 [21:15:59]RAPDU: 90 00 [21:15:59]wFMCommunicate OK [21:15:59]SAM_PROTO_ClearQueue done [21:15:59]KKMCreateOFDPacket [21:15:59]OFDProtocolAddRootSTLVToBuf [21:15:59]FM_MakeSignedData [21:15:59]FM_MakeSignedData [21:15:59]SAM_PROTO_SignData [21:15:59]wFMCommunicate request_size=4 [21:15:59]MH_SAM_APDU [21:15:59]CAPDU: 80 0D 01 02 [21:15:59]Write to MH i2c: E2 08 00 58 2E 80 0D 01 02 00 00 00 00 FF [21:15:59]Write i2c OK [21:15:59]MH_I2C_Read... [21:15:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:59]Read from MH i2c: E2 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: E2 03 00 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: E2 03 00 58 2E 00 90 00 FA [21:15:59]RAPDU: 90 00 [21:15:59]wFMCommunicate OK [21:15:59]wFMCommunicate request_size=255 [21:15:59]MH_SAM_APDU [21:15:59]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 11 89 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [21:15:59]Write to MH i2c: E2 02 01 59 2E 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 11 89 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 A7 [21:15:59]Write i2c OK [21:15:59]MH_I2C_Read... [21:16:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:00]Read from MH i2c: E2 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: E2 03 00 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: E2 03 00 59 2E 00 90 00 FB [21:16:00]RAPDU: 90 00 [21:16:00]wFMCommunicate OK [21:16:00]wFMCommunicate request_size=46 [21:16:00]MH_SAM_APDU [21:16:00]CAPDU: 80 0D 02 02 29 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2B C3 01 00 35 04 06 00 93 49 49 C5 1A 3B [21:16:00]Write to MH i2c: E2 31 00 5A 2E 80 0D 02 02 29 00 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2B C3 01 00 35 04 06 00 93 49 49 C5 1A 3B 00 00 B5 [21:16:00]Write i2c OK [21:16:00]MH_I2C_Read... [21:16:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:00]Read from MH i2c: E2 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: E2 03 00 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: E2 03 00 5A 2E 00 90 00 FC [21:16:00]RAPDU: 90 00 [21:16:00]wFMCommunicate OK [21:16:00]wFMCommunicate request_size=4 [21:16:00]MH_SAM_APDU [21:16:00]CAPDU: 80 0D 03 02 [21:16:00]Write to MH i2c: E2 08 00 5B 2E 80 0D 03 02 00 00 00 00 04 [21:16:00]Write i2c OK [21:16:00]MH_I2C_Read... [21:16:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:00]Read from MH i2c: E2 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: E2 0B 00 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: E2 0B 00 5B 2E 00 2A C3 A5 AF 4E 97 C1 FA 90 00 E6 [21:16:00]RAPDU: 2A C3 A5 AF 4E 97 C1 FA 90 00 [21:16:00]wFMCommunicate OK [21:16:00]SAM_PROTO_SignData done [21:16:00]FM_MakeSignedData done [21:16:00]CreateOFDProtocolMessage [21:16:00]wFMCommunicate request_size=4 [21:16:00]MH_SAM_APDU [21:16:00]CAPDU: 80 11 00 00 [21:16:00]Write to MH i2c: E2 08 00 5C 2E 80 11 00 00 00 00 00 00 04 [21:16:00]Write i2c OK [21:16:00]MH_I2C_Read... [21:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:00]Read from MH i2c: E2 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: E2 17 00 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: E2 17 00 5C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 52 [21:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:16:00]wFMCommunicate OK [21:16:00]CreateOFDProtocolMessage done [21:16:00]OFDSenderStorePacket 115499 [21:16:00]StoreOFDPacket docnum=115499 [21:16:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 33 01 00 00 F8 34 2B 01 D3 98 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 11 89 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2B C3 01 00 35 04 06 00 93 49 49 C5 1A 3B 2A C3 A5 AF 4E 97 C1 FA [21:16:00]CheckFolder [21:16:00]dirname=/storage/ofd_packets [21:16:00]CheckFolder done [21:16:00]ProducePacketName [21:16:00]name=ofd_packets/00115499 [21:16:00]NVStorageSaveData ofd_packets/00115499 [21:16:00]File name is /storage/ofd_packets/00115499 [21:16:00]Write 337 bytes [21:16:00]NVStorageSaveData done [21:16:00]OFDSenderStorePacket done [21:16:00]KKMCreateOFDPacket done [21:16:00]NVStorageSaveData kkm_last_timestamp [21:16:00]File name is /storage/kkm_last_timestamp [21:16:00]Write 4 bytes [21:16:00]NVStorageSaveData done [21:16:00]ExternCall_PrintAddStr [21:16:00]wPrintStart [21:16:00]Write to MH i2c: 01 00 00 5D 2E 8B [21:16:00]OFD Sender: Processing packet 115499 [packets to send 481, broken 480] [21:16:00]ProducePacketName [21:16:00]name=ofd_packets/00115499 [21:16:00]OFD Sender: To server: pG, [21:16:00]CommunicateWithHost lk.salyk.kg:30040 [21:16:00]ConnectInit lk.salyk.kg [21:16:00]Write i2c OK [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: 01 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: 01 07 00 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: 01 07 00 5D 2E 00 00 00 00 00 FF 0F A0 [21:16:00]RasterBufferAndPrint [21:16:00]line Счет N : (3)343930 [21:16:00]line ИНН: 02508201610067 [21:16:00]line Контрольно-Кассовый Чек [21:16:00]line ПРОДАЖА [21:16:00]line Товар: 5449000189394 [21:16:00]line Холодный чай Fuse ягода 0,5л [21:16:00]line 2.000 * 75.00 [21:16:00]line = 150.00 [21:16:00]line НДС 12% НСП 1% [21:16:00]line > о реализуемом товаре [21:16:00]line ИТОГО: 150.00 [21:16:00]line НСП 1% : 1.33 [21:16:00]line НДС 12% : 15.93 [21:16:00]line Наличными: 150.00 [21:16:00]line Безнал.: 0.00 [21:16:00]line Место: АЗС № 90 "Партнер Нефть" [21:16:00]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [21:16:00]line СНО: Общий режим [21:16:00]line Чек 217 22.09.2024 21:16 [21:16:00]line Смена: 471 ФФД: 1.0 [21:16:00]line ЗНМ: 0300000120 [21:16:00]line РНМ: 0000000000091831 [21:16:00]line Версия ККМ: 001 [21:16:00]line ФМ: 0000000000871830 [21:16:00]line ФД: 115499 [21:16:00]line ФПД: 161942979549755 [21:16:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T211601&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115499&fm=161942979549755&tin=02508201610067®Number=0000000000091831&sum=15000 [21:16:00]line 0 [21:16:00]written 0, free lines is 4095 [21:16:00]Connected sock=10 [21:16:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 33 01 00 00 F8 34 2B 01 D3 98 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 11 89 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2B C3 01 00 35 04 06 00 93 49 49 C5 1A 3B 2A C3 A5 AF 4E 97 C1 FA [21:16:00]Write to MH i2c: 01 00 00 84 2E B2 [21:16:00]Write i2c OK [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: 01 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: 01 07 00 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: 01 07 00 84 2E 00 00 00 00 00 71 0C 36 [21:16:00]RasterBufferAndPrint [21:16:00]line [21:16:00]line [21:16:00]line [21:16:00]line [21:16:00]line [21:16:00]written 0, free lines is 3188 [21:16:00]MH_Cut [21:16:00]Write to MH i2c: D1 01 00 8B 2E 01 8B [21:16:00]Write i2c OK [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: D1 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: D1 01 00 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: D1 01 00 8B 2E 00 8A [21:16:00]Write to MH i2c: 01 00 00 8C 2E BA [21:16:00]Write i2c OK [21:16:00]MH_I2C_Read... [21:16:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 2B 4D 47 00 15 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 31 38 33 30 10 04 04 00 2B C3 01 00 F4 03 04 00 56 2E F0 66 B6 04 01 00 00 A9 21 C8 66 58 25 69 B5 [21:16:00]CommunicateWithHost err = 0 [21:16:00]CheckOFDResponse [21:16:00]1017 (14) - 77093643461234 [21:16:00]1041 (16) - 0000000000871830 [21:16:00]1040 (4) - 115499 [21:16:00]1012 (4) - 22.09.2024 14:48 [21:16:00]1206 (1) - 0 [21:16:00]OFD Sender: Remove packet 115499 [21:16:00]ProducePacketName [21:16:00]name=ofd_packets/00115499 [21:16:00]NVStorageDeleteData [21:16:01]OFD Sender: No OFD packet to send [21:16:02]*** Cut start [21:16:02]*** Partial cut [21:16:02]*** CUTSNS_PIN = 1 [21:16:02]*** CUTSNS_PIN = 0 [21:16:02]*** Brake cut motor [21:16:02]Read from MH i2c: 01 [21:16:02]MH_I2C_Read... [21:16:02]*** Stop cut motor [21:16:02]*** Cut end [21:16:02]Read from MH i2c: 01 07 00 [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: 01 07 00 8C 2E 00 00 00 00 00 FF 0F CF [21:16:02]process_action close_receipt done [21:16:02]requested_data is exist [21:16:02]produce_requested_data [21:16:02]requested_item fm.sn is exist - process it [21:16:02]wFMCommunicate request_size=4 [21:16:02]MH_SAM_APDU [21:16:02]CAPDU: 80 11 00 00 [21:16:02]Write to MH i2c: E2 08 00 8D 2E 80 11 00 00 00 00 00 00 35 [21:16:02]Write i2c OK [21:16:02]MH_I2C_Read... [21:16:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:02]Read from MH i2c: E2 [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: E2 17 00 [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: E2 17 00 8D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 83 [21:16:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:16:02]wFMCommunicate OK [21:16:02]requested_item fd.num is exist - process it [21:16:02]SAM_PROTO_GetFieldsCounters [21:16:02]wFMCommunicate request_size=4 [21:16:02]MH_SAM_APDU [21:16:02]CAPDU: 80 13 00 00 [21:16:02]Write to MH i2c: E2 08 00 8E 2E 80 13 00 00 00 00 00 00 38 [21:16:02]Write i2c OK [21:16:02]MH_I2C_Read... [21:16:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:02]Read from MH i2c: E2 [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: E2 62 00 [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: E2 62 00 8E 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2B C3 01 00 0E 04 04 00 D7 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 A3 [21:16:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2B C3 01 00 0E 04 04 00 D7 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 [21:16:02]wFMCommunicate OK [21:16:02]SAM_PROTO_GetFieldsCounters done [21:16:02]requested_item shift.num is exist - process it [21:16:02]requested_item shift.opened is exist - process it [21:16:02]req_shift_opened [21:16:02]FM_GetShiftState [21:16:02]SAM_PROTO_GetShiftState [21:16:02]wFMCommunicate request_size=4 [21:16:02]MH_SAM_APDU [21:16:02]CAPDU: 80 13 01 00 [21:16:02]Write to MH i2c: E2 08 00 8F 2E 80 13 01 00 00 00 00 00 3A [21:16:02]Write i2c OK [21:16:02]MH_I2C_Read... [21:16:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:02]Read from MH i2c: E2 [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: E2 0E 00 [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: E2 0E 00 8F 2E 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 53 [21:16:02]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [21:16:02]wFMCommunicate OK [21:16:02]SAM_PROTO_GetShiftState done [21:16:02]FM_GetShiftState done [21:16:02]req_shift_opened done [21:16:02]requested_item shift.open_date is exist - process it [21:16:02]req_shift_open_date [21:16:02]req_shift_open_date done [21:16:02]produce_requested_data done [21:16:02]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115499,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [21:16:02]process_action_free close_receipt [21:16:02]json_value_free [21:16:02]json_value_free done [21:16:02]process_json_proto returns [21:16:02]Send response to host [21:16:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115499,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [21:16:02]free response buf [21:16:02]execute_script done [21:16:02]execute_script returns [21:16:02]free content buf [21:16:02]Sock 8.Close socket [21:16:02]Sock 8.Thread stoped [21:16:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:26]accept exits with 9 [21:16:26]New connection [21:16:26]New thread 3066682724 created [21:16:26]Thread 3066826084 joined [21:16:26]Waiting for new connection... [21:16:26] Sock 9.Parse request [21:16:26]Sock 9.Check first char [21:16:26]Sock 9.First char is OK [21:16:26]request: POST /json_proto HTTP/1.0 [21:16:26]Method: POST [21:16:26]URL: /json_proto [21:16:26]Method is POST - this is cgi request [21:16:26]url: /json_proto [21:16:26]query_string will be loaded in cgi processing [21:16:26]execute_cgi json_proto POST (null) [21:16:26]execute_cgi path=json_proto method=POST [21:16:26]POST find Content-Length [21:16:26]Host: 172.17.41.136:8080 [21:16:26]Content-Length: 684 [21:16:26]Content-Type: application/json [21:16:26] [21:16:26]POST finish read [21:16:26]Found Content-Length = 684 [21:16:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:26]execute_script... [21:16:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:26]POST & json_proto [21:16:26]process_json_proto [21:16:26]json parsed OK: [21:16:26]protocol is kg_v1.0 [21:16:26]action value=close_receipt [21:16:26]process_action close_receipt [21:16:26]cmd_close_receipt [21:16:26]MH_GetDate [21:16:26]Write to MH i2c: F0 00 00 90 2E AD [21:16:26]Write i2c OK [21:16:26]MH_I2C_Read... [21:16:26]Read from MH i2c: F0 [21:16:26]MH_I2C_Read... [21:16:26]Read from MH i2c: F0 09 00 [21:16:26]MH_I2C_Read... [21:16:26]Read from MH i2c: F0 09 00 90 2E 00 2E 89 F0 66 1B D0 5A 64 6C [21:16:26]GetLastDocTimeStamp 1727039761 [21:16:26]current date 1727039790 [21:16:26]FM_GetShiftState [21:16:26]SAM_PROTO_GetShiftState [21:16:26]wFMCommunicate request_size=4 [21:16:26]MH_SAM_APDU [21:16:26]CAPDU: 80 13 01 00 [21:16:26]Write to MH i2c: E2 08 00 91 2E 80 13 01 00 00 00 00 00 3C [21:16:26]Write i2c OK [21:16:26]MH_I2C_Read... [21:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:26]Read from MH i2c: E2 [21:16:26]MH_I2C_Read... [21:16:26]Read from MH i2c: E2 0E 00 [21:16:26]MH_I2C_Read... [21:16:26]Read from MH i2c: E2 0E 00 91 2E 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 55 [21:16:26]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [21:16:26]wFMCommunicate OK [21:16:26]SAM_PROTO_GetShiftState done [21:16:26]FM_GetShiftState done [21:16:26]opened in 1726965840 [21:16:26]opened+sec_in_day 1727052240 [21:16:26]quantity*price = 100021 [21:16:26]sum+1 = 100023 [21:16:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 218 22.09.2024 21:16 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115500 ФПД: 228583356845936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T211630&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115500&fm=228583356845936&tin=02508201610067®Number=0000000000091831&sum=100000 [21:16:28]StoreToDocumentArchive [21:16:28]shift 471 fd 115500 [21:16:28]save to /storage/0471/doc_00115500 [21:16:28]save last doc name /storage/0471/doc_00115500 to /storage/kkm_last_doc_name [21:16:28]save OK [21:16:28]Clear old archive folders... [21:16:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:16:28]tlvbuf is 01C11730 [21:16:28]SAM_PROTO_ClearQueue [21:16:28]wFMCommunicate request_size=4 [21:16:28]MH_SAM_APDU [21:16:28]CAPDU: 80 09 00 00 [21:16:28]Write to MH i2c: E2 08 00 9E 2E 80 09 00 00 00 00 00 00 3E [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:28]Read from MH i2c: E2 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 9E 2E 00 90 00 40 [21:16:28]RAPDU: 90 00 [21:16:28]wFMCommunicate OK [21:16:28]SAM_PROTO_ClearQueue done [21:16:28]KKMCreateOFDPacket [21:16:28]OFDProtocolAddRootSTLVToBuf [21:16:28]FM_MakeSignedData [21:16:28]FM_MakeSignedData [21:16:28]SAM_PROTO_SignData [21:16:28]wFMCommunicate request_size=4 [21:16:28]MH_SAM_APDU [21:16:28]CAPDU: 80 0D 01 02 [21:16:28]Write to MH i2c: E2 08 00 9F 2E 80 0D 01 02 00 00 00 00 46 [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:28]Read from MH i2c: E2 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 9F 2E 00 90 00 41 [21:16:28]RAPDU: 90 00 [21:16:28]wFMCommunicate OK [21:16:28]wFMCommunicate request_size=255 [21:16:28]MH_SAM_APDU [21:16:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 2E 89 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2C C3 01 00 35 04 06 00 CF [21:16:28]Write to MH i2c: E2 02 01 A0 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 DA 00 00 00 F4 03 04 00 2E 89 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2C C3 01 00 35 04 06 00 CF 00 00 68 [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:28]Read from MH i2c: E2 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 A0 2E 00 90 00 42 [21:16:28]RAPDU: 90 00 [21:16:28]wFMCommunicate OK [21:16:28]wFMCommunicate request_size=10 [21:16:28]MH_SAM_APDU [21:16:28]CAPDU: 80 0D 02 02 05 E5 35 C9 4F 70 [21:16:28]Write to MH i2c: E2 0D 00 A1 2E 80 0D 02 02 05 00 E5 35 C9 4F 70 00 00 F5 [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:28]Read from MH i2c: E2 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 A1 2E 00 90 00 43 [21:16:28]RAPDU: 90 00 [21:16:28]wFMCommunicate OK [21:16:28]wFMCommunicate request_size=4 [21:16:28]MH_SAM_APDU [21:16:28]CAPDU: 80 0D 03 02 [21:16:28]Write to MH i2c: E2 08 00 A2 2E 80 0D 03 02 00 00 00 00 4B [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:28]Read from MH i2c: E2 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 0B 00 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 0B 00 A2 2E 00 F8 C3 A1 FB 51 98 79 2E 90 00 33 [21:16:28]RAPDU: F8 C3 A1 FB 51 98 79 2E 90 00 [21:16:28]wFMCommunicate OK [21:16:28]SAM_PROTO_SignData done [21:16:28]FM_MakeSignedData done [21:16:28]CreateOFDProtocolMessage [21:16:28]wFMCommunicate request_size=4 [21:16:28]MH_SAM_APDU [21:16:28]CAPDU: 80 11 00 00 [21:16:28]Write to MH i2c: E2 08 00 A3 2E 80 11 00 00 00 00 00 00 4B [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:28]Read from MH i2c: E2 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 17 00 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 17 00 A3 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 99 [21:16:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:16:28]wFMCommunicate OK [21:16:28]CreateOFDProtocolMessage done [21:16:28]OFDSenderStorePacket 115500 [21:16:28]StoreOFDPacket docnum=115500 [21:16:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 7A 32 07 01 44 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 2E 89 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2C C3 01 00 35 04 06 00 CF E5 35 C9 4F 70 F8 C3 A1 FB 51 98 79 2E [21:16:28]CheckFolder [21:16:28]dirname=/storage/ofd_packets [21:16:28]CheckFolder done [21:16:28]ProducePacketName [21:16:28]name=ofd_packets/00115500 [21:16:28]NVStorageSaveData ofd_packets/00115500 [21:16:28]File name is /storage/ofd_packets/00115500 [21:16:28]Write 301 bytes [21:16:28]NVStorageSaveData done [21:16:28]OFDSenderStorePacket done [21:16:28]KKMCreateOFDPacket done [21:16:28]NVStorageSaveData kkm_last_timestamp [21:16:28]File name is /storage/kkm_last_timestamp [21:16:28]Write 4 bytes [21:16:28]NVStorageSaveData done [21:16:28]ExternCall_PrintAddStr [21:16:28]wPrintStart [21:16:28]Write to MH i2c: 01 00 00 A4 2E D2 [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: 01 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: 01 07 00 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: 01 07 00 A4 2E 00 00 00 00 00 FF 0F E7 [21:16:28]RasterBufferAndPrint [21:16:28]line Счет N : (1)24617218 [21:16:28]line ИНН: 02508201610067 [21:16:28]line Контрольно-Кассовый Чек [21:16:28]line ПРОДАЖА [21:16:28]line ТРК (МРК, ГНК) : 52 [21:16:28]line Товар: 2710124500 [21:16:28]line Аи-95-К-5 [21:16:28]line 13.480 * 74.20 [21:16:28]line = 1000.22 [21:16:28]line НДС 12% НСП 1% [21:16:28]line > о реализуемом товаре [21:16:28]line ОКРУГЛЕНИЕ: -0.22 [21:16:28]line ИТОГО: 1000.00 [21:16:28]line Внесено: 1000.00 [21:16:28]line СДАЧА: 0.00 [21:16:28]line НСП 1% : 8.85 [21:16:28]line НДС 12% : 106.22 [21:16:28]line Наличными: 1000.00 [21:16:28]line Безнал.: 0.00 [21:16:28]line Место: АЗС № 90 "Партнер Нефть" [21:16:28]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [21:16:28]line СНО: Общий режим [21:16:28]line Чек 218 22.09.2024 21:16 [21:16:28]line Смена: 471 ФФД: 1.0 [21:16:28]line ЗНМ: 0300000120 [21:16:28]line РНМ: 0000000000091831 [21:16:28]line Версия ККМ: 001 [21:16:28]line ФМ: 0000000000871830 [21:16:28]line ФД: 115500 [21:16:28]line ФПД: 228583356845936 [21:16:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T211630&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115500&fm=228583356845936&tin=02508201610067®Number=0000000000091831&sum=100000 [21:16:28]OFD Sender: Processing packet 115500 [packets to send 481, broken 480] [21:16:28]ProducePacketName [21:16:28]name=ofd_packets/00115500 [21:16:28]OFD Sender: To server: pG, [21:16:28]CommunicateWithHost lk.salyk.kg:30040 [21:16:28]ConnectInit lk.salyk.kg [21:16:28]written 0, free lines is 4095 [21:16:29]Write to MH i2c: 01 00 00 CE 2E FC [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 07 00 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 07 00 CE 2E 00 00 00 00 00 4D 0C 5C [21:16:29]RasterBufferAndPrint [21:16:29]line [21:16:29]line [21:16:29]line [21:16:29]line [21:16:29]line [21:16:29]written 0, free lines is 3153 [21:16:29]MH_Cut [21:16:29]Write to MH i2c: D1 01 00 D5 2E 01 D5 [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: D1 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: D1 01 00 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: D1 01 00 D5 2E 00 D4 [21:16:29]Write to MH i2c: 01 00 00 D6 2E 04 [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:29]Connected sock=11 [21: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 31 38 33 30 0F 01 00 00 7A 32 07 01 44 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 2E 89 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2C C3 01 00 35 04 06 00 CF E5 35 C9 4F 70 F8 C3 A1 FB 51 98 79 2E [21:16:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6E 6E 47 00 17 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2C C3 01 00 F4 03 04 00 73 2E F0 66 B6 04 01 00 00 B1 80 56 BD 7A 2E 50 D4 [21:16:29]CommunicateWithHost err = 0 [21:16:29]CheckOFDResponse [21:16:29]1017 (14) - 77093643461234 [21:16:29]1041 (16) - 0000000000871830 [21:16:29]1040 (4) - 115500 [21:16:29]1012 (4) - 22.09.2024 14:49 [21:16:29]1206 (1) - 0 [21:16:29]OFD Sender: Remove packet 115500 [21:16:29]ProducePacketName [21:16:29]name=ofd_packets/00115500 [21:16:29]NVStorageDeleteData [21:16:30]OFD Sender: No OFD packet to send [21:16:30]*** Cut start [21:16:30]*** Partial cut [21:16:30]*** CUTSNS_PIN = 1 [21:16:30]*** CUTSNS_PIN = 0 [21:16:31]*** Brake cut motor [21:16:31]Read from MH i2c: 01 [21:16:31]MH_I2C_Read... [21:16:31]*** Stop cut motor [21:16:31]*** Cut end [21:16:31]Read from MH i2c: 01 07 00 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: 01 07 00 D6 2E 00 00 00 00 00 FF 0F 19 [21:16:31]process_action close_receipt done [21:16:31]requested_data is exist [21:16:31]produce_requested_data [21:16:31]requested_item fm.sn is exist - process it [21:16:31]wFMCommunicate request_size=4 [21:16:31]MH_SAM_APDU [21:16:31]CAPDU: 80 11 00 00 [21:16:31]Write to MH i2c: E2 08 00 D7 2E 80 11 00 00 00 00 00 00 7F [21:16:31]Write i2c OK [21:16:31]MH_I2C_Read... [21:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:31]Read from MH i2c: E2 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 17 00 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 17 00 D7 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CD [21:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:16:31]wFMCommunicate OK [21:16:31]requested_item fd.num is exist - process it [21:16:31]SAM_PROTO_GetFieldsCounters [21:16:31]wFMCommunicate request_size=4 [21:16:31]MH_SAM_APDU [21:16:31]CAPDU: 80 13 00 00 [21:16:31]Write to MH i2c: E2 08 00 D8 2E 80 13 00 00 00 00 00 00 82 [21:16:31]Write i2c OK [21:16:31]MH_I2C_Read... [21:16:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:31]Read from MH i2c: E2 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 62 00 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 62 00 D8 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2C C3 01 00 0E 04 04 00 D7 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 F1 [21: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2C C3 01 00 0E 04 04 00 D7 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 [21:16:31]wFMCommunicate OK [21:16:31]SAM_PROTO_GetFieldsCounters done [21:16:31]requested_item shift.num is exist - process it [21:16:31]requested_item shift.opened is exist - process it [21:16:31]req_shift_opened [21:16:31]FM_GetShiftState [21:16:31]SAM_PROTO_GetShiftState [21:16:31]wFMCommunicate request_size=4 [21:16:31]MH_SAM_APDU [21:16:31]CAPDU: 80 13 01 00 [21:16:31]Write to MH i2c: E2 08 00 D9 2E 80 13 01 00 00 00 00 00 84 [21:16:31]Write i2c OK [21:16:31]MH_I2C_Read... [21:16:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:31]Read from MH i2c: E2 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 0E 00 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 0E 00 D9 2E 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 9D [21:16:31]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [21:16:31]wFMCommunicate OK [21:16:31]SAM_PROTO_GetShiftState done [21:16:31]FM_GetShiftState done [21:16:31]req_shift_opened done [21:16:31]requested_item shift.open_date is exist - process it [21:16:31]req_shift_open_date [21:16:31]req_shift_open_date done [21:16:31]produce_requested_data done [21:16:31]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115500,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [21:16:31]process_action_free close_receipt [21:16:31]json_value_free [21:16:31]json_value_free done [21:16:31]process_json_proto returns [21:16:31]Send response to host [21:16:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115500,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [21:16:31]free response buf [21:16:31]execute_script done [21:16:31]execute_script returns [21:16:31]free content buf [21:16:31]Sock 9.Close socket [21:16:31]Sock 9.Thread stoped [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:38]accept exits with 8 [21:17:38]New connection [21:17:38]New thread 3066826084 created [21:17:38]Thread 3066682724 joined [21:17:38]Waiting for new connection... [21:17:38] Sock 8.Parse request [21:17:38]Sock 8.Check first char [21:17:38]Sock 8.First char is OK [21:17:38]request: POST /json_proto HTTP/1.0 [21:17:38]Method: POST [21:17:38]URL: /json_proto [21:17:38]Method is POST - this is cgi request [21:17:38]url: /json_proto [21:17:38]query_string will be loaded in cgi processing [21:17:38]execute_cgi json_proto POST (null) [21:17:38]execute_cgi path=json_proto method=POST [21:17:38]POST find Content-Length [21:17:38]Host: 172.17.41.136:8080 [21:17:38]Content-Length: 1179 [21:17:38]Content-Type: application/json [21:17:38] [21:17:38]POST finish read [21:17:38]Found Content-Length = 1179 [21:17:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343931", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 385.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:38]execute_script... [21:17:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343931", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 385.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:38]POST & json_proto [21:17:38]process_json_proto [21:17:38]json parsed OK: [21:17:38]protocol is kg_v1.0 [21:17:38]action value=close_receipt [21:17:38]process_action close_receipt [21:17:38]cmd_close_receipt [21:17:38]MH_GetDate [21:17:38]Write to MH i2c: F0 00 00 DA 2E F7 [21:17:38]Write i2c OK [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: F0 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: F0 09 00 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: F0 09 00 DA 2E 00 76 89 F0 66 1B D0 5A 64 FE [21:17:38]GetLastDocTimeStamp 1727039790 [21:17:38]current date 1727039862 [21:17:38]FM_GetShiftState [21:17:38]SAM_PROTO_GetShiftState [21:17:38]wFMCommunicate request_size=4 [21:17:38]MH_SAM_APDU [21:17:38]CAPDU: 80 13 01 00 [21:17:38]Write to MH i2c: E2 08 00 DB 2E 80 13 01 00 00 00 00 00 86 [21:17:38]Write i2c OK [21:17:38]MH_I2C_Read... [21:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:38]Read from MH i2c: E2 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: E2 0E 00 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: E2 0E 00 DB 2E 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 9F [21:17:38]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [21:17:38]wFMCommunicate OK [21:17:38]SAM_PROTO_GetShiftState done [21:17:38]FM_GetShiftState done [21:17:38]opened in 1726965840 [21:17:38]opened+sec_in_day 1727052240 [21:17:38]quantity*price = 12500 [21:17:38]sum+1 = 12501 [21:17:38]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 385.00 НСП 1% : 3.41 НДС 12% : 40.88 Наличными: 385.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 219 22.09.2024 21:17 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115501 ФПД: 251794067396958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T211742&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115501&fm=251794067396958&tin=02508201610067®Number=0000000000091831&sum=38500 0 [21:17:40]StoreToDocumentArchive [21:17:40]shift 471 fd 115501 [21:17:40]save to /storage/0471/doc_00115501 [21:17:40]save last doc name /storage/0471/doc_00115501 to /storage/kkm_last_doc_name [21:17:40]save OK [21:17:40]Clear old archive folders... [21:17:40]ProcessDocumentItem done err = 0, tmpTLVsize=503 [21:17:40]tlvbuf is B6D89010 [21:17:40]SAM_PROTO_ClearQueue [21:17:40]wFMCommunicate request_size=4 [21:17:40]MH_SAM_APDU [21:17:40]CAPDU: 80 09 00 00 [21:17:40]Write to MH i2c: E2 08 00 E8 2E 80 09 00 00 00 00 00 00 88 [21:17:40]Write i2c OK [21:17:40]MH_I2C_Read... [21:17:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:40]Read from MH i2c: E2 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 03 00 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 03 00 E8 2E 00 90 00 8A [21:17:40]RAPDU: 90 00 [21:17:40]wFMCommunicate OK [21:17:40]SAM_PROTO_ClearQueue done [21:17:40]KKMCreateOFDPacket [21:17:40]OFDProtocolAddRootSTLVToBuf [21:17:40]FM_MakeSignedData [21:17:40]FM_MakeSignedData [21:17:40]SAM_PROTO_SignData [21:17:40]wFMCommunicate request_size=4 [21:17:40]MH_SAM_APDU [21:17:40]CAPDU: 80 0D 01 02 [21:17:40]Write to MH i2c: E2 08 00 E9 2E 80 0D 01 02 00 00 00 00 90 [21:17:40]Write i2c OK [21:17:40]MH_I2C_Read... [21:17:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:40]Read from MH i2c: E2 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 03 00 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 03 00 E9 2E 00 90 00 8B [21:17:40]RAPDU: 90 00 [21:17:40]wFMCommunicate OK [21:17:40]wFMCommunicate request_size=255 [21:17:40]MH_SAM_APDU [21:17:40]CAPDU: 80 0D 02 02 FA 03 00 F7 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 [21:17:40]Write to MH i2c: E2 02 01 EA 2E 80 0D 02 02 FA 00 03 00 F7 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 00 00 F6 [21:17:40]OFD Sender: No OFD packet to send [21:17:40]Write i2c OK [21:17:40]MH_I2C_Read... [21:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:40]Read from MH i2c: E2 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 03 00 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 03 00 EA 2E 00 90 00 8C [21:17:40]RAPDU: 90 00 [21:17:40]wFMCommunicate OK [21:17:40]wFMCommunicate request_size=255 [21:17:40]MH_SAM_APDU [21:17:40]CAPDU: 80 0D 02 02 FA 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 64 96 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 76 89 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2D C3 01 00 35 04 06 [21:17:40]Write to MH i2c: E2 02 01 EB 2E 80 0D 02 02 FA 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 64 96 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 76 89 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2D C3 01 00 35 04 06 00 00 1B [21:17:40]Write i2c OK [21:17:40]MH_I2C_Read... [21:17:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:41]Read from MH i2c: E2 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: E2 03 00 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: E2 03 00 EB 2E 00 90 00 8D [21:17:41]RAPDU: 90 00 [21:17:41]wFMCommunicate OK [21:17:41]wFMCommunicate request_size=12 [21:17:41]MH_SAM_APDU [21:17:41]CAPDU: 80 0D 02 02 07 00 E5 01 5F F1 99 5E [21:17:41]Write to MH i2c: E2 0F 00 EC 2E 80 0D 02 02 07 00 00 E5 01 5F F1 99 5E 00 00 CF [21:17:41]Write i2c OK [21:17:41]MH_I2C_Read... [21:17:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:41]Read from MH i2c: E2 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: E2 03 00 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: E2 03 00 EC 2E 00 90 00 8E [21:17:41]RAPDU: 90 00 [21:17:41]wFMCommunicate OK [21:17:41]wFMCommunicate request_size=4 [21:17:41]MH_SAM_APDU [21:17:41]CAPDU: 80 0D 03 02 [21:17:41]Write to MH i2c: E2 08 00 ED 2E 80 0D 03 02 00 00 00 00 96 [21:17:41]Write i2c OK [21:17:41]MH_I2C_Read... [21:17:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:41]Read from MH i2c: E2 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: E2 0B 00 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: E2 0B 00 ED 2E 00 E2 9E 34 0B BE 75 6C 66 90 00 5B [21:17:41]RAPDU: E2 9E 34 0B BE 75 6C 66 90 00 [21:17:41]wFMCommunicate OK [21:17:41]SAM_PROTO_SignData done [21:17:41]FM_MakeSignedData done [21:17:41]CreateOFDProtocolMessage [21:17:41]wFMCommunicate request_size=4 [21:17:41]MH_SAM_APDU [21:17:41]CAPDU: 80 11 00 00 [21:17:41]Write to MH i2c: E2 08 00 EE 2E 80 11 00 00 00 00 00 00 96 [21:17:41]Write i2c OK [21:17:41]MH_I2C_Read... [21:17:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:41]Read from MH i2c: E2 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: E2 17 00 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: E2 17 00 EE 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E4 [21:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:17:41]wFMCommunicate OK [21:17:41]CreateOFDProtocolMessage done [21:17:41]OFDSenderStorePacket 115501 [21:17:41]StoreOFDPacket docnum=115501 [21:17:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0B 02 00 00 05 E5 03 02 CA BD 5A 03 01 00 03 00 F7 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 64 96 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 76 89 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2D C3 01 00 35 04 06 00 E5 01 5F F1 99 5E E2 9E 34 0B BE 75 6C 66 [21:17:41]CheckFolder [21:17:41]dirname=/storage/ofd_packets [21:17:41]CheckFolder done [21:17:41]ProducePacketName [21:17:41]name=ofd_packets/00115501 [21:17:41]NVStorageSaveData ofd_packets/00115501 [21:17:41]File name is /storage/ofd_packets/00115501 [21:17:41]Write 553 bytes [21:17:41]NVStorageSaveData done [21:17:41]OFDSenderStorePacket done [21:17:41]KKMCreateOFDPacket done [21:17:41]NVStorageSaveData kkm_last_timestamp [21:17:41]File name is /storage/kkm_last_timestamp [21:17:41]Write 4 bytes [21:17:41]NVStorageSaveData done [21:17:41]ExternCall_PrintAddStr [21:17:41]wPrintStart [21:17:41]Write to MH i2c: 01 00 00 EF 2E 1D [21:17:41]Write i2c OK [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: 01 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: 01 07 00 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: 01 07 00 EF 2E 00 00 00 00 00 FF 0F 32 [21:17:41]RasterBufferAndPrint [21:17:41]line Счет N : (3)343931 [21:17:41]line ИНН: 02508201610067 [21:17:41]line Контрольно-Кассовый Чек [21:17:41]line ПРОДАЖА [21:17:41]line Товар: 4870202521216 [21:17:41]line Напиток MAXI чай 1,2 зел.лимон (новый) [21:17:41]line 1.000 * 125.00 [21:17:41]line = 125.00 [21:17:41]line НДС 12% НСП 1% [21:17:41]line > о реализуемом товаре [21:17:41]line Товар: 4640030091645 [21:17:41]line Сигареты ESSE Exchange M [21:17:41]line 1.000 * 150.00 [21:17:41]line = 150.00 [21:17:41]line НДС 12% НСП 1% [21:17:41]line > о реализуемом товаре [21:17:41]line Товар: 4870001570071 [21:17:41]line Напиток Pepsi 1л [21:17:41]line 1.000 * 110.00 [21:17:41]line = 110.00 [21:17:41]line НДС 12% НСП 1% [21:17:41]line > о реализуемом товаре [21:17:41]line ИТОГО: 385.00 [21:17:41]line НСП 1% : 3.41 [21:17:41]line НДС 12% : 40.88 [21:17:41]line Наличными: 385.00 [21:17:41]line Безнал.: 0.00 [21:17:41]line Место: АЗС № 90 "Партнер Нефть" [21:17:41]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [21:17:41]line СНО: Общий режим [21:17:41]line Чек 219 22.09.2024 21:17 [21:17:41]line Смена: 471 ФФД: 1.0 [21:17:41]line ЗНМ: 0300000120 [21:17:41]line РНМ: 0000000000091831 [21:17:41]line Версия ККМ: 001 [21:17:41]line ФМ: 0000000000871830 [21:17:41]line ФД: 115501 [21:17:41]line ФПД: 251794067396958 [21:17:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T211742&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115501&fm=251794067396958&tin=02508201610067®Number=0000000000091831&sum=38500 [21:17:41]OFD Sender: Processing packet 115501 [packets to send 481, broken 480] [21:17:41]ProducePacketName [21:17:41]name=ofd_packets/00115501 [21:17:41]OFD Sender: To server: pG, [21:17:41]CommunicateWithHost lk.salyk.kg:30040 [21:17:41]ConnectInit lk.salyk.kg [21:17:41]line 0 [21:17:41]written 0, free lines is 4095 [21:17:41]Connected sock=10 [21:17:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0B 02 00 00 05 E5 03 02 CA BD 5A 03 01 00 03 00 F7 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 64 96 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 76 89 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2D C3 01 00 35 04 06 00 E5 01 5F F1 99 5E E2 9E 34 0B BE 75 6C 66 [21:17:42]Write to MH i2c: 01 00 00 23 2F 52 [21:17:42]Write i2c OK [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: 01 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: 01 07 00 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: 01 07 00 23 2F 00 00 00 00 00 63 0B C7 [21:17:42]RasterBufferAndPrint [21:17:42]line [21:17:42]line [21:17:42]line [21:17:42]line [21:17:42]line [21:17:42]written 0, free lines is 2917 [21:17:42]MH_Cut [21:17:42]Write to MH i2c: D1 01 00 2A 2F 01 2B [21:17:42]Write i2c OK [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: D1 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: D1 01 00 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: D1 01 00 2A 2F 00 2A [21:17:42]Write to MH i2c: 01 00 00 2B 2F 5A [21:17:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 72 4E 47 00 5C 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2D C3 01 00 F4 03 04 00 BB 2E F0 66 B6 04 01 00 00 B2 09 0E E6 E7 42 53 23 [21:17:42]CommunicateWithHost err = 0 [21:17:42]CheckOFDResponse [21:17:42]1017 (14) - 77093643461234 [21:17:42]1041 (16) - 0000000000871830 [21:17:42]1040 (4) - 115501 [21:17:42]1012 (4) - 22.09.2024 14:50 [21:17:42]1206 (1) - 0 [21:17:42]OFD Sender: Remove packet 115501 [21:17:42]ProducePacketName [21:17:42]name=ofd_packets/00115501 [21:17:42]NVStorageDeleteData [21:17:42]Write i2c OK [21:17:42]MH_I2C_Read... [21:17:42]OFD Sender: No OFD packet to send [21:17:43]*** Cut start [21:17:43]*** Partial cut [21:17:43]*** CUTSNS_PIN = 1 [21:17:43]*** CUTSNS_PIN = 0 [21:17:44]*** Brake cut motor [21:17:44]Read from MH i2c: 01 [21:17:44]MH_I2C_Read... [21:17:44]*** Stop cut motor [21:17:44]*** Cut end [21:17:44]Read from MH i2c: 01 07 00 [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: 01 07 00 2B 2F 00 00 00 00 00 FF 0F 6F [21:17:44]process_action close_receipt done [21:17:44]requested_data is exist [21:17:44]produce_requested_data [21:17:44]requested_item fm.sn is exist - process it [21:17:44]wFMCommunicate request_size=4 [21:17:44]MH_SAM_APDU [21:17:44]CAPDU: 80 11 00 00 [21:17:44]Write to MH i2c: E2 08 00 2C 2F 80 11 00 00 00 00 00 00 D5 [21:17:44]Write i2c OK [21:17:44]MH_I2C_Read... [21:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:44]Read from MH i2c: E2 [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: E2 17 00 [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: E2 17 00 2C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 23 [21:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:17:44]wFMCommunicate OK [21:17:44]requested_item fd.num is exist - process it [21:17:44]SAM_PROTO_GetFieldsCounters [21:17:44]wFMCommunicate request_size=4 [21:17:44]MH_SAM_APDU [21:17:44]CAPDU: 80 13 00 00 [21:17:44]Write to MH i2c: E2 08 00 2D 2F 80 13 00 00 00 00 00 00 D8 [21:17:44]Write i2c OK [21:17:44]MH_I2C_Read... [21:17:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:44]Read from MH i2c: E2 [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: E2 62 00 [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: E2 62 00 2D 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2D C3 01 00 0E 04 04 00 D7 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 4B [21:17:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2D C3 01 00 0E 04 04 00 D7 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 [21:17:44]wFMCommunicate OK [21:17:44]SAM_PROTO_GetFieldsCounters done [21:17:44]requested_item shift.num is exist - process it [21:17:44]requested_item shift.opened is exist - process it [21:17:44]req_shift_opened [21:17:44]FM_GetShiftState [21:17:44]SAM_PROTO_GetShiftState [21:17:44]wFMCommunicate request_size=4 [21:17:44]MH_SAM_APDU [21:17:44]CAPDU: 80 13 01 00 [21:17:44]Write to MH i2c: E2 08 00 2E 2F 80 13 01 00 00 00 00 00 DA [21:17:44]Write i2c OK [21:17:44]MH_I2C_Read... [21:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:44]Read from MH i2c: E2 [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: E2 0E 00 [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: E2 0E 00 2E 2F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F3 [21:17:44]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [21:17:44]wFMCommunicate OK [21:17:44]SAM_PROTO_GetShiftState done [21:17:44]FM_GetShiftState done [21:17:44]req_shift_opened done [21:17:44]requested_item shift.open_date is exist - process it [21:17:44]req_shift_open_date [21:17:44]req_shift_open_date done [21:17:44]produce_requested_data done [21:17:44]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115501,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [21:17:44]process_action_free close_receipt [21:17:44]json_value_free [21:17:44]json_value_free done [21:17:44]process_json_proto returns [21:17:44]Send response to host [21:17:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115501,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [21:17:44]free response buf [21:17:44]execute_script done [21:17:44]execute_script returns [21:17:44]free content buf [21:17:44]Sock 8.Close socket [21:17:44]Sock 8.Thread stoped [21:17:47]OFD Sender: No OFD packet to send [21:17:52]OFD Sender: No OFD packet to send [21:17:57]OFD Sender: No OFD packet to send [21:18:02]OFD Sender: No OFD packet to send [21:18:07]OFD Sender: No OFD packet to send [21:18:12]OFD Sender: No OFD packet to send [21:18:17]OFD Sender: No OFD packet to send [21:18:22]OFD Sender: No OFD packet to send [21:18:27]OFD Sender: No OFD packet to send [21:18:32]OFD Sender: No OFD packet to send [21:18:37]OFD Sender: No OFD packet to send [21:18:42]OFD Sender: No OFD packet to send [21:18:47]OFD Sender: No OFD packet to send [21:18:52]OFD Sender: No OFD packet to send [21:18:57]OFD Sender: No OFD packet to send [21:19:02]OFD Sender: No OFD packet to send [21:19:07]OFD Sender: No OFD packet to send [21:19:12]OFD Sender: No OFD packet to send [21:19:17]OFD Sender: No OFD packet to send [21:19:22]OFD Sender: No OFD packet to send [21:19:27]OFD Sender: No OFD packet to send [21:19:32]OFD Sender: No OFD packet to send [21:19:37]OFD Sender: No OFD packet to send [21:19:42]OFD Sender: No OFD packet to send [21:19:47]OFD Sender: No OFD packet to send [21:19:52]accept exits with 9 [21:19:52]New connection [21:19:52]New thread 3066682724 created [21:19:52]Thread 3066826084 joined [21:19:52]Waiting for new connection... [21:19:52] Sock 9.Parse request [21:19:52]Sock 9.Check first char [21:19:52]Sock 9.First char is OK [21:19:52]request: POST /json_proto HTTP/1.0 [21:19:52]Method: POST [21:19:52]URL: /json_proto [21:19:52]Method is POST - this is cgi request [21:19:52]url: /json_proto [21:19:52]query_string will be loaded in cgi processing [21:19:52]execute_cgi json_proto POST (null) [21:19:52]execute_cgi path=json_proto method=POST [21:19:52]POST find Content-Length [21:19:52]Host: 172.17.41.136:8080 [21:19:52]Content-Length: 808 [21:19:52]Content-Type: application/json [21:19:52] [21:19:52]POST finish read [21:19:52]Found Content-Length = 808 [21:19:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 26.740, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:52]execute_script... [21:19: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)24617222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 26.740, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:52]POST & json_proto [21:19:52]process_json_proto [21:19:52]json parsed OK: [21:19:52]protocol is kg_v1.0 [21:19:52]action value=close_receipt [21:19:52]process_action close_receipt [21:19:52]cmd_close_receipt [21:19:52]MH_GetDate [21:19:52]Write to MH i2c: F0 00 00 2F 2F 4D [21:19:52]Write i2c OK [21:19:52]MH_I2C_Read... [21:19:52]Read from MH i2c: F0 [21:19:52]MH_I2C_Read... [21:19:52]Read from MH i2c: F0 09 00 [21:19:52]MH_I2C_Read... [21:19:52]Read from MH i2c: F0 09 00 2F 2F 00 FB 89 F0 66 1B D0 5A 64 D9 [21:19:52]GetLastDocTimeStamp 1727039862 [21:19:52]current date 1727039995 [21:19:52]FM_GetShiftState [21:19:52]SAM_PROTO_GetShiftState [21:19:52]wFMCommunicate request_size=4 [21:19:52]MH_SAM_APDU [21:19:52]CAPDU: 80 13 01 00 [21:19:52]Write to MH i2c: E2 08 00 30 2F 80 13 01 00 00 00 00 00 DC [21:19:52]Write i2c OK [21:19:52]MH_I2C_Read... [21:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:52]Read from MH i2c: E2 [21:19:52]MH_I2C_Read... [21:19:52]Read from MH i2c: E2 0E 00 [21:19:52]MH_I2C_Read... [21:19:52]Read from MH i2c: E2 0E 00 30 2F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 F5 [21:19:52]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [21:19:52]wFMCommunicate OK [21:19:52]SAM_PROTO_GetShiftState done [21:19:52]FM_GetShiftState done [21:19:52]opened in 1726965840 [21:19:52]opened+sec_in_day 1727052240 [21:19:52]quantity*price = 100007 [21:19:52]sum+1 = 100009 [21:19:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.08 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.08 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 220 22.09.2024 21:19 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115502 ФПД: 134516728272602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T211955&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115502&fm=134516728272602&tin=02508201610067®Number=0000000000091831&sum=100008 [21:19:53]StoreToDocumentArchive [21:19:53]shift 471 fd 115502 [21:19:53]save to /storage/0471/doc_00115502 [21:19:53]save last doc name /storage/0471/doc_00115502 to /storage/kkm_last_doc_name [21:19:53]save OK [21:19:53]Clear old archive folders... [21:19:53]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:19:53]tlvbuf is 01C945C0 [21:19:53]SAM_PROTO_ClearQueue [21:19:53]wFMCommunicate request_size=4 [21:19:53]MH_SAM_APDU [21:19:53]CAPDU: 80 09 00 00 [21:19:53]Write to MH i2c: E2 08 00 3D 2F 80 09 00 00 00 00 00 00 DE [21:19:53]Write i2c OK [21:19:53]MH_I2C_Read... [21:19:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:53]Read from MH i2c: E2 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: E2 03 00 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: E2 03 00 3D 2F 00 90 00 E0 [21:19:53]RAPDU: 90 00 [21:19:53]wFMCommunicate OK [21:19:53]SAM_PROTO_ClearQueue done [21:19:53]KKMCreateOFDPacket [21:19:53]OFDProtocolAddRootSTLVToBuf [21:19:53]FM_MakeSignedData [21:19:53]FM_MakeSignedData [21:19:53]SAM_PROTO_SignData [21:19:53]wFMCommunicate request_size=4 [21:19:53]MH_SAM_APDU [21:19:53]CAPDU: 80 0D 01 02 [21:19:53]Write to MH i2c: E2 08 00 3E 2F 80 0D 01 02 00 00 00 00 E6 [21:19:53]Write i2c OK [21:19:53]MH_I2C_Read... [21:19:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:53]Read from MH i2c: E2 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: E2 03 00 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: E2 03 00 3E 2F 00 90 00 E1 [21:19:53]RAPDU: 90 00 [21:19:53]wFMCommunicate OK [21:19:53]wFMCommunicate request_size=255 [21:19:53]MH_SAM_APDU [21:19:53]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 FB 89 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2E C3 01 00 35 04 06 00 7A 57 [21:19:53]Write to MH i2c: E2 02 01 3F 2F 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 FB 89 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2E C3 01 00 35 04 06 00 7A 57 00 00 10 [21:19:53]Write i2c OK [21:19:53]MH_I2C_Read... [21:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:54]Read from MH i2c: E2 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: E2 03 00 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: E2 03 00 3F 2F 00 90 00 E2 [21:19:54]RAPDU: 90 00 [21:19:54]wFMCommunicate OK [21:19:54]wFMCommunicate request_size=9 [21:19:54]MH_SAM_APDU [21:19:54]CAPDU: 80 0D 02 02 04 9D CE 16 DA [21:19:54]Write to MH i2c: E2 0C 00 40 2F 80 0D 02 02 04 00 9D CE 16 DA 00 00 4C [21:19:54]Write i2c OK [21:19:54]MH_I2C_Read... [21:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:54]Read from MH i2c: E2 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: E2 03 00 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: E2 03 00 40 2F 00 90 00 E3 [21:19:54]RAPDU: 90 00 [21:19:54]wFMCommunicate OK [21:19:54]wFMCommunicate request_size=4 [21:19:54]MH_SAM_APDU [21:19:54]CAPDU: 80 0D 03 02 [21:19:54]Write to MH i2c: E2 08 00 41 2F 80 0D 03 02 00 00 00 00 EB [21:19:54]Write i2c OK [21:19:54]MH_I2C_Read... [21:19:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:54]Read from MH i2c: E2 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: E2 0B 00 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: E2 0B 00 41 2F 00 CA C6 32 56 7D BD 3F 93 90 00 10 [21:19:54]RAPDU: CA C6 32 56 7D BD 3F 93 90 00 [21:19:54]wFMCommunicate OK [21:19:54]SAM_PROTO_SignData done [21:19:54]FM_MakeSignedData done [21:19:54]CreateOFDProtocolMessage [21:19:54]wFMCommunicate request_size=4 [21:19:54]MH_SAM_APDU [21:19:54]CAPDU: 80 11 00 00 [21:19:54]Write to MH i2c: E2 08 00 42 2F 80 11 00 00 00 00 00 00 EB [21:19:54]Write i2c OK [21:19:54]MH_I2C_Read... [21:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:54]Read from MH i2c: E2 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: E2 17 00 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: E2 17 00 42 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 39 [21:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:19:54]wFMCommunicate OK [21:19:54]CreateOFDProtocolMessage done [21:19:54]OFDSenderStorePacket 115502 [21:19:54]StoreOFDPacket docnum=115502 [21:19:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0E 01 00 00 AB 53 06 01 50 3A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 FB 89 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2E C3 01 00 35 04 06 00 7A 57 9D CE 16 DA CA C6 32 56 7D BD 3F 93 [21:19:54]CheckFolder [21:19:54]dirname=/storage/ofd_packets [21:19:54]CheckFolder done [21:19:54]ProducePacketName [21:19:54]name=ofd_packets/00115502 [21:19:54]NVStorageSaveData ofd_packets/00115502 [21:19:54]File name is /storage/ofd_packets/00115502 [21:19:54]Write 300 bytes [21:19:54]NVStorageSaveData done [21:19:54]OFDSenderStorePacket done [21:19:54]KKMCreateOFDPacket done [21:19:54]NVStorageSaveData kkm_last_timestamp [21:19:54]File name is /storage/kkm_last_timestamp [21:19:54]Write 4 bytes [21:19:54]NVStorageSaveData done [21:19:54]ExternCall_PrintAddStr [21:19:54]wPrintStart [21:19:54]Write to MH i2c: 01 00 00 43 2F 72 [21:19:54]Write i2c OK [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: 01 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: 01 07 00 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: 01 07 00 43 2F 00 00 00 00 00 FF 0F 87 [21:19:54]RasterBufferAndPrint [21:19:54]line Счет N : (1)24617222 [21:19:54]line ИНН: 02508201610067 [21:19:54]line Контрольно-Кассовый Чек [21:19:54]line ПРОДАЖА [21:19:54]line ТРК (МРК, ГНК) : 71 [21:19:54]line Товар: 2711190000 [21:19:54]line ГАЗ-К-5 [21:19:54]line 26.740 * 37.40 [21:19:54]line = 1000.08 [21:19:54]line НДС 12% НСП 1% [21:19:54]line > о реализуемом товаре [21:19:54]line ИТОГО: 1000.08 [21:19:54]line НСП 1% : 8.85 [21:19:54]line НДС 12% : 106.20 [21:19:54]line Наличными: 0.00 [21:19:54]line Безнал.: 1000.08 [21:19:54]line Место: АЗС № 90 "Партнер Нефть" [21:19:54]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [21:19:54]line СНО: Общий режим [21:19:54]line Чек 220 22.09.2024 21:19 [21:19:54]line Смена: 471 ФФД: 1.0 [21:19:54]line ЗНМ: 0300000120 [21:19:54]line РНМ: 0000000000091831 [21:19:54]line Версия ККМ: 001 [21:19:54]line Платежная система: O! деньги [21:19:54]line ФМ: 0000000000871830 [21:19:54]line ФД: 115502 [21:19:54]line ФПД: 134516728272602 [21:19:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T211955&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115502&fm=134516728272602&tin=02508201610067®Number=0000000000091831&sum=100008 [21:19:54]written 0, free lines is 4095 [21:19:54]OFD Sender: Processing packet 115502 [packets to send 481, broken 480] [21:19:54]ProducePacketName [21:19:54]name=ofd_packets/00115502 [21:19:54]OFD Sender: To server: pG, [21:19:54]CommunicateWithHost lk.salyk.kg:30040 [21:19:54]ConnectInit lk.salyk.kg [21:19:54]Write to MH i2c: 01 00 00 6C 2F 9B [21:19:54]Write i2c OK [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: 01 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: 01 07 00 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: 01 07 00 6C 2F 00 00 00 00 00 5F 0C 0D [21:19:54]RasterBufferAndPrint [21:19:54]line [21:19:54]line [21:19:54]line [21:19:54]line [21:19:54]line [21:19:54]written 0, free lines is 3169 [21:19:54]MH_Cut [21:19:54]Write to MH i2c: D1 01 00 73 2F 01 74 [21:19:54]Write i2c OK [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: D1 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: D1 01 00 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: D1 01 00 73 2F 00 73 [21:19:54]Write to MH i2c: 01 00 00 74 2F A3 [21:19:54]Write i2c OK [21:19:54]MH_I2C_Read... [21:19:56]*** Cut start [21:19:56]*** Partial cut [21:19:56]*** CUTSNS_PIN = 1 [21:19:56]*** CUTSNS_PIN = 0 [21:19:56]*** Brake cut motor [21:19:56]Read from MH i2c: 01 [21:19:56]MH_I2C_Read... [21:19:56]*** Stop cut motor [21:19:56]*** Cut end [21:19:56]Read from MH i2c: 01 07 00 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: 01 07 00 74 2F 00 00 00 00 00 FF 0F B8 [21:19:56]process_action close_receipt done [21:19:56]requested_data is exist [21:19:56]produce_requested_data [21:19:56]requested_item fm.sn is exist - process it [21:19:56]wFMCommunicate request_size=4 [21:19:56]MH_SAM_APDU [21:19:56]CAPDU: 80 11 00 00 [21:19:56]Write to MH i2c: E2 08 00 75 2F 80 11 00 00 00 00 00 00 1E [21:19:56]Write i2c OK [21:19:56]MH_I2C_Read... [21:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:56]Read from MH i2c: E2 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 17 00 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 17 00 75 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6C [21:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:19:56]wFMCommunicate OK [21:19:56]requested_item fd.num is exist - process it [21:19:56]SAM_PROTO_GetFieldsCounters [21:19:56]wFMCommunicate request_size=4 [21:19:56]MH_SAM_APDU [21:19:56]CAPDU: 80 13 00 00 [21:19:56]Write to MH i2c: E2 08 00 76 2F 80 13 00 00 00 00 00 00 21 [21:19:56]Write i2c OK [21:19:56]MH_I2C_Read... [21:19:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:56]Read from MH i2c: E2 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 62 00 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 62 00 76 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2E C3 01 00 0E 04 04 00 D7 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 98 [21:19:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2E C3 01 00 0E 04 04 00 D7 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 [21:19:56]wFMCommunicate OK [21:19:56]SAM_PROTO_GetFieldsCounters done [21:19:56]requested_item shift.num is exist - process it [21:19:56]requested_item shift.opened is exist - process it [21:19:56]req_shift_opened [21:19:56]FM_GetShiftState [21:19:56]SAM_PROTO_GetShiftState [21:19:56]wFMCommunicate request_size=4 [21:19:56]MH_SAM_APDU [21:19:56]CAPDU: 80 13 01 00 [21:19:56]Write to MH i2c: E2 08 00 77 2F 80 13 01 00 00 00 00 00 23 [21:19:56]Write i2c OK [21:19:56]MH_I2C_Read... [21:19:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:56]Read from MH i2c: E2 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 0E 00 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 0E 00 77 2F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 3C [21:19:56]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [21:19:56]wFMCommunicate OK [21:19:56]SAM_PROTO_GetShiftState done [21:19:56]FM_GetShiftState done [21:19:56]req_shift_opened done [21:19:56]requested_item shift.open_date is exist - process it [21:19:56]req_shift_open_date [21:19:56]req_shift_open_date done [21:19:56]produce_requested_data done [21:19:56]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115502,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [21:19:56]process_action_free close_receipt [21:19:56]json_value_free [21:19:56]json_value_free done [21:19:56]process_json_proto returns [21:19:56]Send response to host [21:19:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115502,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [21:19:56]free response buf [21:19:56]execute_script done [21:19:56]execute_script returns [21:19:56]free content buf [21:19:56]Sock 9.Close socket [21:19:56]Sock 9.Thread stoped [21:22:05]ConnectInit Can't connect to host [21:22:05]CommunicateWithHost connect error [21:22:05]CommunicateWithHost err = -1 [21:22:05]OFD Sender: Server communicate error [21:22:10]OFD Sender: Processing packet 115502 [packets to send 481, broken 480] [21:22:10]ProducePacketName [21:22:10]name=ofd_packets/00115502 [21:22:10]OFD Sender: To server: pG, [21:22:10]CommunicateWithHost lk.salyk.kg:30040 [21:22:10]ConnectInit lk.salyk.kg [21:22:10]Connected sock=9 [21:22:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0E 01 00 00 AB 53 06 01 50 3A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 FB 89 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2E C3 01 00 35 04 06 00 7A 57 9D CE 16 DA CA C6 32 56 7D BD 3F 93 [21:22:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E8 36 47 00 D0 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2E C3 01 00 F4 03 04 00 C8 2F F0 66 B6 04 01 00 00 E8 11 E6 D7 EE 8F 5B CB [21:22:10]CommunicateWithHost err = 0 [21:22:10]CheckOFDResponse [21:22:10]1017 (14) - 77093643461234 [21:22:10]1041 (16) - 0000000000871830 [21:22:10]1040 (4) - 115502 [21:22:10]1012 (4) - 22.09.2024 14:55 [21:22:10]1206 (1) - 0 [21:22:10]OFD Sender: Remove packet 115502 [21:22:10]ProducePacketName [21:22:10]name=ofd_packets/00115502 [21:22:10]NVStorageDeleteData [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:22:59]accept exits with 8 [21:22:59]New connection [21:22:59]New thread 3066826084 created [21:22:59]Thread 3066682724 joined [21:22:59]Waiting for new connection... [21:22:59] Sock 8.Parse request [21:22:59]Sock 8.Check first char [21:22:59]Sock 8.First char is OK [21:22:59]request: POST /json_proto HTTP/1.0 [21:22:59]Method: POST [21:22:59]URL: /json_proto [21:22:59]Method is POST - this is cgi request [21:22:59]url: /json_proto [21:22:59]query_string will be loaded in cgi processing [21:22:59]execute_cgi json_proto POST (null) [21:22:59]execute_cgi path=json_proto method=POST [21:22:59]POST find Content-Length [21:22:59]Host: 172.17.41.136:8080 [21:22:59]Content-Length: 2024 [21:22:59]Content-Type: application/json [21:22:59] [21:22:59]POST finish read [21:22:59]Found Content-Length = 2024 [21:22:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343932", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 4.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1293.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:59]execute_script... [21:22:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343932", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 4.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1293.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:59]POST & json_proto [21:22:59]process_json_proto [21:22:59]json parsed OK: [21:22:59]protocol is kg_v1.0 [21:22:59]action value=close_receipt [21:22:59]process_action close_receipt [21:22:59]cmd_close_receipt [21:22:59]MH_GetDate [21:22:59]Write to MH i2c: F0 00 00 78 2F 96 [21:22:59]Write i2c OK [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: F0 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: F0 09 00 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: F0 09 00 78 2F 00 B7 8A F0 66 1B D0 5A 64 DF [21:22:59]GetLastDocTimeStamp 1727039995 [21:22:59]current date 1727040183 [21:22:59]FM_GetShiftState [21:22:59]SAM_PROTO_GetShiftState [21:22:59]wFMCommunicate request_size=4 [21:22:59]MH_SAM_APDU [21:22:59]CAPDU: 80 13 01 00 [21:22:59]Write to MH i2c: E2 08 00 79 2F 80 13 01 00 00 00 00 00 25 [21:22:59]Write i2c OK [21:22:59]MH_I2C_Read... [21:22:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:59]Read from MH i2c: E2 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 0E 00 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 0E 00 79 2F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 3E [21:22:59]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [21:22:59]wFMCommunicate OK [21:22:59]SAM_PROTO_GetShiftState done [21:22:59]FM_GetShiftState done [21:22:59]opened in 1726965840 [21:22:59]opened+sec_in_day 1727052240 [21:22:59]quantity*price = 60000 [21:22:59]sum+1 = 60001 [21:22:59]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189332 Холодный чай Fuse персик 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 90448300 Энерг напиток Red Bull 0,355л 1.000 * 265.00 = 265.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5000159381178 Шок Батончик Баунти Трио 82,5г 2.000 * 89.00 = 178.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1293.00 НСП 1% : 11.43 НДС 12% : 137.31 Наличными: 1293.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 221 22.09.2024 21:23 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115503 ФПД: 58759199982904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T212303&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115503&fm=58759199982904&tin=02508201610067®Number=0000000000091831&sum=129300 0 [21:23:01]StoreToDocumentArchive [21:23:01]shift 471 fd 115503 [21:23:01]save to /storage/0471/doc_00115503 [21:23:01]save last doc name /storage/0471/doc_00115503 to /storage/kkm_last_doc_name [21:23:01]save OK [21:23:01]Clear old archive folders... [21:23:01]ProcessDocumentItem done err = 0, tmpTLVsize=854 [21:23:01]tlvbuf is 01C89740 [21:23:01]SAM_PROTO_ClearQueue [21:23:01]wFMCommunicate request_size=4 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 09 00 00 [21:23:01]Write to MH i2c: E2 08 00 86 2F 80 09 00 00 00 00 00 00 27 [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 86 2F 00 90 00 29 [21:23:01]RAPDU: 90 00 [21:23:01]wFMCommunicate OK [21:23:01]SAM_PROTO_ClearQueue done [21:23:01]KKMCreateOFDPacket [21:23:01]OFDProtocolAddRootSTLVToBuf [21:23:01]FM_MakeSignedData [21:23:01]FM_MakeSignedData [21:23:01]SAM_PROTO_SignData [21:23:01]wFMCommunicate request_size=4 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 0D 01 02 [21:23:01]Write to MH i2c: E2 08 00 87 2F 80 0D 01 02 00 00 00 00 2F [21:23:01]OFD Sender: No OFD packet to send [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 87 2F 00 90 00 2A [21:23:01]RAPDU: 90 00 [21:23:01]wFMCommunicate OK [21:23:01]wFMCommunicate request_size=255 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 0D 02 02 FA 03 00 56 03 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 [21:23:01]Write to MH i2c: E2 02 01 88 2F 80 0D 02 02 FA 00 03 00 56 03 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 00 00 EF [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 88 2F 00 90 00 2B [21:23:01]RAPDU: 90 00 [21:23:01]wFMCommunicate OK [21:23:01]wFMCommunicate request_size=255 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 0D 02 02 FA 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 [21:23:01]Write to MH i2c: E2 02 01 89 2F 80 0D 02 02 FA 00 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 00 00 0B [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 03 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 03 00 89 2F 00 90 00 2C [21:23:02]RAPDU: 90 00 [21:23:02]wFMCommunicate OK [21:23:02]wFMCommunicate request_size=255 [21:23:02]MH_SAM_APDU [21:23:02]CAPDU: 80 0D 02 02 FA 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 F9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 35 00 00 00 00 07 04 06 00 14 [21:23:02]Write to MH i2c: E2 02 01 8A 2F 80 0D 02 02 FA 00 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 F9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 35 00 00 00 00 07 04 06 00 14 00 00 49 [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 03 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 03 00 8A 2F 00 90 00 2D [21:23:02]RAPDU: 90 00 [21:23:02]wFMCommunicate OK [21:23:02]wFMCommunicate request_size=113 [21:23:02]MH_SAM_APDU [21:23:02]CAPDU: 80 0D 02 02 6C F9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 B7 8A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2F C3 01 00 35 04 06 00 35 70 F1 3E 05 38 [21:23:02]Write to MH i2c: E2 74 00 8B 2F 80 0D 02 02 6C 00 F9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 B7 8A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2F C3 01 00 35 04 06 00 35 70 F1 3E 05 38 00 00 77 [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 03 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 03 00 8B 2F 00 90 00 2E [21:23:02]RAPDU: 90 00 [21:23:02]wFMCommunicate OK [21:23:02]wFMCommunicate request_size=4 [21:23:02]MH_SAM_APDU [21:23:02]CAPDU: 80 0D 03 02 [21:23:02]Write to MH i2c: E2 08 00 8C 2F 80 0D 03 02 00 00 00 00 36 [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 0B 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 0B 00 8C 2F 00 83 30 20 79 E1 67 72 89 90 00 C6 [21:23:02]RAPDU: 83 30 20 79 E1 67 72 89 90 00 [21:23:02]wFMCommunicate OK [21:23:02]SAM_PROTO_SignData done [21:23:02]FM_MakeSignedData done [21:23:02]CreateOFDProtocolMessage [21:23:02]wFMCommunicate request_size=4 [21:23:02]MH_SAM_APDU [21:23:02]CAPDU: 80 11 00 00 [21:23:02]Write to MH i2c: E2 08 00 8D 2F 80 11 00 00 00 00 00 00 36 [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:02]Read from MH i2c: E2 17 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 17 00 8D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 84 [21:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:23:02]wFMCommunicate OK [21:23:02]CreateOFDProtocolMessage done [21:23:02]OFDSenderStorePacket 115503 [21:23:02]StoreOFDPacket docnum=115503 [21:23:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 6A 03 00 00 D1 8C 62 03 E8 B7 5A 03 01 00 03 00 56 03 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 F9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 35 00 00 00 00 07 04 06 00 14 F9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 B7 8A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2F C3 01 00 35 04 06 00 35 70 F1 3E 05 38 83 30 20 79 E1 67 72 89 [21:23:02]CheckFolder [21:23:02]dirname=/storage/ofd_packets [21:23:02]CheckFolder done [21:23:02]ProducePacketName [21:23:02]name=ofd_packets/00115503 [21:23:02]NVStorageSaveData ofd_packets/00115503 [21:23:02]File name is /storage/ofd_packets/00115503 [21:23:02]Write 904 bytes [21:23:02]NVStorageSaveData done [21:23:02]OFDSenderStorePacket done [21:23:02]KKMCreateOFDPacket done [21:23:02]NVStorageSaveData kkm_last_timestamp [21:23:02]File name is /storage/kkm_last_timestamp [21:23:02]Write 4 bytes [21:23:02]NVStorageSaveData done [21:23:02]ExternCall_PrintAddStr [21:23:02]wPrintStart [21:23:02]Write to MH i2c: 01 00 00 8E 2F BD [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: 01 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: 01 07 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: 01 07 00 8E 2F 00 00 00 00 00 FF 0F D2 [21:23:02]RasterBufferAndPrint [21:23:02]line Счет N : (3)343932 [21:23:02]line ИНН: 02508201610067 [21:23:02]line Контрольно-Кассовый Чек [21:23:02]line ПРОДАЖА [21:23:02]line Товар: 4640030091645 [21:23:02]line Сигареты ESSE Exchange M [21:23:02]line 4.000 * 150.00 [21:23:02]line = 600.00 [21:23:02]line НДС 12% НСП 1% [21:23:02]line > о реализуемом товаре [21:23:02]line Товар: 5449000189332 [21:23:02]line Холодный чай Fuse персик 1л [21:23:02]line 1.000 * 105.00 [21:23:02]line = 105.00 [21:23:02]line НДС 12% НСП 1% [21:23:02]line > о реализуемом товаре [21:23:02]line Товар: 4700000310043 [21:23:02]line Вода Жалалабат 27 1л [21:23:02]line 1.000 * 60.00 [21:23:02]line = 60.00 [21:23:02]line НДС 12% НСП 1% [21:23:02]line > о реализуемом товаре [21:23:02]line Товар: 90448300 [21:23:02]line Энерг напиток Red Bull 0,355л [21:23:02]line 1.000 * 265.00 [21:23:02]line = 265.00 [21:23:02]line НДС 12% НСП 1% [21:23:02]line > о реализуемом товаре [21:23:02]line Товар: 4600682557456 [21:23:02]line Напиток FLash up energy эн ж/б 0,5/0,45л [21:23:02]line 1.000 * 85.00 [21:23:02]line = 85.00 [21:23:02]line НДС 12% НСП 1% [21:23:02]line > о реализуемом товаре [21:23:02]line Товар: 5000159381178 [21:23:02]line Шок Батончик Баунти Трио 82,5г [21:23:02]line 2.000 * 89.00 [21:23:02]line = 178.00 [21:23:02]line НДС 12% НСП 1% [21:23:02]line > о реализуемом товаре [21:23:02]line ИТОГО: 1293.00 [21:23:02]line НСП 1% : 11.43 [21:23:02]line НДС 12% : 137.31 [21:23:02]line Наличными: 1293.00 [21:23:02]line Безнал.: 0.00 [21:23:02]line Место: АЗС № 90 "Партнер Нефть" [21:23:02]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [21:23:02]line СНО: Общий режим [21:23:02]line Чек 221 22.09.2024 21:23 [21:23:02]line Смена: 471 ФФД: 1.0 [21:23:02]line ЗНМ: 0300000120 [21:23:02]line РНМ: 0000000000091831 [21:23:02]line Версия ККМ: 001 [21:23:02]line ФМ: 0000000000871830 [21:23:02]line ФД: 115503 [21:23:02]line ФПД: 58759199982904 [21:23:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T212303&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115503&fm=58759199982904&tin=02508201610067®Number=0000000000091831&sum=129300 [21:23:02]line 0 [21:23:02]OFD Sender: Processing packet 115503 [packets to send 481, broken 480] [21:23:02]ProducePacketName [21:23:02]name=ofd_packets/00115503 [21:23:02]OFD Sender: To server: pG, [21:23:02]CommunicateWithHost lk.salyk.kg:30040 [21:23:02]ConnectInit lk.salyk.kg [21:23:02]written 0, free lines is 4095 [21:23:03]Write to MH i2c: 01 00 00 D5 2F 04 [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: 01 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: 01 07 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: 01 07 00 D5 2F 00 00 00 00 00 C1 09 D5 [21:23:03]RasterBufferAndPrint [21:23:03]line [21:23:03]line [21:23:03]line [21:23:03]line [21:23:03]line [21:23:03]written 0, free lines is 2500 [21:23:03]MH_Cut [21:23:03]Write to MH i2c: D1 01 00 DC 2F 01 DD [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: D1 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: D1 01 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: D1 01 00 DC 2F 00 DC [21:23:03]Write to MH i2c: 01 00 00 DD 2F 0C [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:05]*** Cut start [21:23:05]*** Partial cut [21:23:05]*** CUTSNS_PIN = 1 [21:23:05]*** CUTSNS_PIN = 0 [21:23:06]*** Brake cut motor [21:23:06]Read from MH i2c: 01 [21:23:06]MH_I2C_Read... [21:23:06]*** Stop cut motor [21:23:06]*** Cut end [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 DD 2F 00 00 00 00 00 FF 0F 21 [21:23:06]process_action close_receipt done [21:23:06]requested_data is exist [21:23:06]produce_requested_data [21:23:06]requested_item fm.sn is exist - process it [21:23:06]wFMCommunicate request_size=4 [21:23:06]MH_SAM_APDU [21:23:06]CAPDU: 80 11 00 00 [21:23:06]Write to MH i2c: E2 08 00 DE 2F 80 11 00 00 00 00 00 00 87 [21:23:06]Write i2c OK [21:23:06]MH_I2C_Read... [21:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:06]Read from MH i2c: E2 [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: E2 17 00 [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: E2 17 00 DE 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D5 [21:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:23:06]wFMCommunicate OK [21:23:06]requested_item fd.num is exist - process it [21:23:06]SAM_PROTO_GetFieldsCounters [21:23:06]wFMCommunicate request_size=4 [21:23:06]MH_SAM_APDU [21:23:06]CAPDU: 80 13 00 00 [21:23:06]Write to MH i2c: E2 08 00 DF 2F 80 13 00 00 00 00 00 00 8A [21:23:06]Write i2c OK [21:23:06]MH_I2C_Read... [21:23:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:06]Read from MH i2c: E2 [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: E2 62 00 [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: E2 62 00 DF 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2F C3 01 00 0E 04 04 00 D7 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 05 [21:23:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2F C3 01 00 0E 04 04 00 D7 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 [21:23:06]wFMCommunicate OK [21:23:06]SAM_PROTO_GetFieldsCounters done [21:23:06]requested_item shift.num is exist - process it [21:23:06]requested_item shift.opened is exist - process it [21:23:06]req_shift_opened [21:23:06]FM_GetShiftState [21:23:06]SAM_PROTO_GetShiftState [21:23:06]wFMCommunicate request_size=4 [21:23:06]MH_SAM_APDU [21:23:06]CAPDU: 80 13 01 00 [21:23:06]Write to MH i2c: E2 08 00 E0 2F 80 13 01 00 00 00 00 00 8C [21:23:06]Write i2c OK [21:23:06]MH_I2C_Read... [21:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:06]Read from MH i2c: E2 [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: E2 0E 00 [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: E2 0E 00 E0 2F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A5 [21:23:06]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [21:23:06]wFMCommunicate OK [21:23:06]SAM_PROTO_GetShiftState done [21:23:06]FM_GetShiftState done [21:23:06]req_shift_opened done [21:23:06]requested_item shift.open_date is exist - process it [21:23:06]req_shift_open_date [21:23:06]req_shift_open_date done [21:23:06]produce_requested_data done [21:23:06]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115503,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [21:23:06]process_action_free close_receipt [21:23:06]json_value_free [21:23:06]json_value_free done [21:23:06]process_json_proto returns [21:23:06]Send response to host [21:23:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115503,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [21:23:06]free response buf [21:23:06]execute_script done [21:23:06]execute_script returns [21:23:06]free content buf [21:23:06]Sock 8.Close socket [21:23:06]Sock 8.Thread stoped [21:25:14]ConnectInit Can't connect to host [21:25:14]CommunicateWithHost connect error [21:25:14]CommunicateWithHost err = -1 [21:25:14]OFD Sender: Server communicate error [21:25:19]OFD Sender: Processing packet 115503 [packets to send 481, broken 480] [21:25:19]ProducePacketName [21:25:19]name=ofd_packets/00115503 [21:25:19]OFD Sender: To server: pG, [21:25:19]CommunicateWithHost lk.salyk.kg:30040 [21:25:19]ConnectInit lk.salyk.kg [21:25:19]Connected sock=8 [21:25:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 6A 03 00 00 D1 8C 62 03 E8 B7 5A 03 01 00 03 00 56 03 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 F9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 35 00 00 00 00 07 04 06 00 14 F9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 B7 8A F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2F C3 01 00 35 04 06 00 35 70 F1 3E 05 38 83 30 20 79 E1 67 72 89 [21:25:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1D 12 47 00 7B 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 31 38 33 30 10 04 04 00 2F C3 01 00 F4 03 04 00 85 30 F0 66 B6 04 01 00 00 5B 23 6B 5B D5 18 E5 72 [21:25:20]CommunicateWithHost err = 0 [21:25:20]CheckOFDResponse [21:25:20]1017 (14) - 77093643461234 [21:25:20]1041 (16) - 0000000000871830 [21:25:20]1040 (4) - 115503 [21:25:20]1012 (4) - 22.09.2024 14:58 [21:25:20]1206 (1) - 0 [21:25:20]OFD Sender: Remove packet 115503 [21:25:20]ProducePacketName [21:25:20]name=ofd_packets/00115503 [21:25:20]NVStorageDeleteData [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]OFD Sender: No OFD packet to send [21:25:40]OFD Sender: No OFD packet to send [21:25:45]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]OFD Sender: No OFD packet to send [21:26:20]OFD Sender: No OFD packet to send [21:26:25]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]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]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:22]OFD Sender: No OFD packet to send [21:36:27]OFD Sender: No OFD packet to send [21:36:32]OFD Sender: No OFD packet to send [21:36:37]OFD Sender: No OFD packet to send [21:36:42]OFD Sender: No OFD packet to send [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [21:41:43]OFD Sender: No OFD packet to send [21:41:48]OFD Sender: No OFD packet to send [21:41:53]OFD Sender: No OFD packet to send [21:41:58]OFD Sender: No OFD packet to send [21:42:03]OFD Sender: No OFD packet to send [21:42:08]OFD Sender: No OFD packet to send [21:42:13]OFD Sender: No OFD packet to send [21:42:18]OFD Sender: No OFD packet to send [21:42:23]OFD Sender: No OFD packet to send [21:42:28]OFD Sender: No OFD packet to send [21:42:33]OFD Sender: No OFD packet to send [21:42:38]OFD Sender: No OFD packet to send [21:42:43]OFD Sender: No OFD packet to send [21:42:48]OFD Sender: No OFD packet to send [21:42:53]OFD Sender: No OFD packet to send [21:42:58]OFD Sender: No OFD packet to send [21:43:03]OFD Sender: No OFD packet to send [21:43:08]OFD Sender: No OFD packet to send [21:43:13]OFD Sender: No OFD packet to send [21:43:18]OFD Sender: No OFD packet to send [21:43:23]OFD Sender: No OFD packet to send [21:43:28]OFD Sender: No OFD packet to send [21:43:33]OFD Sender: No OFD packet to send [21:43:38]OFD Sender: No OFD packet to send [21:43:43]OFD Sender: No OFD packet to send [21:43:44]accept exits with 9 [21:43:44]New connection [21:43:44]New thread 3066682724 created [21:43:44]Thread 3066826084 joined [21:43:44]Waiting for new connection... [21:43:44] Sock 9.Parse request [21:43:44]Sock 9.Check first char [21:43:44]Sock 9.First char is OK [21:43:44]request: POST /json_proto HTTP/1.0 [21:43:44]Method: POST [21:43:44]URL: /json_proto [21:43:44]Method is POST - this is cgi request [21:43:44]url: /json_proto [21:43:44]query_string will be loaded in cgi processing [21:43:44]execute_cgi json_proto POST (null) [21:43:44]execute_cgi path=json_proto method=POST [21:43:44]POST find Content-Length [21:43:44]Host: 172.17.41.136:8080 [21:43:44]Content-Length: 669 [21:43:44]Content-Type: application/json [21:43:44] [21:43:44]POST finish read [21:43:44]Found Content-Length = 669 [21:43:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343933", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:44]execute_script... [21:43:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343933", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:44]POST & json_proto [21:43:44]process_json_proto [21:43:44]json parsed OK: [21:43:44]protocol is kg_v1.0 [21:43:44]action value=close_receipt [21:43:44]process_action close_receipt [21:43:44]cmd_close_receipt [21:43:44]MH_GetDate [21:43:44]Write to MH i2c: F0 00 00 E1 2F FF [21:43:44]Write i2c OK [21:43:44]MH_I2C_Read... [21:43:44]Read from MH i2c: F0 [21:43:44]MH_I2C_Read... [21:43:44]Read from MH i2c: F0 09 00 [21:43:44]MH_I2C_Read... [21:43:44]Read from MH i2c: F0 09 00 E1 2F 00 93 8F F0 66 1B D0 5A 64 29 [21:43:44]GetLastDocTimeStamp 1727040183 [21:43:44]current date 1727041427 [21:43:44]FM_GetShiftState [21:43:44]SAM_PROTO_GetShiftState [21:43:44]wFMCommunicate request_size=4 [21:43:44]MH_SAM_APDU [21:43:44]CAPDU: 80 13 01 00 [21:43:44]Write to MH i2c: E2 08 00 E2 2F 80 13 01 00 00 00 00 00 8E [21:43:44]Write i2c OK [21:43:44]MH_I2C_Read... [21:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:44]Read from MH i2c: E2 [21:43:44]MH_I2C_Read... [21:43:44]Read from MH i2c: E2 0E 00 [21:43:44]MH_I2C_Read... [21:43:44]Read from MH i2c: E2 0E 00 E2 2F 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A7 [21:43:44]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [21:43:44]wFMCommunicate OK [21:43:44]SAM_PROTO_GetShiftState done [21:43:44]FM_GetShiftState done [21:43:44]opened in 1726965840 [21:43:44]opened+sec_in_day 1727052240 [21:43:44]quantity*price = 6500 [21:43:44]sum+1 = 6501 [21:43:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 222 22.09.2024 21:43 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115504 ФПД: 167098042959308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T214347&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115504&fm=167098042959308&tin=02508201610067®Number=0000000000091831&sum=6500 0 [21:43:45]StoreToDocumentArchive [21:43:45]shift 471 fd 115504 [21:43:45]save to /storage/0471/doc_00115504 [21:43:45]save last doc name /storage/0471/doc_00115504 to /storage/kkm_last_doc_name [21:43:45]save OK [21:43:45]Clear old archive folders... [21:43:45]ProcessDocumentItem done err = 0, tmpTLVsize=284 [21:43:45]tlvbuf is B6EA2BD0 [21:43:45]SAM_PROTO_ClearQueue [21:43:45]wFMCommunicate request_size=4 [21:43:45]MH_SAM_APDU [21:43:45]CAPDU: 80 09 00 00 [21:43:45]Write to MH i2c: E2 08 00 EF 2F 80 09 00 00 00 00 00 00 90 [21:43:45]Write i2c OK [21:43:45]MH_I2C_Read... [21:43:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:45]Read from MH i2c: E2 [21:43:45]MH_I2C_Read... [21:43:45]Read from MH i2c: E2 03 00 [21:43:45]MH_I2C_Read... [21:43:45]Read from MH i2c: E2 03 00 EF 2F 00 90 00 92 [21:43:45]RAPDU: 90 00 [21:43:45]wFMCommunicate OK [21:43:45]SAM_PROTO_ClearQueue done [21:43:45]KKMCreateOFDPacket [21:43:45]OFDProtocolAddRootSTLVToBuf [21:43:45]FM_MakeSignedData [21:43:45]FM_MakeSignedData [21:43:45]SAM_PROTO_SignData [21:43:45]wFMCommunicate request_size=4 [21:43:45]MH_SAM_APDU [21:43:45]CAPDU: 80 0D 01 02 [21:43:45]Write to MH i2c: E2 08 00 F0 2F 80 0D 01 02 00 00 00 00 98 [21:43:45]Write i2c OK [21:43:45]MH_I2C_Read... [21:43:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:45]Read from MH i2c: E2 [21:43:45]MH_I2C_Read... [21:43:45]Read from MH i2c: E2 03 00 [21:43:45]MH_I2C_Read... [21:43:45]Read from MH i2c: E2 03 00 F0 2F 00 90 00 93 [21:43:45]RAPDU: 90 00 [21:43:45]wFMCommunicate OK [21:43:45]wFMCommunicate request_size=255 [21:43:45]MH_SAM_APDU [21:43:45]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 93 8F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [21:43:45]Write to MH i2c: E2 02 01 F1 2F 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 93 8F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 4F [21:43:45]Write i2c OK [21:43:45]MH_I2C_Read... [21:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:45]Read from MH i2c: E2 [21:43:45]MH_I2C_Read... [21:43:45]Read from MH i2c: E2 03 00 [21:43:45]MH_I2C_Read... [21:43:45]Read from MH i2c: E2 03 00 F1 2F 00 90 00 94 [21:43:45]RAPDU: 90 00 [21:43:45]wFMCommunicate OK [21:43:45]wFMCommunicate request_size=43 [21:43:45]MH_SAM_APDU [21:43:45]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 30 C3 01 00 35 04 06 00 97 F9 8B 7E 45 CC [21:43:45]Write to MH i2c: E2 2E 00 F2 2F 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 30 C3 01 00 35 04 06 00 97 F9 8B 7E 45 CC 00 00 1C [21:43:45]Write i2c OK [21:43:45]MH_I2C_Read... [21:43:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:46]Read from MH i2c: E2 [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: E2 03 00 [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: E2 03 00 F2 2F 00 90 00 95 [21:43:46]RAPDU: 90 00 [21:43:46]wFMCommunicate OK [21:43:46]wFMCommunicate request_size=4 [21:43:46]MH_SAM_APDU [21:43:46]CAPDU: 80 0D 03 02 [21:43:46]Write to MH i2c: E2 08 00 F3 2F 80 0D 03 02 00 00 00 00 9D [21:43:46]Write i2c OK [21:43:46]MH_I2C_Read... [21:43:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:46]Read from MH i2c: E2 [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: E2 0B 00 [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: E2 0B 00 F3 2F 00 58 A8 1B 37 01 87 1F 48 90 00 DF [21:43:46]RAPDU: 58 A8 1B 37 01 87 1F 48 90 00 [21:43:46]wFMCommunicate OK [21:43:46]SAM_PROTO_SignData done [21:43:46]FM_MakeSignedData done [21:43:46]CreateOFDProtocolMessage [21:43:46]wFMCommunicate request_size=4 [21:43:46]MH_SAM_APDU [21:43:46]CAPDU: 80 11 00 00 [21:43:46]Write to MH i2c: E2 08 00 F4 2F 80 11 00 00 00 00 00 00 9D [21:43:46]Write i2c OK [21:43:46]MH_I2C_Read... [21:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:46]Read from MH i2c: E2 [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: E2 17 00 [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: E2 17 00 F4 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EB [21:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:43:46]wFMCommunicate OK [21:43:46]CreateOFDProtocolMessage done [21:43:46]OFDSenderStorePacket 115504 [21:43:46]StoreOFDPacket docnum=115504 [21:43:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 B0 E9 28 01 A9 9B 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 93 8F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 30 C3 01 00 35 04 06 00 97 F9 8B 7E 45 CC 58 A8 1B 37 01 87 1F 48 [21:43:46]CheckFolder [21:43:46]dirname=/storage/ofd_packets [21:43:46]CheckFolder done [21:43:46]ProducePacketName [21:43:46]name=ofd_packets/00115504 [21:43:46]NVStorageSaveData ofd_packets/00115504 [21:43:46]File name is /storage/ofd_packets/00115504 [21:43:46]Write 334 bytes [21:43:46]NVStorageSaveData done [21:43:46]OFDSenderStorePacket done [21:43:46]KKMCreateOFDPacket done [21:43:46]NVStorageSaveData kkm_last_timestamp [21:43:46]File name is /storage/kkm_last_timestamp [21:43:46]Write 4 bytes [21:43:46]NVStorageSaveData done [21:43:46]ExternCall_PrintAddStr [21:43:46]wPrintStart [21:43:46]Write to MH i2c: 01 00 00 F5 2F 24 [21:43:46]Write i2c OK [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: 01 [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: 01 07 00 [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: 01 07 00 F5 2F 00 00 00 00 00 FF 0F 39 [21:43:46]RasterBufferAndPrint [21:43:46]line Счет N : (3)343933 [21:43:46]line ИНН: 02508201610067 [21:43:46]line Контрольно-Кассовый Чек [21:43:46]line ПРОДАЖА [21:43:46]line Товар: 4700040114137 [21:43:46]line Султан чай 1л. зел лимон [21:43:46]line 1.000 * 65.00 [21:43:46]line = 65.00 [21:43:46]line НДС 12% НСП 1% [21:43:46]line > о реализуемом товаре [21:43:46]line ИТОГО: 65.00 [21:43:46]line НСП 1% : 0.57 [21:43:46]line НДС 12% : 6.90 [21:43:46]line Наличными: 65.00 [21:43:46]line Безнал.: 0.00 [21:43:46]line Место: АЗС № 90 "Партнер Нефть" [21:43:46]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [21:43:46]line СНО: Общий режим [21:43:46]line Чек 222 22.09.2024 21:43 [21:43:46]line Смена: 471 ФФД: 1.0 [21:43:46]line ЗНМ: 0300000120 [21:43:46]line РНМ: 0000000000091831 [21:43:46]line Версия ККМ: 001 [21:43:46]line ФМ: 0000000000871830 [21:43:46]line ФД: 115504 [21:43:46]line ФПД: 167098042959308 [21:43:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T214347&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115504&fm=167098042959308&tin=02508201610067®Number=0000000000091831&sum=6500 [21:43:46]line 0 [21:43:46]written 0, free lines is 4095 [21:43:46]OFD Sender: Processing packet 115504 [packets to send 481, broken 480] [21:43:46]ProducePacketName [21:43:46]name=ofd_packets/00115504 [21:43:46]OFD Sender: To server: pG, [21:43:46]CommunicateWithHost lk.salyk.kg:30040 [21:43:46]ConnectInit lk.salyk.kg [21:43:46]Connected sock=10 [21:43:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 B0 E9 28 01 A9 9B 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 93 8F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 30 C3 01 00 35 04 06 00 97 F9 8B 7E 45 CC 58 A8 1B 37 01 87 1F 48 [21:43:46]Write to MH i2c: 01 00 00 1C 30 4C [21:43:46]Write i2c OK [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: 01 [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: 01 07 00 [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: 01 07 00 1C 30 00 00 00 00 00 85 0C E4 [21:43:46]RasterBufferAndPrint [21:43:46]line [21:43:46]line [21:43:46]line [21:43:46]line [21:43:46]line [21:43:46]written 0, free lines is 3209 [21:43:46]MH_Cut [21:43:46]Write to MH i2c: D1 01 00 23 30 01 25 [21:43:46]Write i2c OK [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: D1 [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: D1 01 00 [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: D1 01 00 23 30 00 24 [21:43:46]Write to MH i2c: 01 00 00 24 30 54 [21:43:46]Write i2c OK [21:43:46]MH_I2C_Read... [21:43:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 73 73 47 00 1B 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 30 C3 01 00 F4 03 04 00 D8 34 F0 66 B6 04 01 00 00 99 92 DC FE 46 EB 18 9A [21:43:46]CommunicateWithHost err = 0 [21:43:46]CheckOFDResponse [21:43:46]1017 (14) - 77093643461234 [21:43:46]1041 (16) - 0000000000871830 [21:43:46]1040 (4) - 115504 [21:43:46]1012 (4) - 22.09.2024 15:16 [21:43:46]1206 (1) - 0 [21:43:46]OFD Sender: Remove packet 115504 [21:43:46]ProducePacketName [21:43:46]name=ofd_packets/00115504 [21:43:46]NVStorageDeleteData [21:43:47]OFD Sender: No OFD packet to send [21:43:47]*** Cut start [21:43:47]*** Partial cut [21:43:47]*** CUTSNS_PIN = 1 [21:43:47]*** CUTSNS_PIN = 0 [21:43:48]*** Brake cut motor [21:43:48]Read from MH i2c: 01 [21:43:48]MH_I2C_Read... [21:43:48]*** Stop cut motor [21:43:48]*** Cut end [21:43:48]Read from MH i2c: 01 07 00 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: 01 07 00 24 30 00 00 00 00 00 FF 0F 69 [21:43:48]process_action close_receipt done [21:43:48]requested_data is exist [21:43:48]produce_requested_data [21:43:48]requested_item fm.sn is exist - process it [21:43:48]wFMCommunicate request_size=4 [21:43:48]MH_SAM_APDU [21:43:48]CAPDU: 80 11 00 00 [21:43:48]Write to MH i2c: E2 08 00 25 30 80 11 00 00 00 00 00 00 CF [21:43:48]Write i2c OK [21:43:48]MH_I2C_Read... [21:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:48]Read from MH i2c: E2 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 17 00 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 17 00 25 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1D [21:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:43:48]wFMCommunicate OK [21:43:48]requested_item fd.num is exist - process it [21:43:48]SAM_PROTO_GetFieldsCounters [21:43:48]wFMCommunicate request_size=4 [21:43:48]MH_SAM_APDU [21:43:48]CAPDU: 80 13 00 00 [21:43:48]Write to MH i2c: E2 08 00 26 30 80 13 00 00 00 00 00 00 D2 [21:43:48]Write i2c OK [21:43:48]MH_I2C_Read... [21:43:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:48]Read from MH i2c: E2 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 62 00 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 62 00 26 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 30 C3 01 00 0E 04 04 00 D7 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 51 [21:43:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 30 C3 01 00 0E 04 04 00 D7 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 [21:43:48]wFMCommunicate OK [21:43:48]SAM_PROTO_GetFieldsCounters done [21:43:48]requested_item shift.num is exist - process it [21:43:48]requested_item shift.opened is exist - process it [21:43:48]req_shift_opened [21:43:48]FM_GetShiftState [21:43:48]SAM_PROTO_GetShiftState [21:43:48]wFMCommunicate request_size=4 [21:43:48]MH_SAM_APDU [21:43:48]CAPDU: 80 13 01 00 [21:43:48]Write to MH i2c: E2 08 00 27 30 80 13 01 00 00 00 00 00 D4 [21:43:48]Write i2c OK [21:43:48]MH_I2C_Read... [21:43:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:48]Read from MH i2c: E2 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 0E 00 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 0E 00 27 30 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 ED [21:43:48]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [21:43:48]wFMCommunicate OK [21:43:48]SAM_PROTO_GetShiftState done [21:43:48]FM_GetShiftState done [21:43:48]req_shift_opened done [21:43:48]requested_item shift.open_date is exist - process it [21:43:48]req_shift_open_date [21:43:48]req_shift_open_date done [21:43:48]produce_requested_data done [21:43:48]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115504,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [21:43:48]process_action_free close_receipt [21:43:48]json_value_free [21:43:48]json_value_free done [21:43:48]process_json_proto returns [21:43:48]Send response to host [21:43:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115504,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [21:43:48]free response buf [21:43:48]execute_script done [21:43:48]execute_script returns [21:43:48]free content buf [21:43:48]Sock 9.Close socket [21:43:48]Sock 9.Thread stoped [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:24]accept exits with 8 [21:44:24]New connection [21:44:24]New thread 3066826084 created [21:44:24]Thread 3066682724 joined [21:44:24]Waiting for new connection... [21:44:24] Sock 8.Parse request [21:44:24]Sock 8.Check first char [21:44:24]Sock 8.First char is OK [21:44:24]request: POST /json_proto HTTP/1.0 [21:44:24]Method: POST [21:44:24]URL: /json_proto [21:44:24]Method is POST - this is cgi request [21:44:24]url: /json_proto [21:44:24]query_string will be loaded in cgi processing [21:44:24]execute_cgi json_proto POST (null) [21:44:24]execute_cgi path=json_proto method=POST [21:44:24]POST find Content-Length [21:44:24]Host: 172.17.41.136:8080 [21:44:24]Content-Length: 1313 [21:44:24]Content-Type: application/json [21:44:24] [21:44:24]POST finish read [21:44:24]Found Content-Length = 1313 [21:44:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343934", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235401", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u044B\u0435 350\u0433", "price" : 129.00, "quantity" : 1.000, "sum" : 129.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:24]execute_script... [21:44:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343934", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235401", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u044B\u0435 350\u0433", "price" : 129.00, "quantity" : 1.000, "sum" : 129.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:24]POST & json_proto [21:44:24]process_json_proto [21:44:24]json parsed OK: [21:44:24]protocol is kg_v1.0 [21:44:24]action value=close_receipt [21:44:24]process_action close_receipt [21:44:24]cmd_close_receipt [21:44:24]MH_GetDate [21:44:24]Write to MH i2c: F0 00 00 28 30 47 [21:44:24]Write i2c OK [21:44:24]MH_I2C_Read... [21:44:24]Read from MH i2c: F0 [21:44:24]MH_I2C_Read... [21:44:24]Read from MH i2c: F0 09 00 [21:44:24]MH_I2C_Read... [21:44:24]Read from MH i2c: F0 09 00 28 30 00 BC 8F F0 66 1B D0 5A 64 9A [21:44:24]GetLastDocTimeStamp 1727041427 [21:44:24]current date 1727041468 [21:44:24]FM_GetShiftState [21:44:24]SAM_PROTO_GetShiftState [21:44:24]wFMCommunicate request_size=4 [21:44:24]MH_SAM_APDU [21:44:24]CAPDU: 80 13 01 00 [21:44:24]Write to MH i2c: E2 08 00 29 30 80 13 01 00 00 00 00 00 D6 [21:44:24]Write i2c OK [21:44:24]MH_I2C_Read... [21:44:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:25]Read from MH i2c: E2 [21:44:25]MH_I2C_Read... [21:44:25]Read from MH i2c: E2 0E 00 [21:44:25]MH_I2C_Read... [21:44:25]Read from MH i2c: E2 0E 00 29 30 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 EF [21:44:25]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [21:44:25]wFMCommunicate OK [21:44:25]SAM_PROTO_GetShiftState done [21:44:25]FM_GetShiftState done [21:44:25]opened in 1726965840 [21:44:25]opened+sec_in_day 1727052240 [21:44:25]quantity*price = 4200 [21:44:25]sum+1 = 4201 [21:44:25]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607015235401 Пряники Яшкино шоколадные 350г 1.000 * 129.00 = 129.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 276.00 НСП 1% : 2.44 НДС 12% : 29.31 Наличными: 276.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 223 22.09.2024 21:44 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115505 ФПД: 134065141171767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T214428&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115505&fm=134065141171767&tin=02508201610067®Number=0000000000091831&sum=27600 0 [21:44:26]StoreToDocumentArchive [21:44:26]shift 471 fd 115505 [21:44:26]save to /storage/0471/doc_00115505 [21:44:26]save last doc name /storage/0471/doc_00115505 to /storage/kkm_last_doc_name [21:44:26]save OK [21:44:26]Clear old archive folders... [21:44:26]ProcessDocumentItem done err = 0, tmpTLVsize=539 [21:44:26]tlvbuf is 01CE7650 [21:44:26]SAM_PROTO_ClearQueue [21:44:26]wFMCommunicate request_size=4 [21:44:26]MH_SAM_APDU [21:44:26]CAPDU: 80 09 00 00 [21:44:26]Write to MH i2c: E2 08 00 36 30 80 09 00 00 00 00 00 00 D8 [21:44:26]Write i2c OK [21:44:26]MH_I2C_Read... [21:44:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:44:26]Read from MH i2c: E2 [21:44:26]MH_I2C_Read... [21:44:26]Read from MH i2c: E2 03 00 [21:44:26]MH_I2C_Read... [21:44:26]Read from MH i2c: E2 03 00 36 30 00 90 00 DA [21:44:26]RAPDU: 90 00 [21:44:26]wFMCommunicate OK [21:44:26]SAM_PROTO_ClearQueue done [21:44:26]KKMCreateOFDPacket [21:44:26]OFDProtocolAddRootSTLVToBuf [21:44:26]FM_MakeSignedData [21:44:26]FM_MakeSignedData [21:44:26]SAM_PROTO_SignData [21:44:26]wFMCommunicate request_size=4 [21:44:26]MH_SAM_APDU [21:44:26]CAPDU: 80 0D 01 02 [21:44:26]Write to MH i2c: E2 08 00 37 30 80 0D 01 02 00 00 00 00 E0 [21:44:26]Write i2c OK [21:44:26]MH_I2C_Read... [21:44:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:44:26]Read from MH i2c: E2 [21:44:26]MH_I2C_Read... [21:44:26]Read from MH i2c: E2 03 00 [21:44:26]MH_I2C_Read... [21:44:26]Read from MH i2c: E2 03 00 37 30 00 90 00 DB [21:44:26]RAPDU: 90 00 [21:44:26]wFMCommunicate OK [21:44:26]wFMCommunicate request_size=255 [21:44:26]MH_SAM_APDU [21:44:26]CAPDU: 80 0D 02 02 FA 03 00 1B 02 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [21:44:26]Write to MH i2c: E2 02 01 38 30 80 0D 02 02 FA 00 03 00 1B 02 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 02 [21:44:26]Write i2c OK [21:44:26]MH_I2C_Read... [21:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:26]Read from MH i2c: E2 [21:44:26]MH_I2C_Read... [21:44:26]Read from MH i2c: E2 03 00 [21:44:26]MH_I2C_Read... [21:44:26]Read from MH i2c: E2 03 00 38 30 00 90 00 DC [21:44:26]RAPDU: 90 00 [21:44:26]wFMCommunicate OK [21:44:26]wFMCommunicate request_size=255 [21:44:26]MH_SAM_APDU [21:44:26]CAPDU: 80 0D 02 02 FA 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BC 8F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [21:44:26]Write to MH i2c: E2 02 01 39 30 80 0D 02 02 FA 00 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BC 8F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 C1 [21:44:26]Write i2c OK [21:44:26]MH_I2C_Read... [21:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:27]Read from MH i2c: E2 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 03 00 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 03 00 39 30 00 90 00 DD [21:44:27]RAPDU: 90 00 [21:44:27]wFMCommunicate OK [21:44:27]wFMCommunicate request_size=48 [21:44:27]MH_SAM_APDU [21:44:27]CAPDU: 80 0D 02 02 2B 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 31 C3 01 00 35 04 06 00 79 EE 79 1D C6 37 [21:44:27]Write to MH i2c: E2 33 00 3A 30 80 0D 02 02 2B 00 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 31 C3 01 00 35 04 06 00 79 EE 79 1D C6 37 00 00 C6 [21:44:27]Write i2c OK [21:44:27]MH_I2C_Read... [21:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:27]Read from MH i2c: E2 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 03 00 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 03 00 3A 30 00 90 00 DE [21:44:27]RAPDU: 90 00 [21:44:27]wFMCommunicate OK [21:44:27]wFMCommunicate request_size=4 [21:44:27]MH_SAM_APDU [21:44:27]CAPDU: 80 0D 03 02 [21:44:27]Write to MH i2c: E2 08 00 3B 30 80 0D 03 02 00 00 00 00 E6 [21:44:27]Write i2c OK [21:44:27]MH_I2C_Read... [21:44:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:44:27]Read from MH i2c: E2 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 0B 00 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 0B 00 3B 30 00 30 86 76 B7 90 C4 54 6A 90 00 DC [21:44:27]RAPDU: 30 86 76 B7 90 C4 54 6A 90 00 [21:44:27]wFMCommunicate OK [21:44:27]SAM_PROTO_SignData done [21:44:27]FM_MakeSignedData done [21:44:27]CreateOFDProtocolMessage [21:44:27]wFMCommunicate request_size=4 [21:44:27]MH_SAM_APDU [21:44:27]CAPDU: 80 11 00 00 [21:44:27]Write to MH i2c: E2 08 00 3C 30 80 11 00 00 00 00 00 00 E6 [21:44:27]Write i2c OK [21:44:27]MH_I2C_Read... [21:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:27]Read from MH i2c: E2 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 17 00 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 17 00 3C 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 34 [21:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:44:27]wFMCommunicate OK [21:44:27]CreateOFDProtocolMessage done [21:44:27]OFDSenderStorePacket 115505 [21:44:27]StoreOFDPacket docnum=115505 [21:44:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2F 02 00 00 07 22 27 02 CF A3 5A 03 01 00 03 00 1B 02 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BC 8F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 31 C3 01 00 35 04 06 00 79 EE 79 1D C6 37 30 86 76 B7 90 C4 54 6A [21:44:27]CheckFolder [21:44:27]dirname=/storage/ofd_packets [21:44:27]CheckFolder done [21:44:27]ProducePacketName [21:44:27]name=ofd_packets/00115505 [21:44:27]NVStorageSaveData ofd_packets/00115505 [21:44:27]File name is /storage/ofd_packets/00115505 [21:44:27]Write 589 bytes [21:44:27]NVStorageSaveData done [21:44:27]OFDSenderStorePacket done [21:44:27]KKMCreateOFDPacket done [21:44:27]NVStorageSaveData kkm_last_timestamp [21:44:27]File name is /storage/kkm_last_timestamp [21:44:27]Write 4 bytes [21:44:27]NVStorageSaveData done [21:44:27]ExternCall_PrintAddStr [21:44:27]wPrintStart [21:44:27]Write to MH i2c: 01 00 00 3D 30 6D [21:44:27]Write i2c OK [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: 01 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: 01 07 00 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: 01 07 00 3D 30 00 00 00 00 00 FF 0F 82 [21:44:27]RasterBufferAndPrint [21:44:27]line Счет N : (3)343934 [21:44:27]line ИНН: 02508201610067 [21:44:27]line Контрольно-Кассовый Чек [21:44:27]line ПРОДАЖА [21:44:27]line Товар: 5449000005489 [21:44:27]line Вода Бонаква 1л б/г [21:44:27]line 1.000 * 42.00 [21:44:27]line = 42.00 [21:44:27]line НДС 12% НСП 1% [21:44:27]line > о реализуемом товаре [21:44:27]line Товар: 5449000027474 [21:44:27]line Напиток FuzeTea зел чай манго,ромашка 1л [21:44:27]line 1.000 * 105.00 [21:44:27]line = 105.00 [21:44:27]line НДС 12% НСП 1% [21:44:27]line > о реализуемом товаре [21:44:27]line Товар: 4607015235401 [21:44:27]line Пряники Яшкино шоколадные 350г [21:44:27]line 1.000 * 129.00 [21:44:27]line = 129.00 [21:44:27]line НДС 12% НСП 1% [21:44:27]line > о реализуемом товаре [21:44:27]line ИТОГО: 276.00 [21:44:27]line НСП 1% : 2.44 [21:44:27]line НДС 12% : 29.31 [21:44:27]line Наличными: 276.00 [21:44:27]line Безнал.: 0.00 [21:44:27]line Место: АЗС № 90 "Партнер Нефть" [21:44:27]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [21:44:27]line СНО: Общий режим [21:44:27]line Чек 223 22.09.2024 21:44 [21:44:27]line Смена: 471 ФФД: 1.0 [21:44:27]line ЗНМ: 0300000120 [21:44:27]line РНМ: 0000000000091831 [21:44:27]line Версия ККМ: 001 [21:44:27]line ФМ: 0000000000871830 [21:44:27]line ФД: 115505 [21:44:27]line ФПД: 134065141171767 [21:44:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T214428&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115505&fm=134065141171767&tin=02508201610067®Number=0000000000091831&sum=27600 [21:44:27]OFD Sender: Processing packet 115505 [packets to send 481, broken 480] [21:44:27]ProducePacketName [21:44:27]name=ofd_packets/00115505 [21:44:27]OFD Sender: To server: pG, [21:44:27]CommunicateWithHost lk.salyk.kg:30040 [21:44:27]ConnectInit lk.salyk.kg [21:44:27]line 0 [21:44:27]written 0, free lines is 4095 [21:44:27]Connected sock=10 [21:44:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2F 02 00 00 07 22 27 02 CF A3 5A 03 01 00 03 00 1B 02 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BC 8F F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 31 C3 01 00 35 04 06 00 79 EE 79 1D C6 37 30 86 76 B7 90 C4 54 6A [21:44:28]Write to MH i2c: 01 00 00 72 30 A2 [21:44:28]Write i2c OK [21:44:28]MH_I2C_Read... [21:44:28]Read from MH i2c: 01 [21:44:28]MH_I2C_Read... [21:44:28]Read from MH i2c: 01 07 00 [21:44:28]MH_I2C_Read... [21:44:28]Read from MH i2c: 01 07 00 72 30 00 00 00 00 00 46 0B FA [21:44:28]RasterBufferAndPrint [21:44:28]line [21:44:28]line [21:44:28]line [21:44:28]line [21:44:28]line [21:44:28]written 0, free lines is 2890 [21:44:28]MH_Cut [21:44:28]Write to MH i2c: D1 01 00 79 30 01 7B [21:44:28]Write i2c OK [21:44:28]MH_I2C_Read... [21:44:28]Read from MH i2c: D1 [21:44:28]MH_I2C_Read... [21:44:28]Read from MH i2c: D1 01 00 [21:44:28]MH_I2C_Read... [21:44:28]Read from MH i2c: D1 01 00 79 30 00 7A [21:44:28]Write to MH i2c: 01 00 00 7A 30 AA [21:44:28]Write i2c OK [21:44:28]MH_I2C_Read... [21:44:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D3 B3 47 00 08 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 31 C3 01 00 F4 03 04 00 01 35 F0 66 B6 04 01 00 00 2C 07 9E 00 FB 16 44 45 [21:44:28]CommunicateWithHost err = 0 [21:44:28]CheckOFDResponse [21:44:28]1017 (14) - 77093643461234 [21:44:28]1041 (16) - 0000000000871830 [21:44:28]1040 (4) - 115505 [21:44:28]1012 (4) - 22.09.2024 15:17 [21:44:28]1206 (1) - 0 [21:44:28]OFD Sender: Remove packet 115505 [21:44:28]ProducePacketName [21:44:28]name=ofd_packets/00115505 [21:44:28]NVStorageDeleteData [21:44:28]OFD Sender: No OFD packet to send [21:44:29]*** Cut start [21:44:29]*** Partial cut [21:44:29]*** CUTSNS_PIN = 1 [21:44:29]*** CUTSNS_PIN = 0 [21:44:30]*** Brake cut motor [21:44:30]Read from MH i2c: 01 [21:44:30]MH_I2C_Read... [21:44:30]*** Stop cut motor [21:44:30]*** Cut end [21:44:30]Read from MH i2c: 01 07 00 [21:44:30]MH_I2C_Read... [21:44:30]Read from MH i2c: 01 07 00 7A 30 00 00 00 00 00 FF 0F BF [21:44:30]process_action close_receipt done [21:44:30]requested_data is exist [21:44:30]produce_requested_data [21:44:30]requested_item fm.sn is exist - process it [21:44:30]wFMCommunicate request_size=4 [21:44:30]MH_SAM_APDU [21:44:30]CAPDU: 80 11 00 00 [21:44:30]Write to MH i2c: E2 08 00 7B 30 80 11 00 00 00 00 00 00 25 [21:44:30]Write i2c OK [21:44:30]MH_I2C_Read... [21:44:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:30]Read from MH i2c: E2 [21:44:30]MH_I2C_Read... [21:44:30]Read from MH i2c: E2 17 00 [21:44:30]MH_I2C_Read... [21:44:30]Read from MH i2c: E2 17 00 7B 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 73 [21:44:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:44:30]wFMCommunicate OK [21:44:30]requested_item fd.num is exist - process it [21:44:30]SAM_PROTO_GetFieldsCounters [21:44:30]wFMCommunicate request_size=4 [21:44:30]MH_SAM_APDU [21:44:30]CAPDU: 80 13 00 00 [21:44:30]Write to MH i2c: E2 08 00 7C 30 80 13 00 00 00 00 00 00 28 [21:44:30]Write i2c OK [21:44:30]MH_I2C_Read... [21:44:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:44:30]Read from MH i2c: E2 [21:44:30]MH_I2C_Read... [21:44:30]Read from MH i2c: E2 62 00 [21:44:30]MH_I2C_Read... [21:44:30]Read from MH i2c: E2 62 00 7C 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 31 C3 01 00 0E 04 04 00 D7 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 AB [21:44:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 31 C3 01 00 0E 04 04 00 D7 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 [21:44:30]wFMCommunicate OK [21:44:30]SAM_PROTO_GetFieldsCounters done [21:44:30]requested_item shift.num is exist - process it [21:44:30]requested_item shift.opened is exist - process it [21:44:30]req_shift_opened [21:44:30]FM_GetShiftState [21:44:30]SAM_PROTO_GetShiftState [21:44:30]wFMCommunicate request_size=4 [21:44:30]MH_SAM_APDU [21:44:30]CAPDU: 80 13 01 00 [21:44:30]Write to MH i2c: E2 08 00 7D 30 80 13 01 00 00 00 00 00 2A [21:44:30]Write i2c OK [21:44:30]MH_I2C_Read... [21:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:30]Read from MH i2c: E2 [21:44:30]MH_I2C_Read... [21:44:30]Read from MH i2c: E2 0E 00 [21:44:30]MH_I2C_Read... [21:44:30]Read from MH i2c: E2 0E 00 7D 30 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 43 [21:44:30]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [21:44:30]wFMCommunicate OK [21:44:30]SAM_PROTO_GetShiftState done [21:44:30]FM_GetShiftState done [21:44:30]req_shift_opened done [21:44:30]requested_item shift.open_date is exist - process it [21:44:30]req_shift_open_date [21:44:30]req_shift_open_date done [21:44:30]produce_requested_data done [21:44:30]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115505,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [21:44:30]process_action_free close_receipt [21:44:30]json_value_free [21:44:30]json_value_free done [21:44:30]process_json_proto returns [21:44:30]Send response to host [21:44:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115505,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [21:44:30]free response buf [21:44:30]execute_script done [21:44:30]execute_script returns [21:44:30]free content buf [21:44:30]Sock 8.Close socket [21:44:30]Sock 8.Thread stoped [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]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:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:02]OFD Sender: No OFD packet to send [22:08:07]OFD Sender: No OFD packet to send [22:08:12]OFD Sender: No OFD packet to send [22:08:17]OFD Sender: No OFD packet to send [22:08:22]OFD Sender: No OFD packet to send [22:08:27]OFD Sender: No OFD packet to send [22:08:32]OFD Sender: No OFD packet to send [22:08:37]OFD Sender: No OFD packet to send [22:08:42]OFD Sender: No OFD packet to send [22:08:47]OFD Sender: No OFD packet to send [22:08:52]OFD Sender: No OFD packet to send [22:08:57]OFD Sender: No OFD packet to send [22:09:02]OFD Sender: No OFD packet to send [22:09:07]OFD Sender: No OFD packet to send [22:09:12]OFD Sender: No OFD packet to send [22:09:17]OFD Sender: No OFD packet to send [22:09:22]OFD Sender: No OFD packet to send [22:09:27]OFD Sender: No OFD packet to send [22:09:32]OFD Sender: No OFD packet to send [22:09:37]OFD Sender: No OFD packet to send [22:09:42]OFD Sender: No OFD packet to send [22:09:47]OFD Sender: No OFD packet to send [22:09:52]OFD Sender: No OFD packet to send [22:09:57]OFD Sender: No OFD packet to send [22:10:02]OFD Sender: No OFD packet to send [22:10:07]OFD Sender: No OFD packet to send [22:10:12]OFD Sender: No OFD packet to send [22:10:17]OFD Sender: No OFD packet to send [22:10:22]OFD Sender: No OFD packet to send [22:10:27]OFD Sender: No OFD packet to send [22:10:32]OFD Sender: No OFD packet to send [22:10:37]OFD Sender: No OFD packet to send [22:10:42]OFD Sender: No OFD packet to send [22:10:47]OFD Sender: No OFD packet to send [22:10:52]OFD Sender: No OFD packet to send [22:10:57]OFD Sender: No OFD packet to send [22:11:02]OFD Sender: No OFD packet to send [22:11:07]OFD Sender: No OFD packet to send [22:11:12]OFD Sender: No OFD packet to send [22:11:17]OFD Sender: No OFD packet to send [22:11:22]OFD Sender: No OFD packet to send [22:11:27]OFD Sender: No OFD packet to send [22:11:32]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:57]accept exits with 9 [22:22:57]New connection [22:22:57]New thread 3066682724 created [22:22:57]Thread 3066826084 joined [22:22:57]Waiting for new connection... [22:22:57] Sock 9.Parse request [22:22:57]Sock 9.Check first char [22:22:57]Sock 9.First char is OK [22:22:57]request: POST /json_proto HTTP/1.0 [22:22:57]Method: POST [22:22:57]URL: /json_proto [22:22:57]Method is POST - this is cgi request [22:22:57]url: /json_proto [22:22:57]query_string will be loaded in cgi processing [22:22:57]execute_cgi json_proto POST (null) [22:22:57]execute_cgi path=json_proto method=POST [22:22:57]POST find Content-Length [22:22:57]Host: 172.17.41.136:8080 [22:22:57]Content-Length: 2310 [22:22:57]Content-Type: application/json [22:22:57] [22:22:57]POST finish read [22:22:57]Found Content-Length = 2310 [22:22:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343935", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u04 [22:22:57]execute_script... [22:22:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343935", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u04 [22:22:57]POST & json_proto [22:22:57]process_json_proto [22:22:57]json parse error [22:22:57]process_json_proto returns [22:22:57]execute_script returns [22:22:57]free content buf [22:22:57]Sock 9.Close socket [22:22:57]Sock 9.Thread stoped [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:02]accept exits with 8 [22:24:02]New connection [22:24:02]New thread 3066826084 created [22:24:02]Thread 3066682724 joined [22:24:02]Waiting for new connection... [22:24:02] Sock 8.Parse request [22:24:02]Sock 8.Check first char [22:24:02]Sock 8.First char is OK [22:24:02]request: POST /json_proto HTTP/1.0 [22:24:02]Method: POST [22:24:02]URL: /json_proto [22:24:02]Method is POST - this is cgi request [22:24:02]url: /json_proto [22:24:02]query_string will be loaded in cgi processing [22:24:02]execute_cgi json_proto POST (null) [22:24:02]execute_cgi path=json_proto method=POST [22:24:02]POST find Content-Length [22:24:02]Host: 172.17.41.136:8080 [22:24:02]Content-Length: 215 [22:24:02]Content-Type: application/json [22:24:02] [22:24:02]POST finish read [22:24:02]Found Content-Length = 215 [22:24:02]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" ] } } [22:24:02]execute_script... [22:24:02]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" ] } } [22:24:02]POST & json_proto [22:24:02]process_json_proto [22:24:02]json parsed OK: [22:24:02]protocol is kg_v1.0 [22:24:02]action value=get_value [22:24:02]process_action get_value [22:24:02]cmd_get_value [22:24:02]process_action get_value done [22:24:02]requested_data is exist [22:24:02]produce_requested_data [22:24:02]requested_item kkm.sn is exist - process it [22:24:02]requested_item kkm.ver is exist - process it [22:24:02]requested_item fm.sn is exist - process it [22:24:02]wFMCommunicate request_size=4 [22:24:02]MH_SAM_APDU [22:24:02]CAPDU: 80 11 00 00 [22:24:02]Write to MH i2c: E2 08 00 7E 30 80 11 00 00 00 00 00 00 28 [22:24:02]Write i2c OK [22:24:02]MH_I2C_Read... [22:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:02]Read from MH i2c: E2 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 17 00 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 17 00 7E 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 76 [22:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:24:02]wFMCommunicate OK [22:24:02]requested_item fd.num is exist - process it [22:24:02]SAM_PROTO_GetFieldsCounters [22:24:02]wFMCommunicate request_size=4 [22:24:02]MH_SAM_APDU [22:24:02]CAPDU: 80 13 00 00 [22:24:02]Write to MH i2c: E2 08 00 7F 30 80 13 00 00 00 00 00 00 2B [22:24:02]Write i2c OK [22:24:02]MH_I2C_Read... [22:24:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:02]Read from MH i2c: E2 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 62 00 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 62 00 7F 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 31 C3 01 00 0E 04 04 00 D7 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 AE [22:24:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 31 C3 01 00 0E 04 04 00 D7 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 [22:24:02]wFMCommunicate OK [22:24:02]SAM_PROTO_GetFieldsCounters done [22:24:02]requested_item shift.num is exist - process it [22:24:02]requested_item shift.opened is exist - process it [22:24:02]req_shift_opened [22:24:02]FM_GetShiftState [22:24:02]SAM_PROTO_GetShiftState [22:24:02]wFMCommunicate request_size=4 [22:24:02]MH_SAM_APDU [22:24:02]CAPDU: 80 13 01 00 [22:24:02]Write to MH i2c: E2 08 00 80 30 80 13 01 00 00 00 00 00 2D [22:24:02]Write i2c OK [22:24:02]MH_I2C_Read... [22:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:02]Read from MH i2c: E2 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 0E 00 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 0E 00 80 30 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 46 [22:24:02]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [22:24:02]wFMCommunicate OK [22:24:02]SAM_PROTO_GetShiftState done [22:24:02]FM_GetShiftState done [22:24:02]req_shift_opened done [22:24:02]requested_item shift.open_date is exist - process it [22:24:02]req_shift_open_date [22:24:02]req_shift_open_date done [22:24:02]produce_requested_data done [22:24:02]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115505,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [22:24:02]process_action_free get_value [22:24:02]json_value_free [22:24:02]json_value_free done [22:24:02]process_json_proto returns [22:24:02]Send response to host [22:24:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115505,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [22:24:02]free response buf [22:24:02]execute_script done [22:24:02]execute_script returns [22:24:02]free content buf [22:24:02]Sock 8.Close socket [22:24:02]Sock 8.Thread stoped [22:24:02]accept exits with 9 [22:24:02]New connection [22:24:02]New thread 3066682724 created [22:24:02]Thread 3066826084 joined [22:24:02]Waiting for new connection... [22:24:02] Sock 9.Parse request [22:24:02]Sock 9.Check first char [22:24:02]Sock 9.First char is OK [22:24:02]request: POST /json_proto HTTP/1.0 [22:24:02]Method: POST [22:24:02]URL: /json_proto [22:24:02]Method is POST - this is cgi request [22:24:02]url: /json_proto [22:24:02]query_string will be loaded in cgi processing [22:24:02]execute_cgi json_proto POST (null) [22:24:02]execute_cgi path=json_proto method=POST [22:24:02]POST find Content-Length [22:24:02]Host: 172.17.41.136:8080 [22:24:02]Content-Length: 331 [22:24:02]Content-Type: application/json [22:24:02] [22:24:02]POST finish read [22:24:02]Found Content-Length = 331 [22:24:02]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" ] } } [22:24:02]execute_script... [22:24:03]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" ] } } [22:24:03]POST & json_proto [22:24:03]process_json_proto [22:24:03]json parsed OK: [22:24:03]protocol is kg_v1.0 [22:24:03]action value=get_value [22:24:03]process_action get_value [22:24:03]cmd_get_value [22:24:03]process_action get_value done [22:24:03]requested_data is exist [22:24:03]produce_requested_data [22:24:03]requested_item fm.sale.total is exist - process it [22:24:03]SAM_PROTO_GetFMData [22:24:03]wFMCommunicate request_size=4 [22:24:03]MH_SAM_APDU [22:24:03]CAPDU: 80 13 03 00 [22:24:03]Write to MH i2c: E2 08 00 81 30 80 13 03 00 00 00 00 00 30 [22:24:03]Write i2c OK [22:24:03]MH_I2C_Read... [22:24:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [22:24:03]Read from MH i2c: E2 [22:24:03]MH_I2C_Read... [22:24:03]Read from MH i2c: E2 FD 00 [22:24:03]MH_I2C_Read... [22:24:03]Read from MH i2c: E2 FD 00 81 30 00 C5 04 85 04 C1 04 6E 04 04 00 82 BF 01 00 69 04 A3 00 6F 04 04 00 05 BE 01 00 B1 04 05 00 95 34 E3 80 01 70 04 05 00 99 85 3F 47 01 72 04 04 00 FC AE A3 39 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 90 5F E1 28 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 F8 E6 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 B9 [22:24:03]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 82 BF 01 00 69 04 A3 00 6F 04 04 00 05 BE 01 00 B1 04 05 00 95 34 E3 80 01 70 04 05 00 99 85 3F 47 01 72 04 04 00 FC AE A3 39 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 90 5F E1 28 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 F8 E6 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 [22:24:03]wFMCommunicate OK [22:24:03]wFMCommunicate request_size=4 [22:24:03]MH_SAM_APDU [22:24:03]CAPDU: 80 17 00 00 [22:24:03]Write to MH i2c: E2 08 00 82 30 80 17 00 00 00 00 00 00 32 [22:24:03]Write i2c OK [22:24:03]MH_I2C_Read... [22:24:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:24:03]Read from MH i2c: E2 [22:24:03]MH_I2C_Read... [22:24:03]Read from MH i2c: E2 FD 00 [22:24:03]MH_I2C_Read... [22:24:03]Read from MH i2c: E2 FD 00 82 30 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [22:24:03]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [22:24:03]wFMCommunicate OK [22:24:03]wFMCommunicate request_size=4 [22:24:03]MH_SAM_APDU [22:24:03]CAPDU: 80 17 00 00 [22:24:03]Write to MH i2c: E2 08 00 83 30 80 17 00 00 00 00 00 00 33 [22:24:03]Write i2c OK [22:24:03]MH_I2C_Read... [22:24:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:24:04]Read from MH i2c: E2 [22:24:04]MH_I2C_Read... [22:24:04]Read from MH i2c: E2 FD 00 [22:24:04]MH_I2C_Read... [22:24:04]Read from MH i2c: E2 FD 00 83 30 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 45 [22:24:04]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 [22:24:04]wFMCommunicate OK [22:24:04]wFMCommunicate request_size=4 [22:24:04]MH_SAM_APDU [22:24:04]CAPDU: 80 17 00 00 [22:24:04]Write to MH i2c: E2 08 00 84 30 80 17 00 00 00 00 00 00 34 [22:24:04]Write i2c OK [22:24:04]MH_I2C_Read... [22:24:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:24:04]Read from MH i2c: E2 [22:24:04]MH_I2C_Read... [22:24:04]Read from MH i2c: E2 FD 00 [22:24:04]MH_I2C_Read... [22:24:04]Read from MH i2c: E2 FD 00 84 30 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 C0 [22:24:04]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 [22:24:04]wFMCommunicate OK [22:24:04]wFMCommunicate request_size=4 [22:24:04]MH_SAM_APDU [22:24:04]CAPDU: 80 17 00 00 [22:24:04]Write to MH i2c: E2 08 00 85 30 80 17 00 00 00 00 00 00 35 [22:24:04]Write i2c OK [22:24:04]MH_I2C_Read... [22:24:04]OFD Sender: No OFD packet to send [22:24:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [22:24:04]Read from MH i2c: E2 [22:24:04]MH_I2C_Read... [22:24:04]Read from MH i2c: E2 E2 00 [22:24:04]MH_I2C_Read... [22:24:04]Read from MH i2c: E2 E2 00 85 30 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 13 [22:24:04]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 [22:24:04]wFMCommunicate OK [22:24:04]SAM_PROTO_GetFMData done [22:24:04]requested_item fm.sale_refund.total is exist - process it [22:24:04]requested_item fm.buy.total is exist - process it [22:24:04]requested_item shift.sale.total is exist - process it [22:24:04]SAM_PROTO_GetShiftData [22:24:04]wFMCommunicate request_size=4 [22:24:04]MH_SAM_APDU [22:24:04]CAPDU: 80 13 02 00 [22:24:04]Write to MH i2c: E2 08 00 86 30 80 13 02 00 00 00 00 00 34 [22:24:04]Write i2c OK [22:24:04]MH_I2C_Read... [22:24:05]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [22:24:05]Read from MH i2c: E2 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 FD 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 FD 00 86 30 00 AF 04 AA 04 AB 04 6E 04 04 00 DF 00 00 00 69 04 9C 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 D9 07 75 70 04 03 00 88 BE 54 72 04 03 00 51 49 20 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 C3 6D 0C 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 FB 08 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 AB [22:24:05]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 DF 00 00 00 69 04 9C 00 6F 04 04 00 DF 00 00 00 B1 04 03 00 D9 07 75 70 04 03 00 88 BE 54 72 04 03 00 51 49 20 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 C3 6D 0C 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 FB 08 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [22:24:05]wFMCommunicate OK [22:24:05]wFMCommunicate request_size=4 [22:24:05]MH_SAM_APDU [22:24:05]CAPDU: 80 17 00 00 [22:24:05]Write to MH i2c: E2 08 00 87 30 80 17 00 00 00 00 00 00 37 [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:24:05]Read from MH i2c: E2 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 FD 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 FD 00 87 30 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 50 [22:24:05]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [22:24:05]wFMCommunicate OK [22:24:05]wFMCommunicate request_size=4 [22:24:05]MH_SAM_APDU [22:24:05]CAPDU: 80 17 00 00 [22:24:05]Write to MH i2c: E2 08 00 88 30 80 17 00 00 00 00 00 00 38 [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:24:05]Read from MH i2c: E2 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 FD 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 FD 00 88 30 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 EC [22:24:05]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [22:24:05]wFMCommunicate OK [22:24:05]wFMCommunicate request_size=4 [22:24:05]MH_SAM_APDU [22:24:05]CAPDU: 80 17 00 00 [22:24:05]Write to MH i2c: E2 08 00 89 30 80 17 00 00 00 00 00 00 39 [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:24:05]Read from MH i2c: E2 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 FD 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 FD 00 89 30 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 B7 [22:24:05]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [22:24:05]wFMCommunicate OK [22:24:05]wFMCommunicate request_size=4 [22:24:05]MH_SAM_APDU [22:24:05]CAPDU: 80 17 00 00 [22:24:05]Write to MH i2c: E2 08 00 8A 30 80 17 00 00 00 00 00 00 3A [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [22:24:06]Read from MH i2c: E2 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: E2 CC 00 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: E2 CC 00 8A 30 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1B [22:24:06]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [22:24:06]wFMCommunicate OK [22:24:06]SAM_PROTO_GetShiftData done [22:24:06]requested_item shift.sale.total_cash is exist - process it [22:24:06]requested_item shift.sale_refund.total is exist - process it [22:24:06]requested_item shift.sale_refund.total_cash is exist - process it [22:24:06]requested_item shift.buy.total is exist - process it [22:24:06]requested_item shift.buy.total_cash is exist - process it [22:24:06]produce_requested_data done [22:24:06]produce_requested_data return {"fm.sale.total":64573410.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":76697.21,"shift.sale.total_cash":55538.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} [22:24:06]process_action_free get_value [22:24:06]json_value_free [22:24:06]json_value_free done [22:24:06]process_json_proto returns [22:24:06]Send response to host [22:24:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64573410.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":76697.21,"shift.sale.total_cash":55538.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}}} [22:24:06]free response buf [22:24:06]execute_script done [22:24:06]execute_script returns [22:24:06]free content buf [22:24:06]Sock 9.Close socket [22:24:06]Sock 9.Thread stoped [22:24:08]accept exits with 8 [22:24:08]New connection [22:24:08]New thread 3066826084 created [22:24:08]Thread 3066682724 joined [22:24:08]Waiting for new connection... [22:24:08] Sock 8.Parse request [22:24:08]Sock 8.Check first char [22:24:08]Sock 8.First char is OK [22:24:08]request: POST /json_proto HTTP/1.0 [22:24:08]Method: POST [22:24:08]URL: /json_proto [22:24:08]Method is POST - this is cgi request [22:24:08]url: /json_proto [22:24:08]query_string will be loaded in cgi processing [22:24:08]execute_cgi json_proto POST (null) [22:24:08]execute_cgi path=json_proto method=POST [22:24:08]POST find Content-Length [22:24:08]Host: 172.17.41.136:8080 [22:24:08]Content-Length: 2310 [22:24:08]Content-Type: application/json [22:24:08] [22:24:08]POST finish read [22:24:08]Found Content-Length = 2310 [22:24:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343935", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1025.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:08]execute_script... [22:24:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343935", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1025.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:08]POST & json_proto [22:24:08]process_json_proto [22:24:08]json parsed OK: [22:24:08]protocol is kg_v1.0 [22:24:08]action value=close_receipt [22:24:08]process_action close_receipt [22:24:08]cmd_close_receipt [22:24:08]MH_GetDate [22:24:08]Write to MH i2c: F0 00 00 8B 30 AA [22:24:08]Write i2c OK [22:24:08]MH_I2C_Read... [22:24:08]Read from MH i2c: F0 [22:24:08]MH_I2C_Read... [22:24:08]Read from MH i2c: F0 09 00 [22:24:08]MH_I2C_Read... [22:24:08]Read from MH i2c: F0 09 00 8B 30 00 0C 99 F0 66 1B D0 5A 64 57 [22:24:08]GetLastDocTimeStamp 1727041468 [22:24:08]current date 1727043852 [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 8C 30 80 13 01 00 00 00 00 00 39 [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 8C 30 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 52 [22:24:08]RAPDU: 09 00 01 50 68 EF 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]opened in 1726965840 [22:24:08]opened+sec_in_day 1727052240 [22:24:08]quantity*price = 21000 [22:24:08]sum+1 = 21001 [22:24:08]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 2.000 * 125.00 = 250.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 47011656 Водка Пшеничная 0,1л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202522671 Garden напиток со вкусом граната 1,20 ПЭ 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1025.00 НСП 1% : 9.06 НДС 12% : 108.84 Наличными: 1025.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 224 22.09.2024 22:24 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115506 ФПД: 53598326221241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T222412&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115506&fm=53598326221241&tin=02508201610067®Number=0000000000091831&sum=102500 0 [22:24:10]StoreToDocumentArchive [22:24:10]shift 471 fd 115506 [22:24:10]save to /storage/0471/doc_00115506 [22:24:10]save last doc name /storage/0471/doc_00115506 to /storage/kkm_last_doc_name [22:24:10]save OK [22:24:10]Clear old archive folders... [22:24:10]ProcessDocumentItem done err = 0, tmpTLVsize=959 [22:24:10]tlvbuf is 01C89EC0 [22:24:10]SAM_PROTO_ClearQueue [22:24:10]wFMCommunicate request_size=4 [22:24:10]MH_SAM_APDU [22:24:10]CAPDU: 80 09 00 00 [22:24:10]Write to MH i2c: E2 08 00 99 30 80 09 00 00 00 00 00 00 3B [22:24:10]Write i2c OK [22:24:10]MH_I2C_Read... [22:24:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:10]Read from MH i2c: E2 [22:24:10]MH_I2C_Read... [22:24:10]Read from MH i2c: E2 03 00 [22:24:10]MH_I2C_Read... [22:24:10]Read from MH i2c: E2 03 00 99 30 00 90 00 3D [22:24:10]RAPDU: 90 00 [22:24:10]wFMCommunicate OK [22:24:10]SAM_PROTO_ClearQueue done [22:24:10]KKMCreateOFDPacket [22:24:10]OFDProtocolAddRootSTLVToBuf [22:24:10]FM_MakeSignedData [22:24:10]FM_MakeSignedData [22:24:10]SAM_PROTO_SignData [22:24:10]wFMCommunicate request_size=4 [22:24:10]MH_SAM_APDU [22:24:10]CAPDU: 80 0D 01 02 [22:24:10]Write to MH i2c: E2 08 00 9A 30 80 0D 01 02 00 00 00 00 43 [22:24:10]Write i2c OK [22:24:10]MH_I2C_Read... [22:24:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:10]Read from MH i2c: E2 [22:24:10]MH_I2C_Read... [22:24:10]Read from MH i2c: E2 03 00 [22:24:10]MH_I2C_Read... [22:24:10]Read from MH i2c: E2 03 00 9A 30 00 90 00 3E [22:24:10]RAPDU: 90 00 [22:24:10]wFMCommunicate OK [22:24:10]wFMCommunicate request_size=255 [22:24:10]MH_SAM_APDU [22:24:10]CAPDU: 80 0D 02 02 FA 03 00 BF 03 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 [22:24:10]Write to MH i2c: E2 02 01 9B 30 80 0D 02 02 FA 00 03 00 BF 03 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 00 00 8A [22:24:10]Write i2c OK [22:24:10]MH_I2C_Read... [22:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:10]Read from MH i2c: E2 [22:24:10]MH_I2C_Read... [22:24:10]Read from MH i2c: E2 03 00 [22:24:10]MH_I2C_Read... [22:24:10]Read from MH i2c: E2 03 00 9B 30 00 90 00 3F [22:24:10]RAPDU: 90 00 [22:24:10]wFMCommunicate OK [22:24:10]wFMCommunicate request_size=255 [22:24:10]MH_SAM_APDU [22:24:10]CAPDU: 80 0D 02 02 FA 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 [22:24:10]Write to MH i2c: E2 02 01 9C 30 80 0D 02 02 FA 00 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 00 00 EE [22:24:11]Write i2c OK [22:24:11]MH_I2C_Read... [22:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:11]Read from MH i2c: E2 [22:24:11]MH_I2C_Read... [22:24:11]Read from MH i2c: E2 03 00 [22:24:11]MH_I2C_Read... [22:24:11]Read from MH i2c: E2 03 00 9C 30 00 90 00 40 [22:24:11]RAPDU: 90 00 [22:24:11]wFMCommunicate OK [22:24:11]wFMCommunicate request_size=255 [22:24:11]MH_SAM_APDU [22:24:11]CAPDU: 80 0D 02 02 FA B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 [22:24:11]Write to MH i2c: E2 02 01 9D 30 80 0D 02 02 FA 00 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 00 00 E2 [22:24:11]Write i2c OK [22:24:11]MH_I2C_Read... [22:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:11]Read from MH i2c: E2 [22:24:11]MH_I2C_Read... [22:24:11]Read from MH i2c: E2 03 00 [22:24:11]MH_I2C_Read... [22:24:11]Read from MH i2c: E2 03 00 9D 30 00 90 00 41 [22:24:11]RAPDU: 90 00 [22:24:11]wFMCommunicate OK [22:24:11]wFMCommunicate request_size=218 [22:24:11]MH_SAM_APDU [22:24:11]CAPDU: 80 0D 02 02 D5 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 90 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 2A 00 00 00 00 07 04 06 00 64 90 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 0C 99 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 32 C3 01 00 35 04 06 00 30 BF 55 31 E9 B9 [22:24:11]Write to MH i2c: E2 DD 00 9E 30 80 0D 02 02 D5 00 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 90 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 2A 00 00 00 00 07 04 06 00 64 90 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 0C 99 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 32 C3 01 00 35 04 06 00 30 BF 55 31 E9 B9 00 00 0C [22:24:11]Write i2c OK [22:24:11]MH_I2C_Read... [22:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:11]Read from MH i2c: E2 [22:24:11]MH_I2C_Read... [22:24:11]Read from MH i2c: E2 03 00 [22:24:11]MH_I2C_Read... [22:24:11]Read from MH i2c: E2 03 00 9E 30 00 90 00 42 [22:24:11]RAPDU: 90 00 [22:24:11]wFMCommunicate OK [22:24:11]wFMCommunicate request_size=4 [22:24:11]MH_SAM_APDU [22:24:11]CAPDU: 80 0D 03 02 [22:24:11]Write to MH i2c: E2 08 00 9F 30 80 0D 03 02 00 00 00 00 4A [22:24:11]Write i2c OK [22:24:11]MH_I2C_Read... [22:24:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:11]Read from MH i2c: E2 [22:24:11]MH_I2C_Read... [22:24:11]Read from MH i2c: E2 0B 00 [22:24:11]MH_I2C_Read... [22:24:11]Read from MH i2c: E2 0B 00 9F 30 00 79 F0 7F B3 F7 76 67 38 90 00 F2 [22:24:12]RAPDU: 79 F0 7F B3 F7 76 67 38 90 00 [22:24:12]wFMCommunicate OK [22:24:12]SAM_PROTO_SignData done [22:24:12]FM_MakeSignedData done [22:24:12]CreateOFDProtocolMessage [22:24:12]wFMCommunicate request_size=4 [22:24:12]MH_SAM_APDU [22:24:12]CAPDU: 80 11 00 00 [22:24:12]Write to MH i2c: E2 08 00 A0 30 80 11 00 00 00 00 00 00 4A [22:24:12]Write i2c OK [22:24:12]MH_I2C_Read... [22:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:12]Read from MH i2c: E2 [22:24:12]MH_I2C_Read... [22:24:12]Read from MH i2c: E2 17 00 [22:24:12]MH_I2C_Read... [22:24:12]Read from MH i2c: E2 17 00 A0 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 98 [22:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:24:12]wFMCommunicate OK [22:24:12]CreateOFDProtocolMessage done [22:24:12]OFDSenderStorePacket 115506 [22:24:12]StoreOFDPacket docnum=115506 [22:24:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 D3 03 00 00 F7 E0 CB 03 05 C0 5A 03 01 00 03 00 BF 03 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 90 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 2A 00 00 00 00 07 04 06 00 64 90 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 0C 99 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 32 C3 01 00 35 04 06 00 30 BF 55 31 E9 B9 79 F0 7F B3 F7 76 67 38 [22:24:12]CheckFolder [22:24:12]dirname=/storage/ofd_packets [22:24:12]CheckFolder done [22:24:12]ProducePacketName [22:24:12]name=ofd_packets/00115506 [22:24:12]NVStorageSaveData ofd_packets/00115506 [22:24:12]File name is /storage/ofd_packets/00115506 [22:24:12]Write 1009 bytes [22:24:12]NVStorageSaveData done [22:24:12]OFDSenderStorePacket done [22:24:12]KKMCreateOFDPacket done [22:24:12]NVStorageSaveData kkm_last_timestamp [22:24:12]File name is /storage/kkm_last_timestamp [22:24:12]Write 4 bytes [22:24:12]NVStorageSaveData done [22:24:12]ExternCall_PrintAddStr [22:24:12]wPrintStart [22:24:12]Write to MH i2c: 01 00 00 A1 30 D1 [22:24:12]Write i2c OK [22:24:12]MH_I2C_Read... [22:24:12]Read from MH i2c: 01 [22:24:12]MH_I2C_Read... [22:24:12]Read from MH i2c: 01 07 00 [22:24:12]MH_I2C_Read... [22:24:12]Read from MH i2c: 01 07 00 A1 30 00 00 00 00 00 FF 0F E6 [22:24:12]RasterBufferAndPrint [22:24:12]line Счет N : (3)343935 [22:24:12]line ИНН: 02508201610067 [22:24:12]line Контрольно-Кассовый Чек [22:24:12]line ПРОДАЖА [22:24:12]line Товар: 2000034730018 [22:24:12]line Кофе Американо (GABB TRADE) [22:24:12]line 2.000 * 105.00 [22:24:12]line = 210.00 [22:24:12]line НДС 12% НСП 1% [22:24:12]line > о реализуемом товаре [22:24:12]line Товар: 2000036190018 [22:24:12]line Кофе Американо XL(GABB TRADE) [22:24:12]line 2.000 * 125.00 [22:24:12]line = 250.00 [22:24:12]line НДС 12% НСП 1% [22:24:12]line > о реализуемом товаре [22:24:12]line Товар: 2000036220012 [22:24:12]line Кофе Капучино XL(GABB TRADE) [22:24:12]line 2.000 * 130.00 [22:24:12]line = 260.00 [22:24:12]line НДС 12% НСП 1% [22:24:12]line > о реализуемом товаре [22:24:12]line Товар: 47011656 [22:24:12]line Водка Пшеничная 0,1л [22:24:12]line 1.000 * 65.00 [22:24:12]line = 65.00 [22:24:12]line НДС 12% НСП 1% [22:24:12]line > о реализуемом товаре [22:24:12]line Товар: 4700040114137 [22:24:12]line Султан чай 1л. зел лимон [22:24:12]line 1.000 * 65.00 [22:24:12]line = 65.00 [22:24:12]line НДС 12% НСП 1% [22:24:12]line > о реализуемом товаре [22:24:12]line Товар: 4870202522671 [22:24:12]line Garden напиток со вкусом граната 1,20 ПЭ [22:24:12]line 1.000 * 125.00 [22:24:12]line = 125.00 [22:24:12]line НДС 12% НСП 1% [22:24:12]line > о реализуемом товаре [22:24:12]line Товар: 4700000160358 [22:24:12]line Вода Легенда 1л [22:24:12]line 1.000 * 50.00 [22:24:12]line = 50.00 [22:24:12]line НДС 12% НСП 1% [22:24:12]line > о реализуемом товаре [22:24:12]line ИТОГО: 1025.00 [22:24:12]line НСП 1% : 9.06 [22:24:12]line НДС 12% : 108.84 [22:24:12]line Наличными: 1025.00 [22:24:12]line Безнал.: 0.00 [22:24:12]line Место: АЗС № 90 "Партнер Нефть" [22:24:12]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:24:12]line СНО: Общий режим [22:24:12]line Чек 224 22.09.2024 22:24 [22:24:12]line Смена: 471 ФФД: 1.0 [22:24:12]line ЗНМ: 0300000120 [22:24:12]line РНМ: 0000000000091831 [22:24:12]line Версия ККМ: 001 [22:24:12]line ФМ: 0000000000871830 [22:24:12]line ФД: 115506 [22:24:12]line ФПД: 53598326221241 [22:24:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T222412&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115506&fm=53598326221241&tin=02508201610067®Number=0000000000091831&sum=102500 [22:24:12]line 0 [22:24:12]OFD Sender: Processing packet 115506 [packets to send 481, broken 480] [22:24:12]ProducePacketName [22:24:12]name=ofd_packets/00115506 [22:24:12]OFD Sender: To server: pG, [22:24:12]CommunicateWithHost lk.salyk.kg:30040 [22:24:12]ConnectInit lk.salyk.kg [22:24:12]written 0, free lines is 4095 [22:24:12]Connected sock=10 [22:24:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 D3 03 00 00 F7 E0 CB 03 05 C0 5A 03 01 00 03 00 BF 03 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 90 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 2A 00 00 00 00 07 04 06 00 64 90 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 0C 99 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 32 C3 01 00 35 04 06 00 30 BF 55 31 E9 B9 79 F0 7F B3 F7 76 67 38 [22:24:13]Write to MH i2c: 01 00 00 F0 30 20 [22:24:13]Write i2c OK [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: 01 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: 01 07 00 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: 01 07 00 F0 30 00 00 00 00 00 13 09 43 [22:24:13]RasterBufferAndPrint [22:24:13]line [22:24:13]line [22:24:13]line [22:24:13]line [22:24:13]line [22:24:13]written 0, free lines is 2332 [22:24:13]MH_Cut [22:24:13]Write to MH i2c: D1 01 00 F7 30 01 F9 [22:24:13]Write i2c OK [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: D1 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: D1 01 00 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: D1 01 00 F7 30 00 F8 [22:24:13]Write to MH i2c: 01 00 00 F8 30 28 [22:24:13]Write i2c OK [22:24:13]MH_I2C_Read... [22:24:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6C 53 47 00 F4 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 31 38 33 30 10 04 04 00 32 C3 01 00 F4 03 04 00 52 3E F0 66 B6 04 01 00 00 50 0A F4 87 67 50 0C CC [22:24:13]CommunicateWithHost err = 0 [22:24:13]CheckOFDResponse [22:24:13]1017 (14) - 77093643461234 [22:24:13]1041 (16) - 0000000000871830 [22:24:13]1040 (4) - 115506 [22:24:13]1012 (4) - 22.09.2024 15:57 [22:24:13]1206 (1) - 0 [22:24:13]OFD Sender: Remove packet 115506 [22:24:13]ProducePacketName [22:24:13]name=ofd_packets/00115506 [22:24:13]NVStorageDeleteData [22:24:13]OFD Sender: No OFD packet to send [22:24:15]*** Cut start [22:24:15]*** Partial cut [22:24:15]*** CUTSNS_PIN = 1 [22:24:15]*** CUTSNS_PIN = 0 [22:24:15]*** Brake cut motor [22:24:16]Read from MH i2c: 01 [22:24:16]MH_I2C_Read... [22:24:16]*** Stop cut motor [22:24:16]*** Cut end [22:24:16]Read from MH i2c: 01 07 00 [22:24:16]MH_I2C_Read... [22:24:16]Read from MH i2c: 01 07 00 F8 30 00 00 00 00 00 FF 0F 3D [22:24:16]process_action close_receipt done [22:24:16]requested_data is exist [22:24:16]produce_requested_data [22:24:16]requested_item fm.sn is exist - process it [22:24:16]wFMCommunicate request_size=4 [22:24:16]MH_SAM_APDU [22:24:16]CAPDU: 80 11 00 00 [22:24:16]Write to MH i2c: E2 08 00 F9 30 80 11 00 00 00 00 00 00 A3 [22:24:16]Write i2c OK [22:24:16]MH_I2C_Read... [22:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:16]Read from MH i2c: E2 [22:24:16]MH_I2C_Read... [22:24:16]Read from MH i2c: E2 17 00 [22:24:16]MH_I2C_Read... [22:24:16]Read from MH i2c: E2 17 00 F9 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F1 [22:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:24:16]wFMCommunicate OK [22:24:16]requested_item fd.num is exist - process it [22:24:16]SAM_PROTO_GetFieldsCounters [22:24:16]wFMCommunicate request_size=4 [22:24:16]MH_SAM_APDU [22:24:16]CAPDU: 80 13 00 00 [22:24:16]Write to MH i2c: E2 08 00 FA 30 80 13 00 00 00 00 00 00 A6 [22:24:16]Write i2c OK [22:24:16]MH_I2C_Read... [22:24:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:16]Read from MH i2c: E2 [22:24:16]MH_I2C_Read... [22:24:16]Read from MH i2c: E2 62 00 [22:24:16]MH_I2C_Read... [22:24:16]Read from MH i2c: E2 62 00 FA 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 32 C3 01 00 0E 04 04 00 D7 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 2D [22:24:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 32 C3 01 00 0E 04 04 00 D7 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 [22:24:16]wFMCommunicate OK [22:24:16]SAM_PROTO_GetFieldsCounters done [22:24:16]requested_item shift.num is exist - process it [22:24:16]requested_item shift.opened is exist - process it [22:24:16]req_shift_opened [22:24:16]FM_GetShiftState [22:24:16]SAM_PROTO_GetShiftState [22:24:16]wFMCommunicate request_size=4 [22:24:16]MH_SAM_APDU [22:24:16]CAPDU: 80 13 01 00 [22:24:16]Write to MH i2c: E2 08 00 FB 30 80 13 01 00 00 00 00 00 A8 [22:24:16]Write i2c OK [22:24:16]MH_I2C_Read... [22:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:16]Read from MH i2c: E2 [22:24:16]MH_I2C_Read... [22:24:16]Read from MH i2c: E2 0E 00 [22:24:16]MH_I2C_Read... [22:24:16]Read from MH i2c: E2 0E 00 FB 30 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C1 [22:24:16]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [22:24:16]wFMCommunicate OK [22:24:16]SAM_PROTO_GetShiftState done [22:24:16]FM_GetShiftState done [22:24:16]req_shift_opened done [22:24:16]requested_item shift.open_date is exist - process it [22:24:16]req_shift_open_date [22:24:16]req_shift_open_date done [22:24:16]produce_requested_data done [22:24:16]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115506,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [22:24:16]process_action_free close_receipt [22:24:16]json_value_free [22:24:16]json_value_free done [22:24:16]process_json_proto returns [22:24:16]Send response to host [22:24:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115506,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [22:24:16]free response buf [22:24:16]execute_script done [22:24:16]execute_script returns [22:24:16]free content buf [22:24:16]Sock 8.Close socket [22:24:16]Sock 8.Thread stoped [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:54]accept exits with 9 [22:33:54]New connection [22:33:54]New thread 3066682724 created [22:33:54]Thread 3066826084 joined [22:33:54]Waiting for new connection... [22:33:54] Sock 9.Parse request [22:33:54]Sock 9.Check first char [22:33:54]Sock 9.First char is OK [22:33:54]request: POST /json_proto HTTP/1.0 [22:33:54]Method: POST [22:33:54]URL: /json_proto [22:33:54]Method is POST - this is cgi request [22:33:54]url: /json_proto [22:33:54]query_string will be loaded in cgi processing [22:33:54]execute_cgi json_proto POST (null) [22:33:54]execute_cgi path=json_proto method=POST [22:33:54]POST find Content-Length [22:33:54]Host: 172.17.41.136:8080 [22:33:54]Content-Length: 644 [22:33:54]Content-Type: application/json [22:33:54] [22:33:54]POST finish read [22:33:54]Found Content-Length = 644 [22:33:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343936", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:54]execute_script... [22:33:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343936", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:54]POST & json_proto [22:33:54]process_json_proto [22:33:54]json parsed OK: [22:33:54]protocol is kg_v1.0 [22:33:54]action value=close_receipt [22:33:54]process_action close_receipt [22:33:54]cmd_close_receipt [22:33:54]MH_GetDate [22:33:54]Write to MH i2c: F0 00 00 FC 30 1B [22:33:54]Write i2c OK [22:33:54]MH_I2C_Read... [22:33:54]Read from MH i2c: F0 [22:33:54]MH_I2C_Read... [22:33:54]Read from MH i2c: F0 09 00 [22:33:54]MH_I2C_Read... [22:33:54]Read from MH i2c: F0 09 00 FC 30 00 55 9B F0 66 1B D0 5A 64 13 [22:33:54]GetLastDocTimeStamp 1727043852 [22:33:54]current date 1727044437 [22:33:54]FM_GetShiftState [22:33:54]SAM_PROTO_GetShiftState [22:33:54]wFMCommunicate request_size=4 [22:33:54]MH_SAM_APDU [22:33:54]CAPDU: 80 13 01 00 [22:33:54]Write to MH i2c: E2 08 00 FD 30 80 13 01 00 00 00 00 00 AA [22:33:54]Write i2c OK [22:33:54]MH_I2C_Read... [22:33:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:54]Read from MH i2c: E2 [22:33:54]MH_I2C_Read... [22:33:54]Read from MH i2c: E2 0E 00 [22:33:54]MH_I2C_Read... [22:33:54]Read from MH i2c: E2 0E 00 FD 30 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 C3 [22:33:54]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [22:33:54]wFMCommunicate OK [22:33:54]SAM_PROTO_GetShiftState done [22:33:54]FM_GetShiftState done [22:33:54]opened in 1726965840 [22:33:54]opened+sec_in_day 1727052240 [22:33:54]quantity*price = 3500 [22:33:54]sum+1 = 3501 [22:33:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 225 22.09.2024 22:33 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115507 ФПД: 238976344379421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T223357&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115507&fm=238976344379421&tin=02508201610067®Number=0000000000091831&sum=3500 0 [22:33:55]StoreToDocumentArchive [22:33:55]shift 471 fd 115507 [22:33:55]save to /storage/0471/doc_00115507 [22:33:55]save last doc name /storage/0471/doc_00115507 to /storage/kkm_last_doc_name [22:33:55]save OK [22:33:55]Clear old archive folders... [22:33:55]ProcessDocumentItem done err = 0, tmpTLVsize=275 [22:33:55]tlvbuf is 01C98820 [22:33:55]SAM_PROTO_ClearQueue [22:33:55]wFMCommunicate request_size=4 [22:33:55]MH_SAM_APDU [22:33:55]CAPDU: 80 09 00 00 [22:33:55]Write to MH i2c: E2 08 00 0A 31 80 09 00 00 00 00 00 00 AD [22:33:55]Write i2c OK [22:33:55]MH_I2C_Read... [22:33:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:55]Read from MH i2c: E2 [22:33:55]MH_I2C_Read... [22:33:55]Read from MH i2c: E2 03 00 [22:33:55]MH_I2C_Read... [22:33:55]Read from MH i2c: E2 03 00 0A 31 00 90 00 AF [22:33:55]RAPDU: 90 00 [22:33:55]wFMCommunicate OK [22:33:55]SAM_PROTO_ClearQueue done [22:33:55]KKMCreateOFDPacket [22:33:55]OFDProtocolAddRootSTLVToBuf [22:33:55]FM_MakeSignedData [22:33:55]FM_MakeSignedData [22:33:55]SAM_PROTO_SignData [22:33:55]wFMCommunicate request_size=4 [22:33:55]MH_SAM_APDU [22:33:55]CAPDU: 80 0D 01 02 [22:33:55]Write to MH i2c: E2 08 00 0B 31 80 0D 01 02 00 00 00 00 B5 [22:33:55]Write i2c OK [22:33:55]MH_I2C_Read... [22:33:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:55]Read from MH i2c: E2 [22:33:55]MH_I2C_Read... [22:33:55]Read from MH i2c: E2 03 00 [22:33:55]MH_I2C_Read... [22:33:55]Read from MH i2c: E2 03 00 0B 31 00 90 00 B0 [22:33:55]RAPDU: 90 00 [22:33:55]wFMCommunicate OK [22:33:55]wFMCommunicate request_size=255 [22:33:55]MH_SAM_APDU [22:33:55]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 55 9B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 [22:33:55]Write to MH i2c: E2 02 01 0C 31 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 55 9B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 00 00 99 [22:33:55]Write i2c OK [22:33:55]MH_I2C_Read... [22:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:55]Read from MH i2c: E2 [22:33:55]MH_I2C_Read... [22:33:55]Read from MH i2c: E2 03 00 [22:33:55]MH_I2C_Read... [22:33:55]Read from MH i2c: E2 03 00 0C 31 00 90 00 B1 [22:33:55]RAPDU: 90 00 [22:33:55]wFMCommunicate OK [22:33:55]wFMCommunicate request_size=34 [22:33:55]MH_SAM_APDU [22:33:55]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 33 C3 01 00 35 04 06 00 D9 59 04 1D D0 1D [22:33:55]Write to MH i2c: E2 25 00 0D 31 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 33 C3 01 00 35 04 06 00 D9 59 04 1D D0 1D 00 00 AB [22:33:55]Write i2c OK [22:33:55]MH_I2C_Read... [22:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:55]Read from MH i2c: E2 [22:33:55]MH_I2C_Read... [22:33:55]Read from MH i2c: E2 03 00 [22:33:55]MH_I2C_Read... [22:33:55]Read from MH i2c: E2 03 00 0D 31 00 90 00 B2 [22:33:55]RAPDU: 90 00 [22:33:55]wFMCommunicate OK [22:33:55]wFMCommunicate request_size=4 [22:33:55]MH_SAM_APDU [22:33:55]CAPDU: 80 0D 03 02 [22:33:55]Write to MH i2c: E2 08 00 0E 31 80 0D 03 02 00 00 00 00 BA [22:33:55]Write i2c OK [22:33:55]MH_I2C_Read... [22:33:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:55]Read from MH i2c: E2 [22:33:55]MH_I2C_Read... [22:33:55]Read from MH i2c: E2 0B 00 [22:33:55]MH_I2C_Read... [22:33:55]Read from MH i2c: E2 0B 00 0E 31 00 61 1B 5E 60 22 A5 F9 AE 90 00 63 [22:33:55]RAPDU: 61 1B 5E 60 22 A5 F9 AE 90 00 [22:33:55]wFMCommunicate OK [22:33:55]SAM_PROTO_SignData done [22:33:55]FM_MakeSignedData done [22:33:55]CreateOFDProtocolMessage [22:33:55]wFMCommunicate request_size=4 [22:33:55]MH_SAM_APDU [22:33:55]CAPDU: 80 11 00 00 [22:33:55]Write to MH i2c: E2 08 00 0F 31 80 11 00 00 00 00 00 00 BA [22:33:55]Write i2c OK [22:33:55]MH_I2C_Read... [22:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:55]Read from MH i2c: E2 [22:33:55]MH_I2C_Read... [22:33:55]Read from MH i2c: E2 17 00 [22:33:55]MH_I2C_Read... [22:33:55]Read from MH i2c: E2 17 00 0F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 08 [22:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:33:55]wFMCommunicate OK [22:33:55]CreateOFDProtocolMessage done [22:33:55]OFDSenderStorePacket 115507 [22:33:55]StoreOFDPacket docnum=115507 [22:33:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 CB 1C 1F 01 EA 87 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 55 9B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 33 C3 01 00 35 04 06 00 D9 59 04 1D D0 1D 61 1B 5E 60 22 A5 F9 AE [22:33:55]CheckFolder [22:33:55]dirname=/storage/ofd_packets [22:33:55]CheckFolder done [22:33:55]ProducePacketName [22:33:55]name=ofd_packets/00115507 [22:33:55]NVStorageSaveData ofd_packets/00115507 [22:33:55]File name is /storage/ofd_packets/00115507 [22:33:55]Write 325 bytes [22:33:55]NVStorageSaveData done [22:33:55]OFDSenderStorePacket done [22:33:55]KKMCreateOFDPacket done [22:33:55]NVStorageSaveData kkm_last_timestamp [22:33:55]File name is /storage/kkm_last_timestamp [22:33:55]Write 4 bytes [22:33:55]NVStorageSaveData done [22:33:55]ExternCall_PrintAddStr [22:33:55]wPrintStart [22:33:55]Write to MH i2c: 01 00 00 10 31 41 [22:33:55]Write i2c OK [22:33:55]MH_I2C_Read... [22:33:55]Read from MH i2c: 01 [22:33:55]MH_I2C_Read... [22:33:55]Read from MH i2c: 01 07 00 [22:33:55]MH_I2C_Read... [22:33:55]Read from MH i2c: 01 07 00 10 31 00 00 00 00 00 FF 0F 56 [22:33:55]RasterBufferAndPrint [22:33:55]line Счет N : (3)343936 [22:33:55]line ИНН: 02508201610067 [22:33:55]line Контрольно-Кассовый Чек [22:33:55]line ПРОДАЖА [22:33:55]line Товар: 4700000310326 [22:33:55]line Вода Адыгене 1л б/г [22:33:55]line 1.000 * 35.00 [22:33:55]line = 35.00 [22:33:55]line НДС 12% НСП 1% [22:33:55]line > о реализуемом товаре [22:33:55]line ИТОГО: 35.00 [22:33:55]line НСП 1% : 0.31 [22:33:55]line НДС 12% : 3.72 [22:33:55]line Наличными: 35.00 [22:33:55]line Безнал.: 0.00 [22:33:55]line Место: АЗС № 90 "Партнер Нефть" [22:33:55]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:33:55]line СНО: Общий режим [22:33:55]line Чек 225 22.09.2024 22:33 [22:33:55]line Смена: 471 ФФД: 1.0 [22:33:55]line ЗНМ: 0300000120 [22:33:55]line РНМ: 0000000000091831 [22:33:55]line Версия ККМ: 001 [22:33:55]line ФМ: 0000000000871830 [22:33:55]line ФД: 115507 [22:33:55]line ФПД: 238976344379421 [22:33:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T223357&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115507&fm=238976344379421&tin=02508201610067®Number=0000000000091831&sum=3500 [22:33:56]line 0 [22:33:56]OFD Sender: Processing packet 115507 [packets to send 481, broken 480] [22:33:56]ProducePacketName [22:33:56]name=ofd_packets/00115507 [22:33:56]OFD Sender: To server: pG, [22:33:56]CommunicateWithHost lk.salyk.kg:30040 [22:33:56]ConnectInit lk.salyk.kg [22:33:56]written 0, free lines is 4095 [22:33:56]Connected sock=8 [22:33:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 CB 1C 1F 01 EA 87 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 55 9B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 33 C3 01 00 35 04 06 00 D9 59 04 1D D0 1D 61 1B 5E 60 22 A5 F9 AE [22:33:56]Write to MH i2c: 01 00 00 37 31 68 [22:33:56]Write i2c OK [22:33:56]MH_I2C_Read... [22:33:56]Read from MH i2c: 01 [22:33:56]MH_I2C_Read... [22:33:56]Read from MH i2c: 01 07 00 [22:33:56]MH_I2C_Read... [22:33:56]Read from MH i2c: 01 07 00 37 31 00 00 00 00 00 7C 0C F7 [22:33:56]RasterBufferAndPrint [22:33:56]line [22:33:56]line [22:33:56]line [22:33:56]line [22:33:56]line [22:33:56]written 0, free lines is 3201 [22:33:56]MH_Cut [22:33:56]Write to MH i2c: D1 01 00 3E 31 01 41 [22:33:56]Write i2c OK [22:33:56]MH_I2C_Read... [22:33:56]Read from MH i2c: D1 [22:33:56]MH_I2C_Read... [22:33:56]Read from MH i2c: D1 01 00 [22:33:56]MH_I2C_Read... [22:33:56]Read from MH i2c: D1 01 00 3E 31 00 40 [22:33:56]Write to MH i2c: 01 00 00 3F 31 70 [22:33:56]Write i2c OK [22:33:56]MH_I2C_Read... [22:33:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 23 2F 47 00 57 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 31 38 33 30 10 04 04 00 33 C3 01 00 F4 03 04 00 9A 40 F0 66 B6 04 01 00 00 65 DC 81 6F 31 6C B4 15 [22:33:56]CommunicateWithHost err = 0 [22:33:56]CheckOFDResponse [22:33:56]1017 (14) - 77093643461234 [22:33:56]1041 (16) - 0000000000871830 [22:33:56]1040 (4) - 115507 [22:33:56]1012 (4) - 22.09.2024 16:06 [22:33:56]1206 (1) - 0 [22:33:56]OFD Sender: Remove packet 115507 [22:33:56]ProducePacketName [22:33:56]name=ofd_packets/00115507 [22:33:56]NVStorageDeleteData [22:33:57]OFD Sender: No OFD packet to send [22:33:57]*** Cut start [22:33:57]*** Partial cut [22:33:57]*** CUTSNS_PIN = 1 [22:33:57]*** CUTSNS_PIN = 0 [22:33:58]*** Brake cut motor [22:33:58]Read from MH i2c: 01 [22:33:58]MH_I2C_Read... [22:33:58]*** Stop cut motor [22:33:58]*** Cut end [22:33:58]Read from MH i2c: 01 07 00 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: 01 07 00 3F 31 00 00 00 00 00 FF 0F 85 [22:33:58]process_action close_receipt done [22:33:58]requested_data is exist [22:33:58]produce_requested_data [22:33:58]requested_item fm.sn is exist - process it [22:33:58]wFMCommunicate request_size=4 [22:33:58]MH_SAM_APDU [22:33:58]CAPDU: 80 11 00 00 [22:33:58]Write to MH i2c: E2 08 00 40 31 80 11 00 00 00 00 00 00 EB [22:33:58]Write i2c OK [22:33:58]MH_I2C_Read... [22:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:58]Read from MH i2c: E2 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 17 00 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 17 00 40 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 39 [22:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:33:58]wFMCommunicate OK [22:33:58]requested_item fd.num is exist - process it [22:33:58]SAM_PROTO_GetFieldsCounters [22:33:58]wFMCommunicate request_size=4 [22:33:58]MH_SAM_APDU [22:33:58]CAPDU: 80 13 00 00 [22:33:58]Write to MH i2c: E2 08 00 41 31 80 13 00 00 00 00 00 00 EE [22:33:58]Write i2c OK [22:33:58]MH_I2C_Read... [22:33:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:58]Read from MH i2c: E2 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 62 00 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 62 00 41 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 33 C3 01 00 0E 04 04 00 D7 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 79 [22:33:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 33 C3 01 00 0E 04 04 00 D7 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 [22:33:58]wFMCommunicate OK [22:33:58]SAM_PROTO_GetFieldsCounters done [22:33:58]requested_item shift.num is exist - process it [22:33:58]requested_item shift.opened is exist - process it [22:33:58]req_shift_opened [22:33:58]FM_GetShiftState [22:33:58]SAM_PROTO_GetShiftState [22:33:58]wFMCommunicate request_size=4 [22:33:58]MH_SAM_APDU [22:33:58]CAPDU: 80 13 01 00 [22:33:58]Write to MH i2c: E2 08 00 42 31 80 13 01 00 00 00 00 00 F0 [22:33:58]Write i2c OK [22:33:58]MH_I2C_Read... [22:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:58]Read from MH i2c: E2 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 0E 00 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 0E 00 42 31 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 09 [22:33:58]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [22:33:58]wFMCommunicate OK [22:33:58]SAM_PROTO_GetShiftState done [22:33:58]FM_GetShiftState done [22:33:58]req_shift_opened done [22:33:58]requested_item shift.open_date is exist - process it [22:33:58]req_shift_open_date [22:33:58]req_shift_open_date done [22:33:58]produce_requested_data done [22:33:58]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115507,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [22:33:58]process_action_free close_receipt [22:33:58]json_value_free [22:33:58]json_value_free done [22:33:58]process_json_proto returns [22:33:58]Send response to host [22:33:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115507,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [22:33:58]free response buf [22:33:58]execute_script done [22:33:58]execute_script returns [22:33:58]free content buf [22:33:58]Sock 9.Close socket [22:33:58]Sock 9.Thread stoped [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:04]accept exits with 10 [22:35:04]New connection [22:35:04]New thread 3066826084 created [22:35:04]Thread 3066682724 joined [22:35:04]Waiting for new connection... [22:35:04] Sock 10.Parse request [22:35:04]Sock 10.Check first char [22:35:04]Sock 10.First char is OK [22:35:04]request: POST /json_proto HTTP/1.0 [22:35:04]Method: POST [22:35:04]URL: /json_proto [22:35:04]Method is POST - this is cgi request [22:35:04]url: /json_proto [22:35:04]query_string will be loaded in cgi processing [22:35:04]execute_cgi json_proto POST (null) [22:35:04]execute_cgi path=json_proto method=POST [22:35:04]POST find Content-Length [22:35:04]Host: 172.17.41.136:8080 [22:35:04]Content-Length: 1720 [22:35:04]Content-Type: application/json [22:35:04] [22:35:04]POST finish read [22:35:04]Found Content-Length = 1720 [22:35:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343937", "tax_sys" : 0, "items" : [ { "code": "4870235681369", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u042B\u0420 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4601025117542", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0442\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 0,5", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 2.000, "sum" : 186.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" : 654.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:04]execute_script... [22:35:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343937", "tax_sys" : 0, "items" : [ { "code": "4870235681369", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u042B\u0420 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4601025117542", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0442\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 0,5", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 2.000, "sum" : 186.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" : 654.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:04]POST & json_proto [22:35:04]process_json_proto [22:35:04]json parsed OK: [22:35:04]protocol is kg_v1.0 [22:35:04]action value=close_receipt [22:35:04]process_action close_receipt [22:35:04]cmd_close_receipt [22:35:04]MH_GetDate [22:35:04]Write to MH i2c: F0 00 00 43 31 63 [22:35:04]Write i2c OK [22:35:04]MH_I2C_Read... [22:35:04]Read from MH i2c: F0 [22:35:04]MH_I2C_Read... [22:35:04]Read from MH i2c: F0 09 00 [22:35:04]MH_I2C_Read... [22:35:04]Read from MH i2c: F0 09 00 43 31 00 9C 9B F0 66 1B D0 5A 64 A2 [22:35:04]GetLastDocTimeStamp 1727044437 [22:35:04]current date 1727044508 [22:35:04]FM_GetShiftState [22:35:04]SAM_PROTO_GetShiftState [22:35:04]wFMCommunicate request_size=4 [22:35:04]MH_SAM_APDU [22:35:04]CAPDU: 80 13 01 00 [22:35:04]Write to MH i2c: E2 08 00 44 31 80 13 01 00 00 00 00 00 F2 [22:35:04]Write i2c OK [22:35:04]MH_I2C_Read... [22:35:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:04]Read from MH i2c: E2 [22:35:04]MH_I2C_Read... [22:35:04]Read from MH i2c: E2 0E 00 [22:35:04]MH_I2C_Read... [22:35:04]Read from MH i2c: E2 0E 00 44 31 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 0B [22:35:04]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [22:35:04]wFMCommunicate OK [22:35:04]SAM_PROTO_GetShiftState done [22:35:04]FM_GetShiftState done [22:35:04]opened in 1726965840 [22:35:04]opened+sec_in_day 1727052240 [22:35:04]quantity*price = 9500 [22:35:04]sum+1 = 9501 [22:35:04]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 2.000 * 144.00 = 288.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4601025117542 Напиток Фрутмотив тропический микс 0,5 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4603290004879 Печ.сах.FORSITE Сэнд.кокос.вк 2.000 * 93.00 = 186.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 654.00 НСП 1% : 5.79 НДС 12% : 69.45 Наличными: 0.00 Безнал.: 654.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 226 22.09.2024 22:35 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115508 ФПД: 172115709255114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T223508&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115508&fm=172115709255114&tin=02508201610067®Number=0000000000091831&sum=65400 0 [22:35:06]StoreToDocumentArchive [22:35:06]shift 471 fd 115508 [22:35:06]save to /storage/0471/doc_00115508 [22:35:06]save last doc name /storage/0471/doc_00115508 to /storage/kkm_last_doc_name [22:35:06]save OK [22:35:06]Clear old archive folders... [22:35:06]ProcessDocumentItem done err = 0, tmpTLVsize=650 [22:35:06]tlvbuf is 01BF4400 [22:35:06]SAM_PROTO_ClearQueue [22:35:06]wFMCommunicate request_size=4 [22:35:06]MH_SAM_APDU [22:35:06]CAPDU: 80 09 00 00 [22:35:06]Write to MH i2c: E2 08 00 51 31 80 09 00 00 00 00 00 00 F4 [22:35:06]Write i2c OK [22:35:06]MH_I2C_Read... [22:35:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:35:06]Read from MH i2c: E2 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 03 00 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 03 00 51 31 00 90 00 F6 [22:35:06]RAPDU: 90 00 [22:35:06]wFMCommunicate OK [22:35:06]SAM_PROTO_ClearQueue done [22:35:06]KKMCreateOFDPacket [22:35:06]OFDProtocolAddRootSTLVToBuf [22:35:06]FM_MakeSignedData [22:35:06]FM_MakeSignedData [22:35:06]SAM_PROTO_SignData [22:35:06]wFMCommunicate request_size=4 [22:35:06]MH_SAM_APDU [22:35:06]CAPDU: 80 0D 01 02 [22:35:06]Write to MH i2c: E2 08 00 52 31 80 0D 01 02 00 00 00 00 FC [22:35:06]Write i2c OK [22:35:06]MH_I2C_Read... [22:35:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:35:06]Read from MH i2c: E2 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 03 00 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 03 00 52 31 00 90 00 F7 [22:35:06]RAPDU: 90 00 [22:35:06]wFMCommunicate OK [22:35:06]wFMCommunicate request_size=255 [22:35:06]MH_SAM_APDU [22:35:06]CAPDU: 80 0D 02 02 FA 03 00 8A 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 [22:35:06]Write to MH i2c: E2 02 01 53 31 80 0D 02 02 FA 00 03 00 8A 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 00 00 EE [22:35:06]Write i2c OK [22:35:06]MH_I2C_Read... [22:35:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:06]Read from MH i2c: E2 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 03 00 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 03 00 53 31 00 90 00 F8 [22:35:06]RAPDU: 90 00 [22:35:06]wFMCommunicate OK [22:35:06]wFMCommunicate request_size=255 [22:35:06]MH_SAM_APDU [22:35:06]CAPDU: 80 0D 02 02 FA 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 A8 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 FF 00 00 00 00 EB [22:35:06]Write to MH i2c: E2 02 01 54 31 80 0D 02 02 FA 00 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 A8 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 FF 00 00 00 00 EB 00 00 3A [22:35:06]Write i2c OK [22:35:06]MH_I2C_Read... [22:35:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:06]Read from MH i2c: E2 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 03 00 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 03 00 54 31 00 90 00 F9 [22:35:06]RAPDU: 90 00 [22:35:06]wFMCommunicate OK [22:35:06]wFMCommunicate request_size=159 [22:35:06]MH_SAM_APDU [22:35:06]CAPDU: 80 0D 02 02 9A 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 FF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 9C 9B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 34 C3 01 00 35 04 06 00 9C 89 CF B5 DD CA [22:35:06]Write to MH i2c: E2 A2 00 55 31 80 0D 02 02 9A 00 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 FF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 9C 9B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 34 C3 01 00 35 04 06 00 9C 89 CF B5 DD CA 00 00 05 [22:35:06]Write i2c OK [22:35:06]MH_I2C_Read... [22:35:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:06]Read from MH i2c: E2 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 03 00 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 03 00 55 31 00 90 00 FA [22:35:06]RAPDU: 90 00 [22:35:06]wFMCommunicate OK [22:35:06]wFMCommunicate request_size=4 [22:35:06]MH_SAM_APDU [22:35:06]CAPDU: 80 0D 03 02 [22:35:06]Write to MH i2c: E2 08 00 56 31 80 0D 03 02 00 00 00 00 02 [22:35:06]Write i2c OK [22:35:06]MH_I2C_Read... [22:35:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:35:06]Read from MH i2c: E2 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 0B 00 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 0B 00 56 31 00 26 49 CC 5C 18 06 F3 77 90 00 22 [22:35:06]RAPDU: 26 49 CC 5C 18 06 F3 77 90 00 [22:35:06]wFMCommunicate OK [22:35:06]SAM_PROTO_SignData done [22:35:06]FM_MakeSignedData done [22:35:06]CreateOFDProtocolMessage [22:35:06]wFMCommunicate request_size=4 [22:35:06]MH_SAM_APDU [22:35:06]CAPDU: 80 11 00 00 [22:35:06]Write to MH i2c: E2 08 00 57 31 80 11 00 00 00 00 00 00 02 [22:35:06]Write i2c OK [22:35:06]MH_I2C_Read... [22:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:06]Read from MH i2c: E2 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 17 00 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 17 00 57 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 50 [22:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:35:06]wFMCommunicate OK [22:35:06]CreateOFDProtocolMessage done [22:35:06]OFDSenderStorePacket 115508 [22:35:06]StoreOFDPacket docnum=115508 [22:35:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9E 02 00 00 87 15 96 02 C3 27 5A 03 01 00 03 00 8A 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 A8 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 FF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 9C 9B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 34 C3 01 00 35 04 06 00 9C 89 CF B5 DD CA 26 49 CC 5C 18 06 F3 77 [22:35:06]CheckFolder [22:35:06]dirname=/storage/ofd_packets [22:35:06]CheckFolder done [22:35:06]ProducePacketName [22:35:06]name=ofd_packets/00115508 [22:35:06]NVStorageSaveData ofd_packets/00115508 [22:35:06]File name is /storage/ofd_packets/00115508 [22:35:06]Write 700 bytes [22:35:06]NVStorageSaveData done [22:35:06]OFDSenderStorePacket done [22:35:06]KKMCreateOFDPacket done [22:35:06]NVStorageSaveData kkm_last_timestamp [22:35:06]File name is /storage/kkm_last_timestamp [22:35:06]Write 4 bytes [22:35:06]NVStorageSaveData done [22:35:06]ExternCall_PrintAddStr [22:35:06]wPrintStart [22:35:06]Write to MH i2c: 01 00 00 58 31 89 [22:35:06]Write i2c OK [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: 01 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: 01 07 00 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: 01 07 00 58 31 00 00 00 00 00 FF 0F 9E [22:35:06]RasterBufferAndPrint [22:35:06]line Счет N : (3)343937 [22:35:06]line ИНН: 02508201610067 [22:35:06]line Контрольно-Кассовый Чек [22:35:06]line ПРОДАЖА [22:35:06]line Товар: 4870235681369 [22:35:07]line ЧИПСЫ SLANG СО ВКУСОМ СЫР 60Г [22:35:07]line 1.000 * 95.00 [22:35:07]line = 95.00 [22:35:07]line НДС 12% НСП 1% [22:35:07]line > о реализуемом товаре [22:35:07]line Товар: 48743570 [22:35:07]line Сигареты Winston XStyle Blue [22:35:07]line 2.000 * 144.00 [22:35:07]line = 288.00 [22:35:07]line НДС 12% НСП 1% [22:35:07]line > о реализуемом товаре [22:35:07]line Товар: 4601025117542 [22:35:07]line Напиток Фрутмотив тропический микс 0,5 [22:35:07]line 1.000 * 85.00 [22:35:07]line = 85.00 [22:35:07]line НДС 12% НСП 1% [22:35:07]line > о реализуемом товаре [22:35:07]line Товар: 4603290004879 [22:35:07]line Печ.сах.FORSITE Сэнд.кокос.вк [22:35:07]line 2.000 * 93.00 [22:35:07]line = 186.00 [22:35:07]line НДС 12% НСП 1% [22:35:07]line > о реализуемом товаре [22:35:07]line ИТОГО: 654.00 [22:35:07]line НСП 1% : 5.79 [22:35:07]line НДС 12% : 69.45 [22:35:07]line Наличными: 0.00 [22:35:07]line Безнал.: 654.00 [22:35:07]line Место: АЗС № 90 "Партнер Нефть" [22:35:07]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:35:07]line СНО: Общий режим [22:35:07]line Чек 226 22.09.2024 22:35 [22:35:07]line Смена: 471 ФФД: 1.0 [22:35:07]line ЗНМ: 0300000120 [22:35:07]line РНМ: 0000000000091831 [22:35:07]line Версия ККМ: 001 [22:35:07]line Платежная система: O! деньги [22:35:07]line ФМ: 0000000000871830 [22:35:07]line ФД: 115508 [22:35:07]line ФПД: 172115709255114 [22:35:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T223508&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115508&fm=172115709255114&tin=02508201610067®Number=0000000000091831&sum=65400 [22:35:07]line 0 [22:35:07]OFD Sender: Processing packet 115508 [packets to send 481, broken 480] [22:35:07]ProducePacketName [22:35:07]name=ofd_packets/00115508 [22:35:07]OFD Sender: To server: pG, [22:35:07]CommunicateWithHost lk.salyk.kg:30040 [22:35:07]ConnectInit lk.salyk.kg [22:35:07]written 0, free lines is 4095 [22:35:07]Connected sock=9 [22:35:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9E 02 00 00 87 15 96 02 C3 27 5A 03 01 00 03 00 8A 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 A8 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 FF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 9C 9B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 34 C3 01 00 35 04 06 00 9C 89 CF B5 DD CA 26 49 CC 5C 18 06 F3 77 [22:35:07]Write to MH i2c: 01 00 00 95 31 C6 [22:35:07]Write i2c OK [22:35:07]MH_I2C_Read... [22:35:07]Read from MH i2c: 01 [22:35:07]MH_I2C_Read... [22:35:07]Read from MH i2c: 01 07 00 [22:35:07]MH_I2C_Read... [22:35:07]Read from MH i2c: 01 07 00 95 31 00 00 00 00 00 9A 0A 71 [22:35:07]RasterBufferAndPrint [22:35:07]line [22:35:07]line [22:35:07]line [22:35:07]line [22:35:07]line [22:35:07]written 0, free lines is 2717 [22:35:07]MH_Cut [22:35:07]Write to MH i2c: D1 01 00 9C 31 01 9F [22:35:07]Write i2c OK [22:35:07]MH_I2C_Read... [22:35:07]Read from MH i2c: D1 [22:35:07]MH_I2C_Read... [22:35:07]Read from MH i2c: D1 01 00 [22:35:07]MH_I2C_Read... [22:35:07]Read from MH i2c: D1 01 00 9C 31 00 9E [22:35:07]Write to MH i2c: 01 00 00 9D 31 CE [22:35:07]Write i2c OK [22:35:07]MH_I2C_Read... [22:35:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 91 6E 47 00 24 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 34 C3 01 00 F4 03 04 00 E1 40 F0 66 B6 04 01 00 00 52 A1 DF B2 61 98 C0 2D [22:35:08]CommunicateWithHost err = 0 [22:35:08]CheckOFDResponse [22:35:08]1017 (14) - 77093643461234 [22:35:08]1041 (16) - 0000000000871830 [22:35:08]1040 (4) - 115508 [22:35:08]1012 (4) - 22.09.2024 16:08 [22:35:08]1206 (1) - 0 [22:35:08]OFD Sender: Remove packet 115508 [22:35:08]ProducePacketName [22:35:08]name=ofd_packets/00115508 [22:35:08]NVStorageDeleteData [22:35:08]OFD Sender: No OFD packet to send [22:35:09]*** Cut start [22:35:09]*** Partial cut [22:35:09]*** CUTSNS_PIN = 1 [22:35:09]*** CUTSNS_PIN = 0 [22:35:10]*** Brake cut motor [22:35:10]Read from MH i2c: 01 [22:35:10]MH_I2C_Read... [22:35:10]*** Stop cut motor [22:35:10]*** Cut end [22:35:10]Read from MH i2c: 01 07 00 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: 01 07 00 9D 31 00 00 00 00 00 FF 0F E3 [22:35:10]process_action close_receipt done [22:35:10]requested_data is exist [22:35:10]produce_requested_data [22:35:10]requested_item fm.sn is exist - process it [22:35:10]wFMCommunicate request_size=4 [22:35:10]MH_SAM_APDU [22:35:10]CAPDU: 80 11 00 00 [22:35:10]Write to MH i2c: E2 08 00 9E 31 80 11 00 00 00 00 00 00 49 [22:35:10]Write i2c OK [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: E2 [22:35:10]MH_I2C_Read... [22:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:10]Read from MH i2c: E2 17 00 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: E2 17 00 9E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 97 [22:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:35:10]wFMCommunicate OK [22:35:10]requested_item fd.num is exist - process it [22:35:10]SAM_PROTO_GetFieldsCounters [22:35:10]wFMCommunicate request_size=4 [22:35:10]MH_SAM_APDU [22:35:10]CAPDU: 80 13 00 00 [22:35:10]Write to MH i2c: E2 08 00 9F 31 80 13 00 00 00 00 00 00 4C [22:35:10]Write i2c OK [22:35:10]MH_I2C_Read... [22:35:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:10]Read from MH i2c: E2 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: E2 62 00 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: E2 62 00 9F 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 34 C3 01 00 0E 04 04 00 D7 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 DB [22:35:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 34 C3 01 00 0E 04 04 00 D7 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 [22:35:10]wFMCommunicate OK [22:35:10]SAM_PROTO_GetFieldsCounters done [22:35:10]requested_item shift.num is exist - process it [22:35:10]requested_item shift.opened is exist - process it [22:35:10]req_shift_opened [22:35:10]FM_GetShiftState [22:35:10]SAM_PROTO_GetShiftState [22:35:10]wFMCommunicate request_size=4 [22:35:10]MH_SAM_APDU [22:35:10]CAPDU: 80 13 01 00 [22:35:10]Write to MH i2c: E2 08 00 A0 31 80 13 01 00 00 00 00 00 4E [22:35:10]Write i2c OK [22:35:10]MH_I2C_Read... [22:35:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:10]Read from MH i2c: E2 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: E2 0E 00 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: E2 0E 00 A0 31 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 67 [22:35:10]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [22:35:10]wFMCommunicate OK [22:35:10]SAM_PROTO_GetShiftState done [22:35:10]FM_GetShiftState done [22:35:10]req_shift_opened done [22:35:10]requested_item shift.open_date is exist - process it [22:35:10]req_shift_open_date [22:35:10]req_shift_open_date done [22:35:10]produce_requested_data done [22:35:10]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115508,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [22:35:10]process_action_free close_receipt [22:35:10]json_value_free [22:35:10]json_value_free done [22:35:10]process_json_proto returns [22:35:10]Send response to host [22:35:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115508,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [22:35:10]free response buf [22:35:10]execute_script done [22:35:10]execute_script returns [22:35:10]free content buf [22:35:10]Sock 10.Close socket [22:35:10]Sock 10.Thread stoped [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:23]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:51]accept exits with 8 [22:35:51]New connection [22:35:51]New thread 3066682724 created [22:35:51]Thread 3066826084 joined [22:35:51]Waiting for new connection... [22:35:51] Sock 8.Parse request [22:35:51]Sock 8.Check first char [22:35:51]Sock 8.First char is OK [22:35:51]request: POST /json_proto HTTP/1.0 [22:35:51]Method: POST [22:35:51]URL: /json_proto [22:35:51]Method is POST - this is cgi request [22:35:51]url: /json_proto [22:35:51]query_string will be loaded in cgi processing [22:35:51]execute_cgi json_proto POST (null) [22:35:51]execute_cgi path=json_proto method=POST [22:35:51]POST find Content-Length [22:35:51]Host: 172.17.41.136:8080 [22:35:51]Content-Length: 687 [22:35:51]Content-Type: application/json [22:35:51] [22:35:51]POST finish read [22:35:51]Found Content-Length = 687 [22:35:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343938", "tax_sys" : 0, "items" : [ { "code": "4700003010483", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:51]execute_script... [22:35:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343938", "tax_sys" : 0, "items" : [ { "code": "4700003010483", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:51]POST & json_proto [22:35:51]process_json_proto [22:35:51]json parsed OK: [22:35:51]protocol is kg_v1.0 [22:35:51]action value=close_receipt [22:35:51]process_action close_receipt [22:35:51]cmd_close_receipt [22:35:51]MH_GetDate [22:35:51]Write to MH i2c: F0 00 00 A1 31 C1 [22:35:51]Write i2c OK [22:35:51]MH_I2C_Read... [22:35:51]Read from MH i2c: F0 [22:35:51]MH_I2C_Read... [22:35:51]Read from MH i2c: F0 09 00 [22:35:51]MH_I2C_Read... [22:35:51]Read from MH i2c: F0 09 00 A1 31 00 CA 9B F0 66 1B D0 5A 64 2E [22:35:51]GetLastDocTimeStamp 1727044508 [22:35:51]current date 1727044554 [22:35:51]FM_GetShiftState [22:35:51]SAM_PROTO_GetShiftState [22:35:51]wFMCommunicate request_size=4 [22:35:51]MH_SAM_APDU [22:35:51]CAPDU: 80 13 01 00 [22:35:51]Write to MH i2c: E2 08 00 A2 31 80 13 01 00 00 00 00 00 50 [22:35:51]Write i2c OK [22:35:51]MH_I2C_Read... [22:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:51]Read from MH i2c: E2 [22:35:51]MH_I2C_Read... [22:35:51]Read from MH i2c: E2 0E 00 [22:35:51]MH_I2C_Read... [22:35:51]Read from MH i2c: E2 0E 00 A2 31 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 69 [22:35:51]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [22:35:51]wFMCommunicate OK [22:35:51]SAM_PROTO_GetShiftState done [22:35:51]FM_GetShiftState done [22:35:51]opened in 1726965840 [22:35:51]opened+sec_in_day 1727052240 [22:35:51]quantity*price = 4000 [22:35:51]sum+1 = 4001 [22:35:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 227 22.09.2024 22:35 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115509 ФПД: 183260856854358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T223554&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115509&fm=183260856854358&tin=02508201610067®Number=0000000000091831&sum=4000 0 [22:35:52]StoreToDocumentArchive [22:35:52]shift 471 fd 115509 [22:35:52]save to /storage/0471/doc_00115509 [22:35:52]save last doc name /storage/0471/doc_00115509 to /storage/kkm_last_doc_name [22:35:52]save OK [22:35:52]Clear old archive folders... [22:35:52]ProcessDocumentItem done err = 0, tmpTLVsize=298 [22:35:52]tlvbuf is B6D89980 [22:35:52]SAM_PROTO_ClearQueue [22:35:52]wFMCommunicate request_size=4 [22:35:52]MH_SAM_APDU [22:35:52]CAPDU: 80 09 00 00 [22:35:52]Write to MH i2c: E2 08 00 AF 31 80 09 00 00 00 00 00 00 52 [22:35:52]Write i2c OK [22:35:52]MH_I2C_Read... [22:35:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:35:52]Read from MH i2c: E2 [22:35:52]MH_I2C_Read... [22:35:52]Read from MH i2c: E2 03 00 [22:35:52]MH_I2C_Read... [22:35:52]Read from MH i2c: E2 03 00 AF 31 00 90 00 54 [22:35:52]RAPDU: 90 00 [22:35:52]wFMCommunicate OK [22:35:52]SAM_PROTO_ClearQueue done [22:35:52]KKMCreateOFDPacket [22:35:52]OFDProtocolAddRootSTLVToBuf [22:35:52]FM_MakeSignedData [22:35:52]FM_MakeSignedData [22:35:52]SAM_PROTO_SignData [22:35:52]wFMCommunicate request_size=4 [22:35:52]MH_SAM_APDU [22:35:52]CAPDU: 80 0D 01 02 [22:35:52]Write to MH i2c: E2 08 00 B0 31 80 0D 01 02 00 00 00 00 5A [22:35:52]Write i2c OK [22:35:52]MH_I2C_Read... [22:35:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:35:52]Read from MH i2c: E2 [22:35:52]MH_I2C_Read... [22:35:52]Read from MH i2c: E2 03 00 [22:35:52]MH_I2C_Read... [22:35:52]Read from MH i2c: E2 03 00 B0 31 00 90 00 55 [22:35:52]RAPDU: 90 00 [22:35:52]wFMCommunicate OK [22:35:52]wFMCommunicate request_size=255 [22:35:52]MH_SAM_APDU [22:35:52]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CA 9B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [22:35:52]Write to MH i2c: E2 02 01 B1 31 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CA 9B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 04 [22:35:52]Write i2c OK [22:35:52]MH_I2C_Read... [22:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:52]Read from MH i2c: E2 [22:35:52]MH_I2C_Read... [22:35:52]Read from MH i2c: E2 03 00 [22:35:52]MH_I2C_Read... [22:35:52]Read from MH i2c: E2 03 00 B1 31 00 90 00 56 [22:35:52]RAPDU: 90 00 [22:35:52]wFMCommunicate OK [22:35:52]wFMCommunicate request_size=57 [22:35:52]MH_SAM_APDU [22:35:52]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 35 C3 01 00 35 04 06 00 A6 AC BE 46 27 56 [22:35:52]Write to MH i2c: E2 3C 00 B2 31 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 35 C3 01 00 35 04 06 00 A6 AC BE 46 27 56 00 00 DE [22:35:52]Write i2c OK [22:35:52]MH_I2C_Read... [22:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:53]Read from MH i2c: E2 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: E2 03 00 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: E2 03 00 B2 31 00 90 00 57 [22:35:53]RAPDU: 90 00 [22:35:53]wFMCommunicate OK [22:35:53]wFMCommunicate request_size=4 [22:35:53]MH_SAM_APDU [22:35:53]CAPDU: 80 0D 03 02 [22:35:53]Write to MH i2c: E2 08 00 B3 31 80 0D 03 02 00 00 00 00 5F [22:35:53]Write i2c OK [22:35:53]MH_I2C_Read... [22:35:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:35:53]Read from MH i2c: E2 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: E2 0B 00 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: E2 0B 00 B3 31 00 81 4D 3C 65 38 B9 9E EF 90 00 4D [22:35:53]RAPDU: 81 4D 3C 65 38 B9 9E EF 90 00 [22:35:53]wFMCommunicate OK [22:35:53]SAM_PROTO_SignData done [22:35:53]FM_MakeSignedData done [22:35:53]CreateOFDProtocolMessage [22:35:53]wFMCommunicate request_size=4 [22:35:53]MH_SAM_APDU [22:35:53]CAPDU: 80 11 00 00 [22:35:53]Write to MH i2c: E2 08 00 B4 31 80 11 00 00 00 00 00 00 5F [22:35:53]Write i2c OK [22:35:53]MH_I2C_Read... [22:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:53]Read from MH i2c: E2 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: E2 17 00 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: E2 17 00 B4 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AD [22:35:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:35:53]wFMCommunicate OK [22:35:53]CreateOFDProtocolMessage done [22:35:53]OFDSenderStorePacket 115509 [22:35:53]StoreOFDPacket docnum=115509 [22:35:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3E 01 00 00 97 39 36 01 4E A3 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CA 9B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 35 C3 01 00 35 04 06 00 A6 AC BE 46 27 56 81 4D 3C 65 38 B9 9E EF [22:35:53]CheckFolder [22:35:53]dirname=/storage/ofd_packets [22:35:53]CheckFolder done [22:35:53]ProducePacketName [22:35:53]name=ofd_packets/00115509 [22:35:53]NVStorageSaveData ofd_packets/00115509 [22:35:53]File name is /storage/ofd_packets/00115509 [22:35:53]Write 348 bytes [22:35:53]NVStorageSaveData done [22:35:53]OFDSenderStorePacket done [22:35:53]KKMCreateOFDPacket done [22:35:53]NVStorageSaveData kkm_last_timestamp [22:35:53]File name is /storage/kkm_last_timestamp [22:35:53]Write 4 bytes [22:35:53]NVStorageSaveData done [22:35:53]ExternCall_PrintAddStr [22:35:53]wPrintStart [22:35:53]Write to MH i2c: 01 00 00 B5 31 E6 [22:35:53]OFD Sender: Processing packet 115509 [packets to send 481, broken 480] [22:35:53]ProducePacketName [22:35:53]name=ofd_packets/00115509 [22:35:53]OFD Sender: To server: pG, [22:35:53]CommunicateWithHost lk.salyk.kg:30040 [22:35:53]ConnectInit lk.salyk.kg [22:35:53]Write i2c OK [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: 01 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: 01 07 00 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: 01 07 00 B5 31 00 00 00 00 00 FF 0F FB [22:35:53]RasterBufferAndPrint [22:35:53]line Счет N : (3)343938 [22:35:53]line ИНН: 02508201610067 [22:35:53]line Контрольно-Кассовый Чек [22:35:53]line ПРОДАЖА [22:35:53]line Товар: 4700003010483 [22:35:53]line Напиток Let`s Go! с/с яблоко ПЭТ 0,5л [22:35:53]line 1.000 * 40.00 [22:35:53]line = 40.00 [22:35:53]line НДС 12% НСП 1% [22:35:53]line > о реализуемом товаре [22:35:53]line ИТОГО: 40.00 [22:35:53]line НСП 1% : 0.35 [22:35:53]line НДС 12% : 4.25 [22:35:53]line Наличными: 40.00 [22:35:53]line Безнал.: 0.00 [22:35:53]line Место: АЗС № 90 "Партнер Нефть" [22:35:53]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:35:53]line СНО: Общий режим [22:35:53]line Чек 227 22.09.2024 22:35 [22:35:53]line Смена: 471 ФФД: 1.0 [22:35:53]line ЗНМ: 0300000120 [22:35:53]line РНМ: 0000000000091831 [22:35:53]line Версия ККМ: 001 [22:35:53]line ФМ: 0000000000871830 [22:35:53]line ФД: 115509 [22:35:53]line ФПД: 183260856854358 [22:35:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T223554&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115509&fm=183260856854358&tin=02508201610067®Number=0000000000091831&sum=4000 [22:35:53]line 0 [22:35:53]Connected sock=10 [22:35:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3E 01 00 00 97 39 36 01 4E A3 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CA 9B F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 35 C3 01 00 35 04 06 00 A6 AC BE 46 27 56 81 4D 3C 65 38 B9 9E EF [22:35:53]written 0, free lines is 4095 [22:35:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F6 95 47 00 88 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 31 38 33 30 10 04 04 00 35 C3 01 00 F4 03 04 00 0F 41 F0 66 B6 04 01 00 00 C4 C6 EC 14 02 C7 89 09 [22:35:53]CommunicateWithHost err = 0 [22:35:53]CheckOFDResponse [22:35:53]1017 (14) - 77093643461234 [22:35:53]1041 (16) - 0000000000871830 [22:35:53]1040 (4) - 115509 [22:35:53]1012 (4) - 22.09.2024 16:08 [22:35:53]1206 (1) - 0 [22:35:53]OFD Sender: Remove packet 115509 [22:35:53]ProducePacketName [22:35:53]name=ofd_packets/00115509 [22:35:53]NVStorageDeleteData [22:35:53]Write to MH i2c: 01 00 00 DD 31 0E [22:35:53]Write i2c OK [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: 01 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: 01 07 00 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: 01 07 00 DD 31 00 00 00 00 00 55 0C 76 [22:35:53]RasterBufferAndPrint [22:35:53]line [22:35:53]line [22:35:53]line [22:35:53]line [22:35:53]line [22:35:53]written 0, free lines is 3160 [22:35:53]MH_Cut [22:35:53]Write to MH i2c: D1 01 00 E4 31 01 E7 [22:35:53]Write i2c OK [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: D1 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: D1 01 00 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: D1 01 00 E4 31 00 E6 [22:35:53]Write to MH i2c: 01 00 00 E5 31 16 [22:35:53]Write i2c OK [22:35:53]MH_I2C_Read... [22:35:54]OFD Sender: No OFD packet to send [22:35:55]*** Cut start [22:35:55]*** Partial cut [22:35:55]*** CUTSNS_PIN = 1 [22:35:55]*** CUTSNS_PIN = 0 [22:35:55]*** Brake cut motor [22:35:55]Read from MH i2c: 01 [22:35:55]MH_I2C_Read... [22:35:55]*** Stop cut motor [22:35:55]*** Cut end [22:35:55]Read from MH i2c: 01 07 00 [22:35:55]MH_I2C_Read... [22:35:55]Read from MH i2c: 01 07 00 E5 31 00 00 00 00 00 FF 0F 2B [22:35:55]process_action close_receipt done [22:35:55]requested_data is exist [22:35:55]produce_requested_data [22:35:55]requested_item fm.sn is exist - process it [22:35:55]wFMCommunicate request_size=4 [22:35:55]MH_SAM_APDU [22:35:55]CAPDU: 80 11 00 00 [22:35:55]Write to MH i2c: E2 08 00 E6 31 80 11 00 00 00 00 00 00 91 [22:35:55]Write i2c OK [22:35:55]MH_I2C_Read... [22:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:56]Read from MH i2c: E2 [22:35:56]MH_I2C_Read... [22:35:56]Read from MH i2c: E2 17 00 [22:35:56]MH_I2C_Read... [22:35:56]Read from MH i2c: E2 17 00 E6 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 DF [22:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:35:56]wFMCommunicate OK [22:35:56]requested_item fd.num is exist - process it [22:35:56]SAM_PROTO_GetFieldsCounters [22:35:56]wFMCommunicate request_size=4 [22:35:56]MH_SAM_APDU [22:35:56]CAPDU: 80 13 00 00 [22:35:56]Write to MH i2c: E2 08 00 E7 31 80 13 00 00 00 00 00 00 94 [22:35:56]Write i2c OK [22:35:56]MH_I2C_Read... [22:35:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:56]Read from MH i2c: E2 [22:35:56]MH_I2C_Read... [22:35:56]Read from MH i2c: E2 62 00 [22:35:56]MH_I2C_Read... [22:35:56]Read from MH i2c: E2 62 00 E7 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 35 C3 01 00 0E 04 04 00 D7 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 27 [22:35:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 35 C3 01 00 0E 04 04 00 D7 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 [22:35:56]wFMCommunicate OK [22:35:56]SAM_PROTO_GetFieldsCounters done [22:35:56]requested_item shift.num is exist - process it [22:35:56]requested_item shift.opened is exist - process it [22:35:56]req_shift_opened [22:35:56]FM_GetShiftState [22:35:56]SAM_PROTO_GetShiftState [22:35:56]wFMCommunicate request_size=4 [22:35:56]MH_SAM_APDU [22:35:56]CAPDU: 80 13 01 00 [22:35:56]Write to MH i2c: E2 08 00 E8 31 80 13 01 00 00 00 00 00 96 [22:35:56]Write i2c OK [22:35:56]MH_I2C_Read... [22:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:56]Read from MH i2c: E2 [22:35:56]MH_I2C_Read... [22:35:56]Read from MH i2c: E2 0E 00 [22:35:56]MH_I2C_Read... [22:35:56]Read from MH i2c: E2 0E 00 E8 31 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 AF [22:35:56]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [22:35:56]wFMCommunicate OK [22:35:56]SAM_PROTO_GetShiftState done [22:35:56]FM_GetShiftState done [22:35:56]req_shift_opened done [22:35:56]requested_item shift.open_date is exist - process it [22:35:56]req_shift_open_date [22:35:56]req_shift_open_date done [22:35:56]produce_requested_data done [22:35:56]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115509,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [22:35:56]process_action_free close_receipt [22:35:56]json_value_free [22:35:56]json_value_free done [22:35:56]process_json_proto returns [22:35:56]Send response to host [22:35:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115509,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [22:35:56]free response buf [22:35:56]execute_script done [22:35:56]execute_script returns [22:35:56]free content buf [22:35:56]Sock 8.Close socket [22:35:56]Sock 8.Thread stoped [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:32]accept exits with 9 [22:44:32]New connection [22:44:32]New thread 3066826084 created [22:44:32]Thread 3066682724 joined [22:44:32]Waiting for new connection... [22:44:32] Sock 9.Parse request [22:44:32]Sock 9.Check first char [22:44:32]Sock 9.First char is OK [22:44:32]request: POST /json_proto HTTP/1.0 [22:44:32]Method: POST [22:44:32]URL: /json_proto [22:44:32]Method is POST - this is cgi request [22:44:32]url: /json_proto [22:44:32]query_string will be loaded in cgi processing [22:44:32]execute_cgi json_proto POST (null) [22:44:32]execute_cgi path=json_proto method=POST [22:44:32]POST find Content-Length [22:44:32]Host: 172.17.41.136:8080 [22:44:32]Content-Length: 3439 [22:44:32]Content-Type: application/json [22:44:32] [22:44:32]POST finish read [22:44:32]Found Content-Length = 3439 [22:44:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343939", "tax_sys" : 0, "items" : [ { "code": "4607010740016", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0431\u0435\u043A\u043E\u043D 40\u0433", "price" : 21.00, "quantity" : 2.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB T [22:44:32]execute_script... [22:44:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343939", "tax_sys" : 0, "items" : [ { "code": "4607010740016", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0431\u0435\u043A\u043E\u043D 40\u0433", "price" : 21.00, "quantity" : 2.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB T [22:44:32]POST & json_proto [22:44:32]process_json_proto [22:44:32]json parse error [22:44:32]process_json_proto returns [22:44:32]execute_script returns [22:44:32]free content buf [22:44:32]Sock 9.Close socket [22:44:32]Sock 9.Thread stoped [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:35]OFD Sender: No OFD packet to send [22:46:40]OFD Sender: No OFD packet to send [22:46:45]OFD Sender: No OFD packet to send [22:46:50]OFD Sender: No OFD packet to send [22:46:55]OFD Sender: No OFD packet to send [22:47:00]OFD Sender: No OFD packet to send [22:47:05]OFD Sender: No OFD packet to send [22:47:10]OFD Sender: No OFD packet to send [22:47:15]OFD Sender: No OFD packet to send [22:47:20]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:52]OFD Sender: No OFD packet to send [22:54:57]OFD Sender: No OFD packet to send [22:55:02]OFD Sender: No OFD packet to send [22:55:07]OFD Sender: No OFD packet to send [22:55:12]OFD Sender: No OFD packet to send [22:55:17]OFD Sender: No OFD packet to send [22:55:22]OFD Sender: No OFD packet to send [22:55:27]OFD Sender: No OFD packet to send [22:55:32]OFD Sender: No OFD packet to send [22:55:37]OFD Sender: No OFD packet to send [22:55:42]OFD Sender: No OFD packet to send [22:55:47]OFD Sender: No OFD packet to send [22:55:52]OFD Sender: No OFD packet to send [22:55:57]OFD Sender: No OFD packet to send [22:56:02]OFD Sender: No OFD packet to send [22:56:07]OFD Sender: No OFD packet to send [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:33]OFD Sender: No OFD packet to send [23:01:38]OFD Sender: No OFD packet to send [23:01:43]OFD Sender: No OFD packet to send [23:01:48]OFD Sender: No OFD packet to send [23:01:53]OFD Sender: No OFD packet to send [23:01:58]OFD Sender: No OFD packet to send [23:02:03]OFD Sender: No OFD packet to send [23:02:08]OFD Sender: No OFD packet to send [23:02:13]OFD Sender: No OFD packet to send [23:02:18]OFD Sender: No OFD packet to send [23:02:23]OFD Sender: No OFD packet to send [23:02:28]OFD Sender: No OFD packet to send [23:02:33]OFD Sender: No OFD packet to send [23:02:38]OFD Sender: No OFD packet to send [23:02:43]OFD Sender: No OFD packet to send [23:02:48]OFD Sender: No OFD packet to send [23:02:53]OFD Sender: No OFD packet to send [23:02:58]OFD Sender: No OFD packet to send [23:03:03]OFD Sender: No OFD packet to send [23:03:08]OFD Sender: No OFD packet to send [23:03:13]OFD Sender: No OFD packet to send [23:03:18]OFD Sender: No OFD packet to send [23:03:23]OFD Sender: No OFD packet to send [23:03:28]OFD Sender: No OFD packet to send [23:03:33]OFD Sender: No OFD packet to send [23:03:38]OFD Sender: No OFD packet to send [23:03:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:53]OFD Sender: No OFD packet to send [23:03:58]OFD Sender: No OFD packet to send [23:04:03]OFD Sender: No OFD packet to send [23:04:08]OFD Sender: No OFD packet to send [23:04:13]OFD Sender: No OFD packet to send [23:04:18]OFD Sender: No OFD packet to send [23:04:23]OFD Sender: No OFD packet to send [23:04:28]OFD Sender: No OFD packet to send [23:04:33]OFD Sender: No OFD packet to send [23:04:38]OFD Sender: No OFD packet to send [23:04:43]OFD Sender: No OFD packet to send [23:04:48]OFD Sender: No OFD packet to send [23:04:53]OFD Sender: No OFD packet to send [23:04:58]OFD Sender: No OFD packet to send [23:05:03]OFD Sender: No OFD packet to send [23:05:08]OFD Sender: No OFD packet to send [23:05:13]OFD Sender: No OFD packet to send [23:05:18]OFD Sender: No OFD packet to send [23:05:23]OFD Sender: No OFD packet to send [23:05:28]OFD Sender: No OFD packet to send [23:05:33]OFD Sender: No OFD packet to send [23:05:38]OFD Sender: No OFD packet to send [23:05:43]OFD Sender: No OFD packet to send [23:05:48]OFD Sender: No OFD packet to send [23:05:53]OFD Sender: No OFD packet to send [23:05:58]OFD Sender: No OFD packet to send [23:06:03]OFD Sender: No OFD packet to send [23:06:08]OFD Sender: No OFD packet to send [23:06:13]OFD Sender: No OFD packet to send [23:06:18]OFD Sender: No OFD packet to send [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]OFD Sender: No OFD packet to send [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22: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:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29:52]OFD Sender: No OFD packet to send [23:29:57]OFD Sender: No OFD packet to send [23:30:02]OFD Sender: No OFD packet to send [23:30:07]OFD Sender: No OFD packet to send [23:30:12]OFD Sender: No OFD packet to send [23:30:17]OFD Sender: No OFD packet to send [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:07]OFD Sender: No OFD packet to send [23:32:12]OFD Sender: No OFD packet to send [23:32:17]OFD Sender: No OFD packet to send [23:32:22]OFD Sender: No OFD packet to send [23:32:27]OFD Sender: No OFD packet to send [23:32:32]OFD Sender: No OFD packet to send [23:32:37]OFD Sender: No OFD packet to send [23:32:42]OFD Sender: No OFD packet to send [23:32:47]OFD Sender: No OFD packet to send [23:32:52]OFD Sender: No OFD packet to send [23:32:57]OFD Sender: No OFD packet to send [23:33:02]OFD Sender: No OFD packet to send [23:33:07]OFD Sender: No OFD packet to send [23:33:12]OFD Sender: No OFD packet to send [23:33:17]OFD Sender: No OFD packet to send [23:33:22]OFD Sender: No OFD packet to send [23:33:27]OFD Sender: No OFD packet to send [23:33:32]OFD Sender: No OFD packet to send [23:33:37]OFD Sender: No OFD packet to send [23:33:42]OFD Sender: No OFD packet to send [23:33:47]OFD Sender: No OFD packet to send [23:33:52]OFD Sender: No OFD packet to send [23:33:57]OFD Sender: No OFD packet to send [23:34:02]OFD Sender: No OFD packet to send [23:34:07]OFD Sender: No OFD packet to send [23:34:12]OFD Sender: No OFD packet to send [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:34]OFD Sender: No OFD packet to send [23:43:39]OFD Sender: No OFD packet to send [23:43:44]OFD Sender: No OFD packet to send [23:43:49]OFD Sender: No OFD packet to send [23:43:54]OFD Sender: No OFD packet to send [23:43:59]OFD Sender: No OFD packet to send [23:44:04]OFD Sender: No OFD packet to send [23:44:09]OFD Sender: No OFD packet to send [23:44:14]OFD Sender: No OFD packet to send [23:44:19]OFD Sender: No OFD packet to send [23:44:24]OFD Sender: No OFD packet to send [23:44:29]OFD Sender: No OFD packet to send [23:44:34]OFD Sender: No OFD packet to send [23:44:39]OFD Sender: No OFD packet to send [23:44:44]OFD Sender: No OFD packet to send [23:44:49]OFD Sender: No OFD packet to send [23:44:54]OFD Sender: No OFD packet to send [23:44:59]OFD Sender: No OFD packet to send [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:44]OFD Sender: No OFD packet to send [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:05]accept exits with 8 [23:46:05]New connection [23:46:05]New thread 3066682724 created [23:46:05]Thread 3066826084 joined [23:46:05]Waiting for new connection... [23:46:05] Sock 8.Parse request [23:46:05]Sock 8.Check first char [23:46:05]Sock 8.First char is OK [23:46:05]request: POST /json_proto HTTP/1.0 [23:46:05]Method: POST [23:46:05]URL: /json_proto [23:46:05]Method is POST - this is cgi request [23:46:05]url: /json_proto [23:46:05]query_string will be loaded in cgi processing [23:46:05]execute_cgi json_proto POST (null) [23:46:05]execute_cgi path=json_proto method=POST [23:46:05]POST find Content-Length [23:46:05]Host: 172.17.41.136:8080 [23:46:05]Content-Length: 215 [23:46:05]Content-Type: application/json [23:46:05] [23:46:05]POST finish read [23:46:05]Found Content-Length = 215 [23:46:05]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:46:05]execute_script... [23:46:05]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:46:05]POST & json_proto [23:46:05]process_json_proto [23:46:05]json parsed OK: [23:46:05]protocol is kg_v1.0 [23:46:05]action value=get_value [23:46:05]process_action get_value [23:46:05]cmd_get_value [23:46:05]process_action get_value done [23:46:05]requested_data is exist [23:46:05]produce_requested_data [23:46:05]requested_item kkm.sn is exist - process it [23:46:05]requested_item kkm.ver is exist - process it [23:46:05]requested_item fm.sn is exist - process it [23:46:05]wFMCommunicate request_size=4 [23:46:05]MH_SAM_APDU [23:46:05]CAPDU: 80 11 00 00 [23:46:05]Write to MH i2c: E2 08 00 E9 31 80 11 00 00 00 00 00 00 94 [23:46:05]Write i2c OK [23:46:05]MH_I2C_Read... [23:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:05]Read from MH i2c: E2 [23:46:05]MH_I2C_Read... [23:46:05]Read from MH i2c: E2 17 00 [23:46:05]MH_I2C_Read... [23:46:05]Read from MH i2c: E2 17 00 E9 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E2 [23:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:46:05]wFMCommunicate OK [23:46:05]requested_item fd.num is exist - process it [23:46:05]SAM_PROTO_GetFieldsCounters [23:46:05]wFMCommunicate request_size=4 [23:46:05]MH_SAM_APDU [23:46:05]CAPDU: 80 13 00 00 [23:46:05]Write to MH i2c: E2 08 00 EA 31 80 13 00 00 00 00 00 00 97 [23:46:05]Write i2c OK [23:46:05]MH_I2C_Read... [23:46:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:05]Read from MH i2c: E2 [23:46:05]MH_I2C_Read... [23:46:05]Read from MH i2c: E2 62 00 [23:46:05]MH_I2C_Read... [23:46:05]Read from MH i2c: E2 62 00 EA 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 35 C3 01 00 0E 04 04 00 D7 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 2A [23:46:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 35 C3 01 00 0E 04 04 00 D7 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 [23:46:05]wFMCommunicate OK [23:46:05]SAM_PROTO_GetFieldsCounters done [23:46:05]requested_item shift.num is exist - process it [23:46:05]requested_item shift.opened is exist - process it [23:46:05]req_shift_opened [23:46:05]FM_GetShiftState [23:46:05]SAM_PROTO_GetShiftState [23:46:05]wFMCommunicate request_size=4 [23:46:05]MH_SAM_APDU [23:46:05]CAPDU: 80 13 01 00 [23:46:05]Write to MH i2c: E2 08 00 EB 31 80 13 01 00 00 00 00 00 99 [23:46:05]Write i2c OK [23:46:05]MH_I2C_Read... [23:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:05]Read from MH i2c: E2 [23:46:05]MH_I2C_Read... [23:46:05]Read from MH i2c: E2 0E 00 [23:46:05]MH_I2C_Read... [23:46:05]Read from MH i2c: E2 0E 00 EB 31 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B2 [23:46:05]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [23:46:05]wFMCommunicate OK [23:46:05]SAM_PROTO_GetShiftState done [23:46:05]FM_GetShiftState done [23:46:05]req_shift_opened done [23:46:05]requested_item shift.open_date is exist - process it [23:46:05]req_shift_open_date [23:46:05]req_shift_open_date done [23:46:05]produce_requested_data done [23:46:05]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115509,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [23:46:05]process_action_free get_value [23:46:05]json_value_free [23:46:05]json_value_free done [23:46:05]process_json_proto returns [23:46:05]Send response to host [23:46:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115509,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [23:46:05]free response buf [23:46:05]execute_script done [23:46:05]execute_script returns [23:46:05]free content buf [23:46:05]Sock 8.Close socket [23:46:05]Sock 8.Thread stoped [23:46:05]accept exits with 9 [23:46:05]New connection [23:46:05]New thread 3066826084 created [23:46:05]Thread 3066682724 joined [23:46:05]Waiting for new connection... [23:46:05] Sock 9.Parse request [23:46:05]Sock 9.Check first char [23:46:05]Sock 9.First char is OK [23:46:05]request: POST /json_proto HTTP/1.0 [23:46:05]Method: POST [23:46:05]URL: /json_proto [23:46:05]Method is POST - this is cgi request [23:46:05]url: /json_proto [23:46:05]query_string will be loaded in cgi processing [23:46:05]execute_cgi json_proto POST (null) [23:46:05]execute_cgi path=json_proto method=POST [23:46:05]POST find Content-Length [23:46:05]Host: 172.17.41.136:8080 [23:46:05]Content-Length: 331 [23:46:05]Content-Type: application/json [23:46:05] [23:46:05]POST finish read [23:46:05]Found Content-Length = 331 [23:46:05]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:46:05]execute_script... [23:46:05]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:46:05]POST & json_proto [23:46:05]process_json_proto [23:46:05]json parsed OK: [23:46:05]protocol is kg_v1.0 [23:46:05]action value=get_value [23:46:05]process_action get_value [23:46:05]cmd_get_value [23:46:05]process_action get_value done [23:46:05]requested_data is exist [23:46:05]produce_requested_data [23:46:05]requested_item fm.sale.total is exist - process it [23:46:05]SAM_PROTO_GetFMData [23:46:05]wFMCommunicate request_size=4 [23:46:05]MH_SAM_APDU [23:46:05]CAPDU: 80 13 03 00 [23:46:05]Write to MH i2c: E2 08 00 EC 31 80 13 03 00 00 00 00 00 9C [23:46:05]Write i2c OK [23:46:05]MH_I2C_Read... [23:46:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:46:06]Read from MH i2c: E2 [23:46:06]MH_I2C_Read... [23:46:06]Read from MH i2c: E2 FD 00 [23:46:06]MH_I2C_Read... [23:46:06]Read from MH i2c: E2 FD 00 EC 31 00 C5 04 85 04 C1 04 6E 04 04 00 86 BF 01 00 69 04 A3 00 6F 04 04 00 09 BE 01 00 B1 04 05 00 BD E1 E5 80 01 70 04 05 00 49 33 41 47 01 72 04 04 00 74 AE A4 39 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 52 A8 E1 28 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 07 ED 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 FE [23:46:06]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 86 BF 01 00 69 04 A3 00 6F 04 04 00 09 BE 01 00 B1 04 05 00 BD E1 E5 80 01 70 04 05 00 49 33 41 47 01 72 04 04 00 74 AE A4 39 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 52 A8 E1 28 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 07 ED 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 [23:46:06]wFMCommunicate OK [23:46:06]wFMCommunicate request_size=4 [23:46:06]MH_SAM_APDU [23:46:06]CAPDU: 80 17 00 00 [23:46:06]Write to MH i2c: E2 08 00 ED 31 80 17 00 00 00 00 00 00 9E [23:46:06]Write i2c OK [23:46:06]MH_I2C_Read... [23:46:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:06]Read from MH i2c: E2 [23:46:06]MH_I2C_Read... [23:46:06]Read from MH i2c: E2 FD 00 [23:46:06]MH_I2C_Read... [23:46:06]Read from MH i2c: E2 FD 00 ED 31 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8B [23:46:06]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:46:06]wFMCommunicate OK [23:46:06]wFMCommunicate request_size=4 [23:46:06]MH_SAM_APDU [23:46:06]CAPDU: 80 17 00 00 [23:46:06]Write to MH i2c: E2 08 00 EE 31 80 17 00 00 00 00 00 00 9F [23:46:06]Write i2c OK [23:46:06]MH_I2C_Read... [23:46:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:06]Read from MH i2c: E2 [23:46:06]MH_I2C_Read... [23:46:06]Read from MH i2c: E2 FD 00 [23:46:06]MH_I2C_Read... [23:46:06]Read from MH i2c: E2 FD 00 EE 31 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 B1 [23:46:06]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:46:06]wFMCommunicate OK [23:46:06]wFMCommunicate request_size=4 [23:46:06]MH_SAM_APDU [23:46:06]CAPDU: 80 17 00 00 [23:46:06]Write to MH i2c: E2 08 00 EF 31 80 17 00 00 00 00 00 00 A0 [23:46:06]Write i2c OK [23:46:06]MH_I2C_Read... [23:46:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:06]Read from MH i2c: E2 [23:46:06]MH_I2C_Read... [23:46:06]Read from MH i2c: E2 FD 00 [23:46:06]MH_I2C_Read... [23:46:06]Read from MH i2c: E2 FD 00 EF 31 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 2C [23:46:06]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:46:06]wFMCommunicate OK [23:46:06]wFMCommunicate request_size=4 [23:46:06]MH_SAM_APDU [23:46:06]CAPDU: 80 17 00 00 [23:46:06]Write to MH i2c: E2 08 00 F0 31 80 17 00 00 00 00 00 00 A1 [23:46:06]Write i2c OK [23:46:06]MH_I2C_Read... [23:46:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:46:07]Read from MH i2c: E2 [23:46:07]MH_I2C_Read... [23:46:07]Read from MH i2c: E2 E2 00 [23:46:07]MH_I2C_Read... [23:46:07]Read from MH i2c: E2 E2 00 F0 31 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7F [23:46:07]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:46:07]wFMCommunicate OK [23:46:07]SAM_PROTO_GetFMData done [23:46:07]requested_item fm.sale_refund.total is exist - process it [23:46:07]requested_item fm.buy.total is exist - process it [23:46:07]requested_item shift.sale.total is exist - process it [23:46:07]SAM_PROTO_GetShiftData [23:46:07]wFMCommunicate request_size=4 [23:46:07]MH_SAM_APDU [23:46:07]CAPDU: 80 13 02 00 [23:46:07]Write to MH i2c: E2 08 00 F1 31 80 13 02 00 00 00 00 00 A0 [23:46:07]Write i2c OK [23:46:07]MH_I2C_Read... [23:46:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:46:07]Read from MH i2c: E2 [23:46:07]MH_I2C_Read... [23:46:07]Read from MH i2c: E2 FD 00 [23:46:07]MH_I2C_Read... [23:46:07]Read from MH i2c: E2 FD 00 F1 31 00 AF 04 AA 04 AB 04 6E 04 04 00 E3 00 00 00 69 04 9C 00 6F 04 04 00 E3 00 00 00 B1 04 03 00 01 B5 77 70 04 03 00 38 6C 56 72 04 03 00 C9 48 21 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 85 B6 0C 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 0A 0F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 F0 [23:46:07]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E3 00 00 00 69 04 9C 00 6F 04 04 00 E3 00 00 00 B1 04 03 00 01 B5 77 70 04 03 00 38 6C 56 72 04 03 00 C9 48 21 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 85 B6 0C 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 0A 0F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:46:07]wFMCommunicate OK [23:46:07]wFMCommunicate request_size=4 [23:46:07]MH_SAM_APDU [23:46:07]CAPDU: 80 17 00 00 [23:46:07]Write to MH i2c: E2 08 00 F2 31 80 17 00 00 00 00 00 00 A3 [23:46:07]Write i2c OK [23:46:07]MH_I2C_Read... [23:46:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:07]Read from MH i2c: E2 [23:46:07]MH_I2C_Read... [23:46:07]Read from MH i2c: E2 FD 00 [23:46:07]MH_I2C_Read... [23:46:07]Read from MH i2c: E2 FD 00 F2 31 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 BC [23:46:07]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:46:07]wFMCommunicate OK [23:46:07]wFMCommunicate request_size=4 [23:46:07]MH_SAM_APDU [23:46:07]CAPDU: 80 17 00 00 [23:46:07]Write to MH i2c: E2 08 00 F3 31 80 17 00 00 00 00 00 00 A4 [23:46:07]Write i2c OK [23:46:07]MH_I2C_Read... [23:46:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:08]Read from MH i2c: E2 [23:46:08]MH_I2C_Read... [23:46:08]Read from MH i2c: E2 FD 00 [23:46:08]MH_I2C_Read... [23:46:08]Read from MH i2c: E2 FD 00 F3 31 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 58 [23:46:08]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:46:08]wFMCommunicate OK [23:46:08]wFMCommunicate request_size=4 [23:46:08]MH_SAM_APDU [23:46:08]CAPDU: 80 17 00 00 [23:46:08]Write to MH i2c: E2 08 00 F4 31 80 17 00 00 00 00 00 00 A5 [23:46:08]Write i2c OK [23:46:08]MH_I2C_Read... [23:46:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:08]Read from MH i2c: E2 [23:46:08]MH_I2C_Read... [23:46:08]Read from MH i2c: E2 FD 00 [23:46:08]MH_I2C_Read... [23:46:08]Read from MH i2c: E2 FD 00 F4 31 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 23 [23:46:08]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:46:08]wFMCommunicate OK [23:46:08]wFMCommunicate request_size=4 [23:46:08]MH_SAM_APDU [23:46:08]CAPDU: 80 17 00 00 [23:46:08]Write to MH i2c: E2 08 00 F5 31 80 17 00 00 00 00 00 00 A6 [23:46:08]Write i2c OK [23:46:08]MH_I2C_Read... [23:46:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:46:08]Read from MH i2c: E2 [23:46:08]MH_I2C_Read... [23:46:08]Read from MH i2c: E2 CC 00 [23:46:08]MH_I2C_Read... [23:46:08]Read from MH i2c: E2 CC 00 F5 31 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 87 [23:46:08]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:46:08]wFMCommunicate OK [23:46:08]SAM_PROTO_GetShiftData done [23:46:08]requested_item shift.sale.total_cash is exist - process it [23:46:08]requested_item shift.sale_refund.total is exist - process it [23:46:08]requested_item shift.sale_refund.total_cash is exist - process it [23:46:08]requested_item shift.buy.total is exist - process it [23:46:08]requested_item shift.buy.total_cash is exist - process it [23:46:08]produce_requested_data done [23:46:08]produce_requested_data return {"fm.sale.total":64575164.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":78451.21,"shift.sale.total_cash":56638.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} [23:46:08]process_action_free get_value [23:46:08]json_value_free [23:46:08]json_value_free done [23:46:08]process_json_proto returns [23:46:08]Send response to host [23:46:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64575164.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":78451.21,"shift.sale.total_cash":56638.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}}} [23:46:08]free response buf [23:46:08]execute_script done [23:46:08]execute_script returns [23:46:08]free content buf [23:46:08]Sock 9.Close socket [23:46:08]Sock 9.Thread stoped [23:46:09]OFD Sender: No OFD packet to send [23:46:12]accept exits with 8 [23:46:12]New connection [23:46:12]New thread 3066682724 created [23:46:12]Thread 3066826084 joined [23:46:12]Waiting for new connection... [23:46:12] Sock 8.Parse request [23:46:12]Sock 8.Check first char [23:46:12]Sock 8.First char is OK [23:46:12]request: POST /json_proto HTTP/1.0 [23:46:12]Method: POST [23:46:12]URL: /json_proto [23:46:12]Method is POST - this is cgi request [23:46:12]url: /json_proto [23:46:12]query_string will be loaded in cgi processing [23:46:12]execute_cgi json_proto POST (null) [23:46:12]execute_cgi path=json_proto method=POST [23:46:12]POST find Content-Length [23:46:12]Host: 172.17.41.136:8080 [23:46:12]Content-Length: 3439 [23:46:12]Content-Type: application/json [23:46:12] [23:46:12]POST finish read [23:46:12]Found Content-Length = 3439 [23:46:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343939", "tax_sys" : 0, "items" : [ { "code": "4607010740016", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0431\u0435\u043A\u043E\u043D 40\u0433", "price" : 21.00, "quantity" : 2.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039450010", "name": "\u0427\u0430\u0439 \u0437\u0435\u043B\u0435\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 4.000, "sum" : 16.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010049", "name": "Let`s GO \u0427\u0430\u0439 \u0437\u0435\u043B\u0435\u043D\u044B\u0439 \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442 0,5\u043B \u041F\u042D\u0422", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1112.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:12]execute_script... [23:46:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343939", "tax_sys" : 0, "items" : [ { "code": "4607010740016", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0431\u0435\u043A\u043E\u043D 40\u0433", "price" : 21.00, "quantity" : 2.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039450010", "name": "\u0427\u0430\u0439 \u0437\u0435\u043B\u0435\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 4.000, "sum" : 16.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010049", "name": "Let`s GO \u0427\u0430\u0439 \u0437\u0435\u043B\u0435\u043D\u044B\u0439 \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442 0,5\u043B \u041F\u042D\u0422", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1112.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:12]POST & json_proto [23:46:12]process_json_proto [23:46:12]json parsed OK: [23:46:12]protocol is kg_v1.0 [23:46:12]action value=close_receipt [23:46:12]process_action close_receipt [23:46:12]cmd_close_receipt [23:46:12]MH_GetDate [23:46:12]Write to MH i2c: F0 00 00 F6 31 16 [23:46:12]Write i2c OK [23:46:13]MH_I2C_Read... [23:46:13]Read from MH i2c: F0 [23:46:13]MH_I2C_Read... [23:46:13]Read from MH i2c: F0 09 00 [23:46:13]MH_I2C_Read... [23:46:13]Read from MH i2c: F0 09 00 F6 31 00 48 AC F0 66 1B D0 5A 64 12 [23:46:13]GetLastDocTimeStamp 1727044554 [23:46:13]current date 1727048776 [23:46:13]FM_GetShiftState [23:46:13]SAM_PROTO_GetShiftState [23:46:13]wFMCommunicate request_size=4 [23:46:13]MH_SAM_APDU [23:46:13]CAPDU: 80 13 01 00 [23:46:13]Write to MH i2c: E2 08 00 F7 31 80 13 01 00 00 00 00 00 A5 [23:46:13]Write i2c OK [23:46:13]MH_I2C_Read... [23:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:13]Read from MH i2c: E2 [23:46:13]MH_I2C_Read... [23:46:13]Read from MH i2c: E2 0E 00 [23:46:13]MH_I2C_Read... [23:46:13]Read from MH i2c: E2 0E 00 F7 31 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 BE [23:46:13]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [23:46:13]wFMCommunicate OK [23:46:13]SAM_PROTO_GetShiftState done [23:46:13]FM_GetShiftState done [23:46:13]opened in 1726965840 [23:46:13]opened+sec_in_day 1727052240 [23:46:13]quantity*price = 4200 [23:46:13]sum+1 = 4201 [23:46:13]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310173 Вода Адыгене 0,5л б/г 1.000 * 30.00 = 30.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700026030031 Курут orbit 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000039450010 Чай зеленый 200 мл 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 42069942 Жев Orbit White Fresh Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160044 Вода Ыссык Ата 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700002083327 Водка Level 0,5 1.000 * 510.00 = 510.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 4.000 * 4.00 = 16.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003010049 Let`s GO Чай зеленый грейпфрут 0,5л ПЭТ 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1112.00 НСП 1% : 9.82 НДС 12% : 118.09 Наличными: 1112.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 228 22.09.2024 23:46 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115510 ФПД: 272087613835502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T234616&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115510&fm=272087613835502&tin=02508201610067®Number=0000000000091831&sum=111200 0 [23:46:15]StoreToDocumentArchive [23:46:15]shift 471 fd 115510 [23:46:15]save to /storage/0471/doc_00115510 [23:46:15]save last doc name /storage/0471/doc_00115510 to /storage/kkm_last_doc_name [23:46:15]save OK [23:46:15]Clear old archive folders... [23:46:15]ProcessDocumentItem done err = 0, tmpTLVsize=1435 [23:46:15]tlvbuf is 01D182F0 [23:46:15]SAM_PROTO_ClearQueue [23:46:15]wFMCommunicate request_size=4 [23:46:15]MH_SAM_APDU [23:46:15]CAPDU: 80 09 00 00 [23:46:15]Write to MH i2c: E2 08 00 04 32 80 09 00 00 00 00 00 00 A8 [23:46:15]Write i2c OK [23:46:15]MH_I2C_Read... [23:46:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:46:15]Read from MH i2c: E2 [23:46:15]MH_I2C_Read... [23:46:15]Read from MH i2c: E2 03 00 [23:46:15]MH_I2C_Read... [23:46:15]Read from MH i2c: E2 03 00 04 32 00 90 00 AA [23:46:15]RAPDU: 90 00 [23:46:15]wFMCommunicate OK [23:46:15]SAM_PROTO_ClearQueue done [23:46:15]KKMCreateOFDPacket [23:46:15]OFDProtocolAddRootSTLVToBuf [23:46:15]FM_MakeSignedData [23:46:15]FM_MakeSignedData [23:46:15]SAM_PROTO_SignData [23:46:15]wFMCommunicate request_size=4 [23:46:15]MH_SAM_APDU [23:46:15]CAPDU: 80 0D 01 02 [23:46:15]Write to MH i2c: E2 08 00 05 32 80 0D 01 02 00 00 00 00 B0 [23:46:15]Write i2c OK [23:46:15]MH_I2C_Read... [23:46:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:46:15]Read from MH i2c: E2 [23:46:15]MH_I2C_Read... [23:46:15]Read from MH i2c: E2 03 00 [23:46:15]MH_I2C_Read... [23:46:15]Read from MH i2c: E2 03 00 05 32 00 90 00 AB [23:46:15]RAPDU: 90 00 [23:46:15]wFMCommunicate OK [23:46:15]wFMCommunicate request_size=255 [23:46:15]MH_SAM_APDU [23:46:15]CAPDU: 80 0D 02 02 FA 03 00 9B 05 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 30 31 36 06 04 27 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 B1 D0 B5 D0 BA D0 BE D0 BD 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 [23:46:15]Write to MH i2c: E2 02 01 06 32 80 0D 02 02 FA 00 03 00 9B 05 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 30 31 36 06 04 27 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 B1 D0 B5 D0 BA D0 BE D0 BD 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 00 00 E9 [23:46:15]Write i2c OK [23:46:15]MH_I2C_Read... [23:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:15]Read from MH i2c: E2 [23:46:15]MH_I2C_Read... [23:46:15]Read from MH i2c: E2 03 00 [23:46:15]MH_I2C_Read... [23:46:15]Read from MH i2c: E2 03 00 06 32 00 90 00 AC [23:46:15]RAPDU: 90 00 [23:46:15]wFMCommunicate OK [23:46:15]wFMCommunicate request_size=255 [23:46:15]MH_SAM_APDU [23:46:15]CAPDU: 80 0D 02 02 FA 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 [23:46:15]Write to MH i2c: E2 02 01 07 32 80 0D 02 02 FA 00 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 D9 [23:46:15]Write i2c OK [23:46:15]MH_I2C_Read... [23:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:15]Read from MH i2c: E2 [23:46:15]MH_I2C_Read... [23:46:15]Read from MH i2c: E2 03 00 [23:46:15]MH_I2C_Read... [23:46:15]Read from MH i2c: E2 03 00 07 32 00 90 00 AD [23:46:15]RAPDU: 90 00 [23:46:15]wFMCommunicate OK [23:46:15]wFMCommunicate request_size=255 [23:46:15]MH_SAM_APDU [23:46:15]CAPDU: 80 0D 02 02 FA 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 32 30 30 30 30 33 39 34 35 30 30 31 30 06 04 1E 00 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 [23:46:15]Write to MH i2c: E2 02 01 08 32 80 0D 02 02 FA 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 32 30 30 30 30 33 39 34 35 30 30 31 30 06 04 1E 00 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 00 00 4E [23:46:16]Write i2c OK [23:46:16]MH_I2C_Read... [23:46:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:16]Read from MH i2c: E2 [23:46:16]MH_I2C_Read... [23:46:16]Read from MH i2c: E2 03 00 [23:46:16]MH_I2C_Read... [23:46:16]Read from MH i2c: E2 03 00 08 32 00 90 00 AE [23:46:16]RAPDU: 90 00 [23:46:16]wFMCommunicate OK [23:46:16]wFMCommunicate request_size=255 [23:46:16]MH_SAM_APDU [23:46:16]CAPDU: 80 0D 02 02 FA 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 [23:46:16]Write to MH i2c: E2 02 01 09 32 80 0D 02 02 FA 00 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 17 [23:46:16]Write i2c OK [23:46:16]MH_I2C_Read... [23:46:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:16]Read from MH i2c: E2 [23:46:16]MH_I2C_Read... [23:46:16]Read from MH i2c: E2 03 00 [23:46:16]MH_I2C_Read... [23:46:16]Read from MH i2c: E2 03 00 09 32 00 90 00 AF [23:46:16]RAPDU: 90 00 [23:46:16]wFMCommunicate OK [23:46:16]wFMCommunicate request_size=255 [23:46:16]MH_SAM_APDU [23:46:16]CAPDU: 80 0D 02 02 FA 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 40 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 [23:46:16]Write to MH i2c: E2 02 01 0A 32 80 0D 02 02 FA 00 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 40 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 00 00 14 [23:46:16]Write i2c OK [23:46:16]MH_I2C_Read... [23:46:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:17]Read from MH i2c: E2 [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: E2 03 00 [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: E2 03 00 0A 32 00 90 00 B0 [23:46:17]RAPDU: 90 00 [23:46:17]wFMCommunicate OK [23:46:17]wFMCommunicate request_size=194 [23:46:17]MH_SAM_APDU [23:46:17]CAPDU: 80 0D 02 02 BD 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 B2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 2E 00 00 00 00 07 04 06 00 60 B2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 48 AC F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 36 C3 01 00 35 04 06 00 F7 76 55 92 08 EE [23:46:17]Write to MH i2c: E2 C5 00 0B 32 80 0D 02 02 BD 00 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 B2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 2E 00 00 00 00 07 04 06 00 60 B2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 48 AC F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 36 C3 01 00 35 04 06 00 F7 76 55 92 08 EE 00 00 5C [23:46:17]Write i2c OK [23:46:17]MH_I2C_Read... [23:46:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:17]Read from MH i2c: E2 [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: E2 03 00 [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: E2 03 00 0B 32 00 90 00 B1 [23:46:17]RAPDU: 90 00 [23:46:17]wFMCommunicate OK [23:46:17]wFMCommunicate request_size=4 [23:46:17]MH_SAM_APDU [23:46:17]CAPDU: 80 0D 03 02 [23:46:17]Write to MH i2c: E2 08 00 0C 32 80 0D 03 02 00 00 00 00 B9 [23:46:17]Write i2c OK [23:46:17]MH_I2C_Read... [23:46:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:46:17]Read from MH i2c: E2 [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: E2 0B 00 [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: E2 0B 00 0C 32 00 25 AD 06 B1 DA B7 77 E9 90 00 34 [23:46:17]RAPDU: 25 AD 06 B1 DA B7 77 E9 90 00 [23:46:17]wFMCommunicate OK [23:46:17]SAM_PROTO_SignData done [23:46:17]FM_MakeSignedData done [23:46:17]CreateOFDProtocolMessage [23:46:17]wFMCommunicate request_size=4 [23:46:17]MH_SAM_APDU [23:46:17]CAPDU: 80 11 00 00 [23:46:17]Write to MH i2c: E2 08 00 0D 32 80 11 00 00 00 00 00 00 B9 [23:46:17]Write i2c OK [23:46:17]MH_I2C_Read... [23:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:17]Read from MH i2c: E2 [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: E2 17 00 [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: E2 17 00 0D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 07 [23:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:46:17]wFMCommunicate OK [23:46:17]CreateOFDProtocolMessage done [23:46:17]OFDSenderStorePacket 115510 [23:46:17]StoreOFDPacket docnum=115510 [23:46:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 AF 05 00 00 4F 4E A7 05 B9 BD 5A 03 01 00 03 00 9B 05 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 30 31 36 06 04 27 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 B1 D0 B5 D0 BA D0 BE D0 BD 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 32 30 30 30 30 33 39 34 35 30 30 31 30 06 04 1E 00 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 40 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 B2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 2E 00 00 00 00 07 04 06 00 60 B2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 48 AC F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 36 C3 01 00 35 04 06 00 F7 76 55 92 08 EE 25 AD 06 B1 DA B7 77 E9 [23:46:17]CheckFolder [23:46:17]dirname=/storage/ofd_packets [23:46:17]CheckFolder done [23:46:17]ProducePacketName [23:46:17]name=ofd_packets/00115510 [23:46:17]NVStorageSaveData ofd_packets/00115510 [23:46:17]File name is /storage/ofd_packets/00115510 [23:46:17]Write 1485 bytes [23:46:17]NVStorageSaveData done [23:46:17]OFDSenderStorePacket done [23:46:17]KKMCreateOFDPacket done [23:46:17]NVStorageSaveData kkm_last_timestamp [23:46:17]File name is /storage/kkm_last_timestamp [23:46:17]Write 4 bytes [23:46:17]NVStorageSaveData done [23:46:17]ExternCall_PrintAddStr [23:46:17]wPrintStart [23:46:17]Write to MH i2c: 01 00 00 0E 32 40 [23:46:17]Write i2c OK [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: 01 [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: 01 07 00 [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: 01 07 00 0E 32 00 00 00 00 00 FF 0F 55 [23:46:17]RasterBufferAndPrint [23:46:17]line Счет N : (3)343939 [23:46:17]line ИНН: 02508201610067 [23:46:17]line Контрольно-Кассовый Чек [23:46:17]line ПРОДАЖА [23:46:17]line Товар: 4607010740016 [23:46:17]line Сух Кириешки бекон 40г [23:46:17]line 2.000 * 21.00 [23:46:17]line = 42.00 [23:46:17]line НДС 12% НСП 1% [23:46:17]line > о реализуемом товаре [23:46:17]line Товар: 4700000310173 [23:46:17]line Вода Адыгене 0,5л б/г [23:46:17]line 1.000 * 30.00 [23:46:17]line = 30.00 [23:46:17]line НДС 12% НСП 1% [23:46:17]line > о реализуемом товаре [23:46:17]line Товар: 4700026030031 [23:46:17]line Курут orbit [23:46:17]line 1.000 * 49.00 [23:46:17]line = 49.00 [23:46:17]line НДС 12% НСП 1% [23:46:17]line > о реализуемом товаре [23:46:17]line Товар: 2000036190018 [23:46:17]line Кофе Американо XL(GABB TRADE) [23:46:17]line 1.000 * 125.00 [23:46:17]line = 125.00 [23:46:17]line НДС 12% НСП 1% [23:46:17]line > о реализуемом товаре [23:46:17]line Товар: 2000036210013 [23:46:17]line Кофе Капучино (GABB TRADE) [23:46:17]line 1.000 * 115.00 [23:46:17]line = 115.00 [23:46:17]line НДС 12% НСП 1% [23:46:17]line > о реализуемом товаре [23:46:17]line Товар: 2000039450010 [23:46:17]line Чай зеленый 200 мл [23:46:17]line 1.000 * 40.00 [23:46:17]line = 40.00 [23:46:17]line НДС 12% НСП 1% [23:46:17]line > о реализуемом товаре [23:46:17]line Товар: 4700000160358 [23:46:17]line Вода Легенда 1л [23:46:17]line 1.000 * 50.00 [23:46:17]line = 50.00 [23:46:17]line НДС 12% НСП 1% [23:46:17]line > о реализуемом товаре [23:46:17]line Товар: 42069942 [23:46:17]line Жев Orbit White Fresh Mint [23:46:17]line 1.000 * 45.00 [23:46:17]line = 45.00 [23:46:17]line НДС 12% НСП 1% [23:46:17]line > о реализуемом товаре [23:46:17]line Товар: 4700000160044 [23:46:17]line Вода Ыссык Ата 0,5л [23:46:17]line 1.000 * 40.00 [23:46:17]line = 40.00 [23:46:17]line НДС 12% НСП 1% [23:46:17]line > о реализуемом товаре [23:46:17]line Товар: 4700002083327 [23:46:17]line Водка Level 0,5 [23:46:17]line 1.000 * 510.00 [23:46:17]line = 510.00 [23:46:17]line НДС 12% НСП 1% [23:46:17]line > о реализуемом товаре [23:46:17]line Товар: 2000031750019 [23:46:17]line Пакет Партнер Нефть [23:46:17]line 4.000 * 4.00 [23:46:17]line = 16.00 [23:46:17]line НДС 12% НСП 1% [23:46:17]line > о реализуемом товаре [23:46:17]line Товар: 4700003010049 [23:46:17]line Let`s GO Чай зеленый грейпфрут 0,5л ПЭТ [23:46:17]line 1.000 * 50.00 [23:46:17]line = 50.00 [23:46:17]line НДС 12% НСП 1% [23:46:17]line > о реализуемом товаре [23:46:17]line ИТОГО: 1112.00 [23:46:17]line НСП 1% : 9.82 [23:46:17]line НДС 12% : 118.09 [23:46:17]line Наличными: 1112.00 [23:46:17]line Безнал.: 0.00 [23:46:17]line Место: АЗС № 90 "Партнер Нефть" [23:46:17]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [23:46:17]line СНО: Общий режим [23:46:17]line Чек 228 22.09.2024 23:46 [23:46:17]line Смена: 471 ФФД: 1.0 [23:46:17]line ЗНМ: 0300000120 [23:46:17]line РНМ: 0000000000091831 [23:46:17]line Версия ККМ: 001 [23:46:17]line ФМ: 0000000000871830 [23:46:17]line ФД: 115510 [23:46:17]line ФПД: 272087613835502 [23:46:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T234616&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115510&fm=272087613835502&tin=02508201610067®Number=0000000000091831&sum=111200 [23:46:17]line 0 [23:46:17]OFD Sender: Processing packet 115510 [packets to send 481, broken 480] [23:46:17]ProducePacketName [23:46:17]name=ofd_packets/00115510 [23:46:17]OFD Sender: To server: pG, [23:46:17]CommunicateWithHost lk.salyk.kg:30040 [23:46:17]ConnectInit lk.salyk.kg [23:46:17]written 0, free lines is 4095 [23:46:18]Connected sock=11 [23:46:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 AF 05 00 00 4F 4E A7 05 B9 BD 5A 03 01 00 03 00 9B 05 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 30 31 36 06 04 27 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 B1 D0 B5 D0 BA D0 BE D0 BD 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 32 30 30 30 30 33 39 34 35 30 30 31 30 06 04 1E 00 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 40 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 B2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 2E 00 00 00 00 07 04 06 00 60 B2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 48 AC F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 36 C3 01 00 35 04 06 00 F7 76 55 92 08 EE 25 AD 06 B1 DA B7 77 E9 [23:46:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 2D CA 47 00 80 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 31 38 33 30 10 04 04 00 36 C3 01 00 F4 03 04 00 90 51 F0 66 B6 04 01 00 00 45 F7 5D C6 93 2D 62 00 [23:46:18]CommunicateWithHost err = 0 [23:46:18]CheckOFDResponse [23:46:18]1017 (14) - 77093643461234 [23:46:18]1041 (16) - 0000000000871830 [23:46:18]1040 (4) - 115510 [23:46:18]1012 (4) - 22.09.2024 17:19 [23:46:18]1206 (1) - 0 [23:46:18]OFD Sender: Remove packet 115510 [23:46:18]ProducePacketName [23:46:18]name=ofd_packets/00115510 [23:46:18]NVStorageDeleteData [23:46:18]int [23:46:18]Write to MH i2c: 01 00 00 6B 32 9D [23:46:18]Write i2c OK [23:46:18]MH_I2C_Read... [23:46:18]Write i2c OK [23:46:18]MH_I2C_Read... [23:46:18]Read from MH i2c: DD [23:46:18]MH_I2C_Read... [23:46:18]Read from MH i2c: DD [23:46:18]MH_I2C_Read... [23:46:18]Read from MH i2c: DD 05 00 [23:46:18]MH_I2C_Read... [23:46:18]Read from MH i2c: DD 05 00 [23:46:18]answer for other command [DD] [23:46:18]MH Int Process stopped [23:46:18]Read from MH i2c: DD 05 00 6B 32 00 1E 00 E0 07 83 [23:46:18]answer with wrong packet_num 326B - expected 326C [23:46:18]process_action_free close_receipt [23:46:18]json_value_free [23:46:18]json_value_free done [23:46:18]process_json_proto returns [23:46:18]Send response to host [23:46:18]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [23:46:18]free response buf [23:46:18]execute_script done [23:46:18]execute_script returns [23:46:18]free content buf [23:46:18]Sock 8.Close socket [23:46:18]Sock 8.Thread stoped [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:53]accept exits with 10 [23:46:53]New connection [23:46:53]New thread 3066826084 created [23:46:53]Thread 3066682724 joined [23:46:53]Waiting for new connection... [23:46:53] Sock 10.Parse request [23:46:53]Sock 10.Check first char [23:46:53]Sock 10.First char is OK [23:46:53]request: POST /json_proto HTTP/1.0 [23:46:53]Method: POST [23:46:53]URL: /json_proto [23:46:53]Method is POST - this is cgi request [23:46:53]url: /json_proto [23:46:53]query_string will be loaded in cgi processing [23:46:53]execute_cgi json_proto POST (null) [23:46:53]execute_cgi path=json_proto method=POST [23:46:53]POST find Content-Length [23:46:53]Host: 172.17.41.136:8080 [23:46:53]Content-Length: 215 [23:46:53]Content-Type: application/json [23:46:53] [23:46:53]POST finish read [23:46:53]Found Content-Length = 215 [23:46:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:53]execute_script... [23:46:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:53]POST & json_proto [23:46:53]process_json_proto [23:46:53]json parsed OK: [23:46:53]protocol is kg_v1.0 [23:46:53]action value=get_value [23:46:53]process_action get_value [23:46:53]cmd_get_value [23:46:53]process_action get_value done [23:46:53]requested_data is exist [23:46:53]produce_requested_data [23:46:53]requested_item kkm.sn is exist - process it [23:46:53]requested_item kkm.ver is exist - process it [23:46:53]requested_item fm.sn is exist - process it [23:46:53]wFMCommunicate request_size=4 [23:46:53]MH_SAM_APDU [23:46:53]CAPDU: 80 11 00 00 [23:46:53]Write to MH i2c: E2 08 00 6D 32 80 11 00 00 00 00 00 00 19 [23:46:53]Write i2c OK [23:46:53]MH_I2C_Read... [23:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:53]Read from MH i2c: E2 [23:46:53]MH_I2C_Read... [23:46:53]Read from MH i2c: E2 17 00 [23:46:53]MH_I2C_Read... [23:46:53]Read from MH i2c: E2 17 00 6D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 67 [23:46:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:46:53]wFMCommunicate OK [23:46:53]requested_item fd.num is exist - process it [23:46:53]SAM_PROTO_GetFieldsCounters [23:46:53]wFMCommunicate request_size=4 [23:46:53]MH_SAM_APDU [23:46:53]CAPDU: 80 13 00 00 [23:46:53]Write to MH i2c: E2 08 00 6E 32 80 13 00 00 00 00 00 00 1C [23:46:53]Write i2c OK [23:46:53]MH_I2C_Read... [23:46:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:53]Read from MH i2c: E2 [23:46:53]MH_I2C_Read... [23:46:53]Read from MH i2c: E2 62 00 [23:46:53]MH_I2C_Read... [23:46:53]Read from MH i2c: E2 62 00 6E 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 36 C3 01 00 0E 04 04 00 D7 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 B3 [23:46:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 36 C3 01 00 0E 04 04 00 D7 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 [23:46:53]wFMCommunicate OK [23:46:53]SAM_PROTO_GetFieldsCounters done [23:46:53]requested_item shift.num is exist - process it [23:46:53]requested_item shift.opened is exist - process it [23:46:53]req_shift_opened [23:46:53]FM_GetShiftState [23:46:53]SAM_PROTO_GetShiftState [23:46:53]wFMCommunicate request_size=4 [23:46:53]MH_SAM_APDU [23:46:53]CAPDU: 80 13 01 00 [23:46:53]Write to MH i2c: E2 08 00 6F 32 80 13 01 00 00 00 00 00 1E [23:46:53]Write i2c OK [23:46:53]MH_I2C_Read... [23:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:53]Read from MH i2c: E2 [23:46:53]MH_I2C_Read... [23:46:53]Read from MH i2c: E2 0E 00 [23:46:53]MH_I2C_Read... [23:46:53]Read from MH i2c: E2 0E 00 6F 32 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 37 [23:46:53]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [23:46:53]wFMCommunicate OK [23:46:53]SAM_PROTO_GetShiftState done [23:46:53]FM_GetShiftState done [23:46:53]req_shift_opened done [23:46:53]requested_item shift.open_date is exist - process it [23:46:53]req_shift_open_date [23:46:53]req_shift_open_date done [23:46:53]produce_requested_data done [23:46:53]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115510,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [23:46:53]process_action_free get_value [23:46:53]json_value_free [23:46:53]json_value_free done [23:46:53]process_json_proto returns [23:46:53]Send response to host [23:46:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115510,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [23:46:53]free response buf [23:46:53]execute_script done [23:46:53]execute_script returns [23:46:53]free content buf [23:46:53]Sock 10.Close socket [23:46:53]Sock 10.Thread stoped [23:46:53]accept exits with 5 [23:46:53]New connection [23:46:53]New thread 3066682724 created [23:46:53]Thread 3066826084 joined [23:46:53]Waiting for new connection... [23:46:53] Sock 5.Parse request [23:46:53]Sock 5.Check first char [23:46:53]Sock 5.First char is OK [23:46:53]request: POST /json_proto HTTP/1.0 [23:46:53]Method: POST [23:46:53]URL: /json_proto [23:46:53]Method is POST - this is cgi request [23:46:53]url: /json_proto [23:46:53]query_string will be loaded in cgi processing [23:46:53]execute_cgi json_proto POST (null) [23:46:53]execute_cgi path=json_proto method=POST [23:46:53]POST find Content-Length [23:46:53]Host: 172.17.41.136:8080 [23:46:53]Content-Length: 331 [23:46:53]Content-Type: application/json [23:46:53] [23:46:53]POST finish read [23:46:53]Found Content-Length = 331 [23:46:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:46:53]execute_script... [23:46:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:46:53]POST & json_proto [23:46:53]process_json_proto [23:46:53]json parsed OK: [23:46:53]protocol is kg_v1.0 [23:46:53]action value=get_value [23:46:53]process_action get_value [23:46:53]cmd_get_value [23:46:53]process_action get_value done [23:46:53]requested_data is exist [23:46:53]produce_requested_data [23:46:53]requested_item fm.sale.total is exist - process it [23:46:53]SAM_PROTO_GetFMData [23:46:53]wFMCommunicate request_size=4 [23:46:53]MH_SAM_APDU [23:46:53]CAPDU: 80 13 03 00 [23:46:53]Write to MH i2c: E2 08 00 70 32 80 13 03 00 00 00 00 00 21 [23:46:53]Write i2c OK [23:46:53]MH_I2C_Read... [23:46:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:46:54]Read from MH i2c: E2 [23:46:54]MH_I2C_Read... [23:46:54]Read from MH i2c: E2 FD 00 [23:46:54]MH_I2C_Read... [23:46:54]Read from MH i2c: E2 FD 00 70 32 00 C5 04 85 04 C1 04 6E 04 04 00 87 BF 01 00 69 04 A3 00 6F 04 04 00 0A BE 01 00 B1 04 05 00 1D 94 E7 80 01 70 04 05 00 A9 E5 42 47 01 72 04 04 00 74 AE A4 39 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 73 D6 E1 28 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 DD F0 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 D5 [23:46:54]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 87 BF 01 00 69 04 A3 00 6F 04 04 00 0A BE 01 00 B1 04 05 00 1D 94 E7 80 01 70 04 05 00 A9 E5 42 47 01 72 04 04 00 74 AE A4 39 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 73 D6 E1 28 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 DD F0 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 [23:46:54]wFMCommunicate OK [23:46:54]wFMCommunicate request_size=4 [23:46:54]MH_SAM_APDU [23:46:54]CAPDU: 80 17 00 00 [23:46:54]Write to MH i2c: E2 08 00 71 32 80 17 00 00 00 00 00 00 23 [23:46:54]Write i2c OK [23:46:54]MH_I2C_Read... [23:46:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:54]Read from MH i2c: E2 [23:46:54]MH_I2C_Read... [23:46:54]Read from MH i2c: E2 FD 00 [23:46:54]MH_I2C_Read... [23:46:54]Read from MH i2c: E2 FD 00 71 32 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 10 [23:46:54]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:46:54]wFMCommunicate OK [23:46:54]wFMCommunicate request_size=4 [23:46:54]MH_SAM_APDU [23:46:54]CAPDU: 80 17 00 00 [23:46:54]Write to MH i2c: E2 08 00 72 32 80 17 00 00 00 00 00 00 24 [23:46:54]OFD Sender: No OFD packet to send [23:46:54]Write i2c OK [23:46:54]MH_I2C_Read... [23:46:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:54]Read from MH i2c: E2 [23:46:54]MH_I2C_Read... [23:46:54]Read from MH i2c: E2 FD 00 [23:46:54]MH_I2C_Read... [23:46:54]Read from MH i2c: E2 FD 00 72 32 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 36 [23:46:54]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:46:54]wFMCommunicate OK [23:46:54]wFMCommunicate request_size=4 [23:46:54]MH_SAM_APDU [23:46:54]CAPDU: 80 17 00 00 [23:46:54]Write to MH i2c: E2 08 00 73 32 80 17 00 00 00 00 00 00 25 [23:46:54]Write i2c OK [23:46:54]MH_I2C_Read... [23:46:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:55]Read from MH i2c: E2 [23:46:55]MH_I2C_Read... [23:46:55]Read from MH i2c: E2 FD 00 [23:46:55]MH_I2C_Read... [23:46:55]Read from MH i2c: E2 FD 00 73 32 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 B1 [23:46:55]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:46:55]wFMCommunicate OK [23:46:55]wFMCommunicate request_size=4 [23:46:55]MH_SAM_APDU [23:46:55]CAPDU: 80 17 00 00 [23:46:55]Write to MH i2c: E2 08 00 74 32 80 17 00 00 00 00 00 00 26 [23:46:55]Write i2c OK [23:46:55]MH_I2C_Read... [23:46:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:46:55]Read from MH i2c: E2 [23:46:55]MH_I2C_Read... [23:46:55]Read from MH i2c: E2 E2 00 [23:46:55]MH_I2C_Read... [23:46:55]Read from MH i2c: E2 E2 00 74 32 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 04 [23:46:55]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:46:55]wFMCommunicate OK [23:46:55]SAM_PROTO_GetFMData done [23:46:55]requested_item fm.sale_refund.total is exist - process it [23:46:55]requested_item fm.buy.total is exist - process it [23:46:55]requested_item shift.sale.total is exist - process it [23:46:55]SAM_PROTO_GetShiftData [23:46:55]wFMCommunicate request_size=4 [23:46:55]MH_SAM_APDU [23:46:55]CAPDU: 80 13 02 00 [23:46:55]Write to MH i2c: E2 08 00 75 32 80 13 02 00 00 00 00 00 25 [23:46:55]Write i2c OK [23:46:55]MH_I2C_Read... [23:46:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:46:55]Read from MH i2c: E2 [23:46:55]MH_I2C_Read... [23:46:55]Read from MH i2c: E2 FD 00 [23:46:55]MH_I2C_Read... [23:46:55]Read from MH i2c: E2 FD 00 75 32 00 AF 04 AA 04 AB 04 6E 04 04 00 E4 00 00 00 69 04 9C 00 6F 04 04 00 E4 00 00 00 B1 04 03 00 61 67 79 70 04 03 00 98 1E 58 72 04 03 00 C9 48 21 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 A6 E4 0C 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 E0 12 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 C7 [23:46:55]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E4 00 00 00 69 04 9C 00 6F 04 04 00 E4 00 00 00 B1 04 03 00 61 67 79 70 04 03 00 98 1E 58 72 04 03 00 C9 48 21 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 A6 E4 0C 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 E0 12 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:46:56]wFMCommunicate OK [23:46:56]wFMCommunicate request_size=4 [23:46:56]MH_SAM_APDU [23:46:56]CAPDU: 80 17 00 00 [23:46:56]Write to MH i2c: E2 08 00 76 32 80 17 00 00 00 00 00 00 28 [23:46:56]Write i2c OK [23:46:56]MH_I2C_Read... [23:46:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:56]Read from MH i2c: E2 [23:46:56]MH_I2C_Read... [23:46:56]Read from MH i2c: E2 FD 00 [23:46:56]MH_I2C_Read... [23:46:56]Read from MH i2c: E2 FD 00 76 32 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 41 [23:46:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:46:56]wFMCommunicate OK [23:46:56]wFMCommunicate request_size=4 [23:46:56]MH_SAM_APDU [23:46:56]CAPDU: 80 17 00 00 [23:46:56]Write to MH i2c: E2 08 00 77 32 80 17 00 00 00 00 00 00 29 [23:46:56]Write i2c OK [23:46:56]MH_I2C_Read... [23:46:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:56]Read from MH i2c: E2 [23:46:56]MH_I2C_Read... [23:46:56]Read from MH i2c: E2 FD 00 [23:46:56]MH_I2C_Read... [23:46:56]Read from MH i2c: E2 FD 00 77 32 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 DD [23:46:56]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:46:56]wFMCommunicate OK [23:46:56]wFMCommunicate request_size=4 [23:46:56]MH_SAM_APDU [23:46:56]CAPDU: 80 17 00 00 [23:46:56]Write to MH i2c: E2 08 00 78 32 80 17 00 00 00 00 00 00 2A [23:46:56]Write i2c OK [23:46:56]MH_I2C_Read... [23:46:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:56]Read from MH i2c: E2 [23:46:56]MH_I2C_Read... [23:46:56]Read from MH i2c: E2 FD 00 [23:46:56]MH_I2C_Read... [23:46:56]Read from MH i2c: E2 FD 00 78 32 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 A8 [23:46:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:46:56]wFMCommunicate OK [23:46:56]wFMCommunicate request_size=4 [23:46:56]MH_SAM_APDU [23:46:56]CAPDU: 80 17 00 00 [23:46:56]Write to MH i2c: E2 08 00 79 32 80 17 00 00 00 00 00 00 2B [23:46:56]Write i2c OK [23:46:56]MH_I2C_Read... [23:46:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:46:57]Read from MH i2c: E2 [23:46:57]MH_I2C_Read... [23:46:57]Read from MH i2c: E2 CC 00 [23:46:57]MH_I2C_Read... [23:46:57]Read from MH i2c: E2 CC 00 79 32 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0C [23:46:57]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:46:57]wFMCommunicate OK [23:46:57]SAM_PROTO_GetShiftData done [23:46:57]requested_item shift.sale.total_cash is exist - process it [23:46:57]requested_item shift.sale_refund.total is exist - process it [23:46:57]requested_item shift.sale_refund.total_cash is exist - process it [23:46:57]requested_item shift.buy.total is exist - process it [23:46:57]requested_item shift.buy.total_cash is exist - process it [23:46:57]produce_requested_data done [23:46:57]produce_requested_data return {"fm.sale.total":64576276.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":79563.21,"shift.sale.total_cash":57750.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} [23:46:57]process_action_free get_value [23:46:57]json_value_free [23:46:57]json_value_free done [23:46:57]process_json_proto returns [23:46:57]Send response to host [23:46:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64576276.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":79563.21,"shift.sale.total_cash":57750.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}}} [23:46:57]free response buf [23:46:57]execute_script done [23:46:57]execute_script returns [23:46:57]free content buf [23:46:57]Sock 5.Close socket [23:46:57]Sock 5.Thread stoped [23:46:58]accept exits with 6 [23:46:58]New connection [23:46:58]New thread 3066826084 created [23:46:58]Thread 3066682724 joined [23:46:58]Waiting for new connection... [23:46:58] Sock 6.Parse request [23:46:58]Sock 6.Check first char [23:46:58]Sock 6.First char is OK [23:46:58]request: POST /json_proto HTTP/1.0 [23:46:58]Method: POST [23:46:58]URL: /json_proto [23:46:58]Method is POST - this is cgi request [23:46:58]url: /json_proto [23:46:58]query_string will be loaded in cgi processing [23:46:58]execute_cgi json_proto POST (null) [23:46:58]execute_cgi path=json_proto method=POST [23:46:58]POST find Content-Length [23:46:58]Host: 172.17.41.136:8080 [23:46:58]Content-Length: 621 [23:46:58]Content-Type: application/json [23:46:58] [23:46:58]POST finish read [23:46:58]Found Content-Length = 621 [23:46:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343940", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:58]execute_script... [23:46:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343940", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:58]POST & json_proto [23:46:58]process_json_proto [23:46:58]json parsed OK: [23:46:58]protocol is kg_v1.0 [23:46:58]action value=close_receipt [23:46:58]process_action close_receipt [23:46:58]cmd_close_receipt [23:46:58]MH_GetDate [23:46:58]Write to MH i2c: F0 00 00 7A 32 9B [23:46:58]Write i2c OK [23:46:58]MH_I2C_Read... [23:46:58]Read from MH i2c: F0 [23:46:58]MH_I2C_Read... [23:46:58]Read from MH i2c: F0 09 00 [23:46:58]MH_I2C_Read... [23:46:58]Read from MH i2c: F0 09 00 7A 32 00 75 AC F0 66 1B D0 5A 64 C4 [23:46:58]GetLastDocTimeStamp 1727048776 [23:46:58]current date 1727048821 [23:46:58]FM_GetShiftState [23:46:58]SAM_PROTO_GetShiftState [23:46:58]wFMCommunicate request_size=4 [23:46:58]MH_SAM_APDU [23:46:58]CAPDU: 80 13 01 00 [23:46:58]Write to MH i2c: E2 08 00 7B 32 80 13 01 00 00 00 00 00 2A [23:46:58]Write i2c OK [23:46:58]MH_I2C_Read... [23:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:58]Read from MH i2c: E2 [23:46:58]MH_I2C_Read... [23:46:58]Read from MH i2c: E2 0E 00 [23:46:58]MH_I2C_Read... [23:46:58]Read from MH i2c: E2 0E 00 7B 32 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 43 [23:46:58]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [23:46:58]wFMCommunicate OK [23:46:58]SAM_PROTO_GetShiftState done [23:46:58]FM_GetShiftState done [23:46:58]opened in 1726965840 [23:46:58]opened+sec_in_day 1727052240 [23:46:58]quantity*price = 14400 [23:46:58]sum+1 = 14401 [23:46:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 229 22.09.2024 23:47 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115511 ФПД: 231164439660205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T234701&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115511&fm=231164439660205&tin=02508201610067®Number=0000000000091831&sum=14400 0 [23:46:59]StoreToDocumentArchive [23:46:59]shift 471 fd 115511 [23:46:59]save to /storage/0471/doc_00115511 [23:46:59]save last doc name /storage/0471/doc_00115511 to /storage/kkm_last_doc_name [23:46:59]save OK [23:46:59]Clear old archive folders... [23:46:59]ProcessDocumentItem done err = 0, tmpTLVsize=273 [23:46:59]tlvbuf is 01D2C7F0 [23:46:59]SAM_PROTO_ClearQueue [23:46:59]wFMCommunicate request_size=4 [23:46:59]MH_SAM_APDU [23:46:59]CAPDU: 80 09 00 00 [23:46:59]Write to MH i2c: E2 08 00 88 32 80 09 00 00 00 00 00 00 2C [23:46:59]Write i2c OK [23:46:59]MH_I2C_Read... [23:46:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:46:59]Read from MH i2c: E2 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: E2 03 00 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: E2 03 00 88 32 00 90 00 2E [23:46:59]RAPDU: 90 00 [23:46:59]wFMCommunicate OK [23:46:59]SAM_PROTO_ClearQueue done [23:46:59]KKMCreateOFDPacket [23:46:59]OFDProtocolAddRootSTLVToBuf [23:46:59]FM_MakeSignedData [23:46:59]FM_MakeSignedData [23:46:59]SAM_PROTO_SignData [23:46:59]wFMCommunicate request_size=4 [23:46:59]MH_SAM_APDU [23:46:59]CAPDU: 80 0D 01 02 [23:46:59]Write to MH i2c: E2 08 00 89 32 80 0D 01 02 00 00 00 00 34 [23:46:59]Write i2c OK [23:46:59]MH_I2C_Read... [23:46:59]OFD Sender: No OFD packet to send [23:46:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:46:59]Read from MH i2c: E2 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: E2 03 00 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: E2 03 00 89 32 00 90 00 2F [23:46:59]RAPDU: 90 00 [23:46:59]wFMCommunicate OK [23:46:59]wFMCommunicate request_size=255 [23:46:59]MH_SAM_APDU [23:46:59]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 E5 00 00 00 F4 03 04 00 75 AC F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 [23:46:59]Write to MH i2c: E2 02 01 8A 32 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 E5 00 00 00 F4 03 04 00 75 AC F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 F7 [23:46:59]Write i2c OK [23:46:59]MH_I2C_Read... [23:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:00]Read from MH i2c: E2 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 03 00 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 03 00 8A 32 00 90 00 30 [23:47:00]RAPDU: 90 00 [23:47:00]wFMCommunicate OK [23:47:00]wFMCommunicate request_size=32 [23:47:00]MH_SAM_APDU [23:47:00]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 33 30 10 04 04 00 37 C3 01 00 35 04 06 00 D2 3E 2A 4F 86 AD [23:47:00]Write to MH i2c: E2 23 00 8B 32 80 0D 02 02 1B 00 30 30 30 38 37 31 38 33 30 10 04 04 00 37 C3 01 00 35 04 06 00 D2 3E 2A 4F 86 AD 00 00 46 [23:47:00]Write i2c OK [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 [23:47:00]MH_I2C_Read... [23:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:00]Read from MH i2c: E2 03 00 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 03 00 8B 32 00 90 00 31 [23:47:00]RAPDU: 90 00 [23:47:00]wFMCommunicate OK [23:47:00]wFMCommunicate request_size=4 [23:47:00]MH_SAM_APDU [23:47:00]CAPDU: 80 0D 03 02 [23:47:00]Write to MH i2c: E2 08 00 8C 32 80 0D 03 02 00 00 00 00 39 [23:47:00]Write i2c OK [23:47:00]MH_I2C_Read... [23:47:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:00]Read from MH i2c: E2 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 0B 00 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 0B 00 8C 32 00 21 2C 14 81 89 2C FE 85 90 00 54 [23:47:00]RAPDU: 21 2C 14 81 89 2C FE 85 90 00 [23:47:00]wFMCommunicate OK [23:47:00]SAM_PROTO_SignData done [23:47:00]FM_MakeSignedData done [23:47:00]CreateOFDProtocolMessage [23:47:00]wFMCommunicate request_size=4 [23:47:00]MH_SAM_APDU [23:47:00]CAPDU: 80 11 00 00 [23:47:00]Write to MH i2c: E2 08 00 8D 32 80 11 00 00 00 00 00 00 39 [23:47:00]Write i2c OK [23:47:00]MH_I2C_Read... [23:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:00]Read from MH i2c: E2 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 17 00 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 17 00 8D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 87 [23:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:47:00]wFMCommunicate OK [23:47:00]CreateOFDProtocolMessage done [23:47:00]OFDSenderStorePacket 115511 [23:47:00]StoreOFDPacket docnum=115511 [23:47:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 25 01 00 00 DF 77 1D 01 65 32 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 E5 00 00 00 F4 03 04 00 75 AC F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 37 C3 01 00 35 04 06 00 D2 3E 2A 4F 86 AD 21 2C 14 81 89 2C FE 85 [23:47:00]CheckFolder [23:47:00]dirname=/storage/ofd_packets [23:47:00]CheckFolder done [23:47:00]ProducePacketName [23:47:00]name=ofd_packets/00115511 [23:47:00]NVStorageSaveData ofd_packets/00115511 [23:47:00]File name is /storage/ofd_packets/00115511 [23:47:00]Write 323 bytes [23:47:00]NVStorageSaveData done [23:47:00]OFDSenderStorePacket done [23:47:00]KKMCreateOFDPacket done [23:47:00]NVStorageSaveData kkm_last_timestamp [23:47:00]File name is /storage/kkm_last_timestamp [23:47:00]Write 4 bytes [23:47:00]NVStorageSaveData done [23:47:00]ExternCall_PrintAddStr [23:47:00]wPrintStart [23:47:00]Write to MH i2c: 01 00 00 8E 32 C0 [23:47:00]Write i2c OK [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: 01 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: 01 07 00 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: 01 07 00 8E 32 00 00 00 00 00 FF 0F D5 [23:47:00]RasterBufferAndPrint [23:47:00]line Счет N : (3)343940 [23:47:00]line ИНН: 02508201610067 [23:47:00]line Контрольно-Кассовый Чек [23:47:00]line ПРОДАЖА [23:47:00]line Товар: 48747066 [23:47:00]line Сигареты Winston True Silver [23:47:00]line 1.000 * 144.00 [23:47:00]line = 144.00 [23:47:00]line НДС 12% НСП 1% [23:47:00]line > о реализуемом товаре [23:47:00]line ИТОГО: 144.00 [23:47:00]line НСП 1% : 1.27 [23:47:00]line НДС 12% : 15.29 [23:47:00]line Наличными: 144.00 [23:47:00]line Безнал.: 0.00 [23:47:00]line Место: АЗС № 90 "Партнер Нефть" [23:47:00]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [23:47:00]line СНО: Общий режим [23:47:00]line Чек 229 22.09.2024 23:47 [23:47:00]line Смена: 471 ФФД: 1.0 [23:47:00]line ЗНМ: 0300000120 [23:47:00]line РНМ: 0000000000091831 [23:47:00]line Версия ККМ: 001 [23:47:00]line ФМ: 0000000000871830 [23:47:00]line ФД: 115511 [23:47:00]line ФПД: 231164439660205 [23:47:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T234701&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115511&fm=231164439660205&tin=02508201610067®Number=0000000000091831&sum=14400 [23:47:00]line 0 [23:47:00]written 0, free lines is 4095 [23:47:00]OFD Sender: Processing packet 115511 [packets to send 481, broken 480] [23:47:00]ProducePacketName [23:47:00]name=ofd_packets/00115511 [23:47:00]OFD Sender: To server: pG, [23:47:00]CommunicateWithHost lk.salyk.kg:30040 [23:47:00]ConnectInit lk.salyk.kg [23:47:00]Connected sock=8 [23:47:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 25 01 00 00 DF 77 1D 01 65 32 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 E5 00 00 00 F4 03 04 00 75 AC F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 37 C3 01 00 35 04 06 00 D2 3E Write to MH i2c: 2A 01 4F 00 86 00 AD B5 21 32 2C E7 14 [23:47:01]81 89 2C FE 85 [23:47:01]Write i2c OK [23:47:01]MH_I2C_Read... [23:47:01]Read from MH i2c: 01 [23:47:01]MH_I2C_Read... [23:47:01]Read from MH i2c: 01 07 00 [23:47:01]MH_I2C_Read... [23:47:01]Read from MH i2c: 01 07 00 B5 32 00 00 00 00 00 2E 0D 29 [23:47:01]RasterBufferAndPrint [23:47:01]line [23:47:01]line [23:47:01]line [23:47:01]line [23:47:01]line [23:47:01]written 0, free lines is 3388 [23:47:01]MH_Cut [23:47:01]Write to MH i2c: D1 01 00 BC 32 01 C0 [23:47:01]Write i2c OK [23:47:01]MH_I2C_Read... [23:47:01]Read from MH i2c: D1 [23:47:01]MH_I2C_Read... [23:47:01]Read from MH i2c: D1 01 00 [23:47:01]MH_I2C_Read... [23:47:01]Read from MH i2c: D1 01 00 BC 32 00 BF [23:47:01]Write to MH i2c: 01 00 00 BD 32 EF [23:47:01]Write i2c OK [23:47:01]MH_I2C_Read... [23:47:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 18 A9 47 00 1E 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 37 C3 01 00 F4 03 04 00 BA 51 F0 66 B6 04 01 00 00 AD 07 B7 60 57 06 BA BB [23:47:01]CommunicateWithHost err = 0 [23:47:01]CheckOFDResponse [23:47:01]1017 (14) - 77093643461234 [23:47:01]1041 (16) - 0000000000871830 [23:47:01]1040 (4) - 115511 [23:47:01]1012 (4) - 22.09.2024 17:19 [23:47:01]1206 (1) - 0 [23:47:01]OFD Sender: Remove packet 115511 [23:47:01]ProducePacketName [23:47:01]name=ofd_packets/00115511 [23:47:01]NVStorageDeleteData [23:47:01]OFD Sender: No OFD packet to send [23:47:02]*** Cut start [23:47:02]*** Partial cut [23:47:02]*** CUTSNS_PIN = 1 [23:47:02]*** CUTSNS_PIN = 0 [23:47:02]*** Brake cut motor [23:47:02]Read from MH i2c: 01 [23:47:02]MH_I2C_Read... [23:47:02]*** Stop cut motor [23:47:02]*** Cut end [23:47:02]Read from MH i2c: 01 07 00 [23:47:02]MH_I2C_Read... [23:47:02]Read from MH i2c: 01 07 00 BD 32 00 00 00 00 00 FF 0F 04 [23:47:02]process_action close_receipt done [23:47:02]requested_data is exist [23:47:02]produce_requested_data [23:47:02]requested_item fm.sn is exist - process it [23:47:02]wFMCommunicate request_size=4 [23:47:02]MH_SAM_APDU [23:47:02]CAPDU: 80 11 00 00 [23:47:02]Write to MH i2c: E2 08 00 BE 32 80 11 00 00 00 00 00 00 6A [23:47:02]Write i2c OK [23:47:02]MH_I2C_Read... [23:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:02]Read from MH i2c: E2 [23:47:02]MH_I2C_Read... [23:47:02]Read from MH i2c: E2 17 00 [23:47:02]MH_I2C_Read... [23:47:02]Read from MH i2c: E2 17 00 BE 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B8 [23:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:47:02]wFMCommunicate OK [23:47:02]requested_item fd.num is exist - process it [23:47:02]SAM_PROTO_GetFieldsCounters [23:47:02]wFMCommunicate request_size=4 [23:47:02]MH_SAM_APDU [23:47:02]CAPDU: 80 13 00 00 [23:47:02]Write to MH i2c: E2 08 00 BF 32 80 13 00 00 00 00 00 00 6D [23:47:02]Write i2c OK [23:47:02]MH_I2C_Read... [23:47:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:03]Read from MH i2c: E2 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: E2 62 00 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: E2 62 00 BF 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 37 C3 01 00 0E 04 04 00 D7 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 08 [23:47:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 37 C3 01 00 0E 04 04 00 D7 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 [23:47:03]wFMCommunicate OK [23:47:03]SAM_PROTO_GetFieldsCounters done [23:47:03]requested_item shift.num is exist - process it [23:47:03]requested_item shift.opened is exist - process it [23:47:03]req_shift_opened [23:47:03]FM_GetShiftState [23:47:03]SAM_PROTO_GetShiftState [23:47:03]wFMCommunicate request_size=4 [23:47:03]MH_SAM_APDU [23:47:03]CAPDU: 80 13 01 00 [23:47:03]Write to MH i2c: E2 08 00 C0 32 80 13 01 00 00 00 00 00 6F [23:47:03]Write i2c OK [23:47:03]MH_I2C_Read... [23:47:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:03]Read from MH i2c: E2 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: E2 0E 00 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: E2 0E 00 C0 32 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 88 [23:47:03]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [23:47:03]wFMCommunicate OK [23:47:03]SAM_PROTO_GetShiftState done [23:47:03]FM_GetShiftState done [23:47:03]req_shift_opened done [23:47:03]requested_item shift.open_date is exist - process it [23:47:03]req_shift_open_date [23:47:03]req_shift_open_date done [23:47:03]produce_requested_data done [23:47:03]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115511,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [23:47:03]process_action_free close_receipt [23:47:03]json_value_free [23:47:03]json_value_free done [23:47:03]process_json_proto returns [23:47:03]Send response to host [23:47:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115511,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [23:47:03]free response buf [23:47:03]execute_script done [23:47:03]execute_script returns [23:47:03]free content buf [23:47:03]Sock 6.Close socket [23:47:03]Sock 6.Thread stoped [23:47:04]accept exits with 5 [23:47:04]New connection [23:47:04]New thread 3066682724 created [23:47:04]Thread 3066826084 joined [23:47:04]Waiting for new connection... [23:47:04] Sock 5.Parse request [23:47:04]Sock 5.Check first char [23:47:04]Sock 5.First char is OK [23:47:04]request: POST /json_proto HTTP/1.0 [23:47:04]Method: POST [23:47:04]URL: /json_proto [23:47:04]Method is POST - this is cgi request [23:47:04]url: /json_proto [23:47:04]query_string will be loaded in cgi processing [23:47:04]execute_cgi json_proto POST (null) [23:47:04]execute_cgi path=json_proto method=POST [23:47:04]POST find Content-Length [23:47:04]Host: 172.17.41.136:8080 [23:47:04]Content-Length: 1252 [23:47:04]Content-Type: application/json [23:47:04] [23:47:04]POST finish read [23:47:04]Found Content-Length = 1252 [23:47:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343941", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823063106399", "name": "\u0421\u0430\u0434\u043E\u0447\u043E\u043A 0,2 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434\u043D\u043E-\u044F\u0431\u043B\u043E\u0447\u043D\u044B\u0439 \u0441\u043E\u043A \u0441 \u0441\u0430", "price" : 45.00, "quantity" : 3.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003610546", "name": "\u0412\u043E\u0434\u0430 \u0421orona Ice \u043D\u0435\u0433\u0430\u0437 6\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:04]execute_script... [23:47:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343941", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823063106399", "name": "\u0421\u0430\u0434\u043E\u0447\u043E\u043A 0,2 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434\u043D\u043E-\u044F\u0431\u043B\u043E\u0447\u043D\u044B\u0439 \u0441\u043E\u043A \u0441 \u0441\u0430", "price" : 45.00, "quantity" : 3.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003610546", "name": "\u0412\u043E\u0434\u0430 \u0421orona Ice \u043D\u0435\u0433\u0430\u0437 6\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:04]POST & json_proto [23:47:04]process_json_proto [23:47:04]json parsed OK: [23:47:04]protocol is kg_v1.0 [23:47:04]action value=close_receipt [23:47:04]process_action close_receipt [23:47:04]cmd_close_receipt [23:47:04]MH_GetDate [23:47:04]Write to MH i2c: F0 00 00 C1 32 E2 [23:47:04]Write i2c OK [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: F0 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: F0 09 00 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: F0 09 00 C1 32 00 7C AC F0 66 1B D0 5A 64 12 [23:47:04]GetLastDocTimeStamp 1727048821 [23:47:04]current date 1727048828 [23:47:04]FM_GetShiftState [23:47:04]SAM_PROTO_GetShiftState [23:47:04]wFMCommunicate request_size=4 [23:47:04]MH_SAM_APDU [23:47:04]CAPDU: 80 13 01 00 [23:47:04]Write to MH i2c: E2 08 00 C2 32 80 13 01 00 00 00 00 00 71 [23:47:04]Write i2c OK [23:47:04]MH_I2C_Read... [23:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:04]Read from MH i2c: E2 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: E2 0E 00 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: E2 0E 00 C2 32 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 8A [23:47:04]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [23:47:04]wFMCommunicate OK [23:47:04]SAM_PROTO_GetShiftState done [23:47:04]FM_GetShiftState done [23:47:04]opened in 1726965840 [23:47:04]opened+sec_in_day 1727052240 [23:47:04]quantity*price = 5000 [23:47:04]sum+1 = 5001 [23:47:04]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4823063106399 Садочок 0,2 Виноградно-яблочный сок с са 3.000 * 45.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003610546 Вода Сorona Ice негаз 6л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.51 НДС 12% : 30.27 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 230 22.09.2024 23:47 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115512 ФПД: 276886951635021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T234708&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115512&fm=276886951635021&tin=02508201610067®Number=0000000000091831&sum=28500 0 [23:47:06]StoreToDocumentArchive [23:47:06]shift 471 fd 115512 [23:47:06]save to /storage/0471/doc_00115512 [23:47:06]save last doc name /storage/0471/doc_00115512 to /storage/kkm_last_doc_name [23:47:06]save OK [23:47:06]Clear old archive folders... [23:47:06]ProcessDocumentItem done err = 0, tmpTLVsize=519 [23:47:06]tlvbuf is 01D63CC0 [23:47:06]SAM_PROTO_ClearQueue [23:47:06]wFMCommunicate request_size=4 [23:47:06]MH_SAM_APDU [23:47:06]CAPDU: 80 09 00 00 [23:47:06]Write to MH i2c: E2 08 00 CF 32 80 09 00 00 00 00 00 00 73 [23:47:06]Write i2c OK [23:47:06]MH_I2C_Read... [23:47:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:06]Read from MH i2c: E2 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 03 00 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 03 00 CF 32 00 90 00 75 [23:47:06]RAPDU: 90 00 [23:47:06]wFMCommunicate OK [23:47:06]SAM_PROTO_ClearQueue done [23:47:06]KKMCreateOFDPacket [23:47:06]OFDProtocolAddRootSTLVToBuf [23:47:06]FM_MakeSignedData [23:47:06]FM_MakeSignedData [23:47:06]SAM_PROTO_SignData [23:47:06]wFMCommunicate request_size=4 [23:47:06]MH_SAM_APDU [23:47:06]CAPDU: 80 0D 01 02 [23:47:06]Write to MH i2c: E2 08 00 D0 32 80 0D 01 02 00 00 00 00 7B [23:47:06]Write i2c OK [23:47:06]MH_I2C_Read... [23:47:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:06]Read from MH i2c: E2 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 03 00 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 03 00 D0 32 00 90 00 76 [23:47:06]RAPDU: 90 00 [23:47:06]wFMCommunicate OK [23:47:06]wFMCommunicate request_size=255 [23:47:06]MH_SAM_APDU [23:47:06]CAPDU: 80 0D 02 02 FA 03 00 07 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 33 39 39 06 04 47 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 D0 BD D0 BE 2D D1 8F D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 D1 81 20 D1 81 D0 B0 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 [23:47:06]Write to MH i2c: E2 02 01 D1 32 80 0D 02 02 FA 00 03 00 07 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 33 39 39 06 04 47 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 D0 BD D0 BE 2D D1 8F D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 D1 81 20 D1 81 D0 B0 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 00 05 [23:47:06]OFD Sender: No OFD packet to send [23:47:07]Write i2c OK [23:47:07]MH_I2C_Read... [23:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:07]Read from MH i2c: E2 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 03 00 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 03 00 D1 32 00 90 00 77 [23:47:07]RAPDU: 90 00 [23:47:07]wFMCommunicate OK [23:47:07]wFMCommunicate request_size=255 [23:47:07]MH_SAM_APDU [23:47:07]CAPDU: 80 0D 02 02 FA 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 7C AC F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [23:47:07]Write to MH i2c: E2 02 01 D2 32 80 0D 02 02 FA 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 7C AC F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 C3 [23:47:07]Write i2c OK [23:47:07]MH_I2C_Read... [23:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:07]Read from MH i2c: E2 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 03 00 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 03 00 D2 32 00 90 00 78 [23:47:07]RAPDU: 90 00 [23:47:07]wFMCommunicate OK [23:47:07]wFMCommunicate request_size=28 [23:47:07]MH_SAM_APDU [23:47:07]CAPDU: 80 0D 02 02 17 37 31 38 33 30 10 04 04 00 38 C3 01 00 35 04 06 00 FB D3 C4 65 28 4D [23:47:07]Write to MH i2c: E2 1F 00 D3 32 80 0D 02 02 17 00 37 31 38 33 30 10 04 04 00 38 C3 01 00 35 04 06 00 FB D3 C4 65 28 4D 00 00 6F [23:47:07]Write i2c OK [23:47:07]MH_I2C_Read... [23:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:07]Read from MH i2c: E2 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 03 00 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 03 00 D3 32 00 90 00 79 [23:47:07]RAPDU: 90 00 [23:47:07]wFMCommunicate OK [23:47:07]wFMCommunicate request_size=4 [23:47:07]MH_SAM_APDU [23:47:07]CAPDU: 80 0D 03 02 [23:47:07]Write to MH i2c: E2 08 00 D4 32 80 0D 03 02 00 00 00 00 81 [23:47:07]Write i2c OK [23:47:07]MH_I2C_Read... [23:47:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:07]Read from MH i2c: E2 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 0B 00 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 0B 00 D4 32 00 63 BB 4C 2D D3 76 AA E9 90 00 F5 [23:47:07]RAPDU: 63 BB 4C 2D D3 76 AA E9 90 00 [23:47:07]wFMCommunicate OK [23:47:07]SAM_PROTO_SignData done [23:47:07]FM_MakeSignedData done [23:47:07]CreateOFDProtocolMessage [23:47:07]wFMCommunicate request_size=4 [23:47:07]MH_SAM_APDU [23:47:07]CAPDU: 80 11 00 00 [23:47:07]Write to MH i2c: E2 08 00 D5 32 80 11 00 00 00 00 00 00 81 [23:47:07]Write i2c OK [23:47:07]MH_I2C_Read... [23:47:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:07]Read from MH i2c: E2 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 17 00 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 17 00 D5 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CF [23:47:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:47:07]wFMCommunicate OK [23:47:07]CreateOFDProtocolMessage done [23:47:07]OFDSenderStorePacket 115512 [23:47:07]StoreOFDPacket docnum=115512 [23:47:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1B 02 00 00 92 C8 13 02 6D 1C 5A 03 01 00 03 00 07 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 33 39 39 06 04 47 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 D0 BD D0 BE 2D D1 8F D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 D1 81 20 D1 81 D0 B0 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 7C AC F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 38 C3 01 00 35 04 06 00 FB D3 C4 65 28 4D 63 BB 4C 2D D3 76 AA E9 [23:47:07]CheckFolder [23:47:07]dirname=/storage/ofd_packets [23:47:07]CheckFolder done [23:47:07]ProducePacketName [23:47:07]name=ofd_packets/00115512 [23:47:07]NVStorageSaveData ofd_packets/00115512 [23:47:07]File name is /storage/ofd_packets/00115512 [23:47:07]Write 569 bytes [23:47:07]NVStorageSaveData done [23:47:07]OFDSenderStorePacket done [23:47:07]KKMCreateOFDPacket done [23:47:07]NVStorageSaveData kkm_last_timestamp [23:47:07]File name is /storage/kkm_last_timestamp [23:47:07]Write 4 bytes [23:47:07]NVStorageSaveData done [23:47:07]ExternCall_PrintAddStr [23:47:07]wPrintStart [23:47:07]Write to MH i2c: 01 00 00 D6 32 08 [23:47:07]Write i2c OK [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: 01 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: 01 07 00 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: 01 07 00 D6 32 00 00 00 00 00 FF 0F 1D [23:47:07]RasterBufferAndPrint [23:47:07]line Счет N : (3)343941 [23:47:07]line ИНН: 02508201610067 [23:47:07]line Контрольно-Кассовый Чек [23:47:07]line ПРОДАЖА [23:47:07]line Товар: 4700000160358 [23:47:07]line Вода Легенда 1л [23:47:07]line 1.000 * 50.00 [23:47:07]line = 50.00 [23:47:07]line НДС 12% НСП 1% [23:47:07]line > о реализуемом товаре [23:47:07]line Товар: 4823063106399 [23:47:07]line Садочок 0,2 Виноградно-яблочный сок с са [23:47:07]line 3.000 * 45.00 [23:47:07]line = 135.00 [23:47:07]line НДС 12% НСП 1% [23:47:07]line > о реализуемом товаре [23:47:07]line Товар: 4700003610546 [23:47:07]line Вода Сorona Ice негаз 6л [23:47:07]line 1.000 * 100.00 [23:47:07]line = 100.00 [23:47:07]line НДС 12% НСП 1% [23:47:07]line > о реализуемом товаре [23:47:07]line ИТОГО: 285.00 [23:47:07]line НСП 1% : 2.51 [23:47:07]line НДС 12% : 30.27 [23:47:07]line Наличными: 285.00 [23:47:07]line Безнал.: 0.00 [23:47:07]line Место: АЗС № 90 "Партнер Нефть" [23:47:07]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [23:47:07]line СНО: Общий режим [23:47:07]line Чек 230 22.09.2024 23:47 [23:47:07]line Смена: 471 ФФД: 1.0 [23:47:07]line ЗНМ: 0300000120 [23:47:07]line РНМ: 0000000000091831 [23:47:07]line Версия ККМ: 001 [23:47:07]line ФМ: 0000000000871830 [23:47:07]line ФД: 115512 [23:47:07]line ФПД: 276886951635021 [23:47:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T234708&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115512&fm=276886951635021&tin=02508201610067®Number=0000000000091831&sum=28500 [23:47:07]line 0 [23:47:07]written 0, free lines is 4095 [23:47:08]OFD Sender: Processing packet 115512 [packets to send 481, broken 480] [23:47:08]ProducePacketName [23:47:08]name=ofd_packets/00115512 [23:47:08]OFD Sender: To server: pG, [23:47:08]CommunicateWithHost lk.salyk.kg:30040 [23:47:08]ConnectInit lk.salyk.kg [23:47:08]Connected sock=8 [23:47:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1B 02 00 00 92 C8 13 02 6D 1C 5A 03 01 00 03 00 07 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 33 39 39 06 04 47 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 D0 BD D0 BE 2D D1 8F D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 D1 81 20 D1 81 D0 B0 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 7C AC F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 38 C3 01 00 35 04 06 00 FB D3 C4 65 28 4D 63 BB 4C Write to MH i2c: 2D 01 D3 00 76 00 AA 0A E9 33 [23:47:08]3D [23:47:08]Write i2c OK [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: 01 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: 01 07 00 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: 01 07 00 0A 33 00 00 00 00 00 B8 0B 07 [23:47:08]RasterBufferAndPrint [23:47:08]line [23:47:08]line [23:47:08]line [23:47:08]line [23:47:08]line [23:47:08]written 0, free lines is 3017 [23:47:08]MH_Cut [23:47:08]Write to MH i2c: D1 01 00 11 33 01 16 [23:47:08]Write i2c OK [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: D1 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: D1 01 00 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: D1 01 00 11 33 00 15 [23:47:08]Write to MH i2c: 01 00 00 12 33 45 [23:47:08]Write i2c OK [23:47:08]MH_I2C_Read... [23:47:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 81 0F 47 00 58 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 31 38 33 30 10 04 04 00 38 C3 01 00 F4 03 04 00 C2 51 F0 66 B6 04 01 00 00 01 1A EF BB 1F 1D 85 2E [23:47:09]CommunicateWithHost err = 0 [23:47:09]CheckOFDResponse [23:47:09]1017 (14) - 77093643461234 [23:47:09]1041 (16) - 0000000000871830 [23:47:09]1040 (4) - 115512 [23:47:09]1012 (4) - 22.09.2024 17:20 [23:47:09]1206 (1) - 0 [23:47:09]OFD Sender: Remove packet 115512 [23:47:09]ProducePacketName [23:47:09]name=ofd_packets/00115512 [23:47:09]NVStorageDeleteData [23:47:09]OFD Sender: No OFD packet to send [23:47:10]*** Cut start [23:47:10]*** Partial cut [23:47:10]*** CUTSNS_PIN = 1 [23:47:10]*** CUTSNS_PIN = 0 [23:47:10]*** Brake cut motor [23:47:10]Read from MH i2c: 01 [23:47:10]MH_I2C_Read... [23:47:10]*** Stop cut motor [23:47:10]*** Cut end [23:47:10]Read from MH i2c: 01 07 00 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: 01 07 00 12 33 00 00 00 00 00 FF 0F 5A [23:47:10]process_action close_receipt done [23:47:10]requested_data is exist [23:47:10]produce_requested_data [23:47:10]requested_item fm.sn is exist - process it [23:47:10]wFMCommunicate request_size=4 [23:47:10]MH_SAM_APDU [23:47:10]CAPDU: 80 11 00 00 [23:47:10]Write to MH i2c: E2 08 00 13 33 80 11 00 00 00 00 00 00 C0 [23:47:10]Write i2c OK [23:47:10]MH_I2C_Read... [23:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:10]Read from MH i2c: E2 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: E2 17 00 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: E2 17 00 13 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0E [23:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:47:10]wFMCommunicate OK [23:47:10]requested_item fd.num is exist - process it [23:47:10]SAM_PROTO_GetFieldsCounters [23:47:10]wFMCommunicate request_size=4 [23:47:10]MH_SAM_APDU [23:47:10]CAPDU: 80 13 00 00 [23:47:10]Write to MH i2c: E2 08 00 14 33 80 13 00 00 00 00 00 00 C3 [23:47:10]Write i2c OK [23:47:10]MH_I2C_Read... [23:47:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:11]Read from MH i2c: E2 [23:47:11]MH_I2C_Read... [23:47:11]Read from MH i2c: E2 62 00 [23:47:11]MH_I2C_Read... [23:47:11]Read from MH i2c: E2 62 00 14 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 38 C3 01 00 0E 04 04 00 D7 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 62 [23:47:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 38 C3 01 00 0E 04 04 00 D7 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 [23:47:11]wFMCommunicate OK [23:47:11]SAM_PROTO_GetFieldsCounters done [23:47:11]requested_item shift.num is exist - process it [23:47:11]requested_item shift.opened is exist - process it [23:47:11]req_shift_opened [23:47:11]FM_GetShiftState [23:47:11]SAM_PROTO_GetShiftState [23:47:11]wFMCommunicate request_size=4 [23:47:11]MH_SAM_APDU [23:47:11]CAPDU: 80 13 01 00 [23:47:11]Write to MH i2c: E2 08 00 15 33 80 13 01 00 00 00 00 00 C5 [23:47:11]Write i2c OK [23:47:11]MH_I2C_Read... [23:47:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:11]Read from MH i2c: E2 [23:47:11]MH_I2C_Read... [23:47:11]Read from MH i2c: E2 0E 00 [23:47:11]MH_I2C_Read... [23:47:11]Read from MH i2c: E2 0E 00 15 33 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 DE [23:47:11]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [23:47:11]wFMCommunicate OK [23:47:11]SAM_PROTO_GetShiftState done [23:47:11]FM_GetShiftState done [23:47:11]req_shift_opened done [23:47:11]requested_item shift.open_date is exist - process it [23:47:11]req_shift_open_date [23:47:11]req_shift_open_date done [23:47:11]produce_requested_data done [23:47:11]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115512,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [23:47:11]process_action_free close_receipt [23:47:11]json_value_free [23:47:11]json_value_free done [23:47:11]process_json_proto returns [23:47:11]Send response to host [23:47:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115512,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [23:47:11]free response buf [23:47:11]execute_script done [23:47:11]execute_script returns [23:47:11]free content buf [23:47:11]Sock 5.Close socket [23:47:11]Sock 5.Thread stoped [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:29]OFD Sender: No OFD packet to send [23:47:34]OFD Sender: No OFD packet to send [23:47:39]OFD Sender: No OFD packet to send [23:47:44]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:04]OFD Sender: No OFD packet to send [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:50]OFD Sender: No OFD packet to send [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:05]OFD Sender: No OFD packet to send [23:51:10]OFD Sender: No OFD packet to send [23:51:15]OFD Sender: No OFD packet to send [23:51:20]OFD Sender: No OFD packet to send [23:51:25]OFD Sender: No OFD packet to send [23:51:30]OFD Sender: No OFD packet to send [23:51:35]OFD Sender: No OFD packet to send [23:51:40]OFD Sender: No OFD packet to send [23:51:45]OFD Sender: No OFD packet to send [23:51:50]OFD Sender: No OFD packet to send [23:51:53]accept exits with 6 [23:51:53]New connection [23:51:53]New thread 3066826084 created [23:51:53]Thread 3066682724 joined [23:51:53]Waiting for new connection... [23:51:53] Sock 6.Parse request [23:51:53]Sock 6.Check first char [23:51:53]Sock 6.First char is OK [23:51:53]request: POST /json_proto HTTP/1.0 [23:51:53]Method: POST [23:51:53]URL: /json_proto [23:51:53]Method is POST - this is cgi request [23:51:53]url: /json_proto [23:51:53]query_string will be loaded in cgi processing [23:51:53]execute_cgi json_proto POST (null) [23:51:53]execute_cgi path=json_proto method=POST [23:51:53]POST find Content-Length [23:51:53]Host: 172.17.41.136:8080 [23:51:53]Content-Length: 1732 [23:51:53]Content-Type: application/json [23:51:53] [23:51:53]POST finish read [23:51:53]Found Content-Length = 1732 [23:51:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343942", "tax_sys" : 0, "items" : [ { "code": "4870215620852", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u041E\u0420\u0422\u0418\u0426\u042F ICE 0,50L", "price" : 600.00, "quantity" : 1.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077636004", "name": "\u041F\u0435\u0447 LOVITA \u0414\u0436\u0435\u043B\u043B\u0438 \u041A\u0443\u043A\u0438\u0441 \u043A\u0430\u043A\u0430\u043E \u0432\u0438\u0448\u043D\u044F 135 ", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721026691", "name": "\u041F\u0438\u0432\u043E ESSA \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D,\u0432\u0438\u0448\u043D\u044F 6,5% \u0441\u0442 0,45\u043B", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1443.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:53]execute_script... [23:51:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343942", "tax_sys" : 0, "items" : [ { "code": "4870215620852", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u041E\u0420\u0422\u0418\u0426\u042F ICE 0,50L", "price" : 600.00, "quantity" : 1.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077636004", "name": "\u041F\u0435\u0447 LOVITA \u0414\u0436\u0435\u043B\u043B\u0438 \u041A\u0443\u043A\u0438\u0441 \u043A\u0430\u043A\u0430\u043E \u0432\u0438\u0448\u043D\u044F 135 ", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721026691", "name": "\u041F\u0438\u0432\u043E ESSA \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D,\u0432\u0438\u0448\u043D\u044F 6,5% \u0441\u0442 0,45\u043B", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1443.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:53]POST & json_proto [23:51:53]process_json_proto [23:51:53]json parsed OK: [23:51:53]protocol is kg_v1.0 [23:51:53]action value=close_receipt [23:51:53]process_action close_receipt [23:51:53]cmd_close_receipt [23:51:53]MH_GetDate [23:51:53]Write to MH i2c: F0 00 00 16 33 38 [23:51:53]Write i2c OK [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: F0 [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: F0 09 00 [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: F0 09 00 16 33 00 9C AD F0 66 1B D0 5A 64 89 [23:51:53]GetLastDocTimeStamp 1727048828 [23:51:53]current date 1727049116 [23:51:53]FM_GetShiftState [23:51:53]SAM_PROTO_GetShiftState [23:51:53]wFMCommunicate request_size=4 [23:51:53]MH_SAM_APDU [23:51:53]CAPDU: 80 13 01 00 [23:51:53]Write to MH i2c: E2 08 00 17 33 80 13 01 00 00 00 00 00 C7 [23:51:53]Write i2c OK [23:51:53]MH_I2C_Read... [23:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:53]Read from MH i2c: E2 [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: E2 0E 00 [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: E2 0E 00 17 33 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 E0 [23:51:53]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [23:51:53]wFMCommunicate OK [23:51:53]SAM_PROTO_GetShiftState done [23:51:53]FM_GetShiftState done [23:51:53]opened in 1726965840 [23:51:53]opened+sec_in_day 1727052240 [23:51:53]quantity*price = 60000 [23:51:53]sum+1 = 60001 [23:51:53]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700002083327 Водка Level 0,5 1.000 * 510.00 = 510.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4823077636004 Печ LOVITA Джелли Кукис какао вишня 135 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600721026691 Пиво ESSA апельсин,вишня 6,5% ст 0,45л 1.000 * 138.00 = 138.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1443.00 НСП 1% : 12.77 НДС 12% : 153.24 Наличными: 1443.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 231 22.09.2024 23:51 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115513 ФПД: 100681519960136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T235156&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115513&fm=100681519960136&tin=02508201610067®Number=0000000000091831&sum=144300 0 [23:51:54]StoreToDocumentArchive [23:51:54]shift 471 fd 115513 [23:51:54]save to /storage/0471/doc_00115513 [23:51:54]save last doc name /storage/0471/doc_00115513 to /storage/kkm_last_doc_name [23:51:54]save OK [23:51:54]Clear old archive folders... [23:51:54]ProcessDocumentItem done err = 0, tmpTLVsize=733 [23:51:54]tlvbuf is 01C1AF10 [23:51:54]SAM_PROTO_ClearQueue [23:51:54]wFMCommunicate request_size=4 [23:51:54]MH_SAM_APDU [23:51:54]CAPDU: 80 09 00 00 [23:51:54]Write to MH i2c: E2 08 00 24 33 80 09 00 00 00 00 00 00 C9 [23:51:54]Write i2c OK [23:51:54]MH_I2C_Read... [23:51:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:51:54]Read from MH i2c: E2 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 03 00 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 03 00 24 33 00 90 00 CB [23:51:54]RAPDU: 90 00 [23:51:54]wFMCommunicate OK [23:51:54]SAM_PROTO_ClearQueue done [23:51:54]KKMCreateOFDPacket [23:51:54]OFDProtocolAddRootSTLVToBuf [23:51:54]FM_MakeSignedData [23:51:54]FM_MakeSignedData [23:51:54]SAM_PROTO_SignData [23:51:54]wFMCommunicate request_size=4 [23:51:54]MH_SAM_APDU [23:51:54]CAPDU: 80 0D 01 02 [23:51:54]Write to MH i2c: E2 08 00 25 33 80 0D 01 02 00 00 00 00 D1 [23:51:54]Write i2c OK [23:51:54]MH_I2C_Read... [23:51:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:51:54]Read from MH i2c: E2 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 03 00 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 03 00 25 33 00 90 00 CC [23:51:54]RAPDU: 90 00 [23:51:54]wFMCommunicate OK [23:51:54]wFMCommunicate request_size=255 [23:51:54]MH_SAM_APDU [23:51:54]CAPDU: 80 0D 02 02 FA 03 00 DD 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 31 35 36 32 30 38 35 32 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 9E D0 A0 D0 A2 D0 98 D0 A6 D0 AF 20 49 43 45 20 30 2C 35 30 4C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 EA 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 [23:51:54]Write to MH i2c: E2 02 01 26 33 80 0D 02 02 FA 00 03 00 DD 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 31 35 36 32 30 38 35 32 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 9E D0 A0 D0 A2 D0 98 D0 A6 D0 AF 20 49 43 45 20 30 2C 35 30 4C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 EA 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 00 00 20 [23:51:54]Write i2c OK [23:51:54]MH_I2C_Read... [23:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:54]Read from MH i2c: E2 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 03 00 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 03 00 26 33 00 90 00 CD [23:51:54]RAPDU: 90 00 [23:51:54]wFMCommunicate OK [23:51:54]wFMCommunicate request_size=255 [23:51:54]MH_SAM_APDU [23:51:54]CAPDU: 80 0D 02 02 FA 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 36 30 30 34 06 04 40 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 36 36 39 31 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 2C D0 B2 [23:51:54]Write to MH i2c: E2 02 01 27 33 80 0D 02 02 FA 00 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 36 30 30 34 06 04 40 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 36 36 39 31 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 2C D0 B2 00 00 BF [23:51:54]Write i2c OK [23:51:54]MH_I2C_Read... [23:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:54]Read from MH i2c: E2 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 03 00 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 03 00 27 33 00 90 00 CE [23:51:54]RAPDU: 90 00 [23:51:54]wFMCommunicate OK [23:51:54]wFMCommunicate request_size=242 [23:51:54]MH_SAM_APDU [23:51:54]CAPDU: 80 0D 02 02 ED D0 B8 D1 88 D0 BD D1 8F 20 36 2C 35 25 20 D1 81 D1 82 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 33 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 3B 00 00 00 00 07 04 06 00 AC 33 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 9C AD F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 39 C3 01 00 35 04 06 00 5B 91 BE 3B 90 48 [23:51:54]Write to MH i2c: E2 F5 00 28 33 80 0D 02 02 ED 00 D0 B8 D1 88 D0 BD D1 8F 20 36 2C 35 25 20 D1 81 D1 82 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 33 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 3B 00 00 00 00 07 04 06 00 AC 33 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 9C AD F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 39 C3 01 00 35 04 06 00 5B 91 BE 3B 90 48 00 00 FE [23:51:54]Write i2c OK [23:51:54]MH_I2C_Read... [23:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:55]Read from MH i2c: E2 [23:51:55]MH_I2C_Read... [23:51:55]Read from MH i2c: E2 03 00 [23:51:55]MH_I2C_Read... [23:51:55]Read from MH i2c: E2 03 00 28 33 00 90 00 CF [23:51:55]RAPDU: 90 00 [23:51:55]wFMCommunicate OK [23:51:55]wFMCommunicate request_size=4 [23:51:55]MH_SAM_APDU [23:51:55]CAPDU: 80 0D 03 02 [23:51:55]Write to MH i2c: E2 08 00 29 33 80 0D 03 02 00 00 00 00 D7 [23:51:55]Write i2c OK [23:51:55]MH_I2C_Read... [23:51:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:51:55]Read from MH i2c: E2 [23:51:55]MH_I2C_Read... [23:51:55]Read from MH i2c: E2 0B 00 [23:51:55]MH_I2C_Read... [23:51:55]Read from MH i2c: E2 0B 00 29 33 00 67 E7 A2 A9 13 8B D2 F6 90 00 D7 [23:51:55]RAPDU: 67 E7 A2 A9 13 8B D2 F6 90 00 [23:51:55]wFMCommunicate OK [23:51:55]SAM_PROTO_SignData done [23:51:55]FM_MakeSignedData done [23:51:55]CreateOFDProtocolMessage [23:51:55]wFMCommunicate request_size=4 [23:51:55]MH_SAM_APDU [23:51:55]CAPDU: 80 11 00 00 [23:51:55]Write to MH i2c: E2 08 00 2A 33 80 11 00 00 00 00 00 00 D7 [23:51:55]Write i2c OK [23:51:55]MH_I2C_Read... [23:51:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:55]Read from MH i2c: E2 [23:51:55]MH_I2C_Read... [23:51:55]OFD Sender: No OFD packet to send [23:51:55]Read from MH i2c: E2 17 00 [23:51:55]MH_I2C_Read... [23:51:55]Read from MH i2c: E2 17 00 2A 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 25 [23:51:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:51:55]wFMCommunicate OK [23:51:55]CreateOFDProtocolMessage done [23:51:55]OFDSenderStorePacket 115513 [23:51:55]StoreOFDPacket docnum=115513 [23:51:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F1 02 00 00 14 FE E9 02 20 41 5A 03 01 00 03 00 DD 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 31 35 36 32 30 38 35 32 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 9E D0 A0 D0 A2 D0 98 D0 A6 D0 AF 20 49 43 45 20 30 2C 35 30 4C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 EA 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 36 30 30 34 06 04 40 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 36 36 39 31 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 2C D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 36 2C 35 25 20 D1 81 D1 82 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 33 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 3B 00 00 00 00 07 04 06 00 AC 33 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 9C AD F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 39 C3 01 00 35 04 06 00 5B 91 BE 3B 90 48 67 E7 A2 A9 13 8B D2 F6 [23:51:55]CheckFolder [23:51:55]dirname=/storage/ofd_packets [23:51:55]CheckFolder done [23:51:55]ProducePacketName [23:51:55]name=ofd_packets/00115513 [23:51:55]NVStorageSaveData ofd_packets/00115513 [23:51:55]File name is /storage/ofd_packets/00115513 [23:51:55]Write 783 bytes [23:51:55]NVStorageSaveData done [23:51:55]OFDSenderStorePacket done [23:51:55]KKMCreateOFDPacket done [23:51:55]NVStorageSaveData kkm_last_timestamp [23:51:55]File name is /storage/kkm_last_timestamp [23:51:55]Write 4 bytes [23:51:55]NVStorageSaveData done [23:51:55]ExternCall_PrintAddStr [23:51:55]wPrintStart [23:51:55]Write to MH i2c: 01 00 00 2B 33 5E [23:51:55]Write i2c OK [23:51:55]MH_I2C_Read... [23:51:55]Read from MH i2c: 01 [23:51:55]MH_I2C_Read... [23:51:55]Read from MH i2c: 01 07 00 [23:51:55]MH_I2C_Read... [23:51:55]Read from MH i2c: 01 07 00 2B 33 00 00 00 00 00 FF 0F 73 [23:51:55]RasterBufferAndPrint [23:51:55]line Счет N : (3)343942 [23:51:55]line ИНН: 02508201610067 [23:51:55]line Контрольно-Кассовый Чек [23:51:55]line ПРОДАЖА [23:51:55]line Товар: 4870215620852 [23:51:55]line Водка ХОРТИЦЯ ICE 0,50L [23:51:55]line 1.000 * 600.00 [23:51:55]line = 600.00 [23:51:55]line НДС 12% НСП 1% [23:51:55]line > о реализуемом товаре [23:51:55]line Товар: 4870001570057 [23:51:55]line Напиток Pepsi 0,5л [23:51:55]line 1.000 * 80.00 [23:51:55]line = 80.00 [23:51:55]line НДС 12% НСП 1% [23:51:55]line > о реализуемом товаре [23:51:55]line Товар: 4700002083327 [23:51:55]line Водка Level 0,5 [23:51:55]line 1.000 * 510.00 [23:51:55]line = 510.00 [23:51:55]line НДС 12% НСП 1% [23:51:55]line > о реализуемом товаре [23:51:55]line Товар: 4823077636004 [23:51:55]line Печ LOVITA Джелли Кукис какао вишня 135 [23:51:55]line 1.000 * 115.00 [23:51:55]line = 115.00 [23:51:55]line НДС 12% НСП 1% [23:51:55]line > о реализуемом товаре [23:51:55]line Товар: 4600721026691 [23:51:55]line Пиво ESSA апельсин,вишня 6,5% ст 0,45л [23:51:55]line 1.000 * 138.00 [23:51:55]line = 138.00 [23:51:55]line НДС 12% НСП 1% [23:51:55]line > о реализуемом товаре [23:51:55]line ИТОГО: 1443.00 [23:51:55]line НСП 1% : 12.77 [23:51:55]line НДС 12% : 153.24 [23:51:55]line Наличными: 1443.00 [23:51:55]line Безнал.: 0.00 [23:51:55]line Место: АЗС № 90 "Партнер Нефть" [23:51:55]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [23:51:55]line СНО: Общий режим [23:51:55]line Чек 231 22.09.2024 23:51 [23:51:55]line Смена: 471 ФФД: 1.0 [23:51:55]line ЗНМ: 0300000120 [23:51:55]line РНМ: 0000000000091831 [23:51:55]line Версия ККМ: 001 [23:51:55]line ФМ: 0000000000871830 [23:51:55]line ФД: 115513 [23:51:55]line ФПД: 100681519960136 [23:51:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T235156&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115513&fm=100681519960136&tin=02508201610067®Number=0000000000091831&sum=144300 [23:51:55]line 0 [23:51:55]written 0, free lines is 4095 [23:51:55]OFD Sender: Processing packet 115513 [packets to send 481, broken 480] [23:51:55]ProducePacketName [23:51:55]name=ofd_packets/00115513 [23:51:55]OFD Sender: To server: pG, [23:51:55]CommunicateWithHost lk.salyk.kg:30040 [23:51:55]ConnectInit lk.salyk.kg [23:51:55]Connected sock=8 [23:51:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F1 02 00 00 14 FE E9 02 20 41 5A 03 01 00 03 00 DD 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 31 35 36 32 30 38 35 32 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 9E D0 A0 D0 A2 D0 98 D0 A6 D0 AF 20 49 43 45 20 30 2C 35 30 4C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 EA 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 36 30 30 34 06 04 40 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 36 36 39 31 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 2C D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 36 2C 35 25 20 D1 81 D1 82 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 33 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 3B 00 00 00 00 07 04 06 00 AC 33 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 9C AD F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 39 C3 01 00 35 04 06 00 5B 91 BE 3B 90 48 67 E7 A2 A9 13 8B D2 F6 [23:51:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F6 77 47 00 D7 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 39 C3 01 00 F4 03 04 00 E1 52 F0 66 B6 04 01 00 00 E2 9E BD 51 48 9C 9A 82 [23:51:56]CommunicateWithHost err = 0 [23:51:56]CheckOFDResponse [23:51:56]1017 (14) - 77093643461234 [23:51:56]1041 (16) - 0000000000871830 [23:51:56]1040 (4) - 115513 [23:51:56]1012 (4) - 22.09.2024 17:24 [23:51:56]1206 (1) - 0 [23:51:56]OFD Sender: Remove packet 115513 [23:51:56]ProducePacketName [23:51:56]name=ofd_packets/00115513 [23:51:56]NVStorageDeleteData [23:51:56]Write to MH i2c: 01 00 00 6C 33 9F [23:51:56]Write i2c OK [23:51:56]MH_I2C_Read... [23:51:56]Read from MH i2c: 01 [23:51:56]MH_I2C_Read... [23:51:56]Read from MH i2c: 01 07 00 [23:51:56]MH_I2C_Read... [23:51:56]Read from MH i2c: 01 07 00 6C 33 00 00 00 00 00 51 0A 01 [23:51:56]RasterBufferAndPrint [23:51:56]line [23:51:56]line [23:51:56]line [23:51:56]line [23:51:56]line [23:51:56]written 0, free lines is 2647 [23:51:56]MH_Cut [23:51:56]Write to MH i2c: D1 01 00 73 33 01 78 [23:51:56]Write i2c OK [23:51:56]MH_I2C_Read... [23:51:56]Read from MH i2c: D1 [23:51:56]MH_I2C_Read... [23:51:56]Read from MH i2c: D1 01 00 [23:51:56]MH_I2C_Read... [23:51:56]Read from MH i2c: D1 01 00 73 33 00 77 [23:51:56]Write to MH i2c: 01 00 00 74 33 A7 [23:51:56]Write i2c OK [23:51:56]MH_I2C_Read... [23:51:56]OFD Sender: No OFD packet to send [23:51:58]*** Cut start [23:51:58]*** Partial cut [23:51:58]*** CUTSNS_PIN = 1 [23:51:58]*** CUTSNS_PIN = 0 [23:51:58]*** Brake cut motor [23:51:58]Read from MH i2c: 01 [23:51:58]MH_I2C_Read... [23:51:58]*** Stop cut motor [23:51:58]*** Cut end [23:51:58]Read from MH i2c: 01 07 00 [23:51:58]MH_I2C_Read... [23:51:58]Read from MH i2c: 01 07 00 74 33 00 00 00 00 00 FF 0F BC [23:51:58]process_action close_receipt done [23:51:58]requested_data is exist [23:51:58]produce_requested_data [23:51:58]requested_item fm.sn is exist - process it [23:51:58]wFMCommunicate request_size=4 [23:51:58]MH_SAM_APDU [23:51:58]CAPDU: 80 11 00 00 [23:51:58]Write to MH i2c: E2 08 00 75 33 80 11 00 00 00 00 00 00 22 [23:51:58]Write i2c OK [23:51:58]MH_I2C_Read... [23:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:59]Read from MH i2c: E2 [23:51:59]MH_I2C_Read... [23:51:59]Read from MH i2c: E2 17 00 [23:51:59]MH_I2C_Read... [23:51:59]Read from MH i2c: E2 17 00 75 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 70 [23:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:51:59]wFMCommunicate OK [23:51:59]requested_item fd.num is exist - process it [23:51:59]SAM_PROTO_GetFieldsCounters [23:51:59]wFMCommunicate request_size=4 [23:51:59]MH_SAM_APDU [23:51:59]CAPDU: 80 13 00 00 [23:51:59]Write to MH i2c: E2 08 00 76 33 80 13 00 00 00 00 00 00 25 [23:51:59]Write i2c OK [23:51:59]MH_I2C_Read... [23:51:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:59]Read from MH i2c: E2 [23:51:59]MH_I2C_Read... [23:51:59]Read from MH i2c: E2 62 00 [23:51:59]MH_I2C_Read... [23:51:59]Read from MH i2c: E2 62 00 76 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 39 C3 01 00 0E 04 04 00 D7 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 C8 [23:51:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 39 C3 01 00 0E 04 04 00 D7 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 [23:51:59]wFMCommunicate OK [23:51:59]SAM_PROTO_GetFieldsCounters done [23:51:59]requested_item shift.num is exist - process it [23:51:59]requested_item shift.opened is exist - process it [23:51:59]req_shift_opened [23:51:59]FM_GetShiftState [23:51:59]SAM_PROTO_GetShiftState [23:51:59]wFMCommunicate request_size=4 [23:51:59]MH_SAM_APDU [23:51:59]CAPDU: 80 13 01 00 [23:51:59]Write to MH i2c: E2 08 00 77 33 80 13 01 00 00 00 00 00 27 [23:51:59]Write i2c OK [23:51:59]MH_I2C_Read... [23:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:59]Read from MH i2c: E2 [23:51:59]MH_I2C_Read... [23:51:59]Read from MH i2c: E2 0E 00 [23:51:59]MH_I2C_Read... [23:51:59]Read from MH i2c: E2 0E 00 77 33 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 40 [23:51:59]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [23:51:59]wFMCommunicate OK [23:51:59]SAM_PROTO_GetShiftState done [23:51:59]FM_GetShiftState done [23:51:59]req_shift_opened done [23:51:59]requested_item shift.open_date is exist - process it [23:51:59]req_shift_open_date [23:51:59]req_shift_open_date done [23:51:59]produce_requested_data done [23:51:59]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115513,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [23:51:59]process_action_free close_receipt [23:51:59]json_value_free [23:51:59]json_value_free done [23:51:59]process_json_proto returns [23:51:59]Send response to host [23:51:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115513,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [23:51:59]free response buf [23:51:59]execute_script done [23:51:59]execute_script returns [23:51:59]free content buf [23:51:59]Sock 6.Close socket [23:51:59]Sock 6.Thread stoped [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:32]accept exits with 5 [23:54:32]New connection [23:54:32]New thread 3066682724 created [23:54:32]Thread 3066826084 joined [23:54:32]Waiting for new connection... [23:54:32] Sock 5.Parse request [23:54:32]Sock 5.Check first char [23:54:32]Sock 5.First char is OK [23:54:32]request: POST /json_proto HTTP/1.0 [23:54:32]Method: POST [23:54:32]URL: /json_proto [23:54:32]Method is POST - this is cgi request [23:54:32]url: /json_proto [23:54:32]query_string will be loaded in cgi processing [23:54:32]execute_cgi json_proto POST (null) [23:54:32]execute_cgi path=json_proto method=POST [23:54:32]POST find Content-Length [23:54:32]Host: 172.17.41.136:8080 [23:54:32]Content-Length: 753 [23:54:32]Content-Type: application/json [23:54:32] [23:54:32]POST finish read [23:54:32]Found Content-Length = 753 [23:54:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30054201", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:32]execute_script... [23:54: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)24617296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30054201", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:32]POST & json_proto [23:54:32]process_json_proto [23:54:32]json parsed OK: [23:54:32]protocol is kg_v1.0 [23:54:32]action value=close_receipt [23:54:32]process_action close_receipt [23:54:32]cmd_close_receipt [23:54:32]MH_GetDate [23:54:32]Write to MH i2c: F0 00 00 78 33 9A [23:54:32]Write i2c OK [23:54:32]MH_I2C_Read... [23:54:32]Read from MH i2c: F0 [23:54:32]MH_I2C_Read... [23:54:32]Read from MH i2c: F0 09 00 [23:54:32]MH_I2C_Read... [23:54:32]Read from MH i2c: F0 09 00 78 33 00 3C AE F0 66 1B D0 5A 64 8C [23:54:32]GetLastDocTimeStamp 1727049116 [23:54:32]current date 1727049276 [23:54:32]FM_GetShiftState [23:54:32]SAM_PROTO_GetShiftState [23:54:32]wFMCommunicate request_size=4 [23:54:32]MH_SAM_APDU [23:54:32]CAPDU: 80 13 01 00 [23:54:32]Write to MH i2c: E2 08 00 79 33 80 13 01 00 00 00 00 00 29 [23:54:32]Write i2c OK [23:54:32]MH_I2C_Read... [23:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:32]Read from MH i2c: E2 [23:54:32]MH_I2C_Read... [23:54:32]Read from MH i2c: E2 0E 00 [23:54:32]MH_I2C_Read... [23:54:32]Read from MH i2c: E2 0E 00 79 33 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 42 [23:54:32]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [23:54:32]wFMCommunicate OK [23:54:32]SAM_PROTO_GetShiftState done [23:54:32]FM_GetShiftState done [23:54:32]opened in 1726965840 [23:54:32]opened+sec_in_day 1727052240 [23:54:32]quantity*price = 0 [23:54:32]sum+1 = 1 [23:54:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 232 22.09.2024 23:54 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30054201 ФМ: 0000000000871830 ФД: 115514 ФПД: 212031183584649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T235436&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115514&fm=212031183584649&tin=02508201610067®Number=0000000000091831&sum=0 [23:54:33]StoreToDocumentArchive [23:54:33]shift 471 fd 115514 [23:54:33]save to /storage/0471/doc_00115514 [23:54:33]save last doc name /storage/0471/doc_00115514 to /storage/kkm_last_doc_name [23:54:33]save OK [23:54:33]Clear old archive folders... [23:54:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:54:33]tlvbuf is 01CE7260 [23:54:33]SAM_PROTO_ClearQueue [23:54:33]wFMCommunicate request_size=4 [23:54:33]MH_SAM_APDU [23:54:33]CAPDU: 80 09 00 00 [23:54:33]Write to MH i2c: E2 08 00 86 33 80 09 00 00 00 00 00 00 2B [23:54:33]Write i2c OK [23:54:33]MH_I2C_Read... [23:54:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:54:33]Read from MH i2c: E2 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 03 00 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 03 00 86 33 00 90 00 2D [23:54:33]RAPDU: 90 00 [23:54:33]wFMCommunicate OK [23:54:33]SAM_PROTO_ClearQueue done [23:54:33]KKMCreateOFDPacket [23:54:33]OFDProtocolAddRootSTLVToBuf [23:54:33]FM_MakeSignedData [23:54:33]FM_MakeSignedData [23:54:33]SAM_PROTO_SignData [23:54:33]wFMCommunicate request_size=4 [23:54:33]MH_SAM_APDU [23:54:33]CAPDU: 80 0D 01 02 [23:54:33]Write to MH i2c: E2 08 00 87 33 80 0D 01 02 00 00 00 00 33 [23:54:33]Write i2c OK [23:54:33]MH_I2C_Read... [23:54:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:54:33]Read from MH i2c: E2 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 03 00 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 03 00 87 33 00 90 00 2E [23:54:33]RAPDU: 90 00 [23:54:33]wFMCommunicate OK [23:54:33]wFMCommunicate request_size=255 [23:54:33]MH_SAM_APDU [23:54:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 3C AE F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3A C3 01 00 35 04 06 00 C0 D7 5B 60 [23:54:33]Write to MH i2c: E2 02 01 88 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 3C AE F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3A C3 01 00 35 04 06 00 C0 D7 5B 60 00 00 EB [23:54:33]Write i2c OK [23:54:33]MH_I2C_Read... [23:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:33]Read from MH i2c: E2 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 03 00 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 03 00 88 33 00 90 00 2F [23:54:33]RAPDU: 90 00 [23:54:33]wFMCommunicate OK [23:54:33]wFMCommunicate request_size=7 [23:54:33]MH_SAM_APDU [23:54:33]CAPDU: 80 0D 02 02 02 FD 89 [23:54:33]Write to MH i2c: E2 0A 00 89 33 80 0D 02 02 02 00 FD 89 00 00 C0 [23:54:33]Write i2c OK [23:54:33]MH_I2C_Read... [23:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:33]Read from MH i2c: E2 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 03 00 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 03 00 89 33 00 90 00 30 [23:54:33]RAPDU: 90 00 [23:54:33]wFMCommunicate OK [23:54:33]wFMCommunicate request_size=4 [23:54:33]MH_SAM_APDU [23:54:33]CAPDU: 80 0D 03 02 [23:54:33]Write to MH i2c: E2 08 00 8A 33 80 0D 03 02 00 00 00 00 38 [23:54:33]Write i2c OK [23:54:33]MH_I2C_Read... [23:54:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:54:34]Read from MH i2c: E2 [23:54:34]MH_I2C_Read... [23:54:34]Read from MH i2c: E2 0B 00 [23:54:34]MH_I2C_Read... [23:54:34]Read from MH i2c: E2 0B 00 8A 33 00 0E E2 DD FD EC 16 90 92 90 00 27 [23:54:34]RAPDU: 0E E2 DD FD EC 16 90 92 90 00 [23:54:34]wFMCommunicate OK [23:54:34]SAM_PROTO_SignData done [23:54:34]FM_MakeSignedData done [23:54:34]CreateOFDProtocolMessage [23:54:34]wFMCommunicate request_size=4 [23:54:34]MH_SAM_APDU [23:54:34]CAPDU: 80 11 00 00 [23:54:34]Write to MH i2c: E2 08 00 8B 33 80 11 00 00 00 00 00 00 38 [23:54:34]Write i2c OK [23:54:34]MH_I2C_Read... [23:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:34]Read from MH i2c: E2 [23:54:34]MH_I2C_Read... [23:54:34]Read from MH i2c: E2 17 00 [23:54:34]MH_I2C_Read... [23:54:34]Read from MH i2c: E2 17 00 8B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 86 [23:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:54:34]wFMCommunicate OK [23:54:34]CreateOFDProtocolMessage done [23:54:34]OFDSenderStorePacket 115514 [23:54:34]StoreOFDPacket docnum=115514 [23:54:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 B3 4F 04 01 2D BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 3C AE F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3A C3 01 00 35 04 06 00 C0 D7 5B 60 FD 89 0E E2 DD FD EC 16 90 92 [23:54:34]CheckFolder [23:54:34]dirname=/storage/ofd_packets [23:54:34]CheckFolder done [23:54:34]ProducePacketName [23:54:34]name=ofd_packets/00115514 [23:54:34]NVStorageSaveData ofd_packets/00115514 [23:54:34]File name is /storage/ofd_packets/00115514 [23:54:34]Write 298 bytes [23:54:34]NVStorageSaveData done [23:54:34]OFDSenderStorePacket done [23:54:34]KKMCreateOFDPacket done [23:54:34]NVStorageSaveData kkm_last_timestamp [23:54:34]File name is /storage/kkm_last_timestamp [23:54:34]Write 4 bytes [23:54:34]NVStorageSaveData done [23:54:34]ExternCall_PrintAddStr [23:54:34]wPrintStart [23:54:34]Write to MH i2c: 01 00 00 8C 33 BF [23:54:34]Write i2c OK [23:54:34]MH_I2C_Read... [23:54:34]Read from MH i2c: 01 [23:54:34]MH_I2C_Read... [23:54:34]Read from MH i2c: 01 07 00 [23:54:34]MH_I2C_Read... [23:54:34]Read from MH i2c: 01 07 00 8C 33 00 00 00 00 00 FF 0F D4 [23:54:34]RasterBufferAndPrint [23:54:34]line Счет N : (1)24617296 [23:54:34]line ИНН: 02508201610067 [23:54:34]line Контрольно-Кассовый Чек [23:54:34]line ПРОДАЖА [23:54:34]line ТРК (МРК, ГНК) : 11 [23:54:34]line Товар: 2710194210 [23:54:34]line ДТ-К-5 [23:54:34]line 50.000 * 0.00 [23:54:34]line = 0.00 [23:54:34]line НДС 12% НСП 1% [23:54:34]line > о реализуемом товаре [23:54:34]line ИТОГО: 0.00 [23:54:34]line НСП 1% : 0.00 [23:54:34]line НДС 12% : 0.00 [23:54:34]line Наличными: 0.00 [23:54:34]line Безнал.: 0.00 [23:54:34]line Место: АЗС № 90 "Партнер Нефть" [23:54:34]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [23:54:34]line СНО: Общий режим [23:54:34]line Чек 232 22.09.2024 23:54 [23:54:34]line Смена: 471 ФФД: 1.0 [23:54:34]line ЗНМ: 0300000120 [23:54:34]line РНМ: 0000000000091831 [23:54:34]line Версия ККМ: 001 [23:54:34]line Талоны: ТК ГПНА Online [23:54:34]line 30054201 [23:54:34]line ФМ: 0000000000871830 [23:54:34]line ФД: 115514 [23:54:34]line ФПД: 212031183584649 [23:54:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T235436&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115514&fm=212031183584649&tin=02508201610067®Number=0000000000091831&sum=0 [23:54:34]written 0, free lines is 4095 [23:54:34]OFD Sender: Processing packet 115514 [packets to send 481, broken 480] [23:54:34]ProducePacketName [23:54:34]name=ofd_packets/00115514 [23:54:34]OFD Sender: To server: pG, [23:54:34]CommunicateWithHost lk.salyk.kg:30040 [23:54:34]ConnectInit lk.salyk.kg [23:54:34]Write to MH i2c: 01 00 00 B5 33 E8 [23:54:34]Write i2c OK [23:54:34]MH_I2C_Read... [23:54:34]Read from MH i2c: 01 [23:54:34]MH_I2C_Read... [23:54:34]Read from MH i2c: 01 07 00 [23:54:34]MH_I2C_Read... [23:54:34]Read from MH i2c: 01 07 00 B5 33 00 00 00 00 00 5A 0C 55 [23:54:34]RasterBufferAndPrint [23:54:34]line [23:54:34]line [23:54:34]line [23:54:34]line [23:54:34]line [23:54:34]written 0, free lines is 3167 [23:54:34]MH_Cut [23:54:34]Write to MH i2c: D1 01 00 BC 33 01 C1 [23:54:34]Write i2c OK [23:54:34]MH_I2C_Read... [23:54:34]Read from MH i2c: D1 [23:54:34]MH_I2C_Read... [23:54:34]Read from MH i2c: D1 01 00 [23:54:34]MH_I2C_Read... [23:54:34]Read from MH i2c: D1 01 00 BC 33 00 C0 [23:54:34]Write to MH i2c: 01 00 00 BD 33 F0 [23:54:34]Write i2c OK [23:54:34]MH_I2C_Read... [23:54:34]Connected sock=6 [23:54:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 B3 4F 04 01 2D BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 3C AE F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3A C3 01 00 35 04 06 00 C0 D7 5B 60 FD 89 0E E2 DD FD EC 16 90 92 [23:54:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 0B 31 47 00 78 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3A C3 01 00 F4 03 04 00 80 53 F0 66 B6 04 01 00 00 58 80 B3 B7 41 FA C3 5F [23:54:35]CommunicateWithHost err = 0 [23:54:35]CheckOFDResponse [23:54:35]1017 (14) - 77093643461234 [23:54:35]1041 (16) - 0000000000871830 [23:54:35]1040 (4) - 115514 [23:54:35]1012 (4) - 22.09.2024 17:27 [23:54:35]1206 (1) - 0 [23:54:35]OFD Sender: Remove packet 115514 [23:54:35]ProducePacketName [23:54:35]name=ofd_packets/00115514 [23:54:35]NVStorageDeleteData [23:54:35]OFD Sender: No OFD packet to send [23:54:35]*** Cut start [23:54:35]*** Partial cut [23:54:35]*** CUTSNS_PIN = 1 [23:54:35]*** CUTSNS_PIN = 0 [23:54:36]*** Brake cut motor [23:54:36]Read from MH i2c: 01 [23:54:36]MH_I2C_Read... [23:54:36]*** Stop cut motor [23:54:36]*** Cut end [23:54:36]Read from MH i2c: 01 07 00 [23:54:36]MH_I2C_Read... [23:54:36]Read from MH i2c: 01 07 00 BD 33 00 00 00 00 00 FF 0F 05 [23:54:36]process_action close_receipt done [23:54:36]requested_data is exist [23:54:36]produce_requested_data [23:54:36]requested_item fm.sn is exist - process it [23:54:36]wFMCommunicate request_size=4 [23:54:36]MH_SAM_APDU [23:54:36]CAPDU: 80 11 00 00 [23:54:36]Write to MH i2c: E2 08 00 BE 33 80 11 00 00 00 00 00 00 6B [23:54:36]Write i2c OK [23:54:36]MH_I2C_Read... [23:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:36]Read from MH i2c: E2 [23:54:36]MH_I2C_Read... [23:54:36]Read from MH i2c: E2 17 00 [23:54:36]MH_I2C_Read... [23:54: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 31 38 33 30 90 00 B9 [23:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:54:36]wFMCommunicate OK [23:54:36]requested_item fd.num is exist - process it [23:54:36]SAM_PROTO_GetFieldsCounters [23:54:36]wFMCommunicate request_size=4 [23:54:36]MH_SAM_APDU [23:54:36]CAPDU: 80 13 00 00 [23:54:36]Write to MH i2c: E2 08 00 BF 33 80 13 00 00 00 00 00 00 6E [23:54:36]Write i2c OK [23:54:36]MH_I2C_Read... [23:54:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:36]Read from MH i2c: E2 [23:54:36]MH_I2C_Read... [23:54:36]Read from MH i2c: E2 62 00 [23:54:36]MH_I2C_Read... [23:54:36]Read from MH i2c: E2 62 00 BF 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3A C3 01 00 0E 04 04 00 D7 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 15 [23:54:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3A C3 01 00 0E 04 04 00 D7 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 [23:54:36]wFMCommunicate OK [23:54:36]SAM_PROTO_GetFieldsCounters done [23:54:36]requested_item shift.num is exist - process it [23:54:36]requested_item shift.opened is exist - process it [23:54:36]req_shift_opened [23:54:36]FM_GetShiftState [23:54:36]SAM_PROTO_GetShiftState [23:54:36]wFMCommunicate request_size=4 [23:54:36]MH_SAM_APDU [23:54:36]CAPDU: 80 13 01 00 [23:54:36]Write to MH i2c: E2 08 00 C0 33 80 13 01 00 00 00 00 00 70 [23:54:36]Write i2c OK [23:54:36]MH_I2C_Read... [23:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:36]Read from MH i2c: E2 [23:54:36]MH_I2C_Read... [23:54:36]Read from MH i2c: E2 0E 00 [23:54:36]MH_I2C_Read... [23:54:36]Read from MH i2c: E2 0E 00 C0 33 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 89 [23:54:36]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [23:54:36]wFMCommunicate OK [23:54:36]SAM_PROTO_GetShiftState done [23:54:36]FM_GetShiftState done [23:54:36]req_shift_opened done [23:54:36]requested_item shift.open_date is exist - process it [23:54:36]req_shift_open_date [23:54:36]req_shift_open_date done [23:54:36]produce_requested_data done [23:54:36]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115514,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [23:54:36]process_action_free close_receipt [23:54:36]json_value_free [23:54:36]json_value_free done [23:54:36]process_json_proto returns [23:54:36]Send response to host [23:54:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115514,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [23:54:36]free response buf [23:54:36]execute_script done [23:54:36]execute_script returns [23:54:36]free content buf [23:54:36]Sock 5.Close socket [23:54:36]Sock 5.Thread stoped [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:15]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]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:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00: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:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:49]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:55]accept exits with 8 [00:22:55]New connection [00:22:55]New thread 3066826084 created [00:22:55]Thread 3066682724 joined [00:22:55]Waiting for new connection... [00:22:55] Sock 8.Parse request [00:22:55]Sock 8.Check first char [00:22:55]Sock 8.First char is OK [00:22:55]request: POST /json_proto HTTP/1.0 [00:22:55]Method: POST [00:22:55]URL: /json_proto [00:22:55]Method is POST - this is cgi request [00:22:55]url: /json_proto [00:22:55]query_string will be loaded in cgi processing [00:22:55]execute_cgi json_proto POST (null) [00:22:55]execute_cgi path=json_proto method=POST [00:22:55]POST find Content-Length [00:22:55]Host: 172.17.41.136:8080 [00:22:55]Content-Length: 895 [00:22:55]Content-Type: application/json [00:22:55] [00:22:55]POST finish read [00:22:55]Found Content-Length = 895 [00:22:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343943", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:55]execute_script... [00:22:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343943", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:55]POST & json_proto [00:22:55]process_json_proto [00:22:55]json parsed OK: [00:22:55]protocol is kg_v1.0 [00:22:55]action value=close_receipt [00:22:55]process_action close_receipt [00:22:55]cmd_close_receipt [00:22:55]MH_GetDate [00:22:55]Write to MH i2c: F0 00 00 C1 33 E3 [00:22:55]Write i2c OK [00:22:55]MH_I2C_Read... [00:22:55]Read from MH i2c: F0 [00:22:55]MH_I2C_Read... [00:22:55]Read from MH i2c: F0 09 00 [00:22:55]MH_I2C_Read... [00:22:55]Read from MH i2c: F0 09 00 C1 33 00 E3 B4 F0 66 1B D0 5A 64 82 [00:22:55]GetLastDocTimeStamp 1727049276 [00:22:55]current date 1727050979 [00:22:55]FM_GetShiftState [00:22:55]SAM_PROTO_GetShiftState [00:22:55]wFMCommunicate request_size=4 [00:22:55]MH_SAM_APDU [00:22:55]CAPDU: 80 13 01 00 [00:22:55]Write to MH i2c: E2 08 00 C2 33 80 13 01 00 00 00 00 00 72 [00:22:55]Write i2c OK [00:22:55]MH_I2C_Read... [00:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:55]Read from MH i2c: E2 [00:22:55]MH_I2C_Read... [00:22:55]Read from MH i2c: E2 0E 00 [00:22:55]MH_I2C_Read... [00:22:55]Read from MH i2c: E2 0E 00 C2 33 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 8B [00:22:55]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [00:22:55]wFMCommunicate OK [00:22:55]SAM_PROTO_GetShiftState done [00:22:55]FM_GetShiftState done [00:22:55]opened in 1726965840 [00:22:55]opened+sec_in_day 1727052240 [00:22:55]quantity*price = 6000 [00:22:55]sum+1 = 6001 [00:22:55]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 90162602 Энерг напиток Red bull 0,25л 1.000 * 185.00 = 185.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.02 Наличными: 245.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 233 23.09.2024 00:22 Смена: 471 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115515 ФПД: 157508764045859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T002259&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115515&fm=157508764045859&tin=02508201610067®Number=0000000000091831&sum=24500 0 [00:22:56]StoreToDocumentArchive [00:22:56]shift 471 fd 115515 [00:22:56]save to /storage/0471/doc_00115515 [00:22:56]save last doc name /storage/0471/doc_00115515 to /storage/kkm_last_doc_name [00:22:56]save OK [00:22:56]Clear old archive folders... [00:22:56]ProcessDocumentItem done err = 0, tmpTLVsize=379 [00:22:56]tlvbuf is 01C89A90 [00:22:56]SAM_PROTO_ClearQueue [00:22:56]wFMCommunicate request_size=4 [00:22:56]MH_SAM_APDU [00:22:56]CAPDU: 80 09 00 00 [00:22:56]Write to MH i2c: E2 08 00 CF 33 80 09 00 00 00 00 00 00 74 [00:22:56]Write i2c OK [00:22:56]MH_I2C_Read... [00:22:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:22:56]Read from MH i2c: E2 [00:22:56]MH_I2C_Read... [00:22:56]Read from MH i2c: E2 03 00 [00:22:56]MH_I2C_Read... [00:22:56]Read from MH i2c: E2 03 00 CF 33 00 90 00 76 [00:22:56]RAPDU: 90 00 [00:22:56]wFMCommunicate OK [00:22:56]SAM_PROTO_ClearQueue done [00:22:56]KKMCreateOFDPacket [00:22:56]OFDProtocolAddRootSTLVToBuf [00:22:56]FM_MakeSignedData [00:22:56]FM_MakeSignedData [00:22:56]SAM_PROTO_SignData [00:22:56]wFMCommunicate request_size=4 [00:22:56]MH_SAM_APDU [00:22:56]CAPDU: 80 0D 01 02 [00:22:56]Write to MH i2c: E2 08 00 D0 33 80 0D 01 02 00 00 00 00 7C [00:22:56]Write i2c OK [00:22:56]MH_I2C_Read... [00:22:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:22:56]Read from MH i2c: E2 [00:22:56]MH_I2C_Read... [00:22:56]Read from MH i2c: E2 03 00 [00:22:56]MH_I2C_Read... [00:22:56]Read from MH i2c: E2 03 00 D0 33 00 90 00 77 [00:22:56]RAPDU: 90 00 [00:22:56]wFMCommunicate OK [00:22:56]wFMCommunicate request_size=255 [00:22:56]MH_SAM_APDU [00:22:56]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 [00:22:56]Write to MH i2c: E2 02 01 D1 33 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 00 79 [00:22:56]Write i2c OK [00:22:56]MH_I2C_Read... [00:22:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:56]Read from MH i2c: E2 [00:22:56]MH_I2C_Read... [00:22:56]Read from MH i2c: E2 03 00 [00:22:56]MH_I2C_Read... [00:22:56]Read from MH i2c: E2 03 00 D1 33 00 90 00 78 [00:22:56]RAPDU: 90 00 [00:22:56]wFMCommunicate OK [00:22:56]wFMCommunicate request_size=138 [00:22:56]MH_SAM_APDU [00:22:56]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 E3 B4 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3B C3 01 00 35 04 06 00 8F 40 DD EE 12 23 [00:22:56]Write to MH i2c: E2 8D 00 D2 33 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 E3 B4 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3B C3 01 00 35 04 06 00 8F 40 DD EE 12 23 00 00 71 [00:22:56]Write i2c OK [00:22:56]MH_I2C_Read... [00:22:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:57]Read from MH i2c: E2 [00:22:57]MH_I2C_Read... [00:22:57]Read from MH i2c: E2 03 00 [00:22:57]MH_I2C_Read... [00:22:57]Read from MH i2c: E2 03 00 D2 33 00 90 00 79 [00:22:57]RAPDU: 90 00 [00:22:57]wFMCommunicate OK [00:22:57]wFMCommunicate request_size=4 [00:22:57]MH_SAM_APDU [00:22:57]CAPDU: 80 0D 03 02 [00:22:57]Write to MH i2c: E2 08 00 D3 33 80 0D 03 02 00 00 00 00 81 [00:22:57]Write i2c OK [00:22:57]MH_I2C_Read... [00:22:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:22:57]Read from MH i2c: E2 [00:22:57]MH_I2C_Read... [00:22:57]Read from MH i2c: E2 0B 00 [00:22:57]MH_I2C_Read... [00:22:57]Read from MH i2c: E2 0B 00 D3 33 00 1E 73 0A 22 9C F1 B7 63 90 00 E6 [00:22:57]RAPDU: 1E 73 0A 22 9C F1 B7 63 90 00 [00:22:57]wFMCommunicate OK [00:22:57]SAM_PROTO_SignData done [00:22:57]FM_MakeSignedData done [00:22:57]CreateOFDProtocolMessage [00:22:57]wFMCommunicate request_size=4 [00:22:57]MH_SAM_APDU [00:22:57]CAPDU: 80 11 00 00 [00:22:57]Write to MH i2c: E2 08 00 D4 33 80 11 00 00 00 00 00 00 81 [00:22:57]Write i2c OK [00:22:57]MH_I2C_Read... [00:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:57]Read from MH i2c: E2 [00:22:57]MH_I2C_Read... [00:22:57]Read from MH i2c: E2 17 00 [00:22:57]MH_I2C_Read... [00:22:57]Read from MH i2c: E2 17 00 D4 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CF [00:22:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:22:57]wFMCommunicate OK [00:22:57]CreateOFDProtocolMessage done [00:22:57]OFDSenderStorePacket 115515 [00:22:57]StoreOFDPacket docnum=115515 [00:22:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8F 01 00 00 08 3F 87 01 50 C0 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 E3 B4 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3B C3 01 00 35 04 06 00 8F 40 DD EE 12 23 1E 73 0A 22 9C F1 B7 63 [00:22:57]CheckFolder [00:22:57]dirname=/storage/ofd_packets [00:22:57]CheckFolder done [00:22:57]ProducePacketName [00:22:57]name=ofd_packets/00115515 [00:22:57]NVStorageSaveData ofd_packets/00115515 [00:22:57]File name is /storage/ofd_packets/00115515 [00:22:57]Write 429 bytes [00:22:57]NVStorageSaveData done [00:22:57]OFDSenderStorePacket done [00:22:57]KKMCreateOFDPacket done [00:22:57]NVStorageSaveData kkm_last_timestamp [00:22:57]File name is /storage/kkm_last_timestamp [00:22:57]Write 4 bytes [00:22:57]NVStorageSaveData done [00:22:57]ExternCall_PrintAddStr [00:22:57]wPrintStart [00:22:57]Write to MH i2c: 01 00 00 D5 33 08 [00:22:57]Write i2c OK [00:22:57]MH_I2C_Read... [00:22:57]Read from MH i2c: 01 [00:22:57]MH_I2C_Read... [00:22:57]Read from MH i2c: 01 07 00 [00:22:57]MH_I2C_Read... [00:22:57]Read from MH i2c: 01 07 00 D5 33 00 00 00 00 00 FF 0F 1D [00:22:57]RasterBufferAndPrint [00:22:57]line Счет N : (3)343943 [00:22:57]line ИНН: 02508201610067 [00:22:57]line Контрольно-Кассовый Чек [00:22:57]line ПРОДАЖА [00:22:57]line Товар: 4700000160204 [00:22:57]line Вода Легенда 1,5л [00:22:57]line 1.000 * 60.00 [00:22:57]line = 60.00 [00:22:57]line НДС 12% НСП 1% [00:22:57]line > о реализуемом товаре [00:22:57]line Товар: 90162602 [00:22:57]line Энерг напиток Red bull 0,25л [00:22:57]line 1.000 * 185.00 [00:22:57]line = 185.00 [00:22:57]line НДС 12% НСП 1% [00:22:57]line > о реализуемом товаре [00:22:57]line ИТОГО: 245.00 [00:22:57]line НСП 1% : 2.17 [00:22:57]line НДС 12% : 26.02 [00:22:57]line Наличными: 245.00 [00:22:57]line Безнал.: 0.00 [00:22:57]line Место: АЗС № 90 "Партнер Нефть" [00:22:57]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [00:22:57]line СНО: Общий режим [00:22:57]line Чек 233 23.09.2024 00:22 [00:22:57]line Смена: 471 ФФД: 1.0 [00:22:57]line ЗНМ: 0300000120 [00:22:57]line РНМ: 0000000000091831 [00:22:57]line Версия ККМ: 001 [00:22:57]line ФМ: 0000000000871830 [00:22:57]line ФД: 115515 [00:22:57]line ФПД: 157508764045859 [00:22:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T002259&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115515&fm=157508764045859&tin=02508201610067®Number=0000000000091831&sum=24500 [00:22:57]line 0 [00:22:57]OFD Sender: Processing packet 115515 [packets to send 481, broken 480] [00:22:57]ProducePacketName [00:22:57]name=ofd_packets/00115515 [00:22:57]OFD Sender: To server: pG, [00:22:57]CommunicateWithHost lk.salyk.kg:30040 [00:22:57]ConnectInit lk.salyk.kg [00:22:57]written 0, free lines is 4095 [00:22:57]Connected sock=9 [00:22:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8F 01 00 00 08 3F 87 01 50 C0 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 E3 B4 F0 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3B C3 01 00 35 04 06 00 8F 40 DD EE 12 23 1E 73 0A 22 9C F1 B7 63 [00:22:58]Write to MH i2c: 01 00 00 02 34 36 [00:22:58]Write i2c OK [00:22:58]MH_I2C_Read... [00:22:58]Read from MH i2c: 01 [00:22:58]MH_I2C_Read... [00:22:58]Read from MH i2c: 01 07 00 [00:22:58]MH_I2C_Read... [00:22:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C8 F4 47 00 6E BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3B C3 01 00 F4 03 04 00 27 5A F0 66 B6 04 01 00 00 A0 BE D9 B3 AF 0C 72 2F [00:22:58]CommunicateWithHost err = 0 [00:22:58]CheckOFDResponse [00:22:58]1017 (14) - 77093643461234 [00:22:58]1041 (16) - 0000000000871830 [00:22:58]1040 (4) - 115515 [00:22:58]1012 (4) - 22.09.2024 17:55 [00:22:58]1206 (1) - 0 [00:22:58]OFD Sender: Remove packet 115515 [00:22:58]ProducePacketName [00:22:58]name=ofd_packets/00115515 [00:22:58]NVStorageDeleteData [00:22:58]Read from MH i2c: 01 07 00 02 34 00 00 00 00 00 06 0C 4F [00:22:58]RasterBufferAndPrint [00:22:58]line [00:22:58]line [00:22:58]line [00:22:58]line [00:22:58]line [00:22:58]written 0, free lines is 3086 [00:22:58]MH_Cut [00:22:58]Write to MH i2c: D1 01 00 09 34 01 0F [00:22:58]Write i2c OK [00:22:58]MH_I2C_Read... [00:22:58]Read from MH i2c: D1 [00:22:58]MH_I2C_Read... [00:22:58]Read from MH i2c: D1 01 00 [00:22:58]MH_I2C_Read... [00:22:58]Read from MH i2c: D1 01 00 09 34 00 0E [00:22:58]Write to MH i2c: 01 00 00 0A 34 3E [00:22:58]Write i2c OK [00:22:58]MH_I2C_Read... [00:22:58]OFD Sender: No OFD packet to send [00:22:59]*** Cut start [00:22:59]*** Partial cut [00:22:59]*** CUTSNS_PIN = 1 [00:22:59]*** CUTSNS_PIN = 0 [00:22:59]*** Brake cut motor [00:23:00]Read from MH i2c: 01 [00:23:00]MH_I2C_Read... [00:23:00]*** Stop cut motor [00:23:00]*** Cut end [00:23:00]Read from MH i2c: 01 07 00 [00:23:00]MH_I2C_Read... [00:23:00]Read from MH i2c: 01 07 00 0A 34 00 00 00 00 00 FF 0F 53 [00:23:00]process_action close_receipt done [00:23:00]requested_data is exist [00:23:00]produce_requested_data [00:23:00]requested_item fm.sn is exist - process it [00:23:00]wFMCommunicate request_size=4 [00:23:00]MH_SAM_APDU [00:23:00]CAPDU: 80 11 00 00 [00:23:00]Write to MH i2c: E2 08 00 0B 34 80 11 00 00 00 00 00 00 B9 [00:23:00]Write i2c OK [00:23:00]MH_I2C_Read... [00:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:00]Read from MH i2c: E2 [00:23:00]MH_I2C_Read... [00:23:00]Read from MH i2c: E2 17 00 [00:23:00]MH_I2C_Read... [00:23:00]Read from MH i2c: E2 17 00 0B 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 07 [00:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:23:00]wFMCommunicate OK [00:23:00]requested_item fd.num is exist - process it [00:23:00]SAM_PROTO_GetFieldsCounters [00:23:00]wFMCommunicate request_size=4 [00:23:00]MH_SAM_APDU [00:23:00]CAPDU: 80 13 00 00 [00:23:00]Write to MH i2c: E2 08 00 0C 34 80 13 00 00 00 00 00 00 BC [00:23:00]Write i2c OK [00:23:00]MH_I2C_Read... [00:23:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:00]Read from MH i2c: E2 [00:23:00]MH_I2C_Read... [00:23:00]Read from MH i2c: E2 62 00 [00:23:00]MH_I2C_Read... [00:23:00]Read from MH i2c: E2 62 00 0C 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3B C3 01 00 0E 04 04 00 D7 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 67 [00:23:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3B C3 01 00 0E 04 04 00 D7 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 [00:23:00]wFMCommunicate OK [00:23:00]SAM_PROTO_GetFieldsCounters done [00:23:00]requested_item shift.num is exist - process it [00:23:00]requested_item shift.opened is exist - process it [00:23:00]req_shift_opened [00:23:00]FM_GetShiftState [00:23:00]SAM_PROTO_GetShiftState [00:23:00]wFMCommunicate request_size=4 [00:23:00]MH_SAM_APDU [00:23:00]CAPDU: 80 13 01 00 [00:23:00]Write to MH i2c: E2 08 00 0D 34 80 13 01 00 00 00 00 00 BE [00:23:00]Write i2c OK [00:23:00]MH_I2C_Read... [00:23:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:00]Read from MH i2c: E2 [00:23:00]MH_I2C_Read... [00:23:00]Read from MH i2c: E2 0E 00 [00:23:00]MH_I2C_Read... [00:23:00]Read from MH i2c: E2 0E 00 0D 34 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 D7 [00:23:00]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [00:23:00]wFMCommunicate OK [00:23:00]SAM_PROTO_GetShiftState done [00:23:00]FM_GetShiftState done [00:23:00]req_shift_opened done [00:23:00]requested_item shift.open_date is exist - process it [00:23:00]req_shift_open_date [00:23:00]req_shift_open_date done [00:23:00]produce_requested_data done [00:23:00]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115515,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [00:23:00]process_action_free close_receipt [00:23:00]json_value_free [00:23:00]json_value_free done [00:23:00]process_json_proto returns [00:23:00]Send response to host [00:23:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115515,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [00:23:00]free response buf [00:23:00]execute_script done [00:23:00]execute_script returns [00:23:00]free content buf [00:23:00]Sock 8.Close socket [00:23:00]Sock 8.Thread stoped [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:29]OFD Sender: No OFD packet to send [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 5E [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005725B9 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 43378124+1683673115=1727051239 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x200ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x334f0623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 5F [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 78 00 38 00 FF FF 8E [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 E8 B5 F0 66 1B D0 5A 64 9B [00:27:20]Current date/time: 23.09.2024 00:27 [00:27:20]FM_Init [00:27:20]wFMConnect [00:27:20]MH_SAM_On [00:27:20]Write to MH i2c: E0 00 00 08 00 E7 [00:27:20]Write i2c OK [00:27:20]MH_I2C_Read... [00:27:20]*** iso7816_init finished! [00:27:20]*** atr: [00:27:20]*** 0F 3B D5 18 FF 81 91 FE [00:27:20]*** 1F C3 80 73 C8 21 10 0A [00:27:20]*** 00 00 00 00 00 00 00 00 [00:27:20]*** 00 00 00 00 00 00 00 00 [00:27:20]*** 00 00 00 00 00 00 00 00 [00:27:20]*** 00 00 00 00 00 00 00 00 [00:27:20]*** 00 00 00 00 00 00 00 00 [00:27:20]*** 00 00 00 00 00 00 00 00 [00:27:20]Read from MH i2c: E0 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E0 10 00 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [00:27:20]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:27:20]wFMCommunicate request_size=10 [00:27:20]MH_SAM_APDU [00:27:20]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:27:20]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:27:20]Write i2c OK [00:27:20]MH_I2C_Read... [00:27:20]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:27:20]Read from MH i2c: E2 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 03 00 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [00:27:20]RAPDU: 90 00 [00:27:20]wFMCommunicate OK [00:27:20]wFMCommunicate request_size=4 [00:27:20]MH_SAM_APDU [00:27:20]CAPDU: 80 11 00 00 [00:27:20]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [00:27:20]Write i2c OK [00:27:20]MH_I2C_Read... [00:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:20]Read from MH i2c: E2 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 17 00 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [00:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:27:20]wFMCommunicate OK [00:27:20]Detected FM SN is 0000000000871830 [00:27:20]Stored FM SN is 0000000000871830 [00:27:20]wFMCommunicate request_size=9 [00:27:20]MH_SAM_APDU [00:27:20]CAPDU: 80 16 00 00 04 2B 08 01 00 [00:27:20]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 2B 08 01 00 00 00 C6 [00:27:20]Write i2c OK [00:27:20]MH_I2C_Read... [00:27:20]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [00:27:20]Read from MH i2c: E2 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 03 00 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [00:27:20]RAPDU: 90 00 [00:27:20]wFMCommunicate OK [00:27:20]FM PIN OK [00:27:20]wFMCommunicate request_size=8 [00:27:20]MH_SAM_APDU [00:27:20]CAPDU: 80 14 04 00 03 02 00 01 [00:27:20]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [00:27:20]Write i2c OK [00:27:20]MH_I2C_Read... [00:27:20]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [00:27:20]Read from MH i2c: E2 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 03 00 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [00:27:20]RAPDU: 90 00 [00:27:20]wFMCommunicate OK [00:27:20]wFMCommunicate request_size=13 [00:27:20]MH_SAM_APDU [00:27:20]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [00:27:20]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [00:27:20]Write i2c OK [00:27:20]MH_I2C_Read... [00:27:20]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [00:27:20]Read from MH i2c: E2 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 03 00 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [00:27:20]RAPDU: 90 00 [00:27:20]wFMCommunicate OK [00:27:20]wFMCommunicate request_size=4 [00:27:20]MH_SAM_APDU [00:27:20]CAPDU: 80 11 00 00 [00:27:20]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:27:20]Write i2c OK [00:27:20]MH_I2C_Read... [00:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:20]Read from MH i2c: E2 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 17 00 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D6 [00:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:27:20]wFMCommunicate OK [00:27:20]DocumentArchiveInit [00:27:20]Start Httpd... [00:27:20]Httpd thread 3067600228 created [00:27:20]Write to MH i2c: 01 00 00 0F 00 0F [00:27:20]Write i2c OK [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: 01 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: 01 07 00 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [00:27:20]Allocated Socket 5 [00:27:20]Bind OK [00:27:20]Listen OK [00:27:20]httpd running on port 8080 [00:27:20]Waiting for new connection... [00:27:20]MH Int Process started [00:27:21]OFD Sender: No OFD packet to send [00:27:23]accept exits with 6 [00:27:23]New connection [00:27:23]New thread 3067313508 created [00:27:23]Waiting for new connection... [00:27:23] Sock 6.Parse request [00:27:23]Sock 6.Check first char [00:27:23]Sock 6.First char is OK [00:27:23]request: POST /json_proto HTTP/1.0 [00:27:23]Method: POST [00:27:23]URL: /json_proto [00:27:23]Method is POST - this is cgi request [00:27:23]url: /json_proto [00:27:23]query_string will be loaded in cgi processing [00:27:23]execute_cgi json_proto POST (null) [00:27:23]execute_cgi path=json_proto method=POST [00:27:23]POST find Content-Length [00:27:23]Host: 172.17.41.136:8080 [00:27:23]Content-Length: 215 [00:27:23]Content-Type: application/json [00:27:23] [00:27:23]POST finish read [00:27:23]Found Content-Length = 215 [00:27:23]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:27:23]execute_script... [00:27:23]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:27:23]POST & json_proto [00:27:23]process_json_proto [00:27:23]json parsed OK: [00:27:23]protocol is kg_v1.0 [00:27:23]action value=get_value [00:27:23]process_action get_value [00:27:23]cmd_get_value [00:27:23]process_action get_value done [00:27:23]requested_data is exist [00:27:23]produce_requested_data [00:27:23]requested_item kkm.sn is exist - process it [00:27:23]requested_item kkm.ver is exist - process it [00:27:23]requested_item fm.sn is exist - process it [00:27:23]wFMCommunicate request_size=4 [00:27:23]MH_SAM_APDU [00:27:23]CAPDU: 80 11 00 00 [00:27:23]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [00:27:23]Write i2c OK [00:27:23]MH_I2C_Read... [00:27:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:23]Read from MH i2c: E2 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 17 00 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D8 [00:27:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:27:23]wFMCommunicate OK [00:27:23]requested_item fd.num is exist - process it [00:27:23]SAM_PROTO_GetFieldsCounters [00:27:23]wFMCommunicate request_size=4 [00:27:23]MH_SAM_APDU [00:27:23]CAPDU: 80 13 00 00 [00:27:23]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [00:27:23]Write i2c OK [00:27:23]MH_I2C_Read... [00:27:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:23]Read from MH i2c: E2 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 62 00 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3B C3 01 00 0E 04 04 00 D7 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 38 [00:27:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3B C3 01 00 0E 04 04 00 D7 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 [00:27:23]wFMCommunicate OK [00:27:23]SAM_PROTO_GetFieldsCounters done [00:27:23]requested_item shift.num is exist - process it [00:27:23]requested_item shift.opened is exist - process it [00:27:23]req_shift_opened [00:27:23]FM_GetShiftState [00:27:23]SAM_PROTO_GetShiftState [00:27:23]wFMCommunicate request_size=4 [00:27:23]MH_SAM_APDU [00:27:23]CAPDU: 80 13 01 00 [00:27:23]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [00:27:23]Write i2c OK [00:27:23]MH_I2C_Read... [00:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:23]Read from MH i2c: E2 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 0E 00 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 A8 [00:27:23]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [00:27:23]wFMCommunicate OK [00:27:23]SAM_PROTO_GetShiftState done [00:27:23]FM_GetShiftState done [00:27:23]req_shift_opened done [00:27:23]requested_item shift.open_date is exist - process it [00:27:23]req_shift_open_date [00:27:23]req_shift_open_date done [00:27:23]produce_requested_data done [00:27:23]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115515,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [00:27:23]process_action_free get_value [00:27:23]json_value_free [00:27:23]json_value_free done [00:27:23]process_json_proto returns [00:27:23]Send response to host [00:27:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115515,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [00:27:23]free response buf [00:27:23]execute_script done [00:27:23]execute_script returns [00:27:23]free content buf [00:27:23]Sock 6.Close socket [00:27:23]Sock 6.Thread stoped [00:27:23]accept exits with 8 [00:27:23]New connection [00:27:23]New thread 3067170148 created [00:27:23]Thread 3067313508 joined [00:27:23]Waiting for new connection... [00:27:23] Sock 8.Parse request [00:27:23]Sock 8.Check first char [00:27:23]Sock 8.First char is OK [00:27:23]request: POST /json_proto HTTP/1.0 [00:27:23]Method: POST [00:27:23]URL: /json_proto [00:27:23]Method is POST - this is cgi request [00:27:23]url: /json_proto [00:27:23]query_string will be loaded in cgi processing [00:27:23]execute_cgi json_proto POST (null) [00:27:23]execute_cgi path=json_proto method=POST [00:27:23]POST find Content-Length [00:27:23]Host: 172.17.41.136:8080 [00:27:23]Content-Length: 331 [00:27:23]Content-Type: application/json [00:27:23] [00:27:23]POST finish read [00:27:23]Found Content-Length = 331 [00:27:23]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:27:23]execute_script... [00:27:23]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:27:23]POST & json_proto [00:27:23]process_json_proto [00:27:23]json parsed OK: [00:27:23]protocol is kg_v1.0 [00:27:23]action value=get_value [00:27:23]process_action get_value [00:27:23]cmd_get_value [00:27:23]process_action get_value done [00:27:23]requested_data is exist [00:27:23]produce_requested_data [00:27:23]requested_item fm.sale.total is exist - process it [00:27:23]SAM_PROTO_GetFMData [00:27:23]wFMCommunicate request_size=4 [00:27:23]MH_SAM_APDU [00:27:23]CAPDU: 80 13 03 00 [00:27:23]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [00:27:23]Write i2c OK [00:27:23]MH_I2C_Read... [00:27:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:24]Read from MH i2c: E2 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 FD 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 38 [00:27:24]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 [00:27:24]wFMCommunicate OK [00:27:24]wFMCommunicate request_size=4 [00:27:24]MH_SAM_APDU [00:27:24]CAPDU: 80 17 00 00 [00:27:24]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [00:27:24]Write i2c OK [00:27:24]MH_I2C_Read... [00:27:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:24]Read from MH i2c: E2 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 FD 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 81 [00:27:24]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:27:24]wFMCommunicate OK [00:27:24]wFMCommunicate request_size=4 [00:27:24]MH_SAM_APDU [00:27:24]CAPDU: 80 17 00 00 [00:27:24]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [00:27:24]Write i2c OK [00:27:24]MH_I2C_Read... [00:27:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:24]Read from MH i2c: E2 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 FD 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [00:27:24]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:27:24]wFMCommunicate OK [00:27:24]wFMCommunicate request_size=4 [00:27:24]MH_SAM_APDU [00:27:24]CAPDU: 80 17 00 00 [00:27:24]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [00:27:24]Write i2c OK [00:27:24]MH_I2C_Read... [00:27:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:24]Read from MH i2c: E2 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 FD 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [00:27:24]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:27:24]wFMCommunicate OK [00:27:24]wFMCommunicate request_size=4 [00:27:24]MH_SAM_APDU [00:27:24]CAPDU: 80 17 00 00 [00:27:24]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [00:27:24]Write i2c OK [00:27:24]MH_I2C_Read... [00:27:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:27:25]Read from MH i2c: E2 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 E2 00 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [00:27:25]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:27:25]wFMCommunicate OK [00:27:25]SAM_PROTO_GetFMData done [00:27:25]requested_item fm.sale_refund.total is exist - process it [00:27:25]requested_item fm.buy.total is exist - process it [00:27:25]requested_item shift.sale.total is exist - process it [00:27:25]SAM_PROTO_GetShiftData [00:27:25]wFMCommunicate request_size=4 [00:27:25]MH_SAM_APDU [00:27:25]CAPDU: 80 13 02 00 [00:27:25]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [00:27:25]Write i2c OK [00:27:25]MH_I2C_Read... [00:27:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:25]Read from MH i2c: E2 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 FD 00 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D 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 30 1A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 29 [00:27:25]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D 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 30 1A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:27:25]wFMCommunicate OK [00:27:25]wFMCommunicate request_size=4 [00:27:25]MH_SAM_APDU [00:27:25]CAPDU: 80 17 00 00 [00:27:25]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [00:27:25]Write i2c OK [00:27:25]MH_I2C_Read... [00:27:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:25]Read from MH i2c: E2 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 FD 00 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [00:27:25]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [00:27:25]wFMCommunicate OK [00:27:25]wFMCommunicate request_size=4 [00:27:25]MH_SAM_APDU [00:27:25]CAPDU: 80 17 00 00 [00:27:25]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [00:27:25]Write i2c OK [00:27:25]MH_I2C_Read... [00:27:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:26]Read from MH i2c: E2 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 FD 00 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [00:27:26]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [00:27:26]wFMCommunicate OK [00:27:26]wFMCommunicate request_size=4 [00:27:26]MH_SAM_APDU [00:27:26]CAPDU: 80 17 00 00 [00:27:26]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [00:27:26]OFD Sender: No OFD packet to send [00:27:26]Write i2c OK [00:27:26]MH_I2C_Read... [00:27:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:26]Read from MH i2c: E2 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 FD 00 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [00:27:26]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [00:27:26]wFMCommunicate OK [00:27:26]wFMCommunicate request_size=4 [00:27:26]MH_SAM_APDU [00:27:26]CAPDU: 80 17 00 00 [00:27:26]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [00:27:26]Write i2c OK [00:27:26]MH_I2C_Read... [00:27:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [00:27:26]Read from MH i2c: E2 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 CC 00 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [00:27:26]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:26]wFMCommunicate OK [00:27:26]SAM_PROTO_GetShiftData done [00:27:26]requested_item shift.sale.total_cash is exist - process it [00:27:26]requested_item shift.sale_refund.total is exist - process it [00:27:26]requested_item shift.sale_refund.total_cash is exist - process it [00:27:26]requested_item shift.buy.total is exist - process it [00:27:26]requested_item shift.buy.total_cash is exist - process it [00:27:26]produce_requested_data done [00:27:26]produce_requested_data return {"fm.sale.total":64578393.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":81680.21,"shift.sale.total_cash":59867.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:27:26]process_action_free get_value [00:27:26]json_value_free [00:27:26]json_value_free done [00:27:26]process_json_proto returns [00:27:26]Send response to host [00:27:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64578393.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":81680.21,"shift.sale.total_cash":59867.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:27:26]free response buf [00:27:26]execute_script done [00:27:26]execute_script returns [00:27:26]free content buf [00:27:26]Sock 8.Close socket [00:27:26]Sock 8.Thread stoped [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:12]accept exits with 6 [00:30:12]New connection [00:30:12]New thread 3067313508 created [00:30:12]Thread 3067170148 joined [00:30:12]Waiting for new connection... [00:30:12] Sock 6.Parse request [00:30:12]Sock 6.Check first char [00:30:12]Sock 6.First char is OK [00:30:12]request: POST /json_proto HTTP/1.0 [00:30:12]Method: POST [00:30:12]URL: /json_proto [00:30:12]Method is POST - this is cgi request [00:30:12]url: /json_proto [00:30:12]query_string will be loaded in cgi processing [00:30:12]execute_cgi json_proto POST (null) [00:30:12]execute_cgi path=json_proto method=POST [00:30:12]POST find Content-Length [00:30:12]Host: 172.17.41.136:8080 [00:30:12]Content-Length: 215 [00:30:12]Content-Type: application/json [00:30:12] [00:30:12]POST finish read [00:30:12]Found Content-Length = 215 [00:30:12]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:30:12]execute_script... [00:30:12]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:30:12]POST & json_proto [00:30:12]process_json_proto [00:30:12]json parsed OK: [00:30:12]protocol is kg_v1.0 [00:30:12]action value=get_value [00:30:12]process_action get_value [00:30:12]cmd_get_value [00:30:12]process_action get_value done [00:30:12]requested_data is exist [00:30:12]produce_requested_data [00:30:12]requested_item kkm.sn is exist - process it [00:30:12]requested_item kkm.ver is exist - process it [00:30:12]requested_item fm.sn is exist - process it [00:30:12]wFMCommunicate request_size=4 [00:30:12]MH_SAM_APDU [00:30:12]CAPDU: 80 11 00 00 [00:30:12]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [00:30:12]Write i2c OK [00:30:12]MH_I2C_Read... [00:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:12]Read from MH i2c: E2 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 17 00 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E5 [00:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:30:12]wFMCommunicate OK [00:30:12]requested_item fd.num is exist - process it [00:30:12]SAM_PROTO_GetFieldsCounters [00:30:12]wFMCommunicate request_size=4 [00:30:12]MH_SAM_APDU [00:30:12]CAPDU: 80 13 00 00 [00:30:12]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [00:30:12]Write i2c OK [00:30:12]MH_I2C_Read... [00:30:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:12]Read from MH i2c: E2 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 62 00 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 62 00 1E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3B C3 01 00 0E 04 04 00 D7 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 45 [00:30:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3B C3 01 00 0E 04 04 00 D7 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 [00:30:12]wFMCommunicate OK [00:30:12]SAM_PROTO_GetFieldsCounters done [00:30:12]requested_item shift.num is exist - process it [00:30:12]requested_item shift.opened is exist - process it [00:30:12]req_shift_opened [00:30:12]FM_GetShiftState [00:30:12]SAM_PROTO_GetShiftState [00:30:12]wFMCommunicate request_size=4 [00:30:12]MH_SAM_APDU [00:30:12]CAPDU: 80 13 01 00 [00:30:12]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [00:30:12]Write i2c OK [00:30:12]MH_I2C_Read... [00:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:12]Read from MH i2c: E2 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 0E 00 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 B5 [00:30:12]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [00:30:12]wFMCommunicate OK [00:30:12]SAM_PROTO_GetShiftState done [00:30:12]FM_GetShiftState done [00:30:12]req_shift_opened done [00:30:12]requested_item shift.open_date is exist - process it [00:30:12]req_shift_open_date [00:30:12]req_shift_open_date done [00:30:12]produce_requested_data done [00:30:12]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115515,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [00:30:12]process_action_free get_value [00:30:12]json_value_free [00:30:12]json_value_free done [00:30:12]process_json_proto returns [00:30:12]Send response to host [00:30:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115515,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [00:30:12]free response buf [00:30:12]execute_script done [00:30:12]execute_script returns [00:30:12]free content buf [00:30:12]Sock 6.Close socket [00:30:12]Sock 6.Thread stoped [00:30:12]accept exits with 9 [00:30:12]New connection [00:30:12]New thread 3067170148 created [00:30:12]Thread 3067313508 joined [00:30:12]Waiting for new connection... [00:30:12] Sock 9.Parse request [00:30:12]Sock 9.Check first char [00:30:12]Sock 9.First char is OK [00:30:12]request: POST /json_proto HTTP/1.0 [00:30:12]Method: POST [00:30:12]URL: /json_proto [00:30:12]Method is POST - this is cgi request [00:30:12]url: /json_proto [00:30:12]query_string will be loaded in cgi processing [00:30:12]execute_cgi json_proto POST (null) [00:30:12]execute_cgi path=json_proto method=POST [00:30:12]POST find Content-Length [00:30:12]Host: 172.17.41.136:8080 [00:30:12]Content-Length: 331 [00:30:12]Content-Type: application/json [00:30:12] [00:30:12]POST finish read [00:30:12]Found Content-Length = 331 [00:30:12]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:30:12]execute_script... [00:30: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" ] } } [00:30:13]POST & json_proto [00:30:13]process_json_proto [00:30:13]json parsed OK: [00:30:13]protocol is kg_v1.0 [00:30:13]action value=get_value [00:30:13]process_action get_value [00:30:13]cmd_get_value [00:30:13]process_action get_value done [00:30:13]requested_data is exist [00:30:13]produce_requested_data [00:30:13]requested_item fm.sale.total is exist - process it [00:30:13]SAM_PROTO_GetFMData [00:30:13]wFMCommunicate request_size=4 [00:30:13]MH_SAM_APDU [00:30:13]CAPDU: 80 13 03 00 [00:30:13]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [00:30:13]Write i2c OK [00:30:13]MH_I2C_Read... [00:30:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:13]Read from MH i2c: E2 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 FD 00 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 FD 00 20 00 00 C5 04 85 04 C1 04 6E 04 04 00 8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 45 [00:30:13]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 [00:30:13]wFMCommunicate OK [00:30:13]wFMCommunicate request_size=4 [00:30:13]MH_SAM_APDU [00:30:13]CAPDU: 80 17 00 00 [00:30:13]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [00:30:13]Write i2c OK [00:30:13]MH_I2C_Read... [00:30:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:13]Read from MH i2c: E2 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 FD 00 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 FD 00 21 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8E [00:30:13]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:13]wFMCommunicate OK [00:30:13]wFMCommunicate request_size=4 [00:30:13]MH_SAM_APDU [00:30:13]CAPDU: 80 17 00 00 [00:30:13]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [00:30:13]Write i2c OK [00:30:13]MH_I2C_Read... [00:30:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 FD 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 FD 00 22 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 B4 [00:30: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 [00:30:14]wFMCommunicate OK [00:30:14]wFMCommunicate request_size=4 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 17 00 00 [00:30:14]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 FD 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 FD 00 23 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 2F [00:30:14]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:30:14]wFMCommunicate OK [00:30:14]wFMCommunicate request_size=4 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 17 00 00 [00:30:14]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 E2 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 E2 00 24 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 82 [00:30:14]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:30:14]wFMCommunicate OK [00:30:14]SAM_PROTO_GetFMData done [00:30:14]requested_item fm.sale_refund.total is exist - process it [00:30:14]requested_item fm.buy.total is exist - process it [00:30:14]requested_item shift.sale.total is exist - process it [00:30:14]SAM_PROTO_GetShiftData [00:30:14]wFMCommunicate request_size=4 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 13 02 00 [00:30:14]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:15]Read from MH i2c: E2 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 25 00 00 AF 04 AA 04 AB 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D 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 30 1A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 36 [00:30:15]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D 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 30 1A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:30:15]wFMCommunicate OK [00:30:15]wFMCommunicate request_size=4 [00:30:15]MH_SAM_APDU [00:30:15]CAPDU: 80 17 00 00 [00:30:15]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [00:30:15]Write i2c OK [00:30:15]MH_I2C_Read... [00:30:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:15]Read from MH i2c: E2 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 26 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 BF [00:30:15]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [00:30:15]wFMCommunicate OK [00:30:15]wFMCommunicate request_size=4 [00:30:15]MH_SAM_APDU [00:30:15]CAPDU: 80 17 00 00 [00:30:15]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [00:30:15]Write i2c OK [00:30:15]MH_I2C_Read... [00:30:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:15]Read from MH i2c: E2 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 27 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 5B [00:30:15]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [00:30:15]wFMCommunicate OK [00:30:15]wFMCommunicate request_size=4 [00:30:15]MH_SAM_APDU [00:30:15]CAPDU: 80 17 00 00 [00:30:15]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [00:30:15]Write i2c OK [00:30:15]MH_I2C_Read... [00:30:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:15]Read from MH i2c: E2 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 28 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 26 [00:30:15]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [00:30:16]wFMCommunicate OK [00:30:16]wFMCommunicate request_size=4 [00:30:16]MH_SAM_APDU [00:30:16]CAPDU: 80 17 00 00 [00:30:16]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [00:30:16]Write i2c OK [00:30:16]MH_I2C_Read... [00:30:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [00:30:16]Read from MH i2c: E2 [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: E2 CC 00 [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: E2 CC 00 29 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8A [00:30:16]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:16]wFMCommunicate OK [00:30:16]SAM_PROTO_GetShiftData done [00:30:16]requested_item shift.sale.total_cash is exist - process it [00:30:16]requested_item shift.sale_refund.total is exist - process it [00:30:16]requested_item shift.sale_refund.total_cash is exist - process it [00:30:16]requested_item shift.buy.total is exist - process it [00:30:16]requested_item shift.buy.total_cash is exist - process it [00:30:16]produce_requested_data done [00:30:16]produce_requested_data return {"fm.sale.total":64578393.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":81680.21,"shift.sale.total_cash":59867.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:30:16]process_action_free get_value [00:30:16]json_value_free [00:30:16]json_value_free done [00:30:16]process_json_proto returns [00:30:16]Send response to host [00:30:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64578393.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":81680.21,"shift.sale.total_cash":59867.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:30:16]free response buf [00:30:16]execute_script done [00:30:16]execute_script returns [00:30:16]free content buf [00:30:16]Sock 9.Close socket [00:30:16]Sock 9.Thread stoped [00:30:16]accept exits with 6 [00:30:16]New connection [00:30:16]New thread 3067313508 created [00:30:16]Thread 3067170148 joined [00:30:16]Waiting for new connection... [00:30:16] Sock 6.Parse request [00:30:16]Sock 6.Check first char [00:30:16]Sock 6.First char is OK [00:30:16]request: POST /json_proto HTTP/1.0 [00:30:16]Method: POST [00:30:16]URL: /json_proto [00:30:16]Method is POST - this is cgi request [00:30:16]url: /json_proto [00:30:16]query_string will be loaded in cgi processing [00:30:16]execute_cgi json_proto POST (null) [00:30:16]execute_cgi path=json_proto method=POST [00:30:16]POST find Content-Length [00:30:16]Host: 172.17.41.136:8080 [00:30:16]Content-Length: 331 [00:30:16]Content-Type: application/json [00:30:16] [00:30:16]POST finish read [00:30:16]Found Content-Length = 331 [00:30:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:16]execute_script... [00:30:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:16]POST & json_proto [00:30:16]process_json_proto [00:30:16]json parsed OK: [00:30:16]protocol is kg_v1.0 [00:30:16]action value=get_value [00:30:16]process_action get_value [00:30:16]cmd_get_value [00:30:16]process_action get_value done [00:30:16]requested_data is exist [00:30:16]produce_requested_data [00:30:16]requested_item fm.sale.total is exist - process it [00:30:16]SAM_PROTO_GetFMData [00:30:16]wFMCommunicate request_size=4 [00:30:16]MH_SAM_APDU [00:30:16]CAPDU: 80 13 03 00 [00:30:16]Write to MH i2c: E2 08 00 2A 00 80 13 03 00 00 00 00 00 A9 [00:30:16]Write i2c OK [00:30:16]MH_I2C_Read... [00:30:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:16]OFD Sender: No OFD packet to send [00:30:16]Read from MH i2c: E2 [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: E2 FD 00 [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: E2 FD 00 2A 00 00 C5 04 85 04 C1 04 6E 04 04 00 8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 4F [00:30:16]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 [00:30:16]wFMCommunicate OK [00:30:16]wFMCommunicate request_size=4 [00:30:16]MH_SAM_APDU [00:30:16]CAPDU: 80 17 00 00 [00:30:16]Write to MH i2c: E2 08 00 2B 00 80 17 00 00 00 00 00 00 AB [00:30:16]Write i2c OK [00:30:16]MH_I2C_Read... [00:30:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:17]Read from MH i2c: E2 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: E2 FD 00 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: E2 FD 00 2B 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 [00:30:17]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:17]wFMCommunicate OK [00:30:17]wFMCommunicate request_size=4 [00:30:17]MH_SAM_APDU [00:30:17]CAPDU: 80 17 00 00 [00:30:17]Write to MH i2c: E2 08 00 2C 00 80 17 00 00 00 00 00 00 AC [00:30:17]Write i2c OK [00:30:17]MH_I2C_Read... [00:30:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:17]Read from MH i2c: E2 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: E2 FD 00 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: E2 FD 00 2C 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 BE [00:30:17]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:30:17]wFMCommunicate OK [00:30:17]wFMCommunicate request_size=4 [00:30:17]MH_SAM_APDU [00:30:17]CAPDU: 80 17 00 00 [00:30:17]Write to MH i2c: E2 08 00 2D 00 80 17 00 00 00 00 00 00 AD [00:30:17]Write i2c OK [00:30:17]MH_I2C_Read... [00:30:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:17]Read from MH i2c: E2 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: E2 FD 00 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: E2 FD 00 2D 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 39 [00:30:17]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:30:17]wFMCommunicate OK [00:30:17]wFMCommunicate request_size=4 [00:30:17]MH_SAM_APDU [00:30:17]CAPDU: 80 17 00 00 [00:30:17]Write to MH i2c: E2 08 00 2E 00 80 17 00 00 00 00 00 00 AE [00:30:17]Write i2c OK [00:30:17]MH_I2C_Read... [00:30:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:30:18]Read from MH i2c: E2 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 E2 00 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 E2 00 2E 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8C [00:30:18]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:18]wFMCommunicate OK [00:30:18]SAM_PROTO_GetFMData done [00:30:18]requested_item fm.sale_refund.total is exist - process it [00:30:18]requested_item fm.buy.total is exist - process it [00:30:18]requested_item shift.sale.total is exist - process it [00:30:18]SAM_PROTO_GetShiftData [00:30:18]wFMCommunicate request_size=4 [00:30:18]MH_SAM_APDU [00:30:18]CAPDU: 80 13 02 00 [00:30:18]Write to MH i2c: E2 08 00 2F 00 80 13 02 00 00 00 00 00 AD [00:30:18]Write i2c OK [00:30:18]MH_I2C_Read... [00:30:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:18]Read from MH i2c: E2 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 FD 00 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 FD 00 2F 00 00 AF 04 AA 04 AB 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D 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 30 1A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 40 [00:30:18]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D 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 30 1A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:30:18]wFMCommunicate OK [00:30:18]wFMCommunicate request_size=4 [00:30:18]MH_SAM_APDU [00:30:18]CAPDU: 80 17 00 00 [00:30:18]Write to MH i2c: E2 08 00 30 00 80 17 00 00 00 00 00 00 B0 [00:30:18]Write i2c OK [00:30:18]MH_I2C_Read... [00:30:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:19]Read from MH i2c: E2 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 FD 00 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 FD 00 30 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 C9 [00:30:19]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [00:30:19]wFMCommunicate OK [00:30:19]wFMCommunicate request_size=4 [00:30:19]MH_SAM_APDU [00:30:19]CAPDU: 80 17 00 00 [00:30:19]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [00:30:19]Write i2c OK [00:30:19]MH_I2C_Read... [00:30:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:19]Read from MH i2c: E2 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 FD 00 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 FD 00 31 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 65 [00:30:19]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [00:30:19]wFMCommunicate OK [00:30:19]wFMCommunicate request_size=4 [00:30:19]MH_SAM_APDU [00:30:19]CAPDU: 80 17 00 00 [00:30:19]Write to MH i2c: E2 08 00 32 00 80 17 00 00 00 00 00 00 B2 [00:30:19]Write i2c OK [00:30:19]MH_I2C_Read... [00:30:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:19]Read from MH i2c: E2 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 FD 00 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 FD 00 32 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 30 [00:30:19]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [00:30:20]wFMCommunicate OK [00:30:20]wFMCommunicate request_size=4 [00:30:20]MH_SAM_APDU [00:30:20]CAPDU: 80 17 00 00 [00:30:20]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [00:30:20]Write i2c OK [00:30:20]MH_I2C_Read... [00:30:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [00:30:20]Read from MH i2c: E2 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: E2 CC 00 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: E2 CC 00 33 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 94 [00:30:20]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:20]wFMCommunicate OK [00:30:20]SAM_PROTO_GetShiftData done [00:30:20]requested_item shift.sale.total_cash is exist - process it [00:30:20]requested_item shift.sale_refund.total is exist - process it [00:30:20]requested_item shift.sale_refund.total_cash is exist - process it [00:30:20]requested_item shift.buy.total is exist - process it [00:30:20]requested_item shift.buy.total_cash is exist - process it [00:30:20]produce_requested_data done [00:30:20]produce_requested_data return {"fm.sale.total":64578393.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":81680.21,"shift.sale.total_cash":59867.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:30:20]process_action_free get_value [00:30:20]json_value_free [00:30:20]json_value_free done [00:30:20]process_json_proto returns [00:30:20]Send response to host [00:30:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64578393.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":81680.21,"shift.sale.total_cash":59867.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:30:20]free response buf [00:30:20]execute_script done [00:30:20]execute_script returns [00:30:20]free content buf [00:30:20]Sock 6.Close socket [00:30:20]Sock 6.Thread stoped [00:30:20]accept exits with 9 [00:30:20]New connection [00:30:20]New thread 3067170148 created [00:30:20]Thread 3067313508 joined [00:30:20]Waiting for new connection... [00:30:20] Sock 9.Parse request [00:30:20]Sock 9.Check first char [00:30:20]Sock 9.First char is OK [00:30:20]request: POST /json_proto HTTP/1.0 [00:30:20]Method: POST [00:30:20]URL: /json_proto [00:30:20]Method is POST - this is cgi request [00:30:20]url: /json_proto [00:30:20]query_string will be loaded in cgi processing [00:30:20]execute_cgi json_proto POST (null) [00:30:20]execute_cgi path=json_proto method=POST [00:30:20]POST find Content-Length [00:30:20]Host: 172.17.41.136:8080 [00:30:20]Content-Length: 263 [00:30:20]Content-Type: application/json [00:30:20] [00:30:20]POST finish read [00:30:20]Found Content-Length = 263 [00:30:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0432\u0430\u0437\u0431\u0435\u043A\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:20]execute_script... [00:30:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0432\u0430\u0437\u0431\u0435\u043A\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:20]POST & json_proto [00:30:20]process_json_proto [00:30:20]json parsed OK: [00:30:20]protocol is kg_v1.0 [00:30:20]action value=x_report [00:30:20]process_action x_report [00:30:20]cmd_x_report [00:30:20]MH_GetDate [00:30:20]Write to MH i2c: F0 00 00 34 00 23 [00:30:20]Write i2c OK [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: F0 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: F0 09 00 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: F0 09 00 34 00 00 9C B6 F0 66 1B D0 5A 64 7D [00:30:20]GetLastDocTimeStamp 1727050979 [00:30:20]current date 1727051420 [00:30:20]FM_GetShiftState [00:30:20]SAM_PROTO_GetShiftState [00:30:20]wFMCommunicate request_size=4 [00:30:20]MH_SAM_APDU [00:30:20]CAPDU: 80 13 01 00 [00:30:20]Write to MH i2c: E2 08 00 35 00 80 13 01 00 00 00 00 00 B2 [00:30:20]Write i2c OK [00:30:20]MH_I2C_Read... [00:30:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:20]Read from MH i2c: E2 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: E2 0E 00 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: E2 0E 00 35 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 CB [00:30:20]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [00:30:20]wFMCommunicate OK [00:30:20]SAM_PROTO_GetShiftState done [00:30:20]FM_GetShiftState done [00:30:20]KKMCreateXReportDocument [00:30:20]Load OK [00:30:20]Malloc new data [00:30:20]MH_GetDate [00:30:20]Write to MH i2c: F0 00 00 36 00 25 [00:30:20]Write i2c OK [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: F0 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: F0 09 00 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: F0 09 00 36 00 00 9C B6 F0 66 1B D0 5A 64 7F [00:30:20]Malloc new data [00:30:20]Malloc new data [00:30:20]wFMCommunicate request_size=4 [00:30:20]MH_SAM_APDU [00:30:20]CAPDU: 80 11 00 00 [00:30:20]Write to MH i2c: E2 08 00 37 00 80 11 00 00 00 00 00 00 B1 [00:30:20]Write i2c OK [00:30:20]MH_I2C_Read... [00:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:20]Read from MH i2c: E2 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: E2 17 00 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: E2 17 00 37 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FF [00:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:30:20]wFMCommunicate OK [00:30:20]SAM_PROTO_GetFieldsCounters [00:30:20]wFMCommunicate request_size=4 [00:30:20]MH_SAM_APDU [00:30:20]CAPDU: 80 13 00 00 [00:30:20]Write to MH i2c: E2 08 00 38 00 80 13 00 00 00 00 00 00 B4 [00:30:20]Write i2c OK [00:30:20]MH_I2C_Read... [00:30:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:20]Read from MH i2c: E2 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: E2 62 00 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: E2 62 00 38 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3B C3 01 00 0E 04 04 00 D7 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 5F [00: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3B C3 01 00 0E 04 04 00 D7 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 [00:30:20]wFMCommunicate OK [00:30:20]SAM_PROTO_GetFieldsCounters done [00:30:20]Malloc new data [00:30:20]Malloc new data [00:30:20]Malloc new data [00:30:20]KKMCreateXReportDocument OK [00:30:20]KKMSetXReportData OK [00:30:20]KKMPrepareXReportFMData [00:30:20]SAM_PROTO_GetShiftData [00:30:20]wFMCommunicate request_size=4 [00:30:20]MH_SAM_APDU [00:30:20]CAPDU: 80 13 02 00 [00:30:20]Write to MH i2c: E2 08 00 39 00 80 13 02 00 00 00 00 00 B7 [00:30:20]Write i2c OK [00:30:20]MH_I2C_Read... [00:30:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:21]Read from MH i2c: E2 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 FD 00 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 FD 00 39 00 00 AF 04 AA 04 AB 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D 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 30 1A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 4A [00:30:21]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D 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 30 1A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:30:21]wFMCommunicate OK [00:30:21]wFMCommunicate request_size=4 [00:30:21]MH_SAM_APDU [00:30:21]CAPDU: 80 17 00 00 [00:30:21]Write to MH i2c: E2 08 00 3A 00 80 17 00 00 00 00 00 00 BA [00:30:21]Write i2c OK [00:30:21]MH_I2C_Read... [00:30:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:21]Read from MH i2c: E2 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 FD 00 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 FD 00 3A 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 D3 [00:30:21]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 OFD Sender: No OFD packet to send [00:30:21]00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [00:30:21]wFMCommunicate OK [00:30:21]wFMCommunicate request_size=4 [00:30:21]MH_SAM_APDU [00:30:21]CAPDU: 80 17 00 00 [00:30:22]Write to MH i2c: E2 08 00 3B 00 80 17 00 00 00 00 00 00 BB [00:30:22]Write i2c OK [00:30:22]MH_I2C_Read... [00:30:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:22]Read from MH i2c: E2 [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: E2 FD 00 [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: E2 FD 00 3B 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 6F [00:30:22]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [00:30:22]wFMCommunicate OK [00:30:22]wFMCommunicate request_size=4 [00:30:22]MH_SAM_APDU [00:30:22]CAPDU: 80 17 00 00 [00:30:22]Write to MH i2c: E2 08 00 3C 00 80 17 00 00 00 00 00 00 BC [00:30:22]Write i2c OK [00:30:22]MH_I2C_Read... [00:30:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:22]Read from MH i2c: E2 [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: E2 FD 00 [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: E2 FD 00 3C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 3A [00:30:22]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [00:30:22]wFMCommunicate OK [00:30:22]wFMCommunicate request_size=4 [00:30:22]MH_SAM_APDU [00:30:22]CAPDU: 80 17 00 00 [00:30:22]Write to MH i2c: E2 08 00 3D 00 80 17 00 00 00 00 00 00 BD [00:30:22]Write i2c OK [00:30:22]MH_I2C_Read... [00:30:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [00:30:23]Read from MH i2c: E2 [00:30:23]MH_I2C_Read... [00:30:23]Read from MH i2c: E2 CC 00 [00:30:23]MH_I2C_Read... [00:30:23]Read from MH i2c: E2 CC 00 3D 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9E [00:30:23]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:23]wFMCommunicate OK [00:30:23]SAM_PROTO_GetShiftData done [00:30:23]1194 (1195) - счетчики итогов смены [00:30:23] 1134 (4) - 233 - количество чеков со всеми признаками расчетов [00:30:23] 1129 (156) - счетчики операций «приход» [00:30:23] 1135 (4) - 233 - количество чеков по признаку расчетов [00:30:23] 1201 (3) - 81680.21 - общая итоговая сумма в чеках [00:30:23] 1136 (3) - 59867.00 - итоговая сумма в чеках наличными [00:30:23] 1138 (3) - 21813.21 - итоговая сумма в чеках безналичными [00:30:23] 1024 (123) - суммы налогов [00:30:23] 1006 (9) - суммы НДС [00:30:23] 1010 (1) - 0% - код ставки НДС [00:30:23] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:23] 1006 (12) - суммы НДС [00:30:23] 1010 (1) - 12% - код ставки НДС [00:30:23] 1011 (3) - 8674.48 - сумма НДС по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 0% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (12) - суммы НСП [00:30:23] 1014 (1) - 1% - код ставки НСП [00:30:23] 1015 (3) - 722.40 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 2% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 3% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 5% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 0,50% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 1,50% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1130 (141) - счетчики операций «возврат прихода» [00:30:23] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:23] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:23] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:23] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:23] 1024 (117) - суммы налогов [00:30:23] 1006 (9) - суммы НДС [00:30:23] 1010 (1) - 0% - код ставки НДС [00:30:23] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:23] 1006 (9) - суммы НДС [00:30:23] 1010 (1) - 12% - код ставки НДС [00:30:23] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 0% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 1% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 2% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 3% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 5% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 0,50% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 1,50% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1131 (141) - счетчики операций «расход» [00:30:23] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:23] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:23] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:23] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:23] 1024 (117) - суммы налогов [00:30:23] 1006 (9) - суммы НДС [00:30:23] 1010 (1) - 0% - код ставки НДС [00:30:23] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:23] 1006 (9) - суммы НДС [00:30:23] 1010 (1) - 12% - код ставки НДС [00:30:23] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 0% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 1% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 2% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 3% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 5% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 0,50% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 1,50% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1132 (141) - счетчики операций «возврат расхода» [00:30:23] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:23] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:23] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:23] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:23] 1024 (117) - суммы налогов [00:30:23] 1006 (9) - суммы НДС [00:30:23] 1010 (1) - 0% - код ставки НДС [00:30:23] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:23] 1006 (9) - суммы НДС [00:30:23] 1010 (1) - 12% - код ставки НДС [00:30:23] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 0% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 1% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 2% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 3% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 5% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 0,50% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1007 (9) - суммы НСП [00:30:23] 1014 (1) - 1,50% - код ставки НСП [00:30:23] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:23] 1133 (588) - - счетчики коррекции - не используются [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1194 (04AA) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1134 (046E) [00:30:23]Malloc new data [00:30:23]Processing tag 1129 (0469) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1135 (046F) [00:30:23]Malloc new data [00:30:23]Processing tag 1201 (04B1) [00:30:23]Malloc new data [00:30:23]Processing tag 1136 (0470) [00:30:23]Malloc new data [00:30:23]Processing tag 1138 (0472) [00:30:23]Malloc new data [00:30:23]Processing tag 1024 (0400) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1006 (03EE) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1010 (03F2) [00:30:23]Malloc new data [00:30:23]Processing tag 1011 (03F3) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1006 (03EE) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1010 (03F2) [00:30:23]Malloc new data [00:30:23]Processing tag 1011 (03F3) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1007 (03EF) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1014 (03F6) [00:30:23]Malloc new data [00:30:23]Processing tag 1015 (03F7) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1007 (03EF) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1014 (03F6) [00:30:23]Malloc new data [00:30:23]Processing tag 1015 (03F7) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1007 (03EF) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1014 (03F6) [00:30:23]Malloc new data [00:30:23]Processing tag 1015 (03F7) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1007 (03EF) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1014 (03F6) [00:30:23]Malloc new data [00:30:23]Processing tag 1015 (03F7) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1007 (03EF) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1014 (03F6) [00:30:23]Malloc new data [00:30:23]Processing tag 1015 (03F7) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1007 (03EF) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1014 (03F6) [00:30:23]Malloc new data [00:30:23]Processing tag 1015 (03F7) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1007 (03EF) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1014 (03F6) [00:30:23]Malloc new data [00:30:23]Processing tag 1015 (03F7) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]SetTLVBufToDocument err=0 [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1130 (046A) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1135 (046F) [00:30:23]Malloc new data [00:30:23]Processing tag 1201 (04B1) [00:30:23]Malloc new data [00:30:23]Processing tag 1136 (0470) [00:30:23]Malloc new data [00:30:23]Processing tag 1138 (0472) [00:30:23]Malloc new data [00:30:23]Processing tag 1024 (0400) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1006 (03EE) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1010 (03F2) [00:30:23]Malloc new data [00:30:23]Processing tag 1011 (03F3) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1006 (03EE) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1010 (03F2) [00:30:23]Malloc new data [00:30:23]Processing tag 1011 (03F3) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1007 (03EF) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1014 (03F6) [00:30:23]Malloc new data [00:30:23]Processing tag 1015 (03F7) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1007 (03EF) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1014 (03F6) [00:30:23]Malloc new data [00:30:23]Processing tag 1015 (03F7) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1007 (03EF) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1014 (03F6) [00:30:23]Malloc new data [00:30:23]Processing tag 1015 (03F7) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1007 (03EF) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1014 (03F6) [00:30:23]Malloc new data [00:30:23]Processing tag 1015 (03F7) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1007 (03EF) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1014 (03F6) [00:30:23]Malloc new data [00:30:23]Processing tag 1015 (03F7) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1007 (03EF) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1014 (03F6) [00:30:23]Malloc new data [00:30:23]Processing tag 1015 (03F7) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1007 (03EF) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1014 (03F6) [00:30:23]Malloc new data [00:30:23]Processing tag 1015 (03F7) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]SetTLVBufToDocument err=0 [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1131 (046B) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1135 (046F) [00:30:23]Malloc new data [00:30:23]Processing tag 1201 (04B1) [00:30:23]Malloc new data [00:30:23]Processing tag 1136 (0470) [00:30:23]Malloc new data [00:30:23]Processing tag 1138 (0472) [00:30:23]Malloc new data [00:30:23]Processing tag 1024 (0400) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1006 (03EE) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1010 (03F2) [00:30:23]Malloc new data [00:30:23]Processing tag 1011 (03F3) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1006 (03EE) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1010 (03F2) [00:30:23]Malloc new data [00:30:23]Processing tag 1011 (03F3) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1007 (03EF) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1014 (03F6) [00:30:23]Malloc new data [00:30:23]Processing tag 1015 (03F7) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1007 (03EF) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1014 (03F6) [00:30:23]Malloc new data [00:30:23]Processing tag 1015 (03F7) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1007 (03EF) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1014 (03F6) [00:30:23]Malloc new data [00:30:23]Processing tag 1015 (03F7) [00:30:23]Malloc new data [00:30:23]SetTLVBufToDocument err=0 [00:30:23]Processing tag 1007 (03EF) [00:30:23]Load OK [00:30:23]SetTLVBufToDocument [00:30:23]Processing tag 1014 (03F6) [00:30:24]Malloc new data [00:30:24]Processing tag 1015 (03F7) [00:30:24]Malloc new data [00:30:24]SetTLVBufToDocument err=0 [00:30:24]Processing tag 1007 (03EF) [00:30:24]Load OK [00:30:24]SetTLVBufToDocument [00:30:24]Processing tag 1014 (03F6) [00:30:24]Malloc new data [00:30:24]Processing tag 1015 (03F7) [00:30:24]Malloc new data [00:30:24]SetTLVBufToDocument err=0 [00:30:24]Processing tag 1007 (03EF) [00:30:24]Load OK [00:30:24]SetTLVBufToDocument [00:30:24]Processing tag 1014 (03F6) [00:30:24]Malloc new data [00:30:24]Processing tag 1015 (03F7) [00:30:24]Malloc new data [00:30:24]SetTLVBufToDocument err=0 [00:30:24]Processing tag 1007 (03EF) [00:30:24]Load OK [00:30:24]SetTLVBufToDocument [00:30:24]Processing tag 1014 (03F6) [00:30:24]Malloc new data [00:30:24]Processing tag 1015 (03F7) [00:30:24]Malloc new data [00:30:24]SetTLVBufToDocument err=0 [00:30:24]SetTLVBufToDocument err=0 [00:30:24]SetTLVBufToDocument err=0 [00:30:24]Processing tag 1132 (046C) [00:30:24]Load OK [00:30:24]SetTLVBufToDocument [00:30:24]Processing tag 1135 (046F) [00:30:24]Malloc new data [00:30:24]Processing tag 1201 (04B1) [00:30:24]Malloc new data [00:30:24]Processing tag 1136 (0470) [00:30:24]Malloc new data [00:30:24]Processing tag 1138 (0472) [00:30:24]Malloc new data [00:30:24]Processing tag 1024 (0400) [00:30:24]Load OK [00:30:24]SetTLVBufToDocument [00:30:24]Processing tag 1006 (03EE) [00:30:24]Load OK [00:30:24]SetTLVBufToDocument [00:30:24]Processing tag 1010 (03F2) [00:30:24]Malloc new data [00:30:24]Processing tag 1011 (03F3) [00:30:24]Malloc new data [00:30:24]SetTLVBufToDocument err=0 [00:30:24]Processing tag 1006 (03EE) [00:30:24]Load OK [00:30:24]SetTLVBufToDocument [00:30:24]Processing tag 1010 (03F2) [00:30:24]Malloc new data [00:30:24]Processing tag 1011 (03F3) [00:30:24]Malloc new data [00:30:24]SetTLVBufToDocument err=0 [00:30:24]Processing tag 1007 (03EF) [00:30:24]Load OK [00:30:24]SetTLVBufToDocument [00:30:24]Processing tag 1014 (03F6) [00:30:24]Malloc new data [00:30:24]Processing tag 1015 (03F7) [00:30:24]Malloc new data [00:30:24]SetTLVBufToDocument err=0 [00:30:24]Processing tag 1007 (03EF) [00:30:24]Load OK [00:30:24]SetTLVBufToDocument [00:30:24]Processing tag 1014 (03F6) [00:30:24]Malloc new data [00:30:24]Processing tag 1015 (03F7) [00:30:24]Malloc new data [00:30:24]SetTLVBufToDocument err=0 [00:30:24]Processing tag 1007 (03EF) [00:30:24]Load OK [00:30:24]SetTLVBufToDocument [00:30:24]Processing tag 1014 (03F6) [00:30:24]Malloc new data [00:30:24]Processing tag 1015 (03F7) [00:30:24]Malloc new data [00:30:24]SetTLVBufToDocument err=0 [00:30:24]Processing tag 1007 (03EF) [00:30:24]Load OK [00:30:24]SetTLVBufToDocument [00:30:24]Processing tag 1014 (03F6) [00:30:24]Malloc new data [00:30:24]Processing tag 1015 (03F7) [00:30:24]Malloc new data [00:30:24]SetTLVBufToDocument err=0 [00:30:24]Processing tag 1007 (03EF) [00:30:24]Load OK [00:30:24]SetTLVBufToDocument [00:30:24]Processing tag 1014 (03F6) [00:30:24]Malloc new data [00:30:24]Processing tag 1015 (03F7) [00:30:24]Malloc new data [00:30:24]SetTLVBufToDocument err=0 [00:30:24]Processing tag 1007 (03EF) [00:30:24]Load OK [00:30:24]SetTLVBufToDocument [00:30:24]Processing tag 1014 (03F6) [00:30:24]Malloc new data [00:30:24]Processing tag 1015 (03F7) [00:30:24]Malloc new data [00:30:24]SetTLVBufToDocument err=0 [00:30:24]Processing tag 1007 (03EF) [00:30:24]Load OK [00:30:24]SetTLVBufToDocument [00:30:24]Processing tag 1014 (03F6) [00:30:24]Malloc new data [00:30:24]Processing tag 1015 (03F7) [00:30:24]Malloc new data [00:30:24]SetTLVBufToDocument err=0 [00:30:24]SetTLVBufToDocument err=0 [00:30:24]SetTLVBufToDocument err=0 [00:30:24]Processing tag 1133 (046D) [00:30:24]Malloc new data [00:30:24]SetTLVBufToDocument err=0 [00:30:24]SetTLVBufToDocument err=0 [00:30:24]Malloc new data [00:30:24]SAM_PROTO_GetFMData [00:30:24]wFMCommunicate request_size=4 [00:30:24]MH_SAM_APDU [00:30:24]CAPDU: 80 13 03 00 [00:30:24]Write to MH i2c: E2 08 00 3E 00 80 13 03 00 00 00 00 00 BD [00:30:24]Write i2c OK [00:30:24]MH_I2C_Read... [00:30:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:24]Read from MH i2c: E2 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: E2 FD 00 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: E2 FD 00 3E 00 00 C5 04 85 04 C1 04 6E 04 04 00 8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 63 [00:30:24]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 [00:30:25]wFMCommunicate OK [00:30:25]wFMCommunicate request_size=4 [00:30:25]MH_SAM_APDU [00:30:25]CAPDU: 80 17 00 00 [00:30:25]Write to MH i2c: E2 08 00 3F 00 80 17 00 00 00 00 00 00 BF [00:30:25]Write i2c OK [00:30:25]MH_I2C_Read... [00:30:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:25]Read from MH i2c: E2 [00:30:25]MH_I2C_Read... [00:30:25]Read from MH i2c: E2 FD 00 [00:30:25]MH_I2C_Read... [00:30:25]Read from MH i2c: E2 FD 00 3F 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AC [00:30:25]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:25]wFMCommunicate OK [00:30:25]wFMCommunicate request_size=4 [00:30:25]MH_SAM_APDU [00:30:25]CAPDU: 80 17 00 00 [00:30:25]Write to MH i2c: E2 08 00 40 00 80 17 00 00 00 00 00 00 C0 [00:30:25]Write i2c OK [00:30:25]MH_I2C_Read... [00:30:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:25]Read from MH i2c: E2 [00:30:25]MH_I2C_Read... [00:30:25]Read from MH i2c: E2 FD 00 [00:30:25]MH_I2C_Read... [00:30:25]Read from MH i2c: E2 FD 00 40 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 D2 [00:30:25]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:30:26]wFMCommunicate OK [00:30:26]wFMCommunicate request_size=4 [00:30:26]MH_SAM_APDU [00:30:26]CAPDU: 80 17 00 00 [00:30:26]Write to MH i2c: E2 08 00 41 00 80 17 00 00 00 00 00 00 C1 [00:30:26]Write i2c OK [00:30:26]MH_I2C_Read... [00:30:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:26]Read from MH i2c: E2 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 FD 00 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 FD 00 41 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 4D [00:30:26]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:30:26]wFMCommunicate OK [00:30:26]wFMCommunicate request_size=4 [00:30:26]MH_SAM_APDU [00:30:26]CAPDU: 80 17 00 00 [00:30:26]Write to MH i2c: E2 08 00 42 00 80 17 00 00 00 00 00 00 C2 [00:30:26]Write i2c OK [00:30:26]MH_I2C_Read... [00:30:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:30:26]Read from MH i2c: E2 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 E2 00 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 E2 00 42 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:30: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 [00:30:27]wFMCommunicate OK [00:30:27]SAM_PROTO_GetFMData done [00:30:27]FM_GetFMData:85 04 C1 04 6E 04 04 00 OFD Sender: No OFD packet to send [00:30:27]8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:30:28]oper:6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:30:28]total:11 CF EA 80 01 [00:30:28]Malloc new data [00:30:28]oper:6F 04 04 00 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:30:28]total:5C F7 C9 0F [00:30:28]Malloc new data [00:30:28]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:30:28]total: [00:30:28]Malloc new data [00:30:28]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:30:28]total: [00:30:28]Malloc new data [00:30:28]KKMPrepareXReportFMData err=0 [00:30:28]Х отчет ИНН: 02508201610067 Кассир: Авазбеков Э. 23.09.2024 00:30 Смена: 266 РНМ: 0000000000091831 ЗНМ: 0300000120 СНО: Общий режим Всего чеков: 233 ИТОГИ ПРИХОД Чеков: 233 Общий итог: 81680.21 Итого наличными: 59867.00 Итого безнал.: 21813.21 НДС 0% : 0.00 НДС 12% : 8674.48 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 722.40 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Общий итог: 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 Нал. в кассе: 59867.00 НС Приход: 64578393.77 НС Возвр.Прихода: 2648943.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871830 [00:30:28]StoreToDocumentArchive [00:30:28]MH_GetDate [00:30:28]Write to MH i2c: F0 00 00 43 00 32 [00:30:28]Write i2c OK [00:30:28]MH_I2C_Read... [00:30:28]Read from MH i2c: F0 [00:30:28]MH_I2C_Read... [00:30:28]Read from MH i2c: F0 09 00 [00:30:28]MH_I2C_Read... [00:30:28]Read from MH i2c: F0 09 00 43 00 00 A4 B6 F0 66 1B D0 5A 64 94 [00:30:28]shift 266 fd 1727051428 [00:30:28]Create dir for shift 0266 [00:30:28]save to /storage/0266/doc_1727051428 [00:30:28]save last doc name /storage/0266/doc_1727051428 to /storage/kkm_last_doc_name [00:30:28]save OK [00:30:28]Clear old archive folders... [00:30:28]NVStorageSaveData kkm_last_timestamp [00:30:28]File name is /storage/kkm_last_timestamp [00:30:28]Write 4 bytes [00:30:28]NVStorageSaveData done [00:30:28]ExternCall_PrintAddStr [00:30:28]wPrintStart [00:30:28]Write to MH i2c: 01 00 00 44 00 44 [00:30:28]Write i2c OK [00:30:28]MH_I2C_Read... [00:30:28]Read from MH i2c: 01 [00:30:28]MH_I2C_Read... [00:30:28]Read from MH i2c: 01 07 00 [00:30:28]MH_I2C_Read... [00:30:28]Read from MH i2c: 01 07 00 44 00 00 00 00 00 00 FF 0F 59 [00:30:28]RasterBufferAndPrint [00:30:28]line Х отчет [00:30:28]line ИНН: 02508201610067 [00:30:28]line Кассир: Авазбеков Э. [00:30:28]line 23.09.2024 00:30 [00:30:28]line Смена: 266 [00:30:28]line РНМ: 0000000000091831 [00:30:28]line ЗНМ: 0300000120 [00:30:28]line СНО: Общий режим [00:30:28]line Всего чеков: 233 [00:30:28]line ИТОГИ ПРИХОД [00:30:28]line Чеков: 233 [00:30:28]line Общий итог: 81680.21 [00:30:28]line Итого наличными: 59867.00 [00:30:28]line Итого безнал.: 21813.21 [00:30:28]line НДС 0% : 0.00 [00:30:28]line НДС 12% : 8674.48 [00:30:28]line НСП 0% : 0.00 [00:30:28]line НСП 1,50% : 0.00 [00:30:28]line НСП 0,50% : 0.00 [00:30:28]line НСП 5% : 0.00 [00:30:28]line НСП 3% : 0.00 [00:30:28]line НСП 2% : 0.00 [00:30:28]line НСП 1% : 722.40 [00:30:28]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:30:28]line Чеков: 0 [00:30:28]line Общий итог: 0.00 [00:30:28]line Итого наличными: 0.00 [00:30:28]line Итого безнал.: 0.00 [00:30:28]line НДС 0% : 0.00 [00:30:28]line НДС 12% : 0.00 [00:30:28]line НСП 0% : 0.00 [00:30:28]line НСП 1,50% : 0.00 [00:30:28]line НСП 0,50% : 0.00 [00:30:28]line НСП 5% : 0.00 [00:30:28]line НСП 3% : 0.00 [00:30:28]line НСП 2% : 0.00 [00:30:28]line НСП 1% : 0.00 [00:30:28]line ИТОГИ РАСХОД [00:30:28]line Чеков: 0 [00:30:28]line Общий итог: 0.00 [00:30:28]line Итого наличными: 0.00 [00:30:28]line Итого безнал.: 0.00 [00:30:28]line НДС 0% : 0.00 [00:30:28]line НДС 12% : 0.00 [00:30:28]line НСП 0% : 0.00 [00:30:28]line НСП 1,50% : 0.00 [00:30:28]line НСП 0,50% : 0.00 [00:30:28]line НСП 5% : 0.00 [00:30:28]line НСП 3% : 0.00 [00:30:28]line НСП 2% : 0.00 [00:30:28]line НСП 1% : 0.00 [00:30:28]line ИТОГИ ВОЗВРАТ РАСХОДА [00:30:28]line Чеков: 0 [00:30:28]line Общий итог: 0.00 [00:30:28]line Итого наличными: 0.00 [00:30:28]line Итого безнал.: 0.00 [00:30:28]line НДС 0% : 0.00 [00:30:28]line НДС 12% : 0.00 [00:30:28]line НСП 0% : 0.00 [00:30:28]line НСП 1,50% : 0.00 [00:30:28]line НСП 0,50% : 0.00 [00:30:28]line НСП 5% : 0.00 [00:30:28]line НСП 3% : 0.00 [00:30:28]line НСП 2% : 0.00 [00:30:28]line НСП 1% : 0.00 [00:30:28]line Сумма внесений: 0.00 [00:30:28]line Сумма выплат: 0.00 [00:30:28]line Нал. в кассе: 59867.00 [00:30:28]line НС Приход: 64578393.77 [00:30:28]line НС Возвр.Прихода: 2648943.00 [00:30:28]line НС Расход: 0.00 [00:30:28]line НС Возвр.Расхода: 0.00 [00:30:28]line ФМ: 0000000000871830 [00:30:28]written 0, free lines is 4095 [00:30:29]Write to MH i2c: 01 00 00 8F 00 8F [00:30:29]Write i2c OK [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: 01 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: 01 07 00 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 4D 09 EC [00:30:29]RasterBufferAndPrint [00:30:29]line [00:30:29]line [00:30:29]line [00:30:29]line [00:30:29]line [00:30:29]written 0, free lines is 2399 [00:30:29]MH_Cut [00:30:29]Write to MH i2c: D1 01 00 96 00 01 68 [00:30:29]Write i2c OK [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: D1 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: D1 01 00 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: D1 01 00 96 00 00 67 [00:30:29]Write to MH i2c: 01 00 00 97 00 97 [00:30:29]Write i2c OK [00:30:29]MH_I2C_Read... [00:30:31]*** Cut start [00:30:31]*** Partial cut [00:30:31]*** CUTSNS_PIN = 1 [00:30:31]*** CUTSNS_PIN = 0 [00:30:31]*** Brake cut motor [00:30:31]Read from MH i2c: 01 [00:30:31]MH_I2C_Read... [00:30:31]*** Stop cut motor [00:30:31]*** Cut end [00:30:31]Read from MH i2c: 01 07 00 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [00:30:31]process_action x_report done [00:30:31]requested_data is exist [00:30:31]produce_requested_data [00:30:31]requested_item fd.num is exist - process it [00:30:31]SAM_PROTO_GetFieldsCounters [00:30:31]wFMCommunicate request_size=4 [00:30:31]MH_SAM_APDU [00:30:31]CAPDU: 80 13 00 00 [00:30:31]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [00:30:31]Write i2c OK [00:30:31]MH_I2C_Read... [00:30:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:32]Read from MH i2c: E2 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: E2 62 00 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: E2 62 00 98 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3B C3 01 00 0E 04 04 00 D7 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 BF [00:30: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3B C3 01 00 0E 04 04 00 D7 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 [00:30:32]wFMCommunicate OK [00:30:32]SAM_PROTO_GetFieldsCounters done [00:30:32]requested_item shift.num is exist - process it [00:30:32]requested_item shift.opened is exist - process it [00:30:32]req_shift_opened [00:30:32]FM_GetShiftState [00:30:32]SAM_PROTO_GetShiftState [00:30:32]wFMCommunicate request_size=4 [00:30:32]MH_SAM_APDU [00:30:32]CAPDU: 80 13 01 00 [00:30:32]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [00:30:32]Write i2c OK [00:30:32]MH_I2C_Read... [00:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:32]Read from MH i2c: E2 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: E2 0E 00 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 2F [00:30:32]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [00:30:32]wFMCommunicate OK [00:30:32]SAM_PROTO_GetShiftState done [00:30:32]FM_GetShiftState done [00:30:32]req_shift_opened done [00:30:32]requested_item shift.open_date is exist - process it [00:30:32]req_shift_open_date [00:30:32]req_shift_open_date done [00:30:32]produce_requested_data done [00:30:32]produce_requested_data return {"fd.num":115515,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [00:30:32]process_action_free x_report [00:30:32]json_value_free [00:30:32]json_value_free done [00:30:32]process_json_proto returns [00:30:32]Send response to host [00:30:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":115515,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [00:30:32]free response buf [00:30:32]execute_script done [00:30:32]execute_script returns [00:30:32]free content buf [00:30:32]Sock 9.Close socket [00:30:32]Sock 9.Thread stoped [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:06]accept exits with 6 [00:31:06]New connection [00:31:06]New thread 3067313508 created [00:31:06]Thread 3067170148 joined [00:31:06]Waiting for new connection... [00:31:06] Sock 6.Parse request [00:31:06]Sock 6.Check first char [00:31:06]Sock 6.First char is OK [00:31:06]request: POST /json_proto HTTP/1.0 [00:31:06]Method: POST [00:31:06]URL: /json_proto [00:31:06]Method is POST - this is cgi request [00:31:06]url: /json_proto [00:31:06]query_string will be loaded in cgi processing [00:31:06]execute_cgi json_proto POST (null) [00:31:06]execute_cgi path=json_proto method=POST [00:31:06]POST find Content-Length [00:31:06]Host: 172.17.41.136:8080 [00:31:06]Content-Length: 215 [00:31:06]Content-Type: application/json [00:31:06] [00:31:06]POST finish read [00:31:06]Found Content-Length = 215 [00:31:06]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:31:06]execute_script... [00:31:06]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:31:06]POST & json_proto [00:31:06]process_json_proto [00:31:06]json parsed OK: [00:31:06]protocol is kg_v1.0 [00:31:06]action value=get_value [00:31:06]process_action get_value [00:31:06]cmd_get_value [00:31:06]process_action get_value done [00:31:06]requested_data is exist [00:31:06]produce_requested_data [00:31:06]requested_item kkm.sn is exist - process it [00:31:06]requested_item kkm.ver is exist - process it [00:31:06]requested_item fm.sn is exist - process it [00:31:06]wFMCommunicate request_size=4 [00:31:06]MH_SAM_APDU [00:31:06]CAPDU: 80 11 00 00 [00:31:06]Write to MH i2c: E2 08 00 9A 00 80 11 00 00 00 00 00 00 14 [00:31:06]Write i2c OK [00:31:06]MH_I2C_Read... [00:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:06]Read from MH i2c: E2 [00:31:06]MH_I2C_Read... [00:31:06]Read from MH i2c: E2 17 00 [00:31:06]MH_I2C_Read... [00:31:06]Read from MH i2c: E2 17 00 9A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 62 [00:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:31:06]wFMCommunicate OK [00:31:06]requested_item fd.num is exist - process it [00:31:06]SAM_PROTO_GetFieldsCounters [00:31:06]wFMCommunicate request_size=4 [00:31:06]MH_SAM_APDU [00:31:06]CAPDU: 80 13 00 00 [00:31:06]Write to MH i2c: E2 08 00 9B 00 80 13 00 00 00 00 00 00 17 [00:31:06]Write i2c OK [00:31:06]MH_I2C_Read... [00:31:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:06]Read from MH i2c: E2 [00:31:06]MH_I2C_Read... [00:31:06]Read from MH i2c: E2 62 00 [00:31:06]MH_I2C_Read... [00:31:06]Read from MH i2c: E2 62 00 9B 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3B C3 01 00 0E 04 04 00 D7 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 C2 [00:31:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3B C3 01 00 0E 04 04 00 D7 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 [00:31:06]wFMCommunicate OK [00:31:06]SAM_PROTO_GetFieldsCounters done [00:31:06]requested_item shift.num is exist - process it [00:31:06]requested_item shift.opened is exist - process it [00:31:06]req_shift_opened [00:31:06]FM_GetShiftState [00:31:06]SAM_PROTO_GetShiftState [00:31:06]wFMCommunicate request_size=4 [00:31:06]MH_SAM_APDU [00:31:06]CAPDU: 80 13 01 00 [00:31:06]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [00:31:06]Write i2c OK [00:31:06]MH_I2C_Read... [00:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:07]Read from MH i2c: E2 [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: E2 0E 00 [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 32 [00:31:07]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [00:31:07]wFMCommunicate OK [00:31:07]SAM_PROTO_GetShiftState done [00:31:07]FM_GetShiftState done [00:31:07]req_shift_opened done [00:31:07]requested_item shift.open_date is exist - process it [00:31:07]req_shift_open_date [00:31:07]req_shift_open_date done [00:31:07]produce_requested_data done [00:31:07]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115515,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840} [00:31:07]process_action_free get_value [00:31:07]json_value_free [00:31:07]json_value_free done [00:31:07]process_json_proto returns [00:31:07]Send response to host [00:31:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115515,"shift.num":471,"shift.opened":1,"shift.open_date":1726965840}}} [00:31:07]free response buf [00:31:07]execute_script done [00:31:07]execute_script returns [00:31:07]free content buf [00:31:07]Sock 6.Close socket [00:31:07]Sock 6.Thread stoped [00:31:07]accept exits with 9 [00:31:07]New connection [00:31:07]New thread 3067170148 created [00:31:07]Thread 3067313508 joined [00:31:07]Waiting for new connection... [00:31:07] Sock 9.Parse request [00:31:07]Sock 9.Check first char [00:31:07]Sock 9.First char is OK [00:31:07]request: POST /json_proto HTTP/1.0 [00:31:07]Method: POST [00:31:07]URL: /json_proto [00:31:07]Method is POST - this is cgi request [00:31:07]url: /json_proto [00:31:07]query_string will be loaded in cgi processing [00:31:07]execute_cgi json_proto POST (null) [00:31:07]execute_cgi path=json_proto method=POST [00:31:07]POST find Content-Length [00:31:07]Host: 172.17.41.136:8080 [00:31:07]Content-Length: 331 [00:31:07]Content-Type: application/json [00:31:07] [00:31:07]POST finish read [00:31:07]Found Content-Length = 331 [00:31:07]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:31:07]execute_script... [00:31:07]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:31:07]POST & json_proto [00:31:07]process_json_proto [00:31:07]json parsed OK: [00:31:07]protocol is kg_v1.0 [00:31:07]action value=get_value [00:31:07]process_action get_value [00:31:07]cmd_get_value [00:31:07]process_action get_value done [00:31:07]requested_data is exist [00:31:07]produce_requested_data [00:31:07]requested_item fm.sale.total is exist - process it [00:31:07]SAM_PROTO_GetFMData [00:31:07]wFMCommunicate request_size=4 [00:31:07]MH_SAM_APDU [00:31:07]CAPDU: 80 13 03 00 [00:31:07]Write to MH i2c: E2 08 00 9D 00 80 13 03 00 00 00 00 00 1C [00:31:07]OFD Sender: No OFD packet to send [00:31:07]Write i2c OK [00:31:07]MH_I2C_Read... [00:31:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:31:07]Read from MH i2c: E2 [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: E2 FD 00 [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: E2 FD 00 9D 00 00 C5 04 85 04 C1 04 6E 04 04 00 8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 C2 [00:31:07]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 [00:31:07]wFMCommunicate OK [00:31:07]wFMCommunicate request_size=4 [00:31:07]MH_SAM_APDU [00:31:07]CAPDU: 80 17 00 00 [00:31:07]Write to MH i2c: E2 08 00 9E 00 80 17 00 00 00 00 00 00 1E [00:31:07]Write i2c OK [00:31:07]MH_I2C_Read... [00:31:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:08]Read from MH i2c: E2 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 FD 00 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 FD 00 9E 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0B [00:31:08]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:31:08]wFMCommunicate OK [00:31:08]wFMCommunicate request_size=4 [00:31:08]MH_SAM_APDU [00:31:08]CAPDU: 80 17 00 00 [00:31:08]Write to MH i2c: E2 08 00 9F 00 80 17 00 00 00 00 00 00 1F [00:31:08]Write i2c OK [00:31:08]MH_I2C_Read... [00:31:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:08]Read from MH i2c: E2 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 FD 00 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 FD 00 9F 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 31 [00:31:08]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:31:08]wFMCommunicate OK [00:31:08]wFMCommunicate request_size=4 [00:31:08]MH_SAM_APDU [00:31:08]CAPDU: 80 17 00 00 [00:31:08]Write to MH i2c: E2 08 00 A0 00 80 17 00 00 00 00 00 00 20 [00:31:08]Write i2c OK [00:31:08]MH_I2C_Read... [00:31:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:08]Read from MH i2c: E2 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 FD 00 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 FD 00 A0 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 AC [00:31:08]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:31:08]wFMCommunicate OK [00:31:08]wFMCommunicate request_size=4 [00:31:08]MH_SAM_APDU [00:31:08]CAPDU: 80 17 00 00 [00:31:08]Write to MH i2c: E2 08 00 A1 00 80 17 00 00 00 00 00 00 21 [00:31:08]Write i2c OK [00:31:08]MH_I2C_Read... [00:31:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:31:08]Read from MH i2c: E2 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 E2 00 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 E2 00 A1 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FF [00:31:08]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:31:08]wFMCommunicate OK [00:31:08]SAM_PROTO_GetFMData done [00:31:08]requested_item fm.sale_refund.total is exist - process it [00:31:08]requested_item fm.buy.total is exist - process it [00:31:08]requested_item shift.sale.total is exist - process it [00:31:08]SAM_PROTO_GetShiftData [00:31:08]wFMCommunicate request_size=4 [00:31:08]MH_SAM_APDU [00:31:08]CAPDU: 80 13 02 00 [00:31:08]Write to MH i2c: E2 08 00 A2 00 80 13 02 00 00 00 00 00 20 [00:31:08]Write i2c OK [00:31:08]MH_I2C_Read... [00:31:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:31:09]Read from MH i2c: E2 [00:31:09]MH_I2C_Read... [00:31:09]Read from MH i2c: E2 FD 00 [00:31:09]MH_I2C_Read... [00:31:09]Read from MH i2c: E2 FD 00 A2 00 00 AF 04 AA 04 AB 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D 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 30 1A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 B3 [00:31:09]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D 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 30 1A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:31:09]wFMCommunicate OK [00:31:09]wFMCommunicate request_size=4 [00:31:09]MH_SAM_APDU [00:31:09]CAPDU: 80 17 00 00 [00:31:09]Write to MH i2c: E2 08 00 A3 00 80 17 00 00 00 00 00 00 23 [00:31:09]Write i2c OK [00:31:09]MH_I2C_Read... [00:31:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:09]Read from MH i2c: E2 [00:31:09]MH_I2C_Read... [00:31:09]Read from MH i2c: E2 FD 00 [00:31:09]MH_I2C_Read... [00:31:09]Read from MH i2c: E2 FD 00 A3 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 3C [00:31:09]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [00:31:09]wFMCommunicate OK [00:31:09]wFMCommunicate request_size=4 [00:31:09]MH_SAM_APDU [00:31:09]CAPDU: 80 17 00 00 [00:31:09]Write to MH i2c: E2 08 00 A4 00 80 17 00 00 00 00 00 00 24 [00:31:09]Write i2c OK [00:31:09]MH_I2C_Read... [00:31:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:10]Read from MH i2c: E2 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 FD 00 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 FD 00 A4 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 D8 [00:31:10]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [00:31:10]wFMCommunicate OK [00:31:10]wFMCommunicate request_size=4 [00:31:10]MH_SAM_APDU [00:31:10]CAPDU: 80 17 00 00 [00:31:10]Write to MH i2c: E2 08 00 A5 00 80 17 00 00 00 00 00 00 25 [00:31:10]Write i2c OK [00:31:10]MH_I2C_Read... [00:31:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:10]Read from MH i2c: E2 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 FD 00 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 FD 00 A5 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 A3 [00:31:10]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [00:31:10]wFMCommunicate OK [00:31:10]wFMCommunicate request_size=4 [00:31:10]MH_SAM_APDU [00:31:10]CAPDU: 80 17 00 00 [00:31:10]Write to MH i2c: E2 08 00 A6 00 80 17 00 00 00 00 00 00 26 [00:31:10]Write i2c OK [00:31:10]MH_I2C_Read... [00:31:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [00:31:10]Read from MH i2c: E2 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 CC 00 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 CC 00 A6 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 07 [00:31:10]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:31:10]wFMCommunicate OK [00:31:10]SAM_PROTO_GetShiftData done [00:31:10]requested_item shift.sale.total_cash is exist - process it [00:31:10]requested_item shift.sale_refund.total is exist - process it [00:31:10]requested_item shift.sale_refund.total_cash is exist - process it [00:31:10]requested_item shift.buy.total is exist - process it [00:31:10]requested_item shift.buy.total_cash is exist - process it [00:31:10]produce_requested_data done [00:31:10]produce_requested_data return {"fm.sale.total":64578393.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":81680.21,"shift.sale.total_cash":59867.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:31:10]process_action_free get_value [00:31:10]json_value_free [00:31:10]json_value_free done [00:31:10]process_json_proto returns [00:31:10]Send response to host [00:31:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64578393.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":81680.21,"shift.sale.total_cash":59867.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:31:10]free response buf [00:31:10]execute_script done [00:31:10]execute_script returns [00:31:10]free content buf [00:31:10]Sock 9.Close socket [00:31:10]Sock 9.Thread stoped [00:31:10]accept exits with 6 [00:31:10]New connection [00:31:10]New thread 3067313508 created [00:31:10]Thread 3067170148 joined [00:31:10]Waiting for new connection... [00:31:10] Sock 6.Parse request [00:31:10]Sock 6.Check first char [00:31:10]Sock 6.First char is OK [00:31:10]request: POST /json_proto HTTP/1.0 [00:31:10]Method: POST [00:31:10]URL: /json_proto [00:31:10]Method is POST - this is cgi request [00:31:10]url: /json_proto [00:31:10]query_string will be loaded in cgi processing [00:31:10]execute_cgi json_proto POST (null) [00:31:10]execute_cgi path=json_proto method=POST [00:31:10]POST find Content-Length [00:31:10]Host: 172.17.41.136:8080 [00:31:10]Content-Length: 331 [00:31:10]Content-Type: application/json [00:31:10] [00:31:10]POST finish read [00:31:10]Found Content-Length = 331 [00:31:10]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:31:10]execute_script... [00:31:10]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:31:10]POST & json_proto [00:31:10]process_json_proto [00:31:10]json parsed OK: [00:31:10]protocol is kg_v1.0 [00:31:10]action value=get_value [00:31:10]process_action get_value [00:31:10]cmd_get_value [00:31:10]process_action get_value done [00:31:10]requested_data is exist [00:31:10]produce_requested_data [00:31:10]requested_item fm.sale.total is exist - process it [00:31:10]SAM_PROTO_GetFMData [00:31:10]wFMCommunicate request_size=4 [00:31:10]MH_SAM_APDU [00:31:10]CAPDU: 80 13 03 00 [00:31:10]Write to MH i2c: E2 08 00 A7 00 80 13 03 00 00 00 00 00 26 [00:31:10]Write i2c OK [00:31:10]MH_I2C_Read... [00:31:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:31:11]Read from MH i2c: E2 [00:31:11]MH_I2C_Read... [00:31:11]Read from MH i2c: E2 FD 00 [00:31:11]MH_I2C_Read... [00:31:11]Read from MH i2c: E2 FD 00 A7 00 00 C5 04 85 04 C1 04 6E 04 04 00 8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 CC [00:31:11]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 [00:31:11]wFMCommunicate OK [00:31:11]wFMCommunicate request_size=4 [00:31:11]MH_SAM_APDU [00:31:11]CAPDU: 80 17 00 00 [00:31:11]Write to MH i2c: E2 08 00 A8 00 80 17 00 00 00 00 00 00 28 [00:31:11]Write i2c OK [00:31:11]MH_I2C_Read... [00:31:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:11]Read from MH i2c: E2 [00:31:11]MH_I2C_Read... [00:31:11]Read from MH i2c: E2 FD 00 [00:31:11]MH_I2C_Read... [00:31:11]Read from MH i2c: E2 FD 00 A8 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:31:11]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:31:11]wFMCommunicate OK [00:31:11]wFMCommunicate request_size=4 [00:31:11]MH_SAM_APDU [00:31:11]CAPDU: 80 17 00 00 [00:31:11]Write to MH i2c: E2 08 00 A9 00 80 17 00 00 00 00 00 00 29 [00:31:11]Write i2c OK [00:31:11]MH_I2C_Read... [00:31:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:12]Read from MH i2c: E2 [00:31:12]MH_I2C_Read... [00:31:12]Read from MH i2c: E2 FD 00 [00:31:12]MH_I2C_Read... [00:31:12]Read from MH i2c: E2 FD 00 A9 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 3B [00:31:12]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:31:12]wFMCommunicate OK [00:31:12]wFMCommunicate request_size=4 [00:31:12]MH_SAM_APDU [00:31:12]CAPDU: 80 17 00 00 [00:31:12]Write to MH i2c: E2 08 00 AA 00 80 17 00 00 00 00 00 00 2A [00:31:12]Write i2c OK [00:31:12]MH_I2C_Read... [00:31:12]OFD Sender: No OFD packet to send [00:31:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:12]Read from MH i2c: E2 [00:31:12]MH_I2C_Read... [00:31:12]Read from MH i2c: E2 FD 00 [00:31:12]MH_I2C_Read... [00:31:12]Read from MH i2c: E2 FD 00 AA 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 B6 [00:31:12]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:31:12]wFMCommunicate OK [00:31:12]wFMCommunicate request_size=4 [00:31:12]MH_SAM_APDU [00:31:12]CAPDU: 80 17 00 00 [00:31:12]Write to MH i2c: E2 08 00 AB 00 80 17 00 00 00 00 00 00 2B [00:31:12]Write i2c OK [00:31:12]MH_I2C_Read... [00:31:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:31:12]Read from MH i2c: E2 [00:31:12]MH_I2C_Read... [00:31:12]Read from MH i2c: E2 E2 00 [00:31:12]MH_I2C_Read... [00:31:12]Read from MH i2c: E2 E2 00 AB 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 09 [00:31:13]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:31:13]wFMCommunicate OK [00:31:13]SAM_PROTO_GetFMData done [00:31:13]requested_item fm.sale_refund.total is exist - process it [00:31:13]requested_item fm.buy.total is exist - process it [00:31:13]requested_item shift.sale.total is exist - process it [00:31:13]SAM_PROTO_GetShiftData [00:31:13]wFMCommunicate request_size=4 [00:31:13]MH_SAM_APDU [00:31:13]CAPDU: 80 13 02 00 [00:31:13]Write to MH i2c: E2 08 00 AC 00 80 13 02 00 00 00 00 00 2A [00:31:13]Write i2c OK [00:31:13]MH_I2C_Read... [00:31:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:31:13]Read from MH i2c: E2 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: E2 FD 00 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: E2 FD 00 AC 00 00 AF 04 AA 04 AB 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D 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 30 1A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 BD [00:31:13]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D 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 30 1A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:31:13]wFMCommunicate OK [00:31:13]wFMCommunicate request_size=4 [00:31:13]MH_SAM_APDU [00:31:13]CAPDU: 80 17 00 00 [00:31:13]Write to MH i2c: E2 08 00 AD 00 80 17 00 00 00 00 00 00 2D [00:31:13]Write i2c OK [00:31:13]MH_I2C_Read... [00:31:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:14]Read from MH i2c: E2 [00:31:14]MH_I2C_Read... [00:31:14]Read from MH i2c: E2 FD 00 [00:31:14]MH_I2C_Read... [00:31:14]Read from MH i2c: E2 FD 00 AD 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 46 [00:31:14]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [00:31:14]wFMCommunicate OK [00:31:14]wFMCommunicate request_size=4 [00:31:14]MH_SAM_APDU [00:31:14]CAPDU: 80 17 00 00 [00:31:14]Write to MH i2c: E2 08 00 AE 00 80 17 00 00 00 00 00 00 2E [00:31:14]Write i2c OK [00:31:14]MH_I2C_Read... [00:31:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:14]Read from MH i2c: E2 [00:31:14]MH_I2C_Read... [00:31:14]Read from MH i2c: E2 FD 00 [00:31:14]MH_I2C_Read... [00:31:14]Read from MH i2c: E2 FD 00 AE 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 E2 [00:31:14]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [00:31:14]wFMCommunicate OK [00:31:14]wFMCommunicate request_size=4 [00:31:14]MH_SAM_APDU [00:31:14]CAPDU: 80 17 00 00 [00:31:14]Write to MH i2c: E2 08 00 AF 00 80 17 00 00 00 00 00 00 2F [00:31:14]Write i2c OK [00:31:14]MH_I2C_Read... [00:31:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:14]Read from MH i2c: E2 [00:31:14]MH_I2C_Read... [00:31:14]Read from MH i2c: E2 FD 00 [00:31:14]MH_I2C_Read... [00:31:14]Read from MH i2c: E2 FD 00 AF 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 AD [00:31:15]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [00:31:15]wFMCommunicate OK [00:31:15]wFMCommunicate request_size=4 [00:31:15]MH_SAM_APDU [00:31:15]CAPDU: 80 17 00 00 [00:31:15]Write to MH i2c: E2 08 00 B0 00 80 17 00 00 00 00 00 00 30 [00:31:15]Write i2c OK [00:31:15]MH_I2C_Read... [00:31:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [00:31:15]Read from MH i2c: E2 [00:31:15]MH_I2C_Read... [00:31:15]Read from MH i2c: E2 CC 00 [00:31:15]MH_I2C_Read... [00:31:15]Read from MH i2c: E2 CC 00 B0 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 11 [00:31:15]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:31:15]wFMCommunicate OK [00:31:15]SAM_PROTO_GetShiftData done [00:31:15]requested_item shift.sale.total_cash is exist - process it [00:31:15]requested_item shift.sale_refund.total is exist - process it [00:31:15]requested_item shift.sale_refund.total_cash is exist - process it [00:31:15]requested_item shift.buy.total is exist - process it [00:31:15]requested_item shift.buy.total_cash is exist - process it [00:31:15]produce_requested_data done [00:31:15]produce_requested_data return {"fm.sale.total":64578393.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":81680.21,"shift.sale.total_cash":59867.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:31:15]process_action_free get_value [00:31:15]json_value_free [00:31:15]json_value_free done [00:31:15]process_json_proto returns [00:31:15]Send response to host [00:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64578393.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":81680.21,"shift.sale.total_cash":59867.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:31:15]free response buf [00:31:15]execute_script done [00:31:15]execute_script returns [00:31:15]free content buf [00:31:15]Sock 6.Close socket [00:31:15]Sock 6.Thread stoped [00:31:15]accept exits with 9 [00:31:15]New connection [00:31:15]New thread 3067170148 created [00:31:15]Thread 3067313508 joined [00:31:15]Waiting for new connection... [00:31:15] Sock 9.Parse request [00:31:15]Sock 9.Check first char [00:31:15]Sock 9.First char is OK [00:31:15]request: POST /json_proto HTTP/1.0 [00:31:15]Method: POST [00:31:15]URL: /json_proto [00:31:15]Method is POST - this is cgi request [00:31:15]url: /json_proto [00:31:15]query_string will be loaded in cgi processing [00:31:15]execute_cgi json_proto POST (null) [00:31:15]execute_cgi path=json_proto method=POST [00:31:15]POST find Content-Length [00:31:15]Host: 172.17.41.136:8080 [00:31:15]Content-Length: 266 [00:31:15]Content-Type: application/json [00:31:15] [00:31:15]POST finish read [00:31:15]Found Content-Length = 266 [00:31:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0432\u0430\u0437\u0431\u0435\u043A\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:15]execute_script... [00:31:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0432\u0430\u0437\u0431\u0435\u043A\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:15]POST & json_proto [00:31:15]process_json_proto [00:31:15]json parsed OK: [00:31:15]protocol is kg_v1.0 [00:31:15]action value=close_shift [00:31:15]process_action close_shift [00:31:15]cmd_close_shift [00:31:15]MH_GetDate [00:31:15]Write to MH i2c: F0 00 00 B1 00 A0 [00:31:15]Write i2c OK [00:31:15]MH_I2C_Read... [00:31:15]Read from MH i2c: F0 [00:31:15]MH_I2C_Read... [00:31:15]Read from MH i2c: F0 09 00 [00:31:15]MH_I2C_Read... [00:31:15]Read from MH i2c: F0 09 00 B1 00 00 D3 B6 F0 66 1B D0 5A 64 31 [00:31:15]GetLastDocTimeStamp 1727051420 [00:31:15]current date 1727051475 [00:31:15]FM_GetShiftState [00:31:15]SAM_PROTO_GetShiftState [00:31:15]wFMCommunicate request_size=4 [00:31:15]MH_SAM_APDU [00:31:15]CAPDU: 80 13 01 00 [00:31:15]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [00:31:15]Write i2c OK [00:31:15]MH_I2C_Read... [00:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:15]Read from MH i2c: E2 [00:31:15]MH_I2C_Read... [00:31:15]Read from MH i2c: E2 0E 00 [00:31:15]MH_I2C_Read... [00:31:15]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 50 68 EF 66 00 00 00 00 90 00 48 [00:31:15]RAPDU: 09 00 01 50 68 EF 66 00 00 00 00 90 00 [00:31:15]wFMCommunicate OK [00:31:15]SAM_PROTO_GetShiftState done [00:31:15]FM_GetShiftState done [00:31:15]KKMCreateCloseShiftDocument [00:31:15]Load OK [00:31:15]Malloc new data [00:31:15]MH_GetDate [00:31:15]Write to MH i2c: F0 00 00 B3 00 A2 [00:31:15]Write i2c OK [00:31:15]MH_I2C_Read... [00:31:15]Read from MH i2c: F0 [00:31:15]MH_I2C_Read... [00:31:15]Read from MH i2c: F0 09 00 [00:31:15]MH_I2C_Read... [00:31:15]Read from MH i2c: F0 09 00 B3 00 00 D3 B6 F0 66 1B D0 5A 64 33 [00:31:15]Malloc new data [00:31:15]Malloc new data [00:31:15]Malloc new data [00:31:15]Malloc new data [00:31:15]KKMCreateCloseShiftDocument OK [00:31:15]KKMSetCloseShiftData OK [00:31:15]ProcessDocumentItem done err = 0, tmpTLVsize=73 [00:31:15]tlvbuf is 012171D0 [00:31:15]KKMLoadAndSignCloseShiftData [00:31:15]SAM_PROTO_ProcessDocument [00:31:15]wFMCommunicate request_size=9 [00:31:15]MH_SAM_APDU [00:31:15]CAPDU: 80 15 01 00 04 05 00 49 00 [00:31:15]Write to MH i2c: E2 0C 00 B4 00 80 15 01 00 04 00 05 00 49 00 00 00 89 [00:31:15]Write i2c OK [00:31:15]MH_I2C_Read... [00:31:15]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:31:15]Read from MH i2c: E2 [00:31:15]MH_I2C_Read... [00:31:15]Read from MH i2c: E2 03 00 [00:31:15]MH_I2C_Read... [00:31:15]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [00:31:15]RAPDU: 90 00 [00:31:15]wFMCommunicate OK [00:31:15]wFMCommunicate request_size=23 [00:31:15]MH_SAM_APDU [00:31:15]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:31:15]Write to MH i2c: E2 1A 00 B5 00 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 2A [00:31:15]Write i2c OK [00:31:15]MH_I2C_Read... [00:31:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:15]Read from MH i2c: E2 [00:31:15]MH_I2C_Read... [00:31:15]Read from MH i2c: E2 03 00 [00:31:15]MH_I2C_Read... [00:31:15]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [00:31:15]RAPDU: 90 00 [00:31:15]wFMCommunicate OK [00:31:15]wFMCommunicate request_size=32 [00:31:15]MH_SAM_APDU [00:31:15]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 90 D0 B2 D0 B0 D0 B7 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 AD 2E 20 [00:31:15]Write to MH i2c: E2 23 00 B6 00 80 15 02 00 1B 00 FD 03 17 00 D0 90 D0 B2 D0 B0 D0 B7 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 AD 2E 20 00 00 F7 [00:31:15]Write i2c OK [00:31:15]MH_I2C_Read... [00:31:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:16]Read from MH i2c: E2 [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: E2 03 00 [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [00:31:16]RAPDU: 90 00 [00:31:16]wFMCommunicate OK [00:31:16]wFMCommunicate request_size=13 [00:31:16]MH_SAM_APDU [00:31:16]CAPDU: 80 15 02 00 08 F4 03 04 00 D3 B6 F0 66 [00:31:16]Write to MH i2c: E2 10 00 B7 00 80 15 02 00 08 00 F4 03 04 00 D3 B6 F0 66 00 00 21 [00:31:16]Write i2c OK [00:31:16]MH_I2C_Read... [00:31:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:16]Read from MH i2c: E2 [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: E2 03 00 [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [00:31:16]RAPDU: 90 00 [00:31:16]wFMCommunicate OK [00:31:16]wFMCommunicate request_size=25 [00:31:16]MH_SAM_APDU [00:31:16]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [00:31:16]Write to MH i2c: E2 1C 00 B8 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 97 [00:31:16]Write i2c OK [00:31:16]MH_I2C_Read... [00:31:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:16]Read from MH i2c: E2 [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: E2 03 00 [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: E2 03 00 B8 00 00 90 00 2C [00:31:16]RAPDU: 90 00 [00:31:16]wFMCommunicate OK [00:31:16]wFMCommunicate request_size=4 [00:31:16]MH_SAM_APDU [00:31:16]CAPDU: 80 15 03 00 [00:31:16]Write to MH i2c: E2 08 00 B9 00 80 15 03 00 00 00 00 00 3A [00:31:16]Write i2c OK [00:31:16]MH_I2C_Read... [00:31:16]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:31:16]Read from MH i2c: E2 [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: E2 FD 00 [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: E2 FD 00 B9 00 00 F2 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3C C3 01 00 0E 04 04 00 D7 01 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EB 00 00 00 AA 04 AB 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D 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 30 1A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 0A [00:31:16]RAPDU: F2 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3C C3 01 00 0E 04 04 00 D7 01 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EB 00 00 00 AA 04 AB 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D 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 30 1A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 [00:31:17]wFMCommunicate OK [00:31:17]SAM_PROTO_ProcessDocument answer len = 1266 [00:31:17]SAM_PROTO_ProcessDocument remain to read = 1018 [00:31:17]wFMCommunicate request_size=4 [00:31:17]MH_SAM_APDU [00:31:17]CAPDU: 80 17 00 00 [00:31:17]Write to MH i2c: E2 08 00 BA 00 80 17 00 00 00 00 00 00 3A [00:31:17]Write i2c OK [00:31:17]MH_I2C_Read... [00:31:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:17]Read from MH i2c: E2 [00:31:17]MH_I2C_Read... [00:31:17]Read from MH i2c: E2 FD 00 [00:31:17]MH_I2C_Read... [00:31:17]Read from MH i2c: E2 FD 00 BA 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 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 90 00 80 [00:31:17]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:31:17]wFMCommunicate OK [00:31:17]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:31:17]SAM_PROTO_ProcessDocument remain to read = 768 [00:31:17]wFMCommunicate request_size=4 [00:31:17]MH_SAM_APDU [00:31:17]CAPDU: 80 17 00 00 [00:31:17]Write to MH i2c: E2 08 00 BB 00 80 17 00 00 00 00 00 00 3B [00:31:17]OFD Sender: No OFD packet to send [00:31:17]Write i2c OK [00:31:17]MH_I2C_Read... [00:31:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:17]Read from MH i2c: E2 [00:31:17]MH_I2C_Read... [00:31:17]Read from MH i2c: E2 FD 00 [00:31:17]MH_I2C_Read... [00:31:17]Read from MH i2c: E2 FD 00 BB 00 00 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 90 00 9D [00:31:17]RAPDU: 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 90 00 [00:31:18]wFMCommunicate OK [00:31:18]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:31:18]SAM_PROTO_ProcessDocument remain to read = 518 [00:31:18]wFMCommunicate request_size=4 [00:31:18]MH_SAM_APDU [00:31:18]CAPDU: 80 17 00 00 [00:31:18]Write to MH i2c: E2 08 00 BC 00 80 17 00 00 00 00 00 00 3C [00:31:18]Write i2c OK [00:31:18]MH_I2C_Read... [00:31:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:18]Read from MH i2c: E2 [00:31:18]MH_I2C_Read... [00:31:18]Read from MH i2c: E2 FD 00 [00:31:18]MH_I2C_Read... [00:31:18]Read from MH i2c: E2 FD 00 BC 00 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D7 [00:31:18]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:18]wFMCommunicate OK [00:31:18]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:31:18]SAM_PROTO_ProcessDocument remain to read = 268 [00:31:18]wFMCommunicate request_size=4 [00:31:18]MH_SAM_APDU [00:31:18]CAPDU: 80 17 00 00 [00:31:18]Write to MH i2c: E2 08 00 BD 00 80 17 00 00 00 00 00 00 3D [00:31:18]Write i2c OK [00:31:18]MH_I2C_Read... [00:31:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:18]Read from MH i2c: E2 [00:31:18]MH_I2C_Read... [00:31:18]Read from MH i2c: E2 FD 00 [00:31:18]MH_I2C_Read... [00:31:18]Read from MH i2c: E2 FD 00 BD 00 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F4 [00:31:19]RAPDU: F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:19]wFMCommunicate OK [00:31:19]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:31:19]SAM_PROTO_ProcessDocument remain to read = 18 [00:31:19]wFMCommunicate request_size=4 [00:31:19]MH_SAM_APDU [00:31:19]CAPDU: 80 17 00 00 [00:31:19]Write to MH i2c: E2 08 00 BE 00 80 17 00 00 00 00 00 00 3E [00:31:19]Write i2c OK [00:31:19]MH_I2C_Read... [00:31:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 18! [00:31:19]Read from MH i2c: E2 [00:31:19]MH_I2C_Read... [00:31:19]Read from MH i2c: E2 15 00 [00:31:19]MH_I2C_Read... [00:31:19]Read from MH i2c: E2 15 00 BE 00 00 03 01 00 06 F7 03 00 00 35 04 06 00 E3 EC 73 0B D8 11 90 00 BD [00:31:19]RAPDU: 03 01 00 06 F7 03 00 00 35 04 06 00 E3 EC 73 0B D8 11 90 00 [00:31:19]wFMCommunicate OK [00:31:19]SAM_PROTO_ProcessDocument received (without SW) 18 bytes [00:31:19]SAM_PROTO_ProcessDocument done [00:31:19]1209 (1) - 1.0 - номер версии ФФД [00:31:19]1041 (16) - 0000000000871830 - номер ФМ [00:31:19]1040 (4) - 115516 - номер ФД [00:31:19]1038 (4) - 471 - номер смены [00:31:19]1118 (4) - 233 - количество кассовых чеков за смену [00:31:19]1111 (4) - 235 - общее количество ФД за смену [00:31:19]1194 (1195) - счетчики итогов смены [00:31:19] 1134 (4) - 233 - количество чеков со всеми признаками расчетов [00:31:19] 1129 (156) - счетчики операций «приход» [00:31:19] 1135 (4) - 233 - количество чеков по признаку расчетов [00:31:19] 1201 (3) - 81680.21 - общая итоговая сумма в чеках [00:31:19] 1136 (3) - 59867.00 - итоговая сумма в чеках наличными [00:31:19] 1138 (3) - 21813.21 - итоговая сумма в чеках безналичными [00:31:19] 1024 (123) - суммы налогов [00:31:19] 1006 (9) - суммы НДС [00:31:19] 1010 (1) - 0% - код ставки НДС [00:31:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:19] 1006 (12) - суммы НДС [00:31:19] 1010 (1) - 12% - код ставки НДС [00:31:19] 1011 (3) - 8674.48 - сумма НДС по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 0% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (12) - суммы НСП [00:31:19] 1014 (1) - 1% - код ставки НСП [00:31:19] 1015 (3) - 722.40 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 2% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 3% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 5% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 0,50% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 1,50% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1130 (141) - счетчики операций «возврат прихода» [00:31:19] 1135 (4) - 0 - количество чеков по признаку расчетов [00:31:19] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:31:19] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:31:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:31:19] 1024 (117) - суммы налогов [00:31:19] 1006 (9) - суммы НДС [00:31:19] 1010 (1) - 0% - код ставки НДС [00:31:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:19] 1006 (9) - суммы НДС [00:31:19] 1010 (1) - 12% - код ставки НДС [00:31:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 0% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 1% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 2% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 3% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 5% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 0,50% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 1,50% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1131 (141) - счетчики операций «расход» [00:31:19] 1135 (4) - 0 - количество чеков по признаку расчетов [00:31:19] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:31:19] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:31:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:31:19] 1024 (117) - суммы налогов [00:31:19] 1006 (9) - суммы НДС [00:31:19] 1010 (1) - 0% - код ставки НДС [00:31:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:19] 1006 (9) - суммы НДС [00:31:19] 1010 (1) - 12% - код ставки НДС [00:31:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 0% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 1% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 2% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 3% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 5% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 0,50% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 1,50% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1132 (141) - счетчики операций «возврат расхода» [00:31:19] 1135 (4) - 0 - количество чеков по признаку расчетов [00:31:19] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:31:19] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:31:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:31:19] 1024 (117) - суммы налогов [00:31:19] 1006 (9) - суммы НДС [00:31:19] 1010 (1) - 0% - код ставки НДС [00:31:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:19] 1006 (9) - суммы НДС [00:31:19] 1010 (1) - 12% - код ставки НДС [00:31:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 0% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 1% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 2% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 3% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 5% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 0,50% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1007 (9) - суммы НСП [00:31:19] 1014 (1) - 1,50% - код ставки НСП [00:31:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:19] 1133 (588) - - счетчики коррекции - не используются [00:31:19]1077 (6) - 250604681943057 - ФПД [00:31:19]SetTLVBufToDocument [00:31:19]Processing tag 1209 (04B9) [00:31:19]Malloc new data [00:31:19]Processing tag 1041 (0411) [00:31:19]Processing tag 1040 (0410) [00:31:19]Malloc new data [00:31:19]Processing tag 1038 (040E) [00:31:19]Malloc new data [00:31:19]Processing tag 1118 (045E) [00:31:19]Malloc new data [00:31:19]Processing tag 1111 (0457) [00:31:19]Malloc new data [00:31:19]Processing tag 1194 (04AA) [00:31:19]Load OK [00:31:19]SetTLVBufToDocument [00:31:19]Processing tag 1134 (046E) [00:31:19]Malloc new data [00:31:19]Processing tag 1129 (0469) [00:31:19]Load OK [00:31:19]SetTLVBufToDocument [00:31:19]Processing tag 1135 (046F) [00:31:19]Malloc new data [00:31:19]Processing tag 1201 (04B1) [00:31:19]Malloc new data [00:31:19]Processing tag 1136 (0470) [00:31:19]Malloc new data [00:31:19]Processing tag 1138 (0472) [00:31:19]Malloc new data [00:31:19]Processing tag 1024 (0400) [00:31:19]Load OK [00:31:19]SetTLVBufToDocument [00:31:19]Processing tag 1006 (03EE) [00:31:19]Load OK [00:31:19]SetTLVBufToDocument [00:31:19]Processing tag 1010 (03F2) [00:31:19]Malloc new data [00:31:19]Processing tag 1011 (03F3) [00:31:19]Malloc new data [00:31:19]SetTLVBufToDocument err=0 [00:31:19]Processing tag 1006 (03EE) [00:31:19]Load OK [00:31:19]SetTLVBufToDocument [00:31:19]Processing tag 1010 (03F2) [00:31:19]Malloc new data [00:31:19]Processing tag 1011 (03F3) [00:31:19]Malloc new data [00:31:19]SetTLVBufToDocument err=0 [00:31:19]Processing tag 1007 (03EF) [00:31:19]Load OK [00:31:19]SetTLVBufToDocument [00:31:19]Processing tag 1014 (03F6) [00:31:19]Malloc new data [00:31:19]Processing tag 1015 (03F7) [00:31:19]Malloc new data [00:31:19]SetTLVBufToDocument err=0 [00:31:19]Processing tag 1007 (03EF) [00:31:19]Load OK [00:31:19]SetTLVBufToDocument [00:31:19]Processing tag 1014 (03F6) [00:31:19]Malloc new data [00:31:19]Processing tag 1015 (03F7) [00:31:19]Malloc new data [00:31:19]SetTLVBufToDocument err=0 [00:31:19]Processing tag 1007 (03EF) [00:31:19]Load OK [00:31:19]SetTLVBufToDocument [00:31:19]Processing tag 1014 (03F6) [00:31:19]Malloc new data [00:31:19]Processing tag 1015 (03F7) [00:31:19]Malloc new data [00:31:19]SetTLVBufToDocument err=0 [00:31:19]Processing tag 1007 (03EF) [00:31:19]Load OK [00:31:19]SetTLVBufToDocument [00:31:19]Processing tag 1014 (03F6) [00:31:19]Malloc new data [00:31:19]Processing tag 1015 (03F7) [00:31:19]Malloc new data [00:31:19]SetTLVBufToDocument err=0 [00:31:19]Processing tag 1007 (03EF) [00:31:19]Load OK [00:31:19]SetTLVBufToDocument [00:31:19]Processing tag 1014 (03F6) [00:31:19]Malloc new data [00:31:19]Processing tag 1015 (03F7) [00:31:19]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]SetTLVBufToDocument err=0 [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1130 (046A) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1135 (046F) [00:31:20]Malloc new data [00:31:20]Processing tag 1201 (04B1) [00:31:20]Malloc new data [00:31:20]Processing tag 1136 (0470) [00:31:20]Malloc new data [00:31:20]Processing tag 1138 (0472) [00:31:20]Malloc new data [00:31:20]Processing tag 1024 (0400) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1006 (03EE) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1010 (03F2) [00:31:20]Malloc new data [00:31:20]Processing tag 1011 (03F3) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1006 (03EE) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1010 (03F2) [00:31:20]Malloc new data [00:31:20]Processing tag 1011 (03F3) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]SetTLVBufToDocument err=0 [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1131 (046B) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1135 (046F) [00:31:20]Malloc new data [00:31:20]Processing tag 1201 (04B1) [00:31:20]Malloc new data [00:31:20]Processing tag 1136 (0470) [00:31:20]Malloc new data [00:31:20]Processing tag 1138 (0472) [00:31:20]Malloc new data [00:31:20]Processing tag 1024 (0400) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1006 (03EE) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1010 (03F2) [00:31:20]Malloc new data [00:31:20]Processing tag 1011 (03F3) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1006 (03EE) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1010 (03F2) [00:31:20]Malloc new data [00:31:20]Processing tag 1011 (03F3) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]SetTLVBufToDocument err=0 [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1132 (046C) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1135 (046F) [00:31:20]Malloc new data [00:31:20]Processing tag 1201 (04B1) [00:31:20]Malloc new data [00:31:20]Processing tag 1136 (0470) [00:31:20]Malloc new data [00:31:20]Processing tag 1138 (0472) [00:31:20]Malloc new data [00:31:20]Processing tag 1024 (0400) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1006 (03EE) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1010 (03F2) [00:31:20]Malloc new data [00:31:20]Processing tag 1011 (03F3) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1006 (03EE) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1010 (03F2) [00:31:20]Malloc new data [00:31:20]Processing tag 1011 (03F3) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1007 (03EF) [00:31:20]Load OK [00:31:20]SetTLVBufToDocument [00:31:20]Processing tag 1014 (03F6) [00:31:20]Malloc new data [00:31:20]Processing tag 1015 (03F7) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]SetTLVBufToDocument err=0 [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1133 (046D) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Processing tag 1077 (0435) [00:31:20]Malloc new data [00:31:20]SetTLVBufToDocument err=0 [00:31:20]Malloc new data [00:31:20]SAM_PROTO_GetFMData [00:31:20]wFMCommunicate request_size=4 [00:31:20]MH_SAM_APDU [00:31:20]CAPDU: 80 13 03 00 [00:31:20]Write to MH i2c: E2 08 00 BF 00 80 13 03 00 00 00 00 00 3E [00:31:20]Write i2c OK [00:31:20]MH_I2C_Read... [00:31:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:31:21]Read from MH i2c: E2 [00:31:21]MH_I2C_Read... [00:31:21]Read from MH i2c: E2 FD 00 [00:31:21]MH_I2C_Read... [00:31:21]Read from MH i2c: E2 FD 00 BF 00 00 C5 04 85 04 C1 04 6E 04 04 00 8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 E4 [00:31:21]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 [00:31:21]wFMCommunicate OK [00:31:21]wFMCommunicate request_size=4 [00:31:21]MH_SAM_APDU [00:31:21]CAPDU: 80 17 00 00 [00:31:21]Write to MH i2c: E2 08 00 C0 00 80 17 00 00 00 00 00 00 40 [00:31:21]Write i2c OK [00:31:21]MH_I2C_Read... [00:31:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:21]Read from MH i2c: E2 [00:31:21]MH_I2C_Read... [00:31:21]Read from MH i2c: E2 FD 00 [00:31:21]MH_I2C_Read... [00:31:21]Read from MH i2c: E2 FD 00 C0 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 2D [00:31:21]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:31:21]wFMCommunicate OK [00:31:21]wFMCommunicate request_size=4 [00:31:21]MH_SAM_APDU [00:31:21]CAPDU: 80 17 00 00 [00:31:21]Write to MH i2c: E2 08 00 C1 00 80 17 00 00 00 00 00 00 41 [00:31:22]Write i2c OK [00:31:22]MH_I2C_Read... [00:31:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:22]Read from MH i2c: E2 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: E2 FD 00 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: E2 FD 00 C1 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 53 [00:31:22]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:31:22]wFMCommunicate OK [00:31:22]wFMCommunicate request_size=4 [00:31:22]MH_SAM_APDU [00:31:22]CAPDU: 80 17 00 00 [00:31:22]Write to MH i2c: E2 08 00 C2 00 80 17 00 00 00 00 00 00 42 [00:31:22]Write i2c OK [00:31:22]MH_I2C_Read... [00:31:22]OFD Sender: No OFD packet to send [00:31:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:22]Read from MH i2c: E2 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: E2 FD 00 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: E2 FD 00 C2 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 CE [00:31:23]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:31:23]wFMCommunicate OK [00:31:23]wFMCommunicate request_size=4 [00:31:23]MH_SAM_APDU [00:31:23]CAPDU: 80 17 00 00 [00:31:23]Write to MH i2c: E2 08 00 C3 00 80 17 00 00 00 00 00 00 43 [00:31:23]Write i2c OK [00:31:23]MH_I2C_Read... [00:31:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:31:23]Read from MH i2c: E2 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 E2 00 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 E2 00 C3 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 21 [00:31: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 [00:31:23]wFMCommunicate OK [00:31:23]SAM_PROTO_GetFMData done [00:31:23]Malloc new data [00:31:23]Malloc new data [00:31:23]Malloc new data [00:31:23]Malloc new data [00:31:23]KKMLoadAndSignCloseShiftData err=0 [00:31:23]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Авазбеков Э. 23.09.2024 00:31 Смена: 471 РНМ: 0000000000091831 ЗНМ: 0300000120 СНО: Общий режим Чеков за смену: 233 ФД за смену: 235 Всего чеков: 233 ИТОГИ ПРИХОД Чеков: 233 Общий итог: 81680.21 Итого наличными: 59867.00 Итого безнал.: 21813.21 НДС 0% : 0.00 НДС 12% : 8674.48 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 722.40 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Общий итог: 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 Нал. в кассе: 59867.00 НС Приход: 64578393.77 НС Возвр.Прихода: 2648943.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 115516 ФМ: 0000000000871830 ФПД: 250604681943057 [00:31:23]StoreToDocumentArchive [00:31:23]shift 471 fd 115516 [00:31:23]save to /storage/0471/doc_00115516 [00:31:23]save last doc name /storage/0471/doc_00115516 to /storage/kkm_last_doc_name [00:31:23]save OK [00:31:23]Clear old archive folders... [00:31:23]Remove dir /storage/0266 [00:31:23]opendir ok [00:31:23]file . [00:31:23]file .. [00:31:23]file doc_1727051428 [00:31:23]remove file /storage/0266/doc_1727051428 [00:31:23]remove dir /storage/0266 [00:31:23]NVStorageSaveData kkm_registers [00:31:23]File name is /storage/kkm_registers [00:31:23]Write 24 bytes [00:31:23]NVStorageSaveData done [00:31:23]NVStorageSaveData kkm_registers [00:31:23]File name is /storage/kkm_registers [00:31:23]Write 24 bytes [00:31:23]NVStorageSaveData done [00:31:23]ProcessDocumentItem done err = 0, tmpTLVsize=1382 [00:31:23]tlvbuf is 0124FBF0 [00:31:23]SAM_PROTO_ClearQueue [00:31:23]wFMCommunicate request_size=4 [00:31:23]MH_SAM_APDU [00:31:23]CAPDU: 80 09 00 00 [00:31:23]Write to MH i2c: E2 08 00 C4 00 80 09 00 00 00 00 00 00 36 [00:31:23]Write i2c OK [00:31:23]MH_I2C_Read... [00:31:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:31:23]Read from MH i2c: E2 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [00:31:23]RAPDU: 90 00 [00:31:23]wFMCommunicate OK [00:31:23]SAM_PROTO_ClearQueue done [00:31:23]KKMCreateOFDPacket [00:31:23]OFDProtocolAddRootSTLVToBuf [00:31:23]FM_MakeSignedData [00:31:23]FM_MakeSignedData [00:31:23]SAM_PROTO_SignData [00:31:23]wFMCommunicate request_size=4 [00:31:23]MH_SAM_APDU [00:31:23]CAPDU: 80 0D 01 02 [00:31:23]Write to MH i2c: E2 08 00 C5 00 80 0D 01 02 00 00 00 00 3E [00:31:23]Write i2c OK [00:31:23]MH_I2C_Read... [00:31:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:31:23]Read from MH i2c: E2 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [00:31:23]RAPDU: 90 00 [00:31:23]wFMCommunicate OK [00:31:23]wFMCommunicate request_size=255 [00:31:23]MH_SAM_APDU [00:31:23]CAPDU: 80 0D 02 02 FA 05 00 66 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 B2 D0 B0 D0 B7 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 AD 2E 20 F4 03 04 00 D3 B6 F0 66 0E 04 04 00 D7 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 5E 04 04 00 E9 00 00 00 57 04 04 00 EB 00 00 00 AA 04 D6 04 6E 04 04 00 E9 00 00 00 69 04 A3 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 [00:31:24]Write to MH i2c: E2 02 01 C6 00 80 0D 02 02 FA 00 05 00 66 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 B2 D0 B0 D0 B7 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 AD 2E 20 F4 03 04 00 D3 B6 F0 66 0E 04 04 00 D7 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 5E 04 04 00 E9 00 00 00 57 04 04 00 EB 00 00 00 AA 04 D6 04 6E 04 04 00 E9 00 00 00 69 04 A3 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 00 00 24 [00:31:24]Write i2c OK [00:31:24]MH_I2C_Read... [00:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:24]Read from MH i2c: E2 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 03 00 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [00:31:24]RAPDU: 90 00 [00:31:24]wFMCommunicate OK [00:31:24]wFMCommunicate request_size=255 [00:31:24]MH_SAM_APDU [00:31:24]CAPDU: 80 0D 02 02 FA F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 30 1A 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 [00:31:24]Write to MH i2c: E2 02 01 C7 00 80 0D 02 02 FA 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 30 1A 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 00 F8 [00:31:24]Write i2c OK [00:31:24]MH_I2C_Read... [00:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:25]Read from MH i2c: E2 [00:31:25]MH_I2C_Read... [00:31:25]Read from MH i2c: E2 03 00 [00:31:25]MH_I2C_Read... [00:31:25]Read from MH i2c: E2 03 00 C7 00 00 90 00 3B [00:31:25]RAPDU: 90 00 [00:31:25]wFMCommunicate OK [00:31:25]wFMCommunicate request_size=255 [00:31:25]MH_SAM_APDU [00:31:25]CAPDU: 80 0D 02 02 FA 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 [00:31:25]Write to MH i2c: E2 02 01 C8 00 80 0D 02 02 FA 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 00 00 08 [00:31:25]Write i2c OK [00:31:25]MH_I2C_Read... [00:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:25]Read from MH i2c: E2 [00:31:25]MH_I2C_Read... [00:31:25]Read from MH i2c: E2 03 00 [00:31:25]MH_I2C_Read... [00:31:25]Read from MH i2c: E2 03 00 C8 00 00 90 00 3C [00:31:25]RAPDU: 90 00 [00:31:25]wFMCommunicate OK [00:31:25]wFMCommunicate request_size=255 [00:31:25]MH_SAM_APDU [00:31:25]CAPDU: 80 0D 02 02 FA 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:31:26]Write to MH i2c: E2 02 01 C9 00 80 0D 02 02 FA 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 00 08 [00:31:26]Write i2c OK [00:31:26]MH_I2C_Read... [00:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:26]Read from MH i2c: E2 [00:31:26]MH_I2C_Read... [00:31:26]Read from MH i2c: E2 03 00 [00:31:26]MH_I2C_Read... [00:31:26]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [00:31:26]RAPDU: 90 00 [00:31:26]wFMCommunicate OK [00:31:26]wFMCommunicate request_size=255 [00:31:26]MH_SAM_APDU [00:31:26]CAPDU: 80 0D 02 02 FA 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:31:26]Write to MH i2c: E2 02 01 CA 00 80 0D 02 02 FA 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 CE [00:31:26]Write i2c OK [00:31:26]MH_I2C_Read... [00:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:27]Read from MH i2c: E2 [00:31:27]MH_I2C_Read... [00:31:27]Read from MH i2c: E2 03 00 [00:31:27]MH_I2C_Read... [00:31:27]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [00:31:27]RAPDU: 90 00 [00:31:27]wFMCommunicate OK [00:31:27]wFMCommunicate request_size=141 [00:31:27]MH_SAM_APDU [00:31:27]CAPDU: 80 0D 02 02 88 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3C C3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 E3 EC 73 0B D8 11 [00:31:27]Write to MH i2c: E2 90 00 CB 00 80 0D 02 02 88 00 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3C C3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 E3 EC 73 0B D8 11 00 00 B8 [00:31:27]Write i2c OK [00:31:27]MH_I2C_Read... [00:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:27]Read from MH i2c: E2 [00:31:27]MH_I2C_Read... [00:31:27]Read from MH i2c: E2 03 00 [00:31:27]MH_I2C_Read... [00:31:27]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [00:31:27]RAPDU: 90 00 [00:31:27]wFMCommunicate OK [00:31:27]wFMCommunicate request_size=4 [00:31:27]MH_SAM_APDU [00:31:27]CAPDU: 80 0D 03 02 [00:31:27]Write to MH i2c: E2 08 00 CC 00 80 0D 03 02 00 00 00 00 47 [00:31:27]Write i2c OK [00:31:27]MH_I2C_Read... [00:31:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:31:27]Read from MH i2c: E2 [00:31:27]MH_I2C_Read... [00:31:27]Read from MH i2c: E2 0B 00 [00:31:27]MH_I2C_Read... [00:31:27]Read from MH i2c: E2 0B 00 CC 00 00 F5 2B A2 06 7F CF 12 2B 90 00 9B [00:31:27]RAPDU: F5 2B A2 06 7F CF 12 2B 90 00 [00:31:27]wFMCommunicate OK [00:31:27]SAM_PROTO_SignData done [00:31:27]FM_MakeSignedData done [00:31:27]CreateOFDProtocolMessage [00:31:27]wFMCommunicate request_size=4 [00:31:27]MH_SAM_APDU [00:31:27]CAPDU: 80 11 00 00 [00:31:27]Write to MH i2c: E2 08 00 CD 00 80 11 00 00 00 00 00 00 47 [00:31:27]Write i2c OK [00:31:27]MH_I2C_Read... [00:31:27]OFD Sender: No OFD packet to send [00:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:27]Read from MH i2c: E2 [00:31:27]MH_I2C_Read... [00:31:27]Read from MH i2c: E2 17 00 [00:31:27]MH_I2C_Read... [00:31:27]Read from MH i2c: E2 17 00 CD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 95 [00:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:31:27]wFMCommunicate OK [00:31:27]CreateOFDProtocolMessage done [00:31:27]OFDSenderStorePacket 115516 [00:31:27]StoreOFDPacket docnum=115516 [00:31:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 7A 05 00 00 CF 7B 72 05 7D F7 5A 05 01 00 05 00 66 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 B2 D0 B0 D0 B7 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 AD 2E 20 F4 03 04 00 D3 B6 F0 66 0E 04 04 00 D7 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 5E 04 04 00 E9 00 00 00 57 04 04 00 EB 00 00 00 AA 04 D6 04 6E 04 04 00 E9 00 00 00 69 04 A3 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D 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 30 1A 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 3C C3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 E3 EC 73 0B D8 11 F5 2B A2 06 7F CF 12 2B [00:31:28]CheckFolder [00:31:28]dirname=/storage/ofd_packets [00:31:28]CheckFolder done [00:31:28]ProducePacketName [00:31:28]name=ofd_packets/00115516 [00:31:28]NVStorageSaveData ofd_packets/00115516 [00:31:28]File name is /storage/ofd_packets/00115516 [00:31:28]Write 1432 bytes [00:31:28]NVStorageSaveData done [00:31:28]OFDSenderStorePacket done [00:31:28]KKMCreateOFDPacket done [00:31:28]NVStorageSaveData kkm_last_timestamp [00:31:28]File name is /storage/kkm_last_timestamp [00:31:28]Write 4 bytes [00:31:28]NVStorageSaveData done [00:31:28]ExternCall_PrintAddStr [00:31:28]wPrintStart [00:31:28]Write to MH i2c: 01 00 00 CE 00 CE [00:31:28]Write i2c OK [00:31:28]MH_I2C_Read... [00:31:28]Read from MH i2c: 01 [00:31:28]MH_I2C_Read... [00:31:28]Read from MH i2c: 01 07 00 [00:31:28]MH_I2C_Read... [00:31:28]Read from MH i2c: 01 07 00 CE 00 00 00 00 00 00 FF 0F E3 [00:31:28]RasterBufferAndPrint [00:31:28]line Отчет о закрытии смены [00:31:28]line ФФД: 1.0 [00:31:28]line ИНН: 02508201610067 [00:31:28]line Кассир: Авазбеков Э. [00:31:28]line 23.09.2024 00:31 [00:31:28]line Смена: 471 [00:31:28]line РНМ: 0000000000091831 [00:31:28]line ЗНМ: 0300000120 [00:31:28]line СНО: Общий режим [00:31:28]line Чеков за смену: 233 [00:31:28]line ФД за смену: 235 [00:31:28]line Всего чеков: 233 [00:31:28]line ИТОГИ ПРИХОД [00:31:28]line Чеков: 233 [00:31:28]line Общий итог: 81680.21 [00:31:28]line Итого наличными: 59867.00 [00:31:28]line Итого безнал.: 21813.21 [00:31:28]line НДС 0% : 0.00 [00:31:28]line НДС 12% : 8674.48 [00:31:28]line НСП 0% : 0.00 [00:31:28]line НСП 1,50% : 0.00 [00:31:28]line НСП 0,50% : 0.00 [00:31:28]line НСП 5% : 0.00 [00:31:28]line НСП 3% : 0.00 [00:31:28]line НСП 2% : 0.00 [00:31:28]line НСП 1% : 722.40 [00:31:28]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:31:28]line Чеков: 0 [00:31:28]line Общий итог: 0.00 [00:31:28]line Итого наличными: 0.00 [00:31:28]line Итого безнал.: 0.00 [00:31:28]line НДС 0% : 0.00 [00:31:28]line НДС 12% : 0.00 [00:31:28]line НСП 0% : 0.00 [00:31:28]line НСП 1,50% : 0.00 [00:31:28]line НСП 0,50% : 0.00 [00:31:28]line НСП 5% : 0.00 [00:31:28]line НСП 3% : 0.00 [00:31:28]line НСП 2% : 0.00 [00:31:28]line НСП 1% : 0.00 [00:31:28]line ИТОГИ РАСХОД [00:31:28]line Чеков: 0 [00:31:28]line Общий итог: 0.00 [00:31:28]line Итого наличными: 0.00 [00:31:28]line Итого безнал.: 0.00 [00:31:28]line НДС 0% : 0.00 [00:31:28]line НДС 12% : 0.00 [00:31:28]line НСП 0% : 0.00 [00:31:28]line НСП 1,50% : 0.00 [00:31:28]line НСП 0,50% : 0.00 [00:31:28]line НСП 5% : 0.00 [00:31:28]line НСП 3% : 0.00 [00:31:28]line НСП 2% : 0.00 [00:31:28]line НСП 1% : 0.00 [00:31:28]line ИТОГИ ВОЗВРАТ РАСХОДА [00:31:28]line Чеков: 0 [00:31:28]line Общий итог: 0.00 [00:31:28]line Итого наличными: 0.00 [00:31:28]line Итого безнал.: 0.00 [00:31:28]line НДС 0% : 0.00 [00:31:28]line НДС 12% : 0.00 [00:31:28]line НСП 0% : 0.00 [00:31:28]line НСП 1,50% : 0.00 [00:31:28]line НСП 0,50% : 0.00 [00:31:28]line НСП 5% : 0.00 [00:31:28]line НСП 3% : 0.00 [00:31:28]line НСП 2% : 0.00 [00:31:28]line НСП 1% : 0.00 [00:31:28]line Сумма внесений: 0.00 [00:31:28]line Сумма выплат: 0.00 [00:31:28]line Нал. в кассе: 59867.00 [00:31:28]line НС Приход: 64578393.77 [00:31:28]line НС Возвр.Прихода: 2648943.00 [00:31:28]line НС Расход: 0.00 [00:31:28]line НС Возвр.Расхода: 0.00 [00:31:28]line ФД: 115516 [00:31:28]line ФМ: 0000000000871830 [00:31:28]line ФПД: 250604681943057 [00:31:28]OFD Sender: Processing packet 115516 [packets to send 481, broken 480] [00:31:28]ProducePacketName [00:31:28]name=ofd_packets/00115516 [00:31:28]OFD Sender: To server: pG, [00:31:28]CommunicateWithHost lk.salyk.kg:30040 [00:31:28]ConnectInit lk.salyk.kg [00:31:28]written 0, free lines is 4095 [00:31:28]Connected sock=11 [00:31:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 7A 05 00 00 CF 7B 72 05 7D F7 5A 05 01 00 05 00 66 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 B2 D0 B0 D0 B7 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 AD 2E 20 F4 03 04 00 D3 B6 F0 66 0E 04 04 00 D7 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 5E 04 04 00 E9 00 00 00 57 04 04 00 EB 00 00 00 AA 04 D6 04 6E 04 04 00 E9 00 00 00 69 04 A3 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D 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 30 1A 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 Write to MH i2c: EF 01 03 00 0A 00 00 1E F6 01 03 1F 01 [00:31:29]00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 Write i2c OK [00:31:29]00 MH_I2C_Read... [00:31:29]04 Read from MH i2c: F7 01 03 [00:31:29]01 MH_I2C_Read... [00:31:29]00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 Read from MH i2c: EF 01 03 07 0A 00 00 [00:31:29]F6 MH_I2C_Read... [00:31:29]03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 Read from MH i2c: 01 01 F7 07 03 00 01 1E 00 01 00 00 6D 00 04 00 4C 00 02 00 A8 78 09 04 D7 04 [00:31:29]00 RasterBufferAndPrint [00:31:29]00 line [00:31:29]line [00:31:29]line [00:31:29]line [00:31:29]00 line [00:31:29]00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 written 0, free lines is 2544 [00:31:29]04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 MH_Cut [00:31:29]00 Write to MH i2c: 00 D1 F3 01 03 00 00 25 00 01 EE 01 03 F8 09 [00:31:29]00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 Write i2c OK [00:31:29]03 MH_I2C_Read... [00:31:29]01 Read from MH i2c: 00 D1 05 [00:31:29]F7 MH_I2C_Read... [00:31:29]03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 Read from MH i2c: D0 D1 04 01 8D 00 00 [00:31:29]6F MH_I2C_Read... [00:31:29]04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 Read from MH i2c: 00 D1 00 01 00 00 04 25 01 75 00 00 F7 EE [00:31:29]03 Write to MH i2c: 09 01 00 00 F2 00 03 26 01 01 27 [00:31:29]00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 Write i2c OK [00:31:29]B1 MH_I2C_Read... [00:31:29]04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3C C3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 E3 EC 73 0B D8 11 F5 2B A2 06 7F CF 12 2B [00:31:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 FE B3 47 00 36 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3C C3 01 00 F4 03 04 00 24 5C F0 66 B6 04 01 00 00 0E 33 C6 BE AF 14 85 E9 [00:31:30]CommunicateWithHost err = 0 [00:31:30]CheckOFDResponse [00:31:30]1017 (14) - 77093643461234 [00:31:30]1041 (16) - 0000000000871830 [00:31:30]1040 (4) - 115516 [00:31:30]1012 (4) - 22.09.2024 18:04 [00:31:30]1206 (1) - 0 [00:31:30]OFD Sender: Remove packet 115516 [00:31:30]ProducePacketName [00:31:30]name=ofd_packets/00115516 [00:31:30]NVStorageDeleteData [00:31:31]OFD Sender: No OFD packet to send [00:31:31]*** Cut start [00:31:31]*** Partial cut [00:31:31]*** CUTSNS_PIN = 1 [00:31:31]*** CUTSNS_PIN = 0 [00:31:31]*** Brake cut motor [00:31:31]Read from MH i2c: 01 [00:31:31]MH_I2C_Read... [00:31:31]*** Stop cut motor [00:31:31]*** Cut end [00:31:31]Read from MH i2c: 01 07 00 [00:31:31]MH_I2C_Read... [00:31:31]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 FF 0F 3C [00:31:31]process_action close_shift done [00:31:31]requested_data is exist [00:31:31]produce_requested_data [00:31:31]requested_item fd.num is exist - process it [00:31:31]SAM_PROTO_GetFieldsCounters [00:31:31]wFMCommunicate request_size=4 [00:31:31]MH_SAM_APDU [00:31:31]CAPDU: 80 13 00 00 [00:31:31]Write to MH i2c: E2 08 00 27 01 80 13 00 00 00 00 00 00 A4 [00:31:31]Write i2c OK [00:31:31]MH_I2C_Read... [00:31:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:31]Read from MH i2c: E2 [00:31:31]MH_I2C_Read... [00:31:31]Read from MH i2c: E2 62 00 [00:31:32]MH_I2C_Read... [00:31:32]Read from MH i2c: E2 62 00 27 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3C C3 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [00:31: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3C C3 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:32]wFMCommunicate OK [00:31:32]SAM_PROTO_GetFieldsCounters done [00:31:32]requested_item shift.num is exist - process it [00:31:32]requested_item shift.opened is exist - process it [00:31:32]req_shift_opened [00:31:32]FM_GetShiftState [00:31:32]SAM_PROTO_GetShiftState [00:31:32]wFMCommunicate request_size=4 [00:31:32]MH_SAM_APDU [00:31:32]CAPDU: 80 13 01 00 [00:31:32]Write to MH i2c: E2 08 00 28 01 80 13 01 00 00 00 00 00 A6 [00:31:32]Write i2c OK [00:31:32]MH_I2C_Read... [00:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:32]Read from MH i2c: E2 [00:31:32]MH_I2C_Read... [00:31:32]Read from MH i2c: E2 0E 00 [00:31:32]MH_I2C_Read... [00:31:32]Read from MH i2c: E2 0E 00 28 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B1 [00:31:32]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:31:32]wFMCommunicate OK [00:31:32]SAM_PROTO_GetShiftState done [00:31:32]FM_GetShiftState done [00:31:32]req_shift_opened done [00:31:32]requested_item shift.open_date is exist - process it [00:31:32]req_shift_open_date [00:31:32]FM_GetShiftState [00:31:32]SAM_PROTO_GetShiftState [00:31:32]wFMCommunicate request_size=4 [00:31:32]MH_SAM_APDU [00:31:32]CAPDU: 80 13 01 00 [00:31:32]Write to MH i2c: E2 08 00 29 01 80 13 01 00 00 00 00 00 A7 [00:31:32]Write i2c OK [00:31:32]MH_I2C_Read... [00:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:32]Read from MH i2c: E2 [00:31:32]MH_I2C_Read... [00:31:32]Read from MH i2c: E2 0E 00 [00:31:32]MH_I2C_Read... [00:31:32]Read from MH i2c: E2 0E 00 29 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B2 [00:31:32]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:31:32]wFMCommunicate OK [00:31:32]SAM_PROTO_GetShiftState done [00:31:32]FM_GetShiftState done [00:31:32]req_shift_open_date done [00:31:32]produce_requested_data done [00:31:32]produce_requested_data return {"fd.num":115516,"shift.num":471,"shift.opened":0,"shift.open_date":0} [00:31:32]process_action_free close_shift [00:31:32]json_value_free [00:31:32]json_value_free done [00:31:32]process_json_proto returns [00:31:32]Send response to host [00:31:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":115516,"shift.num":471,"shift.opened":0,"shift.open_date":0}}} [00:31:32]free response buf [00:31:32]execute_script done [00:31:32]execute_script returns [00:31:32]free content buf [00:31:32]Sock 9.Close socket [00:31:32]Sock 9.Thread stoped [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:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]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:06]accept exits with 6 [00:41:06]New connection [00:41:06]New thread 3067313508 created [00:41:06]Thread 3067170148 joined [00:41:06]Waiting for new connection... [00:41:06] Sock 6.Parse request [00:41:06]Sock 6.Check first char [00:41:06]Sock 6.First char is OK [00:41:06]request: POST /json_proto HTTP/1.0 [00:41:06]Method: POST [00:41:06]URL: /json_proto [00:41:06]Method is POST - this is cgi request [00:41:06]url: /json_proto [00:41:06]query_string will be loaded in cgi processing [00:41:06]execute_cgi json_proto POST (null) [00:41:06]execute_cgi path=json_proto method=POST [00:41:06]POST find Content-Length [00:41:06]Host: 172.17.41.136:8080 [00:41:06]Content-Length: 215 [00:41:06]Content-Type: application/json [00:41:06] [00:41:06]POST finish read [00:41:06]Found Content-Length = 215 [00:41:06]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:41:06]execute_script... [00:41:06]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:41:06]POST & json_proto [00:41:06]process_json_proto [00:41:06]json parsed OK: [00:41:06]protocol is kg_v1.0 [00:41:06]action value=get_value [00:41:06]process_action get_value [00:41:06]cmd_get_value [00:41:06]process_action get_value done [00:41:06]requested_data is exist [00:41:06]produce_requested_data [00:41:06]requested_item kkm.sn is exist - process it [00:41:06]requested_item kkm.ver is exist - process it [00:41:06]requested_item fm.sn is exist - process it [00:41:06]wFMCommunicate request_size=4 [00:41:06]MH_SAM_APDU [00:41:06]CAPDU: 80 11 00 00 [00:41:06]Write to MH i2c: E2 08 00 2A 01 80 11 00 00 00 00 00 00 A5 [00:41:06]Write i2c OK [00:41:06]MH_I2C_Read... [00:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:06]Read from MH i2c: E2 [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: E2 17 00 [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: E2 17 00 2A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F3 [00:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:41:06]wFMCommunicate OK [00:41:06]requested_item fd.num is exist - process it [00:41:06]SAM_PROTO_GetFieldsCounters [00:41:06]wFMCommunicate request_size=4 [00:41:06]MH_SAM_APDU [00:41:06]CAPDU: 80 13 00 00 [00:41:06]Write to MH i2c: E2 08 00 2B 01 80 13 00 00 00 00 00 00 A8 [00:41:06]Write i2c OK [00:41:06]MH_I2C_Read... [00:41:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:07]Read from MH i2c: E2 [00:41:07]MH_I2C_Read... [00:41:07]Read from MH i2c: E2 62 00 [00:41:07]MH_I2C_Read... [00:41:07]Read from MH i2c: E2 62 00 2B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3C C3 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [00:41:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3C C3 01 00 0E 04 04 00 D7 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:07]wFMCommunicate OK [00:41:07]SAM_PROTO_GetFieldsCounters done [00:41:07]requested_item shift.num is exist - process it [00:41:07]requested_item shift.opened is exist - process it [00:41:07]req_shift_opened [00:41:07]FM_GetShiftState [00:41:07]SAM_PROTO_GetShiftState [00:41:07]wFMCommunicate request_size=4 [00:41:07]MH_SAM_APDU [00:41:07]CAPDU: 80 13 01 00 [00:41:07]Write to MH i2c: E2 08 00 2C 01 80 13 01 00 00 00 00 00 AA [00:41:07]Write i2c OK [00:41:07]MH_I2C_Read... [00:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:07]Read from MH i2c: E2 [00:41:07]MH_I2C_Read... [00:41:07]Read from MH i2c: E2 0E 00 [00:41:07]MH_I2C_Read... [00:41:07]Read from MH i2c: E2 0E 00 2C 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B5 [00:41:07]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:41:07]wFMCommunicate OK [00:41:07]SAM_PROTO_GetShiftState done [00:41:07]FM_GetShiftState done [00:41:07]req_shift_opened done [00:41:07]requested_item shift.open_date is exist - process it [00:41:07]req_shift_open_date [00:41:07]FM_GetShiftState [00:41:07]SAM_PROTO_GetShiftState [00:41:07]wFMCommunicate request_size=4 [00:41:07]MH_SAM_APDU [00:41:07]CAPDU: 80 13 01 00 [00:41:07]Write to MH i2c: E2 08 00 2D 01 80 13 01 00 00 00 00 00 AB [00:41:07]Write i2c OK [00:41:07]MH_I2C_Read... [00:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:07]Read from MH i2c: E2 [00:41:07]MH_I2C_Read... [00:41:07]Read from MH i2c: E2 0E 00 [00:41:07]MH_I2C_Read... [00:41:07]Read from MH i2c: E2 0E 00 2D 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B6 [00:41:07]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:41:07]wFMCommunicate OK [00:41:07]SAM_PROTO_GetShiftState done [00:41:07]FM_GetShiftState done [00:41:07]req_shift_open_date done [00:41:07]produce_requested_data done [00:41:07]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115516,"shift.num":471,"shift.opened":0,"shift.open_date":0} [00:41:07]process_action_free get_value [00:41:07]json_value_free [00:41:07]json_value_free done [00:41:07]process_json_proto returns [00:41:07]Send response to host [00:41:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115516,"shift.num":471,"shift.opened":0,"shift.open_date":0}}} [00:41:07]free response buf [00:41:07]execute_script done [00:41:07]execute_script returns [00:41:07]free content buf [00:41:07]Sock 6.Close socket [00:41:07]Sock 6.Thread stoped [00:41:07]accept exits with 9 [00:41:07]New connection [00:41:07]New thread 3067170148 created [00:41:07]Thread 3067313508 joined [00:41:07]Waiting for new connection... [00:41:07] Sock 9.Parse request [00:41:07]Sock 9.Check first char [00:41:07]Sock 9.First char is OK [00:41:07]request: POST /json_proto HTTP/1.0 [00:41:07]Method: POST [00:41:07]URL: /json_proto [00:41:07]Method is POST - this is cgi request [00:41:07]url: /json_proto [00:41:07]query_string will be loaded in cgi processing [00:41:07]execute_cgi json_proto POST (null) [00:41:07]execute_cgi path=json_proto method=POST [00:41:07]POST find Content-Length [00:41:07]Host: 172.17.41.136:8080 [00:41:07]Content-Length: 331 [00:41:07]Content-Type: application/json [00:41:07] [00:41:07]POST finish read [00:41:07]Found Content-Length = 331 [00:41:07]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:41:07]execute_script... [00:41:07]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:41:07]POST & json_proto [00:41:07]process_json_proto [00:41:07]json parsed OK: [00:41:07]protocol is kg_v1.0 [00:41:07]action value=get_value [00:41:07]process_action get_value [00:41:07]cmd_get_value [00:41:07]process_action get_value done [00:41:07]requested_data is exist [00:41:07]produce_requested_data [00:41:07]requested_item fm.sale.total is exist - process it [00:41:07]SAM_PROTO_GetFMData [00:41:07]wFMCommunicate request_size=4 [00:41:07]MH_SAM_APDU [00:41:07]CAPDU: 80 13 03 00 [00:41:07]Write to MH i2c: E2 08 00 2E 01 80 13 03 00 00 00 00 00 AE [00:41:07]Write i2c OK [00:41:07]MH_I2C_Read... [00:41:07]OFD Sender: No OFD packet to send [00:41:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:41:07]Read from MH i2c: E2 [00:41:07]MH_I2C_Read... [00:41:07]Read from MH i2c: E2 FD 00 [00:41:07]MH_I2C_Read... [00:41:07]Read from MH i2c: E2 FD 00 2E 01 00 C5 04 85 04 C1 04 6E 04 04 00 8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 54 [00:41:07]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 [00:41:07]wFMCommunicate OK [00:41:07]wFMCommunicate request_size=4 [00:41:07]MH_SAM_APDU [00:41:07]CAPDU: 80 17 00 00 [00:41:07]Write to MH i2c: E2 08 00 2F 01 80 17 00 00 00 00 00 00 B0 [00:41:07]Write i2c OK [00:41:07]MH_I2C_Read... [00:41:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:08]Read from MH i2c: E2 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: E2 FD 00 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: E2 FD 00 2F 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:41:08]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:41:08]wFMCommunicate OK [00:41:08]wFMCommunicate request_size=4 [00:41:08]MH_SAM_APDU [00:41:08]CAPDU: 80 17 00 00 [00:41:08]Write to MH i2c: E2 08 00 30 01 80 17 00 00 00 00 00 00 B1 [00:41:08]Write i2c OK [00:41:08]MH_I2C_Read... [00:41:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:08]Read from MH i2c: E2 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: E2 FD 00 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: E2 FD 00 30 01 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 C3 [00:41:08]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:41:08]wFMCommunicate OK [00:41:08]wFMCommunicate request_size=4 [00:41:08]MH_SAM_APDU [00:41:08]CAPDU: 80 17 00 00 [00:41:08]Write to MH i2c: E2 08 00 31 01 80 17 00 00 00 00 00 00 B2 [00:41:08]Write i2c OK [00:41:08]MH_I2C_Read... [00:41:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:08]Read from MH i2c: E2 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: E2 FD 00 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: E2 FD 00 31 01 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 3E [00:41:08]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:41:08]wFMCommunicate OK [00:41:08]wFMCommunicate request_size=4 [00:41:08]MH_SAM_APDU [00:41:08]CAPDU: 80 17 00 00 [00:41:08]Write to MH i2c: E2 08 00 32 01 80 17 00 00 00 00 00 00 B3 [00:41:08]Write i2c OK [00:41:08]MH_I2C_Read... [00:41:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:41:08]Read from MH i2c: E2 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: E2 E2 00 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: E2 E2 00 32 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:41:08]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:41:08]wFMCommunicate OK [00:41:08]SAM_PROTO_GetFMData done [00:41:08]requested_item fm.sale_refund.total is exist - process it [00:41:08]requested_item fm.buy.total is exist - process it [00:41:08]requested_item shift.sale.total is exist - process it [00:41:08]SAM_PROTO_GetShiftData [00:41:08]wFMCommunicate request_size=4 [00:41:08]MH_SAM_APDU [00:41:08]CAPDU: 80 13 02 00 [00:41:08]Write to MH i2c: E2 08 00 33 01 80 13 02 00 00 00 00 00 B2 [00:41:08]Write i2c OK [00:41:08]MH_I2C_Read... [00:41:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:41:09]Read from MH i2c: E2 [00:41:09]MH_I2C_Read... [00:41:09]Read from MH i2c: E2 FD 00 [00:41:09]MH_I2C_Read... [00:41:09]Read from MH i2c: E2 FD 00 33 01 00 AF 04 AA 04 AB 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D 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 30 1A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 45 [00:41:09]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E9 00 00 00 69 04 9C 00 6F 04 04 00 E9 00 00 00 B1 04 03 00 55 A2 7C 70 04 03 00 8C 59 5B 72 04 03 00 C9 48 21 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 78 3C 0D 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 30 1A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:41:09]wFMCommunicate OK [00:41:09]wFMCommunicate request_size=4 [00:41:09]MH_SAM_APDU [00:41:09]CAPDU: 80 17 00 00 [00:41:09]Write to MH i2c: E2 08 00 34 01 80 17 00 00 00 00 00 00 B5 [00:41:09]Write i2c OK [00:41:09]MH_I2C_Read... [00:41:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:09]Read from MH i2c: E2 [00:41:09]MH_I2C_Read... [00:41:09]Read from MH i2c: E2 FD 00 [00:41:09]MH_I2C_Read... [00:41:09]Read from MH i2c: E2 FD 00 34 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 CE [00:41:09]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [00:41:09]wFMCommunicate OK [00:41:09]wFMCommunicate request_size=4 [00:41:09]MH_SAM_APDU [00:41:09]CAPDU: 80 17 00 00 [00:41:09]Write to MH i2c: E2 08 00 35 01 80 17 00 00 00 00 00 00 B6 [00:41:09]Write i2c OK [00:41:09]MH_I2C_Read... [00:41:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:09]Read from MH i2c: E2 [00:41:09]MH_I2C_Read... [00:41:09]Read from MH i2c: E2 FD 00 [00:41:09]MH_I2C_Read... [00:41:09]Read from MH i2c: E2 FD 00 35 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 6A [00:41:09]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [00:41:09]wFMCommunicate OK [00:41:09]wFMCommunicate request_size=4 [00:41:09]MH_SAM_APDU [00:41:09]CAPDU: 80 17 00 00 [00:41:09]Write to MH i2c: E2 08 00 36 01 80 17 00 00 00 00 00 00 B7 [00:41:09]Write i2c OK [00:41:09]MH_I2C_Read... [00:41:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:10]Read from MH i2c: E2 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 FD 00 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 FD 00 36 01 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 35 [00:41:10]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [00:41:10]wFMCommunicate OK [00:41:10]wFMCommunicate request_size=4 [00:41:10]MH_SAM_APDU [00:41:10]CAPDU: 80 17 00 00 [00:41:10]Write to MH i2c: E2 08 00 37 01 80 17 00 00 00 00 00 00 B8 [00:41:10]Write i2c OK [00:41:10]MH_I2C_Read... [00:41:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [00:41:10]Read from MH i2c: E2 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 CC 00 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 CC 00 37 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 99 [00:41:10]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:41:10]wFMCommunicate OK [00:41:10]SAM_PROTO_GetShiftData done [00:41:10]requested_item shift.sale.total_cash is exist - process it [00:41:10]requested_item shift.sale_refund.total is exist - process it [00:41:10]requested_item shift.sale_refund.total_cash is exist - process it [00:41:10]requested_item shift.buy.total is exist - process it [00:41:10]requested_item shift.buy.total_cash is exist - process it [00:41:10]produce_requested_data done [00:41:10]produce_requested_data return {"fm.sale.total":64578393.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":81680.21,"shift.sale.total_cash":59867.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:41:10]process_action_free get_value [00:41:10]json_value_free [00:41:10]json_value_free done [00:41:10]process_json_proto returns [00:41:10]Send response to host [00:41:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64578393.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":81680.21,"shift.sale.total_cash":59867.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:41:10]free response buf [00:41:10]execute_script done [00:41:10]execute_script returns [00:41:10]free content buf [00:41:10]Sock 9.Close socket [00:41:10]Sock 9.Thread stoped [00:41:10]accept exits with 6 [00:41:10]New connection [00:41:10]New thread 3067313508 created [00:41:10]Thread 3067170148 joined [00:41:10]Waiting for new connection... [00:41:10] Sock 6.Parse request [00:41:10]Sock 6.Check first char [00:41:10]Sock 6.First char is OK [00:41:10]request: POST /json_proto HTTP/1.0 [00:41:10]Method: POST [00:41:10]URL: /json_proto [00:41:10]Method is POST - this is cgi request [00:41:10]url: /json_proto [00:41:10]query_string will be loaded in cgi processing [00:41:10]execute_cgi json_proto POST (null) [00:41:10]execute_cgi path=json_proto method=POST [00:41:10]POST find Content-Length [00:41:10]Host: 172.17.41.136:8080 [00:41:10]Content-Length: 290 [00:41:10]Content-Type: application/json [00:41:10] [00:41:10]POST finish read [00:41:10]Found Content-Length = 290 [00:41:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0443\u043B\u0442\u0430\u043D\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:10]execute_script... [00:41:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0443\u043B\u0442\u0430\u043D\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:10]POST & json_proto [00:41:10]process_json_proto [00:41:10]json parsed OK: [00:41:10]protocol is kg_v1.0 [00:41:10]action value=open_shift [00:41:10]process_action open_shift [00:41:10]cmd_open_shift [00:41:10]MH_GetDate [00:41:10]Write to MH i2c: F0 00 00 38 01 28 [00:41:10]Write i2c OK [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: F0 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: F0 09 00 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: F0 09 00 38 01 00 26 B9 F0 66 1B D0 5A 64 0F [00:41:10]GetLastDocTimeStamp 1727051475 [00:41:10]current date 1727052070 [00:41:10]FM_GetShiftState [00:41:10]SAM_PROTO_GetShiftState [00:41:10]wFMCommunicate request_size=4 [00:41:10]MH_SAM_APDU [00:41:10]CAPDU: 80 13 01 00 [00:41:10]Write to MH i2c: E2 08 00 39 01 80 13 01 00 00 00 00 00 B7 [00:41:10]Write i2c OK [00:41:10]MH_I2C_Read... [00:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:10]Read from MH i2c: E2 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 0E 00 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 0E 00 39 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C2 [00:41:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:41:10]wFMCommunicate OK [00:41:10]SAM_PROTO_GetShiftState done [00:41:10]FM_GetShiftState done [00:41:10]KKMCreateOpenShiftDocument [00:41:10]Load OK [00:41:10]Malloc new data [00:41:10]MH_GetDate [00:41:10]Write to MH i2c: F0 00 00 3A 01 2A [00:41:10]Write i2c OK [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: F0 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: F0 09 00 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: F0 09 00 3A 01 00 26 B9 F0 66 1B D0 5A 64 11 [00:41:10]Malloc new data [00:41:10]KKMCreateOpenShiftDocument OK [00:41:10]KKMSetOpenShiftData OK [00:41:10]ProcessDocumentItem done err = 0, tmpTLVsize=182 [00:41:10]tlvbuf is 01247BD0 [00:41:10]KKMLoadAndSignOpenShiftData [00:41:10]SAM_PROTO_ProcessDocument [00:41:10]wFMCommunicate request_size=9 [00:41:10]MH_SAM_APDU [00:41:10]CAPDU: 80 15 01 00 04 02 00 B6 00 [00:41:10]Write to MH i2c: E2 0C 00 3B 01 80 15 01 00 04 00 02 00 B6 00 00 00 7B [00:41:10]Write i2c OK [00:41:10]MH_I2C_Read... [00:41:10]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:41:10]Read from MH i2c: E2 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 03 00 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 03 00 3B 01 00 90 00 B0 [00:41:10]RAPDU: 90 00 [00:41:10]wFMCommunicate OK [00:41:10]wFMCommunicate request_size=23 [00:41:10]MH_SAM_APDU [00:41:10]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:41:10]Write to MH i2c: E2 1A 00 3C 01 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 B2 [00:41:10]Write i2c OK [00:41:10]MH_I2C_Read... [00:41:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:10]Read from MH i2c: E2 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 03 00 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [00:41:10]RAPDU: 90 00 [00:41:10]wFMCommunicate OK [00:41:10]wFMCommunicate request_size=41 [00:41:10]MH_SAM_APDU [00:41:10]CAPDU: 80 15 02 00 24 FD 03 20 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 90 2E 20 [00:41:10]Write to MH i2c: E2 2C 00 3D 01 80 15 02 00 24 00 FD 03 20 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 90 2E 20 00 00 D5 [00:41:10]Write i2c OK [00:41:10]MH_I2C_Read... [00:41:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:10]Read from MH i2c: E2 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 03 00 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [00:41:10]RAPDU: 90 00 [00:41:10]wFMCommunicate OK [00:41:10]wFMCommunicate request_size=60 [00:41:10]MH_SAM_APDU [00:41:10]CAPDU: 80 15 02 00 37 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 96 D0 B0 D0 BD D1 8B 2D D0 90 D1 80 D1 8B D0 BA 2C 20 34 30 2E 36 35 38 35 32 33 2C 20 37 33 2E 31 32 35 33 33 36 [00:41:10]Write to MH i2c: E2 3F 00 3E 01 80 15 02 00 37 00 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 96 D0 B0 D0 BD D1 8B 2D D0 90 D1 80 D1 8B D0 BA 2C 20 34 30 2E 36 35 38 35 32 33 2C 20 37 33 2E 31 32 35 33 33 36 00 00 30 [00:41:10]Write i2c OK [00:41:10]MH_I2C_Read... [00:41:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:11]Read from MH i2c: E2 [00:41:11]MH_I2C_Read... [00:41:11]Read from MH i2c: E2 03 00 [00:41:11]MH_I2C_Read... [00:41:11]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [00:41:11]RAPDU: 90 00 [00:41:11]wFMCommunicate OK [00:41:11]wFMCommunicate request_size=50 [00:41:11]MH_SAM_APDU [00:41:11]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 30 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:41:11]Write to MH i2c: E2 35 00 3F 01 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 30 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 38 [00:41:11]Write i2c OK [00:41:11]MH_I2C_Read... [00:41:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:11]Read from MH i2c: E2 [00:41:11]MH_I2C_Read... [00:41:11]Read from MH i2c: E2 03 00 [00:41:11]MH_I2C_Read... [00:41:11]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [00:41:11]RAPDU: 90 00 [00:41:11]wFMCommunicate OK [00:41:11]wFMCommunicate request_size=13 [00:41:11]MH_SAM_APDU [00:41:11]CAPDU: 80 15 02 00 08 F4 03 04 00 26 B9 F0 66 [00:41:11]Write to MH i2c: E2 10 00 40 01 80 15 02 00 08 00 F4 03 04 00 26 B9 F0 66 00 00 01 [00:41:11]Write i2c OK [00:41:11]MH_I2C_Read... [00:41:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:11]Read from MH i2c: E2 [00:41:11]MH_I2C_Read... [00:41:11]Read from MH i2c: E2 03 00 [00:41:11]MH_I2C_Read... [00:41:11]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [00:41:11]RAPDU: 90 00 [00:41:11]wFMCommunicate OK [00:41:11]wFMCommunicate request_size=25 [00:41:11]MH_SAM_APDU [00:41:11]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [00:41:11]Write to MH i2c: E2 1C 00 41 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 21 [00:41:11]Write i2c OK [00:41:11]MH_I2C_Read... [00:41:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:11]Read from MH i2c: E2 [00:41:11]MH_I2C_Read... [00:41:11]Read from MH i2c: E2 03 00 [00:41:11]MH_I2C_Read... [00:41:11]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [00:41:11]RAPDU: 90 00 [00:41:11]wFMCommunicate OK [00:41:11]wFMCommunicate request_size=4 [00:41:11]MH_SAM_APDU [00:41:11]CAPDU: 80 15 03 00 [00:41:11]Write to MH i2c: E2 08 00 42 01 80 15 03 00 00 00 00 00 C4 [00:41:11]Write i2c OK [00:41:11]MH_I2C_Read... [00:41:11]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:41:11]Read from MH i2c: E2 [00:41:11]MH_I2C_Read... [00:41:11]Read from MH i2c: E2 38 00 [00:41:11]MH_I2C_Read... [00:41:11]Read from MH i2c: E2 38 00 42 01 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3D C3 01 00 0E 04 04 00 D8 01 00 00 35 04 06 00 7C A3 A2 72 9D 30 90 00 65 [00:41:11]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3D C3 01 00 0E 04 04 00 D8 01 00 00 35 04 06 00 7C A3 A2 72 9D 30 90 00 [00:41:11]wFMCommunicate OK [00:41:11]SAM_PROTO_ProcessDocument answer len = 51 [00:41:11]SAM_PROTO_ProcessDocument done [00:41:11]SetTLVBufToDocument [00:41:11]Processing tag 1209 (04B9) [00:41:11]Malloc new data [00:41:11]Processing tag 1041 (0411) [00:41:11]Processing tag 1040 (0410) [00:41:11]Malloc new data [00:41:11]Processing tag 1038 (040E) [00:41:11]Malloc new data [00:41:11]Processing tag 1077 (0435) [00:41:11]Malloc new data [00:41:11]SetTLVBufToDocument err=0 [00:41:11]KKMLoadAndSignOpenShiftData store KKM data [00:41:11]KKMLoadAndSignOpenShiftData err=0 [00:41:11]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Султанбай уулу А. Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 Место: АЗС № 90 "Партнер Нефть" 23.09.2024 00:41 Смена: 472 РНМ: 0000000000091831 ЗНМ: 0300000120 ФД: 115517 ФМ: 0000000000871830 ФПД: 137042246933808 [00:41:11]StoreToDocumentArchive [00:41:11]shift 472 fd 115517 [00:41:11]Create dir for shift 0472 [00:41:11]save to /storage/0472/doc_00115517 [00:41:11]save last doc name /storage/0472/doc_00115517 to /storage/kkm_last_doc_name [00:41:11]save OK [00:41:11]Clear old archive folders... [00:41:11]Remove dir /storage/0471 [00:41:11]opendir ok [00:41:11]file . [00:41:11]file .. [00:41:11]file doc_00115282 [00:41:11]remove file /storage/0471/doc_00115282 [00:41:11]file doc_00115283 [00:41:11]remove file /storage/0471/doc_00115283 [00:41:11]file doc_00115284 [00:41:11]remove file /storage/0471/doc_00115284 [00:41:11]file doc_00115285 [00:41:11]remove file /storage/0471/doc_00115285 [00:41:11]file doc_00115286 [00:41:11]remove file /storage/0471/doc_00115286 [00:41:11]file doc_00115287 [00:41:11]remove file /storage/0471/doc_00115287 [00:41:11]file doc_00115288 [00:41:11]remove file /storage/0471/doc_00115288 [00:41:11]file doc_00115289 [00:41:11]remove file /storage/0471/doc_00115289 [00:41:11]file doc_00115290 [00:41:11]remove file /storage/0471/doc_00115290 [00:41:11]file doc_00115291 [00:41:11]remove file /storage/0471/doc_00115291 [00:41:11]file doc_00115292 [00:41:11]remove file /storage/0471/doc_00115292 [00:41:11]file doc_00115293 [00:41:11]remove file /storage/0471/doc_00115293 [00:41:11]file doc_00115294 [00:41:11]remove file /storage/0471/doc_00115294 [00:41:11]file doc_00115295 [00:41:11]remove file /storage/0471/doc_00115295 [00:41:11]file doc_00115296 [00:41:11]remove file /storage/0471/doc_00115296 [00:41:11]file doc_00115297 [00:41:11]remove file /storage/0471/doc_00115297 [00:41:11]file doc_00115298 [00:41:11]remove file /storage/0471/doc_00115298 [00:41:11]file doc_00115299 [00:41:11]remove file /storage/0471/doc_00115299 [00:41:11]file doc_00115300 [00:41:11]remove file /storage/0471/doc_00115300 [00:41:11]file doc_00115301 [00:41:11]remove file /storage/0471/doc_00115301 [00:41:11]file doc_00115302 [00:41:11]remove file /storage/0471/doc_00115302 [00:41:11]file doc_00115303 [00:41:11]remove file /storage/0471/doc_00115303 [00:41:11]file doc_00115304 [00:41:11]remove file /storage/0471/doc_00115304 [00:41:11]file doc_00115305 [00:41:11]remove file /storage/0471/doc_00115305 [00:41:11]file doc_00115306 [00:41:11]remove file /storage/0471/doc_00115306 [00:41:11]file doc_00115307 [00:41:11]remove file /storage/0471/doc_00115307 [00:41:11]file doc_00115308 [00:41:11]remove file /storage/0471/doc_00115308 [00:41:11]file doc_00115309 [00:41:11]remove file /storage/0471/doc_00115309 [00:41:11]file doc_00115310 [00:41:11]remove file /storage/0471/doc_00115310 [00:41:11]file doc_00115311 [00:41:11]remove file /storage/0471/doc_00115311 [00:41:11]file doc_00115312 [00:41:11]remove file /storage/0471/doc_00115312 [00:41:11]file doc_00115313 [00:41:11]remove file /storage/0471/doc_00115313 [00:41:11]file doc_00115314 [00:41:11]remove file /storage/0471/doc_00115314 [00:41:11]file doc_00115315 [00:41:11]remove file /storage/0471/doc_00115315 [00:41:11]file doc_00115316 [00:41:11]remove file /storage/0471/doc_00115316 [00:41:11]file doc_00115317 [00:41:11]remove file /storage/0471/doc_00115317 [00:41:11]file doc_00115318 [00:41:11]remove file /storage/0471/doc_00115318 [00:41:11]file doc_00115319 [00:41:11]remove file /storage/0471/doc_00115319 [00:41:11]file doc_00115320 [00:41:11]remove file /storage/0471/doc_00115320 [00:41:11]file doc_00115321 [00:41:11]remove file /storage/0471/doc_00115321 [00:41:11]file doc_00115322 [00:41:11]remove file /storage/0471/doc_00115322 [00:41:11]file doc_00115323 [00:41:11]remove file /storage/0471/doc_00115323 [00:41:11]file doc_00115324 [00:41:11]remove file /storage/0471/doc_00115324 [00:41:11]file doc_00115325 [00:41:11]remove file /storage/0471/doc_00115325 [00:41:11]file doc_00115326 [00:41:11]remove file /storage/0471/doc_00115326 [00:41:11]file doc_00115327 [00:41:11]remove file /storage/0471/doc_00115327 [00:41:11]file doc_00115328 [00:41:11]remove file /storage/0471/doc_00115328 [00:41:11]file doc_00115329 [00:41:11]remove file /storage/0471/doc_00115329 [00:41:11]file doc_00115330 [00:41:11]remove file /storage/0471/doc_00115330 [00:41:11]file doc_00115331 [00:41:11]remove file /storage/0471/doc_00115331 [00:41:11]file doc_00115332 [00:41:11]remove file /storage/0471/doc_00115332 [00:41:11]file doc_00115333 [00:41:11]remove file /storage/0471/doc_00115333 [00:41:11]file doc_00115334 [00:41:11]remove file /storage/0471/doc_00115334 [00:41:11]file doc_00115335 [00:41:11]remove file /storage/0471/doc_00115335 [00:41:11]file doc_00115336 [00:41:11]remove file /storage/0471/doc_00115336 [00:41:11]file doc_00115337 [00:41:11]remove file /storage/0471/doc_00115337 [00:41:11]file doc_00115338 [00:41:11]remove file /storage/0471/doc_00115338 [00:41:11]file doc_00115339 [00:41:11]remove file /storage/0471/doc_00115339 [00:41:11]file doc_00115340 [00:41:11]remove file /storage/0471/doc_00115340 [00:41:11]file doc_00115341 [00:41:11]remove file /storage/0471/doc_00115341 [00:41:11]file doc_00115342 [00:41:11]remove file /storage/0471/doc_00115342 [00:41:11]file doc_00115343 [00:41:11]remove file /storage/0471/doc_00115343 [00:41:12]file doc_00115344 [00:41:12]remove file /storage/0471/doc_00115344 [00:41:12]file doc_00115345 [00:41:12]remove file /storage/0471/doc_00115345 [00:41:12]file doc_00115346 [00:41:12]remove file /storage/0471/doc_00115346 [00:41:12]file doc_00115347 [00:41:12]remove file /storage/0471/doc_00115347 [00:41:12]file doc_00115348 [00:41:12]remove file /storage/0471/doc_00115348 [00:41:12]file doc_00115349 [00:41:12]remove file /storage/0471/doc_00115349 [00:41:12]file doc_00115350 [00:41:12]remove file /storage/0471/doc_00115350 [00:41:12]file doc_00115351 [00:41:12]remove file /storage/0471/doc_00115351 [00:41:12]file doc_00115352 [00:41:12]remove file /storage/0471/doc_00115352 [00:41:12]file doc_00115353 [00:41:12]remove file /storage/0471/doc_00115353 [00:41:12]file doc_00115354 [00:41:12]remove file /storage/0471/doc_00115354 [00:41:12]file doc_00115355 [00:41:12]remove file /storage/0471/doc_00115355 [00:41:12]file doc_00115356 [00:41:12]remove file /storage/0471/doc_00115356 [00:41:12]file doc_00115357 [00:41:12]remove file /storage/0471/doc_00115357 [00:41:12]file doc_00115358 [00:41:12]remove file /storage/0471/doc_00115358 [00:41:12]file doc_00115359 [00:41:12]remove file /storage/0471/doc_00115359 [00:41:12]file doc_00115360 [00:41:12]remove file /storage/0471/doc_00115360 [00:41:12]file doc_00115361 [00:41:12]remove file /storage/0471/doc_00115361 [00:41:12]file doc_00115362 [00:41:12]remove file /storage/0471/doc_00115362 [00:41:12]file doc_00115363 [00:41:12]remove file /storage/0471/doc_00115363 [00:41:12]file doc_00115364 [00:41:12]remove file /storage/0471/doc_00115364 [00:41:12]file doc_00115365 [00:41:12]remove file /storage/0471/doc_00115365 [00:41:12]file doc_00115366 [00:41:12]remove file /storage/0471/doc_00115366 [00:41:12]file doc_00115367 [00:41:12]remove file /storage/0471/doc_00115367 [00:41:12]file doc_00115368 [00:41:12]remove file /storage/0471/doc_00115368 [00:41:12]file doc_00115369 [00:41:12]remove file /storage/0471/doc_00115369 [00:41:12]file doc_00115370 [00:41:12]remove file /storage/0471/doc_00115370 [00:41:12]file doc_00115371 [00:41:12]remove file /storage/0471/doc_00115371 [00:41:12]file doc_00115372 [00:41:12]remove file /storage/0471/doc_00115372 [00:41:12]file doc_00115373 [00:41:12]remove file /storage/0471/doc_00115373 [00:41:12]file doc_00115374 [00:41:12]remove file /storage/0471/doc_00115374 [00:41:12]file doc_00115375 [00:41:12]remove file /storage/0471/doc_00115375 [00:41:12]file doc_00115376 [00:41:12]remove file /storage/0471/doc_00115376 [00:41:12]file doc_00115377 [00:41:12]remove file /storage/0471/doc_00115377 [00:41:12]file doc_00115378 [00:41:12]remove file /storage/0471/doc_00115378 [00:41:12]file doc_00115379 [00:41:12]remove file /storage/0471/doc_00115379 [00:41:12]file doc_00115380 [00:41:12]remove file /storage/0471/doc_00115380 [00:41:12]file doc_00115381 [00:41:12]remove file /storage/0471/doc_00115381 [00:41:12]file doc_00115382 [00:41:12]remove file /storage/0471/doc_00115382 [00:41:12]file doc_00115383 [00:41:12]remove file /storage/0471/doc_00115383 [00:41:12]file doc_00115384 [00:41:12]remove file /storage/0471/doc_00115384 [00:41:12]file doc_00115385 [00:41:12]remove file /storage/0471/doc_00115385 [00:41:12]file doc_00115386 [00:41:12]remove file /storage/0471/doc_00115386 [00:41:12]file doc_00115387 [00:41:12]remove file /storage/0471/doc_00115387 [00:41:12]file doc_00115388 [00:41:12]remove file /storage/0471/doc_00115388 [00:41:12]file doc_00115389 [00:41:12]remove file /storage/0471/doc_00115389 [00:41:12]file doc_00115390 [00:41:12]remove file /storage/0471/doc_00115390 [00:41:12]file doc_00115391 [00:41:12]remove file /storage/0471/doc_00115391 [00:41:12]file doc_00115392 [00:41:12]remove file /storage/0471/doc_00115392 [00:41:12]file doc_00115393 [00:41:12]remove file /storage/0471/doc_00115393 [00:41:12]file doc_00115394 [00:41:12]remove file /storage/0471/doc_00115394 [00:41:12]file doc_00115395 [00:41:12]remove file /storage/0471/doc_00115395 [00:41:12]file doc_00115396 [00:41:12]remove file /storage/0471/doc_00115396 [00:41:12]file doc_00115397 [00:41:12]remove file /storage/0471/doc_00115397 [00:41:12]file doc_00115398 [00:41:12]remove file /storage/0471/doc_00115398 [00:41:12]file doc_00115399 [00:41:12]remove file /storage/0471/doc_00115399 [00:41:12]file doc_00115400 [00:41:12]remove file /storage/0471/doc_00115400 [00:41:12]file doc_00115401 [00:41:12]remove file /storage/0471/doc_00115401 [00:41:12]file doc_00115402 [00:41:12]remove file /storage/0471/doc_00115402 [00:41:12]file doc_00115403 [00:41:12]remove file /storage/0471/doc_00115403 [00:41:12]file doc_00115404 [00:41:12]remove file /storage/0471/doc_00115404 [00:41:12]file doc_00115405 [00:41:12]remove file /storage/0471/doc_00115405 [00:41:12]file doc_00115406 [00:41:12]remove file /storage/0471/doc_00115406 [00:41:12]file doc_00115407 [00:41:12]remove file /storage/0471/doc_00115407 [00:41:12]file doc_00115408 [00:41:12]remove file /storage/0471/doc_00115408 [00:41:12]file doc_00115409 [00:41:12]remove file /storage/0471/doc_00115409 [00:41:12]file doc_00115410 [00:41:12]remove file /storage/0471/doc_00115410 [00:41:12]file doc_00115411 [00:41:12]remove file /storage/0471/doc_00115411 [00:41:12]file doc_00115412 [00:41:12]remove file /storage/0471/doc_00115412 [00:41:12]file doc_00115413 [00:41:12]remove file /storage/0471/doc_00115413 [00:41:12]file doc_00115414 [00:41:12]remove file /storage/0471/doc_00115414 [00:41:12]file doc_00115415 [00:41:12]remove file /storage/0471/doc_00115415 [00:41:12]file doc_00115416 [00:41:12]remove file /storage/0471/doc_00115416 [00:41:12]file doc_00115417 [00:41:12]remove file /storage/0471/doc_00115417 [00:41:12]file doc_00115418 [00:41:12]remove file /storage/0471/doc_00115418 [00:41:12]file doc_00115419 [00:41:12]remove file /storage/0471/doc_00115419 [00:41:12]file doc_00115420 [00:41:12]remove file /storage/0471/doc_00115420 [00:41:12]file doc_00115421 [00:41:12]remove file /storage/0471/doc_00115421 [00:41:12]file doc_00115422 [00:41:12]remove file /storage/0471/doc_00115422 [00:41:12]file doc_00115423 [00:41:12]remove file /storage/0471/doc_00115423 [00:41:12]file doc_00115424 [00:41:12]remove file /storage/0471/doc_00115424 [00:41:12]file doc_00115425 [00:41:12]remove file /storage/0471/doc_00115425 [00:41:12]file doc_00115426 [00:41:12]remove file /storage/0471/doc_00115426 [00:41:12]file doc_00115427 [00:41:12]remove file /storage/0471/doc_00115427 [00:41:12]file doc_00115428 [00:41:12]remove file /storage/0471/doc_00115428 [00:41:12]file doc_00115429 [00:41:12]remove file /storage/0471/doc_00115429 [00:41:12]file doc_00115430 [00:41:12]remove file /storage/0471/doc_00115430 [00:41:12]file doc_00115431 [00:41:12]remove file /storage/0471/doc_00115431 [00:41:12]file doc_00115432 [00:41:12]remove file /storage/0471/doc_00115432 [00:41:12]file doc_00115433 [00:41:12]remove file /storage/0471/doc_00115433 [00:41:12]file doc_00115434 [00:41:12]remove file /storage/0471/doc_00115434 [00:41:12]file doc_00115435 [00:41:12]remove file /storage/0471/doc_00115435 [00:41:12]file doc_00115436 [00:41:12]remove file /storage/0471/doc_00115436 [00:41:12]file doc_00115437 [00:41:12]remove file /storage/0471/doc_00115437 [00:41:12]file doc_00115438 [00:41:12]remove file /storage/0471/doc_00115438 [00:41:12]file doc_00115439 [00:41:12]remove file /storage/0471/doc_00115439 [00:41:12]file doc_00115440 [00:41:12]remove file /storage/0471/doc_00115440 [00:41:12]file doc_00115441 [00:41:12]remove file /storage/0471/doc_00115441 [00:41:12]file doc_00115442 [00:41:12]remove file /storage/0471/doc_00115442 [00:41:12]file doc_00115443 [00:41:12]remove file /storage/0471/doc_00115443 [00:41:12]file doc_00115444 [00:41:12]remove file /storage/0471/doc_00115444 [00:41:12]file doc_00115445 [00:41:12]remove file /storage/0471/doc_00115445 [00:41:12]file doc_00115446 [00:41:12]remove file /storage/0471/doc_00115446 [00:41:12]file doc_00115447 [00:41:12]remove file /storage/0471/doc_00115447 [00:41:12]file doc_00115448 [00:41:12]remove file /storage/0471/doc_00115448 [00:41:12]file doc_00115449 [00:41:12]remove file /storage/0471/doc_00115449 [00:41:12]file doc_00115450 [00:41:12]remove file /storage/0471/doc_00115450 [00:41:12]file doc_00115451 [00:41:12]remove file /storage/0471/doc_00115451 [00:41:12]file doc_00115452 [00:41:12]remove file /storage/0471/doc_00115452 [00:41:12]file doc_00115453 [00:41:12]remove file /storage/0471/doc_00115453 [00:41:12]file doc_00115454 [00:41:12]remove file /storage/0471/doc_00115454 [00:41:12]file doc_00115455 [00:41:12]remove file /storage/0471/doc_00115455 [00:41:12]file doc_00115456 [00:41:12]remove file /storage/0471/doc_00115456 [00:41:12]file doc_00115457 [00:41:12]remove file /storage/0471/doc_00115457 [00:41:12]file doc_00115458 [00:41:12]remove file /storage/0471/doc_00115458 [00:41:12]file doc_00115459 [00:41:12]remove file /storage/0471/doc_00115459 [00:41:12]file doc_00115460 [00:41:12]remove file /storage/0471/doc_00115460 [00:41:12]file doc_00115461 [00:41:12]remove file /storage/0471/doc_00115461 [00:41:12]file doc_00115462 [00:41:12]remove file /storage/0471/doc_00115462 [00:41:12]file doc_00115463 [00:41:12]remove file /storage/0471/doc_00115463 [00:41:12]file doc_00115464 [00:41:12]remove file /storage/0471/doc_00115464 [00:41:12]file doc_00115465 [00:41:12]remove file /storage/0471/doc_00115465 [00:41:12]file doc_00115466 [00:41:12]remove file /storage/0471/doc_00115466 [00:41:12]file doc_00115467 [00:41:12]remove file /storage/0471/doc_00115467 [00:41:12]file doc_00115468 [00:41:12]remove file /storage/0471/doc_00115468 [00:41:12]file doc_00115469 [00:41:12]remove file /storage/0471/doc_00115469 [00:41:12]file doc_00115470 [00:41:12]remove file /storage/0471/doc_00115470 [00:41:12]file doc_00115471 [00:41:12]remove file /storage/0471/doc_00115471 [00:41:12]file doc_00115472 [00:41:12]remove file /storage/0471/doc_00115472 [00:41:12]file doc_00115473 [00:41:12]remove file /storage/0471/doc_00115473 [00:41:12]file doc_00115474 [00:41:12]remove file /storage/0471/doc_00115474 [00:41:12]file doc_00115475 [00:41:12]remove file /storage/0471/doc_00115475 [00:41:12]file doc_00115476 [00:41:12]remove file /storage/0471/doc_00115476 [00:41:12]file doc_00115477 [00:41:12]remove file /storage/0471/doc_00115477 [00:41:12]file doc_00115478 [00:41:12]remove file /storage/0471/doc_00115478 [00:41:12]OFD Sender: No OFD packet to send [00:41:12]file doc_00115479 [00:41:12]remove file /storage/0471/doc_00115479 [00:41:12]file doc_00115480 [00:41:12]remove file /storage/0471/doc_00115480 [00:41:12]file doc_00115481 [00:41:12]remove file /storage/0471/doc_00115481 [00:41:12]file doc_00115482 [00:41:12]remove file /storage/0471/doc_00115482 [00:41:12]file doc_00115483 [00:41:12]remove file /storage/0471/doc_00115483 [00:41:12]file doc_00115484 [00:41:12]remove file /storage/0471/doc_00115484 [00:41:12]file doc_00115485 [00:41:12]remove file /storage/0471/doc_00115485 [00:41:12]file doc_00115486 [00:41:12]remove file /storage/0471/doc_00115486 [00:41:12]file doc_00115487 [00:41:12]remove file /storage/0471/doc_00115487 [00:41:12]file doc_00115488 [00:41:12]remove file /storage/0471/doc_00115488 [00:41:12]file doc_00115489 [00:41:12]remove file /storage/0471/doc_00115489 [00:41:12]file doc_00115490 [00:41:12]remove file /storage/0471/doc_00115490 [00:41:12]file doc_00115491 [00:41:12]remove file /storage/0471/doc_00115491 [00:41:12]file doc_00115492 [00:41:12]remove file /storage/0471/doc_00115492 [00:41:12]file doc_00115493 [00:41:12]remove file /storage/0471/doc_00115493 [00:41:12]file doc_00115494 [00:41:12]remove file /storage/0471/doc_00115494 [00:41:12]file doc_00115495 [00:41:12]remove file /storage/0471/doc_00115495 [00:41:12]file doc_00115496 [00:41:12]remove file /storage/0471/doc_00115496 [00:41:12]file doc_00115497 [00:41:12]remove file /storage/0471/doc_00115497 [00:41:12]file doc_00115498 [00:41:12]remove file /storage/0471/doc_00115498 [00:41:12]file doc_00115499 [00:41:12]remove file /storage/0471/doc_00115499 [00:41:12]file doc_00115500 [00:41:12]remove file /storage/0471/doc_00115500 [00:41:12]file doc_00115501 [00:41:12]remove file /storage/0471/doc_00115501 [00:41:12]file doc_00115502 [00:41:12]remove file /storage/0471/doc_00115502 [00:41:12]file doc_00115503 [00:41:12]remove file /storage/0471/doc_00115503 [00:41:12]file doc_00115504 [00:41:12]remove file /storage/0471/doc_00115504 [00:41:12]file doc_00115505 [00:41:12]remove file /storage/0471/doc_00115505 [00:41:12]file doc_00115506 [00:41:12]remove file /storage/0471/doc_00115506 [00:41:12]file doc_00115507 [00:41:12]remove file /storage/0471/doc_00115507 [00:41:12]file doc_00115508 [00:41:12]remove file /storage/0471/doc_00115508 [00:41:12]file doc_00115509 [00:41:12]remove file /storage/0471/doc_00115509 [00:41:12]file doc_00115510 [00:41:12]remove file /storage/0471/doc_00115510 [00:41:12]file doc_00115511 [00:41:12]remove file /storage/0471/doc_00115511 [00:41:12]file doc_00115512 [00:41:12]remove file /storage/0471/doc_00115512 [00:41:12]file doc_00115513 [00:41:12]remove file /storage/0471/doc_00115513 [00:41:12]file doc_00115514 [00:41:12]remove file /storage/0471/doc_00115514 [00:41:12]file doc_00115515 [00:41:12]remove file /storage/0471/doc_00115515 [00:41:12]file doc_00115516 [00:41:12]remove file /storage/0471/doc_00115516 [00:41:12]remove dir /storage/0471 [00:41:12]ProcessDocumentItem done err = 0, tmpTLVsize=233 [00:41:12]tlvbuf is 011CCCC0 [00:41:12]SAM_PROTO_ClearQueue [00:41:12]wFMCommunicate request_size=4 [00:41:12]MH_SAM_APDU [00:41:12]CAPDU: 80 09 00 00 [00:41:12]Write to MH i2c: E2 08 00 43 01 80 09 00 00 00 00 00 00 B6 [00:41:13]Write i2c OK [00:41:13]MH_I2C_Read... [00:41:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:13]Read from MH i2c: E2 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: E2 03 00 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [00:41:13]RAPDU: 90 00 [00:41:13]wFMCommunicate OK [00:41:13]SAM_PROTO_ClearQueue done [00:41:13]KKMCreateOFDPacket [00:41:13]OFDProtocolAddRootSTLVToBuf [00:41:13]FM_MakeSignedData [00:41:13]FM_MakeSignedData [00:41:13]SAM_PROTO_SignData [00:41:13]wFMCommunicate request_size=4 [00:41:13]MH_SAM_APDU [00:41:13]CAPDU: 80 0D 01 02 [00:41:13]Write to MH i2c: E2 08 00 44 01 80 0D 01 02 00 00 00 00 BE [00:41:13]Write i2c OK [00:41:13]MH_I2C_Read... [00:41:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:13]Read from MH i2c: E2 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: E2 03 00 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: E2 03 00 44 01 00 90 00 B9 [00:41:13]RAPDU: 90 00 [00:41:13]wFMCommunicate OK [00:41:13]wFMCommunicate request_size=242 [00:41:13]MH_SAM_APDU [00:41:13]CAPDU: 80 0D 02 02 ED 02 00 E9 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 20 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 90 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 96 D0 B0 D0 BD D1 8B 2D D0 90 D1 80 D1 8B D0 BA 2C 20 34 30 2E 36 35 38 35 32 33 2C 20 37 33 2E 31 32 35 33 33 36 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 30 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 26 B9 F0 66 0E 04 04 00 D8 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3D C3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 7C A3 A2 72 9D 30 [00:41:13]Write to MH i2c: E2 F5 00 45 01 80 0D 02 02 ED 00 02 00 E9 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 20 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 90 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 96 D0 B0 D0 BD D1 8B 2D D0 90 D1 80 D1 8B D0 BA 2C 20 34 30 2E 36 35 38 35 32 33 2C 20 37 33 2E 31 32 35 33 33 36 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 30 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 26 B9 F0 66 0E 04 04 00 D8 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3D C3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 7C A3 A2 72 9D 30 00 00 F3 [00:41:13]Write i2c OK [00:41:13]MH_I2C_Read... [00:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:13]Read from MH i2c: E2 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: E2 03 00 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [00:41:13]RAPDU: 90 00 [00:41:13]wFMCommunicate OK [00:41:13]wFMCommunicate request_size=4 [00:41:13]MH_SAM_APDU [00:41:13]CAPDU: 80 0D 03 02 [00:41:13]Write to MH i2c: E2 08 00 46 01 80 0D 03 02 00 00 00 00 C2 [00:41:13]Write i2c OK [00:41:13]MH_I2C_Read... [00:41:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:13]Read from MH i2c: E2 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: E2 0B 00 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: E2 0B 00 46 01 00 3E 5C 2D C6 73 F4 C3 AF 90 00 29 [00:41:13]RAPDU: 3E 5C 2D C6 73 F4 C3 AF 90 00 [00:41:13]wFMCommunicate OK [00:41:13]SAM_PROTO_SignData done [00:41:13]FM_MakeSignedData done [00:41:13]CreateOFDProtocolMessage [00:41:13]wFMCommunicate request_size=4 [00:41:13]MH_SAM_APDU [00:41:13]CAPDU: 80 11 00 00 [00:41:13]Write to MH i2c: E2 08 00 47 01 80 11 00 00 00 00 00 00 C2 [00:41:13]Write i2c OK [00:41:13]MH_I2C_Read... [00:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:13]Read from MH i2c: E2 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: E2 17 00 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: E2 17 00 47 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 10 [00:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:41:13]wFMCommunicate OK [00:41:13]CreateOFDProtocolMessage done [00:41:13]OFDSenderStorePacket 115517 [00:41:13]StoreOFDPacket docnum=115517 [00:41:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 FD 00 00 00 6C 0A F5 00 B2 44 5A 02 01 00 02 00 E9 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 20 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 90 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 96 D0 B0 D0 BD D1 8B 2D D0 90 D1 80 D1 8B D0 BA 2C 20 34 30 2E 36 35 38 35 32 33 2C 20 37 33 2E 31 32 35 33 33 36 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 30 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 26 B9 F0 66 0E 04 04 00 D8 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3D C3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 7C A3 A2 72 9D 30 3E 5C 2D C6 73 F4 C3 AF [00:41:13]CheckFolder [00:41:13]dirname=/storage/ofd_packets [00:41:13]CheckFolder done [00:41:13]ProducePacketName [00:41:13]name=ofd_packets/00115517 [00:41:13]NVStorageSaveData ofd_packets/00115517 [00:41:13]File name is /storage/ofd_packets/00115517 [00:41:13]Write 283 bytes [00:41:13]NVStorageSaveData done [00:41:13]OFDSenderStorePacket done [00:41:13]KKMCreateOFDPacket done [00:41:13]NVStorageSaveData kkm_last_timestamp [00:41:13]File name is /storage/kkm_last_timestamp [00:41:13]Write 4 bytes [00:41:13]NVStorageSaveData done [00:41:13]ExternCall_PrintAddStr [00:41:13]wPrintStart [00:41:13]Write to MH i2c: 01 00 00 48 01 49 [00:41:13]Write i2c OK [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: 01 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: 01 07 00 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: 01 07 00 48 01 00 00 00 00 00 FF 0F 5E [00:41:13]RasterBufferAndPrint [00:41:13]line Отчет об открытии смены [00:41:13]line ФФД: 1.0 [00:41:13]line ИНН: 02508201610067 [00:41:13]line Кассир: Султанбай уулу А. [00:41:13]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [00:41:13]line Место: АЗС № 90 "Партнер Нефть" [00:41:13]line 23.09.2024 00:41 [00:41:13]line Смена: 472 [00:41:13]line РНМ: 0000000000091831 [00:41:13]line ЗНМ: 0300000120 [00:41:13]line ФД: 115517 [00:41:13]line ФМ: 0000000000871830 [00:41:13]line ФПД: 137042246933808 [00:41:13]written 0, free lines is 4095 [00:41:13]OFD Sender: Processing packet 115517 [packets to send 481, broken 480] [00:41:13]ProducePacketName [00:41:13]name=ofd_packets/00115517 [00:41:13]OFD Sender: To server: pG, [00:41:13]CommunicateWithHost lk.salyk.kg:30040 [00:41:13]ConnectInit lk.salyk.kg [00:41:13]Write to MH i2c: 01 00 00 59 01 5A [00:41:13]Write i2c OK [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: 01 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: 01 07 00 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 6B 0E DA [00:41:13]RasterBufferAndPrint [00:41:13]line [00:41:13]line [00:41:13]line [00:41:13]line [00:41:13]line [00:41:13]written 0, free lines is 3697 [00:41:13]MH_Cut [00:41:13]Write to MH i2c: D1 01 00 60 01 01 33 [00:41:13]Write i2c OK [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: D1 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: D1 01 00 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: D1 01 00 60 01 00 32 [00:41:13]Write to MH i2c: 01 00 00 61 01 62 [00:41:13]Write i2c OK [00:41:13]MH_I2C_Read... [00:41:14]Connected sock=10 [00:41:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 FD 00 00 00 6C 0A F5 00 B2 44 5A 02 01 00 02 00 E9 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 20 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 90 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 96 D0 B0 D0 BD D1 8B 2D D0 90 D1 80 D1 8B D0 BA 2C 20 34 30 2E 36 35 38 35 32 33 2C 20 37 33 2E 31 32 35 33 33 36 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 30 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 26 B9 F0 66 0E 04 04 00 D8 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3D C3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 7C A3 A2 72 9D 30 3E 5C 2D C6 73 F4 C3 AF [00:41:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6F 4B 47 00 03 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 31 38 33 30 10 04 04 00 3D C3 01 00 F4 03 04 00 6C 5E F0 66 B6 04 01 00 00 11 69 75 96 EB B0 AB 7E [00:41:14]CommunicateWithHost err = 0 [00:41:14]CheckOFDResponse [00:41:14]1017 (14) - 77093643461234 [00:41:14]1041 (16) - 0000000000871830 [00:41:14]1040 (4) - 115517 [00:41:14]1012 (4) - 22.09.2024 18:14 [00:41:14]1206 (1) - 0 [00:41:14]OFD Sender: Remove packet 115517 [00:41:14]ProducePacketName [00:41:14]name=ofd_packets/00115517 [00:41:14]NVStorageDeleteData [00:41:14]*** Cut start [00:41:14]*** Partial cut [00:41:14]*** CUTSNS_PIN = 1 [00:41:14]*** CUTSNS_PIN = 0 [00:41:14]*** Brake cut motor [00:41:14]OFD Sender: No OFD packet to send [00:41:15]Read from MH i2c: 01 [00:41:15]MH_I2C_Read... [00:41:15]*** Stop cut motor [00:41:15]*** Cut end [00:41:15]Read from MH i2c: 01 07 00 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: 01 07 00 61 01 00 00 00 00 00 FF 0F 77 [00:41:15]process_action open_shift done [00:41:15]requested_data is exist [00:41:15]produce_requested_data [00:41:15]requested_item fd.num is exist - process it [00:41:15]SAM_PROTO_GetFieldsCounters [00:41:15]wFMCommunicate request_size=4 [00:41:15]MH_SAM_APDU [00:41:15]CAPDU: 80 13 00 00 [00:41:15]Write to MH i2c: E2 08 00 62 01 80 13 00 00 00 00 00 00 DF [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:15]Read from MH i2c: E2 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 62 00 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 62 00 62 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3D C3 01 00 0E 04 04 00 D8 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 D2 [00:41:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3D C3 01 00 0E 04 04 00 D8 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:41:15]wFMCommunicate OK [00:41:15]SAM_PROTO_GetFieldsCounters done [00:41:15]requested_item shift.num is exist - process it [00:41:15]requested_item shift.opened is exist - process it [00:41:15]req_shift_opened [00:41:15]FM_GetShiftState [00:41:15]SAM_PROTO_GetShiftState [00:41:15]wFMCommunicate request_size=4 [00:41:15]MH_SAM_APDU [00:41:15]CAPDU: 80 13 01 00 [00:41:15]Write to MH i2c: E2 08 00 63 01 80 13 01 00 00 00 00 00 E1 [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:15]Read from MH i2c: E2 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 0E 00 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 0E 00 63 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 22 [00:41:15]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [00:41:15]wFMCommunicate OK [00:41:15]SAM_PROTO_GetShiftState done [00:41:15]FM_GetShiftState done [00:41:15]req_shift_opened done [00:41:15]requested_item shift.open_date is exist - process it [00:41:15]req_shift_open_date [00:41:15]req_shift_open_date done [00:41:15]produce_requested_data done [00:41:15]produce_requested_data return {"fd.num":115517,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [00:41:15]process_action_free open_shift [00:41:15]json_value_free [00:41:15]json_value_free done [00:41:15]process_json_proto returns [00:41:15]Send response to host [00:41:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":115517,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [00:41:15]free response buf [00:41:15]execute_script done [00:41:15]execute_script returns [00:41:15]free content buf [00:41:15]Sock 6.Close socket [00:41:15]Sock 6.Thread stoped [00:41:15]accept exits with 9 [00:41:15]New connection [00:41:15]New thread 3067170148 created [00:41:15]Thread 3067313508 joined [00:41:15]Waiting for new connection... [00:41:15] Sock 9.Parse request [00:41:15]Sock 9.Check first char [00:41:15]Sock 9.First char is OK [00:41:15]request: POST /json_proto HTTP/1.0 [00:41:15]Method: POST [00:41:15]URL: /json_proto [00:41:15]Method is POST - this is cgi request [00:41:15]url: /json_proto [00:41:15]query_string will be loaded in cgi processing [00:41:15]execute_cgi json_proto POST (null) [00:41:15]execute_cgi path=json_proto method=POST [00:41:15]POST find Content-Length [00:41:15]Host: 172.17.41.136:8080 [00:41:15]Content-Length: 331 [00:41:15]Content-Type: application/json [00:41:15] [00:41:15]POST finish read [00:41:15]Found Content-Length = 331 [00:41:15]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:41:15]execute_script... [00:41:15]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:41:15]POST & json_proto [00:41:15]process_json_proto [00:41:15]json parsed OK: [00:41:15]protocol is kg_v1.0 [00:41:15]action value=get_value [00:41:15]process_action get_value [00:41:15]cmd_get_value [00:41:15]process_action get_value done [00:41:15]requested_data is exist [00:41:15]produce_requested_data [00:41:15]requested_item fm.sale.total is exist - process it [00:41:15]SAM_PROTO_GetFMData [00:41:15]wFMCommunicate request_size=4 [00:41:15]MH_SAM_APDU [00:41:15]CAPDU: 80 13 03 00 [00:41:15]Write to MH i2c: E2 08 00 64 01 80 13 03 00 00 00 00 00 E4 [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:41:15]Read from MH i2c: E2 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 FD 00 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 FD 00 64 01 00 C5 04 85 04 C1 04 6E 04 04 00 8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 8A [00:41:15]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 8C BF 01 00 69 04 A3 00 6F 04 04 00 0F BE 01 00 B1 04 05 00 11 CF EA 80 01 70 04 05 00 9D 20 46 47 01 72 04 04 00 74 AE A4 39 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 45 2E E2 28 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 2D F8 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 [00:41:16]wFMCommunicate OK [00:41:16]wFMCommunicate request_size=4 [00:41:16]MH_SAM_APDU [00:41:16]CAPDU: 80 17 00 00 [00:41:16]Write to MH i2c: E2 08 00 65 01 80 17 00 00 00 00 00 00 E6 [00:41:16]Write i2c OK [00:41:16]MH_I2C_Read... [00:41:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:16]Read from MH i2c: E2 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 FD 00 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 FD 00 65 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D3 [00:41:16]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:41:16]wFMCommunicate OK [00:41:16]wFMCommunicate request_size=4 [00:41:16]MH_SAM_APDU [00:41:16]CAPDU: 80 17 00 00 [00:41:16]Write to MH i2c: E2 08 00 66 01 80 17 00 00 00 00 00 00 E7 [00:41:16]Write i2c OK [00:41:16]MH_I2C_Read... [00:41:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:16]Read from MH i2c: E2 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 FD 00 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 FD 00 66 01 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 F9 [00:41:16]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:41:16]wFMCommunicate OK [00:41:16]wFMCommunicate request_size=4 [00:41:16]MH_SAM_APDU [00:41:16]CAPDU: 80 17 00 00 [00:41:16]Write to MH i2c: E2 08 00 67 01 80 17 00 00 00 00 00 00 E8 [00:41:16]Write i2c OK [00:41:16]MH_I2C_Read... [00:41:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:17]Read from MH i2c: E2 [00:41:17]MH_I2C_Read... [00:41:17]Read from MH i2c: E2 FD 00 [00:41:17]MH_I2C_Read... [00:41:17]Read from MH i2c: E2 FD 00 67 01 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 74 [00:41:17]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:41:17]wFMCommunicate OK [00:41:17]wFMCommunicate request_size=4 [00:41:17]MH_SAM_APDU [00:41:17]CAPDU: 80 17 00 00 [00:41:17]Write to MH i2c: E2 08 00 68 01 80 17 00 00 00 00 00 00 E9 [00:41:17]Write i2c OK [00:41:17]MH_I2C_Read... [00:41:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:41:17]Read from MH i2c: E2 [00:41:17]MH_I2C_Read... [00:41:17]Read from MH i2c: E2 E2 00 [00:41:17]MH_I2C_Read... [00:41:17]Read from MH i2c: E2 E2 00 68 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C7 [00:41:17]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:41:17]wFMCommunicate OK [00:41:17]SAM_PROTO_GetFMData done [00:41:17]requested_item fm.sale_refund.total is exist - process it [00:41:17]requested_item fm.buy.total is exist - process it [00:41:17]requested_item shift.sale.total is exist - process it [00:41:17]SAM_PROTO_GetShiftData [00:41:17]wFMCommunicate request_size=4 [00:41:17]MH_SAM_APDU [00:41:17]CAPDU: 80 13 02 00 [00:41:17]Write to MH i2c: E2 08 00 69 01 80 13 02 00 00 00 00 00 E8 [00:41:17]Write i2c OK [00:41:17]MH_I2C_Read... [00:41:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:41:18]Read from MH i2c: E2 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: E2 FD 00 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: E2 FD 00 69 01 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 5B [00:41:18]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:41:18]wFMCommunicate OK [00:41:18]wFMCommunicate request_size=4 [00:41:18]MH_SAM_APDU [00:41:18]CAPDU: 80 17 00 00 [00:41:18]Write to MH i2c: E2 08 00 6A 01 80 17 00 00 00 00 00 00 EB [00:41:18]Write i2c OK [00:41:18]MH_I2C_Read... [00:41:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:18]Read from MH i2c: E2 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: E2 FD 00 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: E2 FD 00 6A 01 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 F3 [00:41:18]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:41:18]wFMCommunicate OK [00:41:18]wFMCommunicate request_size=4 [00:41:18]MH_SAM_APDU [00:41:18]CAPDU: 80 17 00 00 [00:41:18]Write to MH i2c: E2 08 00 6B 01 80 17 00 00 00 00 00 00 EC [00:41:18]Write i2c OK [00:41:18]MH_I2C_Read... [00:41:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:18]Read from MH i2c: E2 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: E2 FD 00 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: E2 FD 00 6B 01 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 BE [00:41:19]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:41:19]wFMCommunicate OK [00:41:19]wFMCommunicate request_size=4 [00:41:19]MH_SAM_APDU [00:41:19]CAPDU: 80 17 00 00 [00:41:19]Write to MH i2c: E2 08 00 6C 01 80 17 00 00 00 00 00 00 ED [00:41:19]Write i2c OK [00:41:19]MH_I2C_Read... [00:41:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:19]Read from MH i2c: E2 [00:41:19]MH_I2C_Read... [00:41:19]Read from MH i2c: E2 FD 00 [00:41:19]MH_I2C_Read... [00:41:19]Read from MH i2c: E2 FD 00 6C 01 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 5F [00:41:19]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:41:19]wFMCommunicate OK [00:41:19]wFMCommunicate request_size=4 [00:41:19]MH_SAM_APDU [00:41:19]CAPDU: 80 17 00 00 [00:41:19]Write to MH i2c: E2 08 00 6D 01 80 17 00 00 00 00 00 00 EE [00:41:19]Write i2c OK [00:41:19]MH_I2C_Read... [00:41:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:41:19]Read from MH i2c: E2 [00:41:19]MH_I2C_Read... [00:41:19]Read from MH i2c: E2 BD 00 [00:41:19]MH_I2C_Read... [00:41:19]Read from MH i2c: E2 BD 00 6D 01 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 D4 [00:41:19]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:41:19]wFMCommunicate OK [00:41:19]SAM_PROTO_GetShiftData done [00:41:19]requested_item shift.sale.total_cash is exist - process it [00:41:19]requested_item shift.sale_refund.total is exist - process it [00:41:19]requested_item shift.sale_refund.total_cash is exist - process it [00:41:19]requested_item shift.buy.total is exist - process it [00:41:19]requested_item shift.buy.total_cash is exist - process it [00:41:19]produce_requested_data done [00:41:19]produce_requested_data return {"fm.sale.total":64578393.77,"fm.sale_refund.total":2648943.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:41:19]process_action_free get_value [00:41:19]json_value_free [00:41:19]json_value_free done [00:41:19]process_json_proto returns [00:41:19]Send response to host [00:41:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64578393.77,"fm.sale_refund.total":2648943.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:41:19]free response buf [00:41:19]execute_script done [00:41:19]execute_script returns [00:41:19]free content buf [00:41:19]Sock 9.Close socket [00:41:19]Sock 9.Thread stoped [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:40]OFD Sender: No OFD packet to send [00:41:45]OFD Sender: No OFD packet to send [00:41:50]OFD Sender: No OFD packet to send [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:05]OFD Sender: No OFD packet to send [00:42:10]OFD Sender: No OFD packet to send [00:42:15]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42:30]OFD Sender: No OFD packet to send [00:42:35]OFD Sender: No OFD packet to send [00:42:40]OFD Sender: No OFD packet to send [00:42:45]OFD Sender: No OFD packet to send [00:42:50]OFD Sender: No OFD packet to send [00:42:55]OFD Sender: No OFD packet to send [00:43:00]OFD Sender: No OFD packet to send [00:43:05]OFD Sender: No OFD packet to send [00:43:10]OFD Sender: No OFD packet to send [00:43:15]OFD Sender: No OFD packet to send [00:43:20]OFD Sender: No OFD packet to send [00:43:25]OFD Sender: No OFD packet to send [00:43:30]OFD Sender: No OFD packet to send [00:43:35]OFD Sender: No OFD packet to send [00:43:40]OFD Sender: No OFD packet to send [00:43:45]OFD Sender: No OFD packet to send [00:43:50]OFD Sender: No OFD packet to send [00:43:55]OFD Sender: No OFD packet to send [00:44:00]OFD Sender: No OFD packet to send [00:44:05]OFD Sender: No OFD packet to send [00:44:10]OFD Sender: No OFD packet to send [00:44:15]OFD Sender: No OFD packet to send [00:44:20]OFD Sender: No OFD packet to send [00:44:25]OFD Sender: No OFD packet to send [00:44:30]OFD Sender: No OFD packet to send [00:44:35]OFD Sender: No OFD packet to send [00:44:40]OFD Sender: No OFD packet to send [00:44:45]OFD Sender: No OFD packet to send [00:44:50]OFD Sender: No OFD packet to send [00:44:55]OFD Sender: No OFD packet to send [00:45:00]OFD Sender: No OFD packet to send [00:45:05]OFD Sender: No OFD packet to send [00:45:10]OFD Sender: No OFD packet to send [00:45:15]OFD Sender: No OFD packet to send [00:45:20]OFD Sender: No OFD packet to send [00:45:25]OFD Sender: No OFD packet to send [00:45:30]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:45]OFD Sender: No OFD packet to send [00:45:50]OFD Sender: No OFD packet to send [00:45:55]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:24]accept exits with 6 [00:56:24]New connection [00:56:24]New thread 3067313508 created [00:56:24]Thread 3067170148 joined [00:56:24]Waiting for new connection... [00:56:24] Sock 6.Parse request [00:56:24]Sock 6.Check first char [00:56:24]Sock 6.First char is OK [00:56:24]request: POST /json_proto HTTP/1.0 [00:56:24]Method: POST [00:56:24]URL: /json_proto [00:56:24]Method is POST - this is cgi request [00:56:24]url: /json_proto [00:56:24]query_string will be loaded in cgi processing [00:56:24]execute_cgi json_proto POST (null) [00:56:24]execute_cgi path=json_proto method=POST [00:56:24]POST find Content-Length [00:56:24]Host: 172.17.41.136:8080 [00:56:24]Content-Length: 973 [00:56:24]Content-Type: application/json [00:56:24] [00:56:24]POST finish read [00:56:24]Found Content-Length = 973 [00:56:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343945", "tax_sys" : 0, "items" : [ { "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48746656", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 263.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:24]execute_script... [00:56:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343945", "tax_sys" : 0, "items" : [ { "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48746656", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 263.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:24]POST & json_proto [00:56:24]process_json_proto [00:56:24]json parsed OK: [00:56:24]protocol is kg_v1.0 [00:56:24]action value=close_receipt [00:56:24]process_action close_receipt [00:56:24]cmd_close_receipt [00:56:24]MH_GetDate [00:56:24]Write to MH i2c: F0 00 00 6E 01 5E [00:56:24]Write i2c OK [00:56:24]MH_I2C_Read... [00:56:24]Read from MH i2c: F0 [00:56:24]MH_I2C_Read... [00:56:24]Read from MH i2c: F0 09 00 [00:56:24]MH_I2C_Read... [00:56:24]Read from MH i2c: F0 09 00 6E 01 00 B8 BC F0 66 1B D0 5A 64 DA [00:56:24]GetLastDocTimeStamp 1727052070 [00:56:24]current date 1727052984 [00:56:24]FM_GetShiftState [00:56:24]SAM_PROTO_GetShiftState [00:56:24]wFMCommunicate request_size=4 [00:56:24]MH_SAM_APDU [00:56:24]CAPDU: 80 13 01 00 [00:56:24]Write to MH i2c: E2 08 00 6F 01 80 13 01 00 00 00 00 00 ED [00:56:24]Write i2c OK [00:56:24]MH_I2C_Read... [00:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:24]Read from MH i2c: E2 [00:56:24]MH_I2C_Read... [00:56:24]Read from MH i2c: E2 0E 00 [00:56:24]MH_I2C_Read... [00:56:24]Read from MH i2c: E2 0E 00 6F 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 2E [00:56:24]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [00:56:24]wFMCommunicate OK [00:56:24]SAM_PROTO_GetShiftState done [00:56:24]FM_GetShiftState done [00:56:24]opened in 1727052070 [00:56:24]opened+sec_in_day 1727138470 [00:56:24]quantity*price = 12000 [00:56:24]sum+1 = 12001 [00:56:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48746656 Сигареты Parliament Super Slims 1.000 * 143.00 = 143.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 263.00 НСП 1% : 2.32 НДС 12% : 27.93 Наличными: 263.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 1 23.09.2024 00:56 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115518 ФПД: 138385170636295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T005624&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115518&fm=138385170636295&tin=02508201610067®Number=0000000000091831&sum=26300 0 [00:56:25]StoreToDocumentArchive [00:56:25]shift 472 fd 115518 [00:56:25]save to /storage/0472/doc_00115518 [00:56:25]save last doc name /storage/0472/doc_00115518 to /storage/kkm_last_doc_name [00:56:25]save OK [00:56:25]Clear old archive folders... [00:56:25]ProcessDocumentItem done err = 0, tmpTLVsize=411 [00:56:25]tlvbuf is 011D8A90 [00:56:25]SAM_PROTO_ClearQueue [00:56:25]wFMCommunicate request_size=4 [00:56:25]MH_SAM_APDU [00:56:25]CAPDU: 80 09 00 00 [00:56:25]Write to MH i2c: E2 08 00 7C 01 80 09 00 00 00 00 00 00 EF [00:56:25]Write i2c OK [00:56:25]MH_I2C_Read... [00:56:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:56:25]Read from MH i2c: E2 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 03 00 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 03 00 7C 01 00 90 00 F1 [00:56:25]RAPDU: 90 00 [00:56:25]wFMCommunicate OK [00:56:25]SAM_PROTO_ClearQueue done [00:56:25]KKMCreateOFDPacket [00:56:25]OFDProtocolAddRootSTLVToBuf [00:56:25]FM_MakeSignedData [00:56:25]FM_MakeSignedData [00:56:25]SAM_PROTO_SignData [00:56:25]wFMCommunicate request_size=4 [00:56:25]MH_SAM_APDU [00:56:25]CAPDU: 80 0D 01 02 [00:56:25]Write to MH i2c: E2 08 00 7D 01 80 0D 01 02 00 00 00 00 F7 [00:56:25]Write i2c OK [00:56:25]MH_I2C_Read... [00:56:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:56:25]Read from MH i2c: E2 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 03 00 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 03 00 7D 01 00 90 00 F2 [00:56:25]RAPDU: 90 00 [00:56:25]wFMCommunicate OK [00:56:25]wFMCommunicate request_size=255 [00:56:25]MH_SAM_APDU [00:56:25]CAPDU: 80 0D 02 02 FA 03 00 9B 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 36 36 35 36 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [00:56:25]Write to MH i2c: E2 02 01 7E 01 80 0D 02 02 FA 00 03 00 9B 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 36 36 35 36 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 79 [00:56:25]Write i2c OK [00:56:25]MH_I2C_Read... [00:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:25]Read from MH i2c: E2 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 03 00 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 03 00 7E 01 00 90 00 F3 [00:56:25]RAPDU: 90 00 [00:56:25]wFMCommunicate OK [00:56:25]wFMCommunicate request_size=170 [00:56:25]MH_SAM_APDU [00:56:25]CAPDU: 80 0D 02 02 A5 FC 03 06 00 BC 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0A 00 00 00 00 07 04 06 00 BC 66 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 B8 BC F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3E C3 01 00 35 04 06 00 7D DC 4E F0 1E 07 [00:56:25]Write to MH i2c: E2 AD 00 7F 01 80 0D 02 02 A5 00 FC 03 06 00 BC 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0A 00 00 00 00 07 04 06 00 BC 66 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 B8 BC F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3E C3 01 00 35 04 06 00 7D DC 4E F0 1E 07 00 00 FF [00:56:25]Write i2c OK [00:56:25]MH_I2C_Read... [00:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:25]Read from MH i2c: E2 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 03 00 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 03 00 7F 01 00 90 00 F4 [00:56:25]RAPDU: 90 00 [00:56:25]wFMCommunicate OK [00:56:25]wFMCommunicate request_size=4 [00:56:25]MH_SAM_APDU [00:56:25]CAPDU: 80 0D 03 02 [00:56:25]Write to MH i2c: E2 08 00 80 01 80 0D 03 02 00 00 00 00 FC [00:56:25]Write i2c OK [00:56:25]MH_I2C_Read... [00:56:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:56:25]Read from MH i2c: E2 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 0B 00 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 0B 00 80 01 00 5E 4A 1A 48 ED D9 FF 1F 90 00 EB [00:56:25]RAPDU: 5E 4A 1A 48 ED D9 FF 1F 90 00 [00:56:25]wFMCommunicate OK [00:56:25]SAM_PROTO_SignData done [00:56:25]FM_MakeSignedData done [00:56:25]CreateOFDProtocolMessage [00:56:25]wFMCommunicate request_size=4 [00:56:25]MH_SAM_APDU [00:56:25]CAPDU: 80 11 00 00 [00:56:25]Write to MH i2c: E2 08 00 81 01 80 11 00 00 00 00 00 00 FC [00:56:25]Write i2c OK [00:56:25]MH_I2C_Read... [00:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:25]Read from MH i2c: E2 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 17 00 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 17 00 81 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4A [00:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:56:25]wFMCommunicate OK [00:56:25]CreateOFDProtocolMessage done [00:56:25]OFDSenderStorePacket 115518 [00:56:25]StoreOFDPacket docnum=115518 [00:56:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 AF 01 00 00 3C CF A7 01 5D 03 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 36 36 35 36 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0A 00 00 00 00 07 04 06 00 BC 66 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 B8 BC F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3E C3 01 00 35 04 06 00 7D DC 4E F0 1E 07 5E 4A 1A 48 ED D9 FF 1F [00:56:25]CheckFolder [00:56:25]dirname=/storage/ofd_packets [00:56:25]CheckFolder done [00:56:25]ProducePacketName [00:56:25]name=ofd_packets/00115518 [00:56:25]NVStorageSaveData ofd_packets/00115518 [00:56:25]File name is /storage/ofd_packets/00115518 [00:56:25]Write 461 bytes [00:56:25]NVStorageSaveData done [00:56:25]OFDSenderStorePacket done [00:56:25]KKMCreateOFDPacket done [00:56:25]NVStorageSaveData kkm_last_timestamp [00:56:25]File name is /storage/kkm_last_timestamp [00:56:25]Write 4 bytes [00:56:25]NVStorageSaveData done [00:56:26]ExternCall_PrintAddStr [00:56:26]wPrintStart [00:56:26]Write to MH i2c: 01 00 00 82 01 83 [00:56:26]Write i2c OK [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: 01 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: 01 07 00 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 FF 0F 98 [00:56:26]RasterBufferAndPrint [00:56:26]line Счет N : (3)343945 [00:56:26]line ИНН: 02508201610067 [00:56:26]line Контрольно-Кассовый Чек [00:56:26]line ПРОДАЖА [00:56:26]line Товар: 4630007401201 [00:56:26]line Семечки соленые ДЖИНН Великан 100гр [00:56:26]line 1.000 * 120.00 [00:56:26]line = 120.00 [00:56:26]line НДС 12% НСП 1% [00:56:26]line > о реализуемом товаре [00:56:26]line Товар: 48746656 [00:56:26]line Сигареты Parliament Super Slims [00:56:26]line 1.000 * 143.00 [00:56:26]line = 143.00 [00:56:26]line НДС 12% НСП 1% [00:56:26]line > о реализуемом товаре [00:56:26]line ИТОГО: 263.00 [00:56:26]line НСП 1% : 2.32 [00:56:26]line НДС 12% : 27.93 [00:56:26]line Наличными: 263.00 [00:56:26]line Безнал.: 0.00 [00:56:26]line Место: АЗС № 90 "Партнер Нефть" [00:56:26]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [00:56:26]line СНО: Общий режим [00:56:26]line Чек 1 23.09.2024 00:56 [00:56:26]line Смена: 472 ФФД: 1.0 [00:56:26]line ЗНМ: 0300000120 [00:56:26]line РНМ: 0000000000091831 [00:56:26]line Версия ККМ: 001 [00:56:26]line ФМ: 0000000000871830 [00:56:26]line ФД: 115518 [00:56:26]line ФПД: 138385170636295 [00:56:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T005624&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115518&fm=138385170636295&tin=02508201610067®Number=0000000000091831&sum=26300 [00:56:26]OFD Sender: Processing packet 115518 [packets to send 481, broken 480] [00:56:26]ProducePacketName [00:56:26]name=ofd_packets/00115518 [00:56:26]OFD Sender: To server: pG, [00:56:26]CommunicateWithHost lk.salyk.kg:30040 [00:56:26]ConnectInit lk.salyk.kg [00:56:26]line 0 [00:56:26]written 0, free lines is 4095 [00:56:26]Write to MH i2c: 01 00 00 B1 01 B2 [00:56:26]Write i2c OK [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: 01 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: 01 07 00 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: 01 07 00 B1 01 00 00 00 00 00 C8 0B 8C [00:56:26]RasterBufferAndPrint [00:56:26]line [00:56:26]line [00:56:26]line [00:56:26]line [00:56:26]line [00:56:26]written 0, free lines is 3020 [00:56:26]MH_Cut [00:56:26]Write to MH i2c: D1 01 00 B8 01 01 8B [00:56:26]Write i2c OK [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: D1 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: D1 01 00 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: D1 01 00 B8 01 00 8A [00:56:26]Write to MH i2c: 01 00 00 B9 01 BA [00:56:26]Write i2c OK [00:56:26]MH_I2C_Read... [00:56:28]*** Cut start [00:56:28]*** Partial cut [00:56:28]*** CUTSNS_PIN = 1 [00:56:28]*** CUTSNS_PIN = 0 [00:56:28]*** Brake cut motor [00:56:29]Read from MH i2c: 01 [00:56:29]MH_I2C_Read... [00:56:29]*** Stop cut motor [00:56:29]*** Cut end [00:56:29]Read from MH i2c: 01 07 00 [00:56:29]MH_I2C_Read... [00:56:29]Read from MH i2c: 01 07 00 B9 01 00 00 00 00 00 FF 0F CF [00:56:29]process_action close_receipt done [00:56:29]requested_data is exist [00:56:29]produce_requested_data [00:56:29]requested_item fm.sn is exist - process it [00:56:29]wFMCommunicate request_size=4 [00:56:29]MH_SAM_APDU [00:56:29]CAPDU: 80 11 00 00 [00:56:29]Write to MH i2c: E2 08 00 BA 01 80 11 00 00 00 00 00 00 35 [00:56:29]Write i2c OK [00:56:29]MH_I2C_Read... [00:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:29]Read from MH i2c: E2 [00:56:29]MH_I2C_Read... [00:56:29]Read from MH i2c: E2 17 00 [00:56:29]MH_I2C_Read... [00:56:29]Read from MH i2c: E2 17 00 BA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 83 [00:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:56:29]wFMCommunicate OK [00:56:29]requested_item fd.num is exist - process it [00:56:29]SAM_PROTO_GetFieldsCounters [00:56:29]wFMCommunicate request_size=4 [00:56:29]MH_SAM_APDU [00:56:29]CAPDU: 80 13 00 00 [00:56:29]Write to MH i2c: E2 08 00 BB 01 80 13 00 00 00 00 00 00 38 [00:56:29]Write i2c OK [00:56:29]MH_I2C_Read... [00:56:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:56:29]Read from MH i2c: E2 [00:56:29]MH_I2C_Read... [00:56:29]Read from MH i2c: E2 62 00 [00:56:29]MH_I2C_Read... [00:56:29]Read from MH i2c: E2 62 00 BB 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3E C3 01 00 0E 04 04 00 D8 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 2F [00:56:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3E C3 01 00 0E 04 04 00 D8 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:56:29]wFMCommunicate OK [00:56:29]SAM_PROTO_GetFieldsCounters done [00:56:29]requested_item shift.num is exist - process it [00:56:29]requested_item shift.opened is exist - process it [00:56:29]req_shift_opened [00:56:29]FM_GetShiftState [00:56:29]SAM_PROTO_GetShiftState [00:56:29]wFMCommunicate request_size=4 [00:56:29]MH_SAM_APDU [00:56:29]CAPDU: 80 13 01 00 [00:56:29]Write to MH i2c: E2 08 00 BC 01 80 13 01 00 00 00 00 00 3A [00:56:29]Write i2c OK [00:56:29]MH_I2C_Read... [00:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:29]Read from MH i2c: E2 [00:56:29]MH_I2C_Read... [00:56:29]Read from MH i2c: E2 0E 00 [00:56:29]MH_I2C_Read... [00:56:29]Read from MH i2c: E2 0E 00 BC 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7B [00:56:29]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [00:56:29]wFMCommunicate OK [00:56:29]SAM_PROTO_GetShiftState done [00:56:29]FM_GetShiftState done [00:56:29]req_shift_opened done [00:56:29]requested_item shift.open_date is exist - process it [00:56:29]req_shift_open_date [00:56:29]req_shift_open_date done [00:56:29]produce_requested_data done [00:56:29]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115518,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [00:56:29]process_action_free close_receipt [00:56:29]json_value_free [00:56:29]json_value_free done [00:56:29]process_json_proto returns [00:56:29]Send response to host [00:56:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115518,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [00:56:29]free response buf [00:56:29]execute_script done [00:56:29]execute_script returns [00:56:29]free content buf [00:56:29]Sock 6.Close socket [00:56:29]Sock 6.Thread stoped [00:56:31]ConnectInit Can't take IP for lk.salyk.kg [00:56:31]CommunicateWithHost connect error [00:56:31]CommunicateWithHost err = -1 [00:56:31]OFD Sender: Server communicate error [00:56:36]OFD Sender: Processing packet 115518 [packets to send 481, broken 480] [00:56:36]ProducePacketName [00:56:36]name=ofd_packets/00115518 [00:56:36]OFD Sender: To server: pG, [00:56:36]CommunicateWithHost lk.salyk.kg:30040 [00:56:36]ConnectInit lk.salyk.kg [00:56:41]ConnectInit Can't take IP for lk.salyk.kg [00:56:41]CommunicateWithHost connect error [00:56:41]CommunicateWithHost err = -1 [00:56:41]OFD Sender: Server communicate error [00:56:46]OFD Sender: Processing packet 115518 [packets to send 481, broken 480] [00:56:46]ProducePacketName [00:56:46]name=ofd_packets/00115518 [00:56:46]OFD Sender: To server: pG, [00:56:46]CommunicateWithHost lk.salyk.kg:30040 [00:56:46]ConnectInit lk.salyk.kg [00:56:51]ConnectInit Can't take IP for lk.salyk.kg [00:56:51]CommunicateWithHost connect error [00:56:51]CommunicateWithHost err = -1 [00:56:51]OFD Sender: Server communicate error [00:56:56]OFD Sender: Processing packet 115518 [packets to send 481, broken 480] [00:56:56]ProducePacketName [00:56:56]name=ofd_packets/00115518 [00:56:56]OFD Sender: To server: pG, [00:56:56]CommunicateWithHost lk.salyk.kg:30040 [00:56:56]ConnectInit lk.salyk.kg [00:57:01]ConnectInit Can't take IP for lk.salyk.kg [00:57:01]CommunicateWithHost connect error [00:57:01]CommunicateWithHost err = -1 [00:57:01]OFD Sender: Server communicate error [00:57:06]OFD Sender: Processing packet 115518 [packets to send 481, broken 480] [00:57:06]ProducePacketName [00:57:06]name=ofd_packets/00115518 [00:57:06]OFD Sender: To server: pG, [00:57:06]CommunicateWithHost lk.salyk.kg:30040 [00:57:06]ConnectInit lk.salyk.kg [00:57:11]ConnectInit Can't take IP for lk.salyk.kg [00:57:11]CommunicateWithHost connect error [00:57:11]CommunicateWithHost err = -1 [00:57:11]OFD Sender: Server communicate error [00:57:16]OFD Sender: Processing packet 115518 [packets to send 481, broken 480] [00:57:16]ProducePacketName [00:57:16]name=ofd_packets/00115518 [00:57:16]OFD Sender: To server: pG, [00:57:16]CommunicateWithHost lk.salyk.kg:30040 [00:57:16]ConnectInit lk.salyk.kg [00:57:21]ConnectInit Can't take IP for lk.salyk.kg [00:57:21]CommunicateWithHost connect error [00:57:21]CommunicateWithHost err = -1 [00:57:21]OFD Sender: Server communicate error [00:57:26]OFD Sender: Processing packet 115518 [packets to send 481, broken 480] [00:57:26]ProducePacketName [00:57:26]name=ofd_packets/00115518 [00:57:26]OFD Sender: To server: pG, [00:57:26]CommunicateWithHost lk.salyk.kg:30040 [00:57:26]ConnectInit lk.salyk.kg [00:57:31]ConnectInit Can't take IP for lk.salyk.kg [00:57:31]CommunicateWithHost connect error [00:57:31]CommunicateWithHost err = -1 [00:57:31]OFD Sender: Server communicate error [00:57:36]OFD Sender: Processing packet 115518 [packets to send 481, broken 480] [00:57:36]ProducePacketName [00:57:36]name=ofd_packets/00115518 [00:57:36]OFD Sender: To server: pG, [00:57:36]CommunicateWithHost lk.salyk.kg:30040 [00:57:36]ConnectInit lk.salyk.kg [00:57:41]ConnectInit Can't take IP for lk.salyk.kg [00:57:41]CommunicateWithHost connect error [00:57:41]CommunicateWithHost err = -1 [00:57:41]OFD Sender: Server communicate error [00:57:46]OFD Sender: Processing packet 115518 [packets to send 481, broken 480] [00:57:46]ProducePacketName [00:57:46]name=ofd_packets/00115518 [00:57:46]OFD Sender: To server: pG, [00:57:46]CommunicateWithHost lk.salyk.kg:30040 [00:57:46]ConnectInit lk.salyk.kg [00:57:51]ConnectInit Can't take IP for lk.salyk.kg [00:57:51]CommunicateWithHost connect error [00:57:51]CommunicateWithHost err = -1 [00:57:51]OFD Sender: Server communicate error [00:57:56]OFD Sender: Processing packet 115518 [packets to send 481, broken 480] [00:57:56]ProducePacketName [00:57:56]name=ofd_packets/00115518 [00:57:56]OFD Sender: To server: pG, [00:57:56]CommunicateWithHost lk.salyk.kg:30040 [00:57:56]ConnectInit lk.salyk.kg [00:57:56]Connected sock=8 [00:57:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 AF 01 00 00 3C CF A7 01 5D 03 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 36 36 35 36 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0A 00 00 00 00 07 04 06 00 BC 66 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 B8 BC F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3E C3 01 00 35 04 06 00 7D DC 4E F0 1E 07 5E 4A 1A 48 ED D9 FF 1F [00:57:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 31 BA 47 00 39 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3E C3 01 00 F4 03 04 00 57 62 F0 66 B6 04 01 00 00 54 5A BE DF BF 8A D8 88 [00:57:57]CommunicateWithHost err = 0 [00:57:57]CheckOFDResponse [00:57:57]1017 (14) - 77093643461234 [00:57:57]1041 (16) - 0000000000871830 [00:57:57]1040 (4) - 115518 [00:57:57]1012 (4) - 22.09.2024 18:30 [00:57:57]1206 (1) - 0 [00:57:57]OFD Sender: Remove packet 115518 [00:57:57]ProducePacketName [00:57:57]name=ofd_packets/00115518 [00:57:57]NVStorageDeleteData [00:57:57]OFD Sender: No OFD packet to send [00:57:58]ConnectInit Can't connect to host [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59: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:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]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:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:55]OFD Sender: No OFD packet to send [01:16:00]OFD Sender: No OFD packet to send [01:16:05]OFD Sender: No OFD packet to send [01:16:10]OFD Sender: No OFD packet to send [01:16:15]OFD Sender: No OFD packet to send [01:16:20]OFD Sender: No OFD packet to send [01:16:25]OFD Sender: No OFD packet to send [01:16:30]OFD Sender: No OFD packet to send [01:16:35]OFD Sender: No OFD packet to send [01:16:40]OFD Sender: No OFD packet to send [01:16:45]OFD Sender: No OFD packet to send [01:16:50]OFD Sender: No OFD packet to send [01:16:55]OFD Sender: No OFD packet to send [01:17:00]OFD Sender: No OFD packet to send [01:17:05]OFD Sender: No OFD packet to send [01:17:10]OFD Sender: No OFD packet to send [01:17:15]OFD Sender: No OFD packet to send [01:17:20]OFD Sender: No OFD packet to send [01:17:25]OFD Sender: No OFD packet to send [01:17:30]OFD Sender: No OFD packet to send [01:17:35]OFD Sender: No OFD packet to send [01:17:40]OFD Sender: No OFD packet to send [01:17:45]OFD Sender: No OFD packet to send [01:17:50]OFD Sender: No OFD packet to send [01:17:55]OFD Sender: No OFD packet to send [01:18:00]OFD Sender: No OFD packet to send [01:18:05]OFD Sender: No OFD packet to send [01:18:10]OFD Sender: No OFD packet to send [01:18:15]OFD Sender: No OFD packet to send [01:18:20]OFD Sender: No OFD packet to send [01:18:25]OFD Sender: No OFD packet to send [01:18:30]OFD Sender: No OFD packet to send [01:18:35]OFD Sender: No OFD packet to send [01:18:40]OFD Sender: No OFD packet to send [01:18:45]OFD Sender: No OFD packet to send [01:18:50]OFD Sender: No OFD packet to send [01:18:55]OFD Sender: No OFD packet to send [01:19:00]OFD Sender: No OFD packet to send [01:19:05]OFD Sender: No OFD packet to send [01:19:10]OFD Sender: No OFD packet to send [01:19:15]OFD Sender: No OFD packet to send [01:19:20]OFD Sender: No OFD packet to send [01:19:25]OFD Sender: No OFD packet to send [01:19:30]OFD Sender: No OFD packet to send [01:19:35]OFD Sender: No OFD packet to send [01:19:40]OFD Sender: No OFD packet to send [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:10]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:09]accept exits with 10 [01:28:09]New connection [01:28:09]New thread 3067170148 created [01:28:09]Thread 3067313508 joined [01:28:09]Waiting for new connection... [01:28:09] Sock 10.Parse request [01:28:09]Sock 10.Check first char [01:28:09]Sock 10.First char is OK [01:28:09]request: POST /json_proto HTTP/1.0 [01:28:09]Method: POST [01:28:09]URL: /json_proto [01:28:09]Method is POST - this is cgi request [01:28:09]url: /json_proto [01:28:09]query_string will be loaded in cgi processing [01:28:09]execute_cgi json_proto POST (null) [01:28:09]execute_cgi path=json_proto method=POST [01:28:09]POST find Content-Length [01:28:09]Host: 172.17.41.136:8080 [01:28:09]Content-Length: 623 [01:28:09]Content-Type: application/json [01:28:09] [01:28:09]POST finish read [01:28:09]Found Content-Length = 623 [01:28:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343946", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:28:09]execute_script... [01:28:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343946", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:28:09]POST & json_proto [01:28:09]process_json_proto [01:28:09]json parsed OK: [01:28:09]protocol is kg_v1.0 [01:28:09]action value=close_receipt [01:28:09]process_action close_receipt [01:28:09]cmd_close_receipt [01:28:09]MH_GetDate [01:28:09]Write to MH i2c: F0 00 00 BD 01 AD [01:28:09]Write i2c OK [01:28:09]MH_I2C_Read... [01:28:09]Read from MH i2c: F0 [01:28:09]MH_I2C_Read... [01:28:09]Read from MH i2c: F0 09 00 [01:28:09]MH_I2C_Read... [01:28:09]Read from MH i2c: F0 09 00 BD 01 00 2A C4 F0 66 1B D0 5A 64 A3 [01:28:09]GetLastDocTimeStamp 1727052984 [01:28:09]current date 1727054890 [01:28:09]FM_GetShiftState [01:28:09]SAM_PROTO_GetShiftState [01:28:09]wFMCommunicate request_size=4 [01:28:09]MH_SAM_APDU [01:28:09]CAPDU: 80 13 01 00 [01:28:09]Write to MH i2c: E2 08 00 BE 01 80 13 01 00 00 00 00 00 3C [01:28:09]Write i2c OK [01:28:09]MH_I2C_Read... [01:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:28:09]Read from MH i2c: E2 [01:28:09]MH_I2C_Read... [01:28:09]Read from MH i2c: E2 0E 00 [01:28:09]MH_I2C_Read... [01:28:09]Read from MH i2c: E2 0E 00 BE 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7D [01:28:09]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [01:28:09]wFMCommunicate OK [01:28:09]SAM_PROTO_GetShiftState done [01:28:09]FM_GetShiftState done [01:28:09]opened in 1727052070 [01:28:09]opened+sec_in_day 1727138470 [01:28:09]quantity*price = 14400 [01:28:09]sum+1 = 14401 [01:28:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 2 23.09.2024 01:28 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115519 ФПД: 60894666014587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T012810&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115519&fm=60894666014587&tin=02508201610067®Number=0000000000091831&sum=14400 0 [01:28:10]StoreToDocumentArchive [01:28:10]shift 472 fd 115519 [01:28:10]save to /storage/0472/doc_00115519 [01:28:10]save last doc name /storage/0472/doc_00115519 to /storage/kkm_last_doc_name [01:28:10]save OK [01:28:10]Clear old archive folders... [01:28:10]ProcessDocumentItem done err = 0, tmpTLVsize=275 [01:28:10]tlvbuf is 011D52D0 [01:28:10]SAM_PROTO_ClearQueue [01:28:10]wFMCommunicate request_size=4 [01:28:10]MH_SAM_APDU [01:28:10]CAPDU: 80 09 00 00 [01:28:10]Write to MH i2c: E2 08 00 CB 01 80 09 00 00 00 00 00 00 3E [01:28:10]Write i2c OK [01:28:10]MH_I2C_Read... [01:28:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:28:10]Read from MH i2c: E2 [01:28:10]MH_I2C_Read... [01:28:10]Read from MH i2c: E2 03 00 [01:28:10]MH_I2C_Read... [01:28:10]Read from MH i2c: E2 03 00 CB 01 00 90 00 40 [01:28:10]RAPDU: 90 00 [01:28:10]wFMCommunicate OK [01:28:10]SAM_PROTO_ClearQueue done [01:28:10]KKMCreateOFDPacket [01:28:10]OFDProtocolAddRootSTLVToBuf [01:28:10]FM_MakeSignedData [01:28:10]FM_MakeSignedData [01:28:10]SAM_PROTO_SignData [01:28:10]wFMCommunicate request_size=4 [01:28:10]MH_SAM_APDU [01:28:10]CAPDU: 80 0D 01 02 [01:28:10]Write to MH i2c: E2 08 00 CC 01 80 0D 01 02 00 00 00 00 46 [01:28:10]Write i2c OK [01:28:10]MH_I2C_Read... [01:28:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:28:11]Read from MH i2c: E2 [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: E2 03 00 [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: E2 03 00 CC 01 00 90 00 41 [01:28:11]RAPDU: 90 00 [01:28:11]wFMCommunicate OK [01:28:11]wFMCommunicate request_size=255 [01:28:11]MH_SAM_APDU [01:28:11]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 02 00 00 00 F4 03 04 00 2A C4 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 [01:28:11]Write to MH i2c: E2 02 01 CD 01 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 02 00 00 00 F4 03 04 00 2A C4 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 00 00 67 [01:28:11]Write i2c OK [01:28:11]MH_I2C_Read... [01:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:28:11]Read from MH i2c: E2 [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: E2 03 00 [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: E2 03 00 CD 01 00 90 00 42 [01:28:11]RAPDU: 90 00 [01:28:11]wFMCommunicate OK [01:28:11]wFMCommunicate request_size=34 [01:28:11]MH_SAM_APDU [01:28:11]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3F C3 01 00 35 04 06 00 37 62 24 EF BF 7B [01:28:11]Write to MH i2c: E2 25 00 CE 01 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3F C3 01 00 35 04 06 00 37 62 24 EF BF 7B 00 00 EE [01:28:11]Write i2c OK [01:28:11]MH_I2C_Read... [01:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:28:11]Read from MH i2c: E2 [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: E2 03 00 [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: E2 03 00 CE 01 00 90 00 43 [01:28:11]RAPDU: 90 00 [01:28:11]wFMCommunicate OK [01:28:11]wFMCommunicate request_size=4 [01:28:11]MH_SAM_APDU [01:28:11]CAPDU: 80 0D 03 02 [01:28:11]Write to MH i2c: E2 08 00 CF 01 80 0D 03 02 00 00 00 00 4B [01:28:11]Write i2c OK [01:28:11]MH_I2C_Read... [01:28:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:28:11]Read from MH i2c: E2 [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: E2 0B 00 [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: E2 0B 00 CF 01 00 F2 1F 54 3D 77 98 69 B9 90 00 1F [01:28:11]RAPDU: F2 1F 54 3D 77 98 69 B9 90 00 [01:28:11]wFMCommunicate OK [01:28:11]SAM_PROTO_SignData done [01:28:11]FM_MakeSignedData done [01:28:11]CreateOFDProtocolMessage [01:28:11]wFMCommunicate request_size=4 [01:28:11]MH_SAM_APDU [01:28:11]CAPDU: 80 11 00 00 [01:28:11]Write to MH i2c: E2 08 00 D0 01 80 11 00 00 00 00 00 00 4B [01:28:11]Write i2c OK [01:28:11]MH_I2C_Read... [01:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:28:11]Read from MH i2c: E2 [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: E2 17 00 [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: E2 17 00 D0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 99 [01:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:28:11]wFMCommunicate OK [01:28:11]CreateOFDProtocolMessage done [01:28:11]OFDSenderStorePacket 115519 [01:28:11]StoreOFDPacket docnum=115519 [01:28:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 9D 1C 1F 01 8D B5 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 02 00 00 00 F4 03 04 00 2A C4 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3F C3 01 00 35 04 06 00 37 62 24 EF BF 7B F2 1F 54 3D 77 98 69 B9 [01:28:11]CheckFolder [01:28:11]dirname=/storage/ofd_packets [01:28:11]CheckFolder done [01:28:11]ProducePacketName [01:28:11]name=ofd_packets/00115519 [01:28:11]NVStorageSaveData ofd_packets/00115519 [01:28:11]File name is /storage/ofd_packets/00115519 [01:28:11]Write 325 bytes [01:28:11]NVStorageSaveData done [01:28:11]OFDSenderStorePacket done [01:28:11]KKMCreateOFDPacket done [01:28:11]NVStorageSaveData kkm_last_timestamp [01:28:11]File name is /storage/kkm_last_timestamp [01:28:11]Write 4 bytes [01:28:11]NVStorageSaveData done [01:28:11]ExternCall_PrintAddStr [01:28:11]wPrintStart [01:28:11]Write to MH i2c: 01 00 00 D1 01 D2 [01:28:11]Write i2c OK [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: 01 [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: 01 07 00 [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 FF 0F E7 [01:28:11]RasterBufferAndPrint [01:28:11]line Счет N : (3)343946 [01:28:11]line ИНН: 02508201610067 [01:28:11]line Контрольно-Кассовый Чек [01:28:11]line ПРОДАЖА [01:28:11]line Товар: 48743587 [01:28:11]line Сигареты Winston XStyle Silver [01:28:11]line 1.000 * 144.00 [01:28:11]line = 144.00 [01:28:11]line НДС 12% НСП 1% [01:28:11]line > о реализуемом товаре [01:28:11]line ИТОГО: 144.00 [01:28:11]line НСП 1% : 1.27 [01:28:11]line НДС 12% : 15.29 [01:28:11]line Наличными: 144.00 [01:28:11]line Безнал.: 0.00 [01:28:11]line Место: АЗС № 90 "Партнер Нефть" [01:28:11]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [01:28:11]line СНО: Общий режим [01:28:11]line Чек 2 23.09.2024 01:28 [01:28:11]line Смена: 472 ФФД: 1.0 [01:28:11]line ЗНМ: 0300000120 [01:28:11]line РНМ: 0000000000091831 [01:28:11]line Версия ККМ: 001 [01:28:11]line ФМ: 0000000000871830 [01:28:11]line ФД: 115519 [01:28:11]line ФПД: 60894666014587 [01:28:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T012810&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115519&fm=60894666014587&tin=02508201610067®Number=0000000000091831&sum=14400 [01:28:11]line 0 [01:28:11]written 0, free lines is 4095 [01:28:11]OFD Sender: Processing packet 115519 [packets to send 481, broken 480] [01:28:11]ProducePacketName [01:28:11]name=ofd_packets/00115519 [01:28:11]OFD Sender: To server: pG, [01:28:11]CommunicateWithHost lk.salyk.kg:30040 [01:28:11]ConnectInit lk.salyk.kg [01:28:11]Connected sock=8 [01:28:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 9D 1C 1F 01 8D B5 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 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 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 02 00 00 00 F4 03 04 00 2A C4 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3F C3 01 00 35 04 06 00 37 62 24 EF BF 7B F2 1F 54 3D 77 98 69 B9 [01:28:11]Write to MH i2c: 01 00 00 F9 01 FA [01:28:11]Write i2c OK [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: 01 [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: 01 07 00 [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: 01 07 00 F9 01 00 00 00 00 00 5C 0C 69 [01:28:11]RasterBufferAndPrint [01:28:11]line [01:28:11]line [01:28:11]line [01:28:11]line [01:28:11]line [01:28:11]written 0, free lines is 3167 [01:28:11]MH_Cut [01:28:11]Write to MH i2c: D1 01 00 00 02 01 D4 [01:28:11]Write i2c OK [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: D1 [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: D1 01 00 [01:28:11]MH_I2C_Read... [01:28:11]Read from MH i2c: D1 01 00 00 02 00 D3 [01:28:11]Write to MH i2c: 01 00 00 01 02 03 [01:28:11]Write i2c OK [01:28:11]MH_I2C_Read... [01:28:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 43 61 47 00 C6 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3F C3 01 00 F4 03 04 00 6E 69 F0 66 B6 04 01 00 00 B2 13 84 D1 5E FF 69 1D [01:28:12]CommunicateWithHost err = 0 [01:28:12]CheckOFDResponse [01:28:12]1017 (14) - 77093643461234 [01:28:12]1041 (16) - 0000000000871830 [01:28:12]1040 (4) - 115519 [01:28:12]1012 (4) - 22.09.2024 19:01 [01:28:12]1206 (1) - 0 [01:28:12]OFD Sender: Remove packet 115519 [01:28:12]ProducePacketName [01:28:12]name=ofd_packets/00115519 [01:28:12]NVStorageDeleteData [01:28:12]OFD Sender: No OFD packet to send [01:28:13]*** Cut start [01:28:13]*** Partial cut [01:28:13]*** CUTSNS_PIN = 1 [01:28:13]*** CUTSNS_PIN = 0 [01:28:13]*** Brake cut motor [01:28:13]Read from MH i2c: 01 [01:28:13]MH_I2C_Read... [01:28:13]*** Stop cut motor [01:28:13]*** Cut end [01:28:13]Read from MH i2c: 01 07 00 [01:28:13]MH_I2C_Read... [01:28:13]Read from MH i2c: 01 07 00 01 02 00 00 00 00 00 FF 0F 18 [01:28:13]process_action close_receipt done [01:28:13]requested_data is exist [01:28:13]produce_requested_data [01:28:13]requested_item fm.sn is exist - process it [01:28:13]wFMCommunicate request_size=4 [01:28:13]MH_SAM_APDU [01:28:13]CAPDU: 80 11 00 00 [01:28:13]Write to MH i2c: E2 08 00 02 02 80 11 00 00 00 00 00 00 7E [01:28:13]Write i2c OK [01:28:13]MH_I2C_Read... [01:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:28:13]Read from MH i2c: E2 [01:28:13]MH_I2C_Read... [01:28:13]Read from MH i2c: E2 17 00 [01:28:13]MH_I2C_Read... [01:28:13]Read from MH i2c: E2 17 00 02 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CC [01:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:28:13]wFMCommunicate OK [01:28:13]requested_item fd.num is exist - process it [01:28:13]SAM_PROTO_GetFieldsCounters [01:28:13]wFMCommunicate request_size=4 [01:28:13]MH_SAM_APDU [01:28:13]CAPDU: 80 13 00 00 [01:28:13]Write to MH i2c: E2 08 00 03 02 80 13 00 00 00 00 00 00 81 [01:28:14]Write i2c OK [01:28:14]MH_I2C_Read... [01:28:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:28:14]Read from MH i2c: E2 [01:28:14]MH_I2C_Read... [01:28:14]Read from MH i2c: E2 62 00 [01:28:14]MH_I2C_Read... [01:28:14]Read from MH i2c: E2 62 00 03 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3F C3 01 00 0E 04 04 00 D8 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 7C [01:28: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3F C3 01 00 0E 04 04 00 D8 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 [01:28:14]wFMCommunicate OK [01:28:14]SAM_PROTO_GetFieldsCounters done [01:28:14]requested_item shift.num is exist - process it [01:28:14]requested_item shift.opened is exist - process it [01:28:14]req_shift_opened [01:28:14]FM_GetShiftState [01:28:14]SAM_PROTO_GetShiftState [01:28:14]wFMCommunicate request_size=4 [01:28:14]MH_SAM_APDU [01:28:14]CAPDU: 80 13 01 00 [01:28:14]Write to MH i2c: E2 08 00 04 02 80 13 01 00 00 00 00 00 83 [01:28:14]Write i2c OK [01:28:14]MH_I2C_Read... [01:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:28:14]Read from MH i2c: E2 [01:28:14]MH_I2C_Read... [01:28:14]Read from MH i2c: E2 0E 00 [01:28:14]MH_I2C_Read... [01:28:14]Read from MH i2c: E2 0E 00 04 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C4 [01:28:14]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [01:28:14]wFMCommunicate OK [01:28:14]SAM_PROTO_GetShiftState done [01:28:14]FM_GetShiftState done [01:28:14]req_shift_opened done [01:28:14]requested_item shift.open_date is exist - process it [01:28:14]req_shift_open_date [01:28:14]req_shift_open_date done [01:28:14]produce_requested_data done [01:28:14]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115519,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [01:28:14]process_action_free close_receipt [01:28:14]json_value_free [01:28:14]json_value_free done [01:28:14]process_json_proto returns [01:28:14]Send response to host [01:28:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115519,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [01:28:14]free response buf [01:28:14]execute_script done [01:28:14]execute_script returns [01:28:14]free content buf [01:28:14]Sock 10.Close socket [01:28:14]Sock 10.Thread stoped [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:08]OFD Sender: No OFD packet to send [01:30:13]OFD Sender: No OFD packet to send [01:30:18]OFD Sender: No OFD packet to send [01:30:20]accept exits with 9 [01:30:20]New connection [01:30:20]New thread 3067313508 created [01:30:20]Thread 3067170148 joined [01:30:20]Waiting for new connection... [01:30:20] Sock 9.Parse request [01:30:20]Sock 9.Check first char [01:30:20]Sock 9.First char is OK [01:30:20]request: POST /json_proto HTTP/1.0 [01:30:20]Method: POST [01:30:20]URL: /json_proto [01:30:20]Method is POST - this is cgi request [01:30:20]url: /json_proto [01:30:20]query_string will be loaded in cgi processing [01:30:20]execute_cgi json_proto POST (null) [01:30:20]execute_cgi path=json_proto method=POST [01:30:20]POST find Content-Length [01:30:20]Host: 172.17.41.136:8080 [01:30:20]Content-Length: 1234 [01:30:20]Content-Type: application/json [01:30:20] [01:30:20]POST finish read [01:30:20]Found Content-Length = 1234 [01:30:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343947", "tax_sys" : 0, "items" : [ { "code": "4700028325357", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441 0,5\u043B", "price" : 390.00, "quantity" : 1.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 639.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:30:20]execute_script... [01: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 : (3)343947", "tax_sys" : 0, "items" : [ { "code": "4700028325357", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441 0,5\u043B", "price" : 390.00, "quantity" : 1.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 639.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:30:20]POST & json_proto [01:30:20]process_json_proto [01:30:20]json parsed OK: [01:30:20]protocol is kg_v1.0 [01:30:20]action value=close_receipt [01:30:20]process_action close_receipt [01:30:20]cmd_close_receipt [01:30:20]MH_GetDate [01:30:20]Write to MH i2c: F0 00 00 05 02 F6 [01:30:20]Write i2c OK [01:30:20]MH_I2C_Read... [01:30:20]Read from MH i2c: F0 [01:30:20]MH_I2C_Read... [01:30:20]Read from MH i2c: F0 09 00 [01:30:20]MH_I2C_Read... [01:30:20]Read from MH i2c: F0 09 00 05 02 00 AC C4 F0 66 1B D0 5A 64 6E [01:30:20]GetLastDocTimeStamp 1727054890 [01:30:20]current date 1727055020 [01:30:20]FM_GetShiftState [01:30:20]SAM_PROTO_GetShiftState [01:30:20]wFMCommunicate request_size=4 [01:30:20]MH_SAM_APDU [01:30:20]CAPDU: 80 13 01 00 [01:30:20]Write to MH i2c: E2 08 00 06 02 80 13 01 00 00 00 00 00 85 [01:30:20]Write i2c OK [01:30:20]MH_I2C_Read... [01:30:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:20]Read from MH i2c: E2 [01:30:20]MH_I2C_Read... [01:30:20]Read from MH i2c: E2 0E 00 [01:30:20]MH_I2C_Read... [01:30:20]Read from MH i2c: E2 0E 00 06 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C6 [01:30:20]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [01:30:20]wFMCommunicate OK [01:30:20]SAM_PROTO_GetShiftState done [01:30:20]FM_GetShiftState done [01:30:20]opened in 1727052070 [01:30:20]opened+sec_in_day 1727138470 [01:30:20]quantity*price = 39000 [01:30:20]sum+1 = 39001 [01:30:20]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 639.00 НСП 1% : 5.65 НДС 12% : 67.86 Наличными: 639.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 3 23.09.2024 01:30 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115520 ФПД: 98609432861465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T013020&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115520&fm=98609432861465&tin=02508201610067®Number=0000000000091831&sum=63900 0 [01:30:21]StoreToDocumentArchive [01:30:21]shift 472 fd 115520 [01:30:21]save to /storage/0472/doc_00115520 [01:30:21]save last doc name /storage/0472/doc_00115520 to /storage/kkm_last_doc_name [01:30:21]save OK [01:30:21]Clear old archive folders... [01:30:21]ProcessDocumentItem done err = 0, tmpTLVsize=518 [01:30:21]tlvbuf is 011CB700 [01:30:21]SAM_PROTO_ClearQueue [01:30:21]wFMCommunicate request_size=4 [01:30:21]MH_SAM_APDU [01:30:21]CAPDU: 80 09 00 00 [01:30:21]Write to MH i2c: E2 08 00 13 02 80 09 00 00 00 00 00 00 87 [01:30:21]Write i2c OK [01:30:21]MH_I2C_Read... [01:30:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:30:21]Read from MH i2c: E2 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: E2 03 00 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: E2 03 00 13 02 00 90 00 89 [01:30:21]RAPDU: 90 00 [01:30:21]wFMCommunicate OK [01:30:21]SAM_PROTO_ClearQueue done [01:30:21]KKMCreateOFDPacket [01:30:21]OFDProtocolAddRootSTLVToBuf [01:30:21]FM_MakeSignedData [01:30:21]FM_MakeSignedData [01:30:21]SAM_PROTO_SignData [01:30:21]wFMCommunicate request_size=4 [01:30:21]MH_SAM_APDU [01:30:21]CAPDU: 80 0D 01 02 [01:30:21]Write to MH i2c: E2 08 00 14 02 80 0D 01 02 00 00 00 00 8F [01:30:21]Write i2c OK [01:30:21]MH_I2C_Read... [01:30:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:30:21]Read from MH i2c: E2 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: E2 03 00 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: E2 03 00 14 02 00 90 00 8A [01:30:21]RAPDU: 90 00 [01:30:21]wFMCommunicate OK [01:30:21]wFMCommunicate request_size=255 [01:30:21]MH_SAM_APDU [01:30:21]CAPDU: 80 0D 02 02 FA 03 00 06 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF [01:30:21]Write to MH i2c: E2 02 01 15 02 80 0D 02 02 FA 00 03 00 06 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF 00 00 96 [01:30:21]Write i2c OK [01:30:21]MH_I2C_Read... [01:30:22]Read from MH i2c: E2 [01:30:22]MH_I2C_Read... [01:30:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:22]Read from MH i2c: E2 03 00 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: E2 03 00 15 02 00 90 00 8B [01:30:22]RAPDU: 90 00 [01:30:22]wFMCommunicate OK [01:30:22]wFMCommunicate request_size=255 [01:30:22]MH_SAM_APDU [01:30:22]CAPDU: 80 0D 02 02 FA D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C F9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 1A 00 00 00 00 07 04 06 00 9C F9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 AC C4 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [01:30:22]Write to MH i2c: E2 02 01 16 02 80 0D 02 02 FA 00 D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C F9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 1A 00 00 00 00 07 04 06 00 9C F9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 AC C4 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 C0 [01:30:22]Write i2c OK [01:30:22]MH_I2C_Read... [01:30:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:22]Read from MH i2c: E2 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: E2 03 00 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: E2 03 00 16 02 00 90 00 8C [01:30:22]RAPDU: 90 00 [01:30:22]wFMCommunicate OK [01:30:22]wFMCommunicate request_size=27 [01:30:22]MH_SAM_APDU [01:30:22]CAPDU: 80 0D 02 02 16 31 38 33 30 10 04 04 00 40 C3 01 00 35 04 06 00 59 AF 4C 37 9B 19 [01:30:22]Write to MH i2c: E2 1E 00 17 02 80 0D 02 02 16 00 31 38 33 30 10 04 04 00 40 C3 01 00 35 04 06 00 59 AF 4C 37 9B 19 00 00 25 [01:30:22]Write i2c OK [01:30:22]MH_I2C_Read... [01:30:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:22]Read from MH i2c: E2 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: E2 03 00 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: E2 03 00 17 02 00 90 00 8D [01:30:22]RAPDU: 90 00 [01:30:22]wFMCommunicate OK [01:30:22]wFMCommunicate request_size=4 [01:30:22]MH_SAM_APDU [01:30:22]CAPDU: 80 0D 03 02 [01:30:22]Write to MH i2c: E2 08 00 18 02 80 0D 03 02 00 00 00 00 95 [01:30:22]Write i2c OK [01:30:22]MH_I2C_Read... [01:30:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:30:22]Read from MH i2c: E2 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: E2 0B 00 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: E2 0B 00 18 02 00 B7 E4 4C B8 FE BA 23 15 90 00 25 [01:30:22]RAPDU: B7 E4 4C B8 FE BA 23 15 90 00 [01:30:22]wFMCommunicate OK [01:30:22]SAM_PROTO_SignData done [01:30:22]FM_MakeSignedData done [01:30:22]CreateOFDProtocolMessage [01:30:22]wFMCommunicate request_size=4 [01:30:22]MH_SAM_APDU [01:30:22]CAPDU: 80 11 00 00 [01:30:22]Write to MH i2c: E2 08 00 19 02 80 11 00 00 00 00 00 00 95 [01:30:22]Write i2c OK [01:30:22]MH_I2C_Read... [01:30:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:22]Read from MH i2c: E2 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: E2 17 00 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: E2 17 00 19 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E3 [01:30:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:30:22]wFMCommunicate OK [01:30:22]CreateOFDProtocolMessage done [01:30:22]OFDSenderStorePacket 115520 [01:30:22]StoreOFDPacket docnum=115520 [01:30:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1A 02 00 00 04 3F 12 02 E8 88 5A 03 01 00 03 00 06 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C F9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 1A 00 00 00 00 07 04 06 00 9C F9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 AC C4 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 40 C3 01 00 35 04 06 00 59 AF 4C 37 9B 19 B7 E4 4C B8 FE BA 23 15 [01:30:22]CheckFolder [01:30:22]dirname=/storage/ofd_packets [01:30:22]CheckFolder done [01:30:22]ProducePacketName [01:30:22]name=ofd_packets/00115520 [01:30:22]NVStorageSaveData ofd_packets/00115520 [01:30:22]File name is /storage/ofd_packets/00115520 [01:30:22]Write 568 bytes [01:30:22]NVStorageSaveData done [01:30:22]OFDSenderStorePacket done [01:30:22]KKMCreateOFDPacket done [01:30:22]NVStorageSaveData kkm_last_timestamp [01:30:22]File name is /storage/kkm_last_timestamp [01:30:22]Write 4 bytes [01:30:22]NVStorageSaveData done [01:30:22]ExternCall_PrintAddStr [01:30:22]wPrintStart [01:30:22]Write to MH i2c: 01 00 00 1A 02 1C [01:30:22]Write i2c OK [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: 01 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: 01 07 00 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: 01 07 00 1A 02 00 00 00 00 00 FF 0F 31 [01:30:22]RasterBufferAndPrint [01:30:22]line Счет N : (3)343947 [01:30:22]line ИНН: 02508201610067 [01:30:22]line Контрольно-Кассовый Чек [01:30:22]line ПРОДАЖА [01:30:22]line Товар: 4700028325357 [01:30:22]line Водка Антивирус 0,5л [01:30:22]line 1.000 * 390.00 [01:30:22]line = 390.00 [01:30:22]line НДС 12% НСП 1% [01:30:22]line > о реализуемом товаре [01:30:22]line Товар: 48743570 [01:30:22]line Сигареты Winston XStyle Blue [01:30:22]line 1.000 * 144.00 [01:30:22]line = 144.00 [01:30:22]line НДС 12% НСП 1% [01:30:22]line > о реализуемом товаре [01:30:22]line Товар: 5449000027474 [01:30:22]line Напиток FuzeTea зел чай манго,ромашка 1л [01:30:22]line 1.000 * 105.00 [01:30:22]line = 105.00 [01:30:22]line НДС 12% НСП 1% [01:30:22]line > о реализуемом товаре [01:30:22]line ИТОГО: 639.00 [01:30:22]line НСП 1% : 5.65 [01:30:22]line НДС 12% : 67.86 [01:30:22]line Наличными: 639.00 [01:30:22]line Безнал.: 0.00 [01:30:22]line Место: АЗС № 90 "Партнер Нефть" [01:30:22]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [01:30:22]line СНО: Общий режим [01:30:22]line Чек 3 23.09.2024 01:30 [01:30:22]line Смена: 472 ФФД: 1.0 [01:30:22]line ЗНМ: 0300000120 [01:30:22]line РНМ: 0000000000091831 [01:30:22]line Версия ККМ: 001 [01:30:22]line ФМ: 0000000000871830 [01:30:22]line ФД: 115520 [01:30:22]line ФПД: 98609432861465 [01:30:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T013020&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115520&fm=98609432861465&tin=02508201610067®Number=0000000000091831&sum=63900 [01:30:22]line 0 [01:30:22]written 0, free lines is 4095 [01:30:22]OFD Sender: Processing packet 115520 [packets to send 481, broken 480] [01:30:22]ProducePacketName [01:30:22]name=ofd_packets/00115520 [01:30:22]OFD Sender: To server: pG, [01:30:22]CommunicateWithHost lk.salyk.kg:30040 [01:30:22]ConnectInit lk.salyk.kg [01:30:23]Connected sock=10 [01: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 31 38 33 30 1A 02 00 00 04 3F 12 02 E8 88 5A 03 01 00 03 00 06 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C F9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 1A 00 00 00 00 07 04 06 00 9C F9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 AC C4 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 40 C3 01 00 35 04 06 00 59 AF 4C 37 9B 19 B7 E4 4C B8 FE BA 23 15 [01:30:23]Write to MH i2c: 01 00 00 4E 02 50 [01:30:23]Write i2c OK [01:30:23]MH_I2C_Read... [01:30:23]Read from MH i2c: 01 [01:30:23]MH_I2C_Read... [01:30:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 13 F8 47 00 05 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 40 C3 01 00 F4 03 04 00 F1 69 F0 66 B6 04 01 00 00 8D 71 42 17 49 B7 D2 23 [01:30:23]CommunicateWithHost err = 0 [01:30:23]CheckOFDResponse [01:30:23]1017 (14) - 77093643461234 [01:30:23]1041 (16) - 0000000000871830 [01:30:23]1040 (4) - 115520 [01:30:23]1012 (4) - 22.09.2024 19:03 [01:30:23]1206 (1) - 0 [01:30:23]OFD Sender: Remove packet 115520 [01:30:23]ProducePacketName [01:30:23]name=ofd_packets/00115520 [01:30:23]NVStorageDeleteData [01:30:23]Read from MH i2c: 01 07 00 [01:30:23]MH_I2C_Read... [01:30:23]Read from MH i2c: 01 07 00 4E 02 00 00 00 00 00 69 0B CB [01:30:23]RasterBufferAndPrint [01:30:23]line [01:30:23]line [01:30:23]line [01:30:23]line [01:30:23]line [01:30:23]written 0, free lines is 2943 [01:30:23]MH_Cut [01:30:23]Write to MH i2c: D1 01 00 55 02 01 29 [01:30:23]Write i2c OK [01:30:23]MH_I2C_Read... [01:30:23]Read from MH i2c: D1 [01:30:23]MH_I2C_Read... [01:30:23]Read from MH i2c: D1 01 00 [01:30:23]MH_I2C_Read... [01:30:23]Read from MH i2c: D1 01 00 55 02 00 28 [01:30:23]Write to MH i2c: 01 00 00 56 02 58 [01:30:23]Write i2c OK [01:30:23]MH_I2C_Read... [01:30:23]OFD Sender: No OFD packet to send [01:30:25]*** Cut start [01:30:25]*** Partial cut [01:30:25]*** CUTSNS_PIN = 1 [01:30:25]*** CUTSNS_PIN = 0 [01:30:25]*** Brake cut motor [01:30:25]Read from MH i2c: 01 [01:30:25]MH_I2C_Read... [01:30:25]*** Stop cut motor [01:30:25]*** Cut end [01:30:25]Read from MH i2c: 01 07 00 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: 01 07 00 56 02 00 00 00 00 00 FF 0F 6D [01:30:25]process_action close_receipt done [01:30:25]requested_data is exist [01:30:25]produce_requested_data [01:30:25]requested_item fm.sn is exist - process it [01:30:25]wFMCommunicate request_size=4 [01:30:25]MH_SAM_APDU [01:30:25]CAPDU: 80 11 00 00 [01:30:25]Write to MH i2c: E2 08 00 57 02 80 11 00 00 00 00 00 00 D3 [01:30:25]Write i2c OK [01:30:25]MH_I2C_Read... [01:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:25]Read from MH i2c: E2 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 17 00 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 17 00 57 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 21 [01:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:30:25]wFMCommunicate OK [01:30:25]requested_item fd.num is exist - process it [01:30:25]SAM_PROTO_GetFieldsCounters [01:30:25]wFMCommunicate request_size=4 [01:30:25]MH_SAM_APDU [01:30:25]CAPDU: 80 13 00 00 [01:30:25]Write to MH i2c: E2 08 00 58 02 80 13 00 00 00 00 00 00 D6 [01:30:25]Write i2c OK [01:30:25]MH_I2C_Read... [01:30:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:30:25]Read from MH i2c: E2 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 62 00 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 62 00 58 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 40 C3 01 00 0E 04 04 00 D8 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 D5 [01: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 40 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:30:25]wFMCommunicate OK [01:30:25]SAM_PROTO_GetFieldsCounters done [01:30:25]requested_item shift.num is exist - process it [01:30:25]requested_item shift.opened is exist - process it [01:30:25]req_shift_opened [01:30:25]FM_GetShiftState [01:30:25]SAM_PROTO_GetShiftState [01:30:25]wFMCommunicate request_size=4 [01:30:25]MH_SAM_APDU [01:30:25]CAPDU: 80 13 01 00 [01:30:25]Write to MH i2c: E2 08 00 59 02 80 13 01 00 00 00 00 00 D8 [01:30:25]Write i2c OK [01:30:25]MH_I2C_Read... [01:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:25]Read from MH i2c: E2 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 0E 00 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 0E 00 59 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 19 [01:30:25]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [01:30:25]wFMCommunicate OK [01:30:25]SAM_PROTO_GetShiftState done [01:30:25]FM_GetShiftState done [01:30:25]req_shift_opened done [01:30:25]requested_item shift.open_date is exist - process it [01:30:25]req_shift_open_date [01:30:25]req_shift_open_date done [01:30:25]produce_requested_data done [01:30:25]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115520,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [01:30:25]process_action_free close_receipt [01:30:25]json_value_free [01:30:25]json_value_free done [01:30:25]process_json_proto returns [01:30:25]Send response to host [01:30:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115520,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [01:30:25]free response buf [01:30:25]execute_script done [01:30:25]execute_script returns [01:30:25]free content buf [01:30:25]Sock 9.Close socket [01:30:25]Sock 9.Thread stoped [01:30:28]OFD Sender: No OFD packet to send [01:30:33]OFD Sender: No OFD packet to send [01:30:38]OFD Sender: No OFD packet to send [01:30:40]accept exits with 8 [01:30:40]New connection [01:30:40]New thread 3067170148 created [01:30:40]Thread 3067313508 joined [01:30:40]Waiting for new connection... [01:30:40] Sock 8.Parse request [01:30:40]Sock 8.Check first char [01:30:40]Sock 8.First char is OK [01:30:40]request: POST /json_proto HTTP/1.0 [01:30:40]Method: POST [01:30:40]URL: /json_proto [01:30:40]Method is POST - this is cgi request [01:30:40]url: /json_proto [01:30:40]query_string will be loaded in cgi processing [01:30:40]execute_cgi json_proto POST (null) [01:30:40]execute_cgi path=json_proto method=POST [01:30:40]POST find Content-Length [01:30:40]Host: 172.17.41.136:8080 [01:30:40]Content-Length: 609 [01:30:40]Content-Type: application/json [01:30:40] [01:30:40]POST finish read [01:30:40]Found Content-Length = 609 [01:30:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343948", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:30:40]execute_script... [01:30:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343948", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:30:40]POST & json_proto [01:30:40]process_json_proto [01:30:40]json parsed OK: [01:30:40]protocol is kg_v1.0 [01:30:40]action value=close_receipt [01:30:40]process_action close_receipt [01:30:40]cmd_close_receipt [01:30:40]MH_GetDate [01:30:40]Write to MH i2c: F0 00 00 5A 02 4B [01:30:40]Write i2c OK [01:30:40]MH_I2C_Read... [01:30:40]Read from MH i2c: F0 [01:30:40]MH_I2C_Read... [01:30:40]Read from MH i2c: F0 09 00 [01:30:40]MH_I2C_Read... [01:30:40]Read from MH i2c: F0 09 00 5A 02 00 C1 C4 F0 66 1B D0 5A 64 D8 [01:30:40]GetLastDocTimeStamp 1727055020 [01:30:40]current date 1727055041 [01:30:40]FM_GetShiftState [01:30:40]SAM_PROTO_GetShiftState [01:30:40]wFMCommunicate request_size=4 [01:30:40]MH_SAM_APDU [01:30:40]CAPDU: 80 13 01 00 [01:30:40]Write to MH i2c: E2 08 00 5B 02 80 13 01 00 00 00 00 00 DA [01:30:40]Write i2c OK [01:30:40]MH_I2C_Read... [01:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:40]Read from MH i2c: E2 [01:30:40]MH_I2C_Read... [01:30:40]Read from MH i2c: E2 0E 00 [01:30:40]MH_I2C_Read... [01:30:40]Read from MH i2c: E2 0E 00 5B 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 1B [01:30:40]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [01:30:40]wFMCommunicate OK [01:30:40]SAM_PROTO_GetShiftState done [01:30:40]FM_GetShiftState done [01:30:40]opened in 1727052070 [01:30:40]opened+sec_in_day 1727138470 [01:30:40]quantity*price = 13400 [01:30:40]sum+1 = 13401 [01:30:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 4 23.09.2024 01:30 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115521 ФПД: 92777240783635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T013041&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115521&fm=92777240783635&tin=02508201610067®Number=0000000000091831&sum=13400 0 [01:30:41]StoreToDocumentArchive [01:30:41]shift 472 fd 115521 [01:30:41]save to /storage/0472/doc_00115521 [01:30:41]save last doc name /storage/0472/doc_00115521 to /storage/kkm_last_doc_name [01:30:41]save OK [01:30:41]Clear old archive folders... [01:30:41]ProcessDocumentItem done err = 0, tmpTLVsize=261 [01:30:41]tlvbuf is 011CED80 [01:30:41]SAM_PROTO_ClearQueue [01:30:41]wFMCommunicate request_size=4 [01:30:41]MH_SAM_APDU [01:30:41]CAPDU: 80 09 00 00 [01:30:41]Write to MH i2c: E2 08 00 68 02 80 09 00 00 00 00 00 00 DC [01:30:41]Write i2c OK [01:30:41]MH_I2C_Read... [01:30:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:30:41]Read from MH i2c: E2 [01:30:41]MH_I2C_Read... [01:30:41]Read from MH i2c: E2 03 00 [01:30:41]MH_I2C_Read... [01:30:41]Read from MH i2c: E2 03 00 68 02 00 90 00 DE [01:30:41]RAPDU: 90 00 [01:30:41]wFMCommunicate OK [01:30:41]SAM_PROTO_ClearQueue done [01:30:41]KKMCreateOFDPacket [01:30:41]OFDProtocolAddRootSTLVToBuf [01:30:41]FM_MakeSignedData [01:30:41]FM_MakeSignedData [01:30:41]SAM_PROTO_SignData [01:30:41]wFMCommunicate request_size=4 [01:30:41]MH_SAM_APDU [01:30:41]CAPDU: 80 0D 01 02 [01:30:41]Write to MH i2c: E2 08 00 69 02 80 0D 01 02 00 00 00 00 E4 [01:30:41]Write i2c OK [01:30:41]MH_I2C_Read... [01:30:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:30:41]Read from MH i2c: E2 [01:30:41]MH_I2C_Read... [01:30:41]Read from MH i2c: E2 03 00 [01:30:41]MH_I2C_Read... [01:30:41]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [01:30:41]RAPDU: 90 00 [01:30:41]wFMCommunicate OK [01:30:41]wFMCommunicate request_size=255 [01:30:41]MH_SAM_APDU [01:30:41]CAPDU: 80 0D 02 02 FA 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C1 C4 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 [01:30:41]Write to MH i2c: E2 02 01 6A 02 80 0D 02 02 FA 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C1 C4 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 00 B3 [01:30:41]Write i2c OK [01:30:41]MH_I2C_Read... [01:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:42]Read from MH i2c: E2 [01:30:42]MH_I2C_Read... [01:30:42]Read from MH i2c: E2 03 00 [01:30:42]MH_I2C_Read... [01:30:42]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [01:30:42]RAPDU: 90 00 [01:30:42]wFMCommunicate OK [01:30:42]wFMCommunicate request_size=20 [01:30:42]MH_SAM_APDU [01:30:42]CAPDU: 80 0D 02 02 0F 00 41 C3 01 00 35 04 06 00 54 61 62 7A EB 13 [01:30:42]Write to MH i2c: E2 17 00 6B 02 80 0D 02 02 0F 00 00 41 C3 01 00 35 04 06 00 54 61 62 7A EB 13 00 00 D8 [01:30:42]Write i2c OK [01:30:42]MH_I2C_Read... [01:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:42]Read from MH i2c: E2 [01:30:42]MH_I2C_Read... [01:30:42]Read from MH i2c: E2 03 00 [01:30:42]MH_I2C_Read... [01:30:42]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [01:30:42]RAPDU: 90 00 [01:30:42]wFMCommunicate OK [01:30:42]wFMCommunicate request_size=4 [01:30:42]MH_SAM_APDU [01:30:42]CAPDU: 80 0D 03 02 [01:30:42]Write to MH i2c: E2 08 00 6C 02 80 0D 03 02 00 00 00 00 E9 [01:30:42]Write i2c OK [01:30:42]MH_I2C_Read... [01:30:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:30:42]Read from MH i2c: E2 [01:30:42]MH_I2C_Read... [01:30:42]Read from MH i2c: E2 0B 00 [01:30:42]MH_I2C_Read... [01:30:42]Read from MH i2c: E2 0B 00 6C 02 00 03 F8 A4 D2 E0 81 4B C9 90 00 D0 [01:30:42]RAPDU: 03 F8 A4 D2 E0 81 4B C9 90 00 [01:30:42]wFMCommunicate OK [01:30:42]SAM_PROTO_SignData done [01:30:42]FM_MakeSignedData done [01:30:42]CreateOFDProtocolMessage [01:30:42]wFMCommunicate request_size=4 [01:30:42]MH_SAM_APDU [01:30:42]CAPDU: 80 11 00 00 [01:30:42]Write to MH i2c: E2 08 00 6D 02 80 11 00 00 00 00 00 00 E9 [01:30:42]Write i2c OK [01:30:42]MH_I2C_Read... [01:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:42]Read from MH i2c: E2 [01:30:42]MH_I2C_Read... [01:30:42]Read from MH i2c: E2 17 00 [01:30:42]MH_I2C_Read... [01:30:42]Read from MH i2c: E2 17 00 6D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 37 [01:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:30:42]wFMCommunicate OK [01:30:42]CreateOFDProtocolMessage done [01:30:42]OFDSenderStorePacket 115521 [01:30:42]StoreOFDPacket docnum=115521 [01:30:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 19 01 00 00 E2 D0 11 01 8D A8 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C1 C4 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 41 C3 01 00 35 04 06 00 54 61 62 7A EB 13 03 F8 A4 D2 E0 81 4B C9 [01:30:42]CheckFolder [01:30:42]dirname=/storage/ofd_packets [01:30:42]CheckFolder done [01:30:42]ProducePacketName [01:30:42]name=ofd_packets/00115521 [01:30:42]NVStorageSaveData ofd_packets/00115521 [01:30:42]File name is /storage/ofd_packets/00115521 [01:30:42]Write 311 bytes [01:30:42]NVStorageSaveData done [01:30:42]OFDSenderStorePacket done [01:30:42]KKMCreateOFDPacket done [01:30:42]NVStorageSaveData kkm_last_timestamp [01:30:42]File name is /storage/kkm_last_timestamp [01:30:42]Write 4 bytes [01:30:42]NVStorageSaveData done [01:30:42]ExternCall_PrintAddStr [01:30:42]wPrintStart [01:30:42]Write to MH i2c: 01 00 00 6E 02 70 [01:30:42]Write i2c OK [01:30:42]MH_I2C_Read... [01:30:42]Read from MH i2c: 01 [01:30:42]MH_I2C_Read... [01:30:42]Read from MH i2c: 01 07 00 [01:30:42]MH_I2C_Read... [01:30:42]Read from MH i2c: 01 07 00 6E 02 00 00 00 00 00 FF 0F 85 [01:30:42]RasterBufferAndPrint [01:30:42]line Счет N : (3)343948 [01:30:42]line ИНН: 02508201610067 [01:30:42]line Контрольно-Кассовый Чек [01:30:42]line ПРОДАЖА [01:30:42]line Товар: 48741156 [01:30:42]line Сигареты LD Blue [01:30:42]line 1.000 * 134.00 [01:30:42]line = 134.00 [01:30:42]line НДС 12% НСП 1% [01:30:42]line > о реализуемом товаре [01:30:42]line ИТОГО: 134.00 [01:30:42]line НСП 1% : 1.19 [01:30:42]line НДС 12% : 14.23 [01:30:42]line Наличными: 134.00 [01:30:42]line Безнал.: 0.00 [01:30:42]line Место: АЗС № 90 "Партнер Нефть" [01:30:42]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [01:30:42]line СНО: Общий режим [01:30:42]line Чек 4 23.09.2024 01:30 [01:30:42]line Смена: 472 ФФД: 1.0 [01:30:42]line ЗНМ: 0300000120 [01:30:42]line РНМ: 0000000000091831 [01:30:42]line Версия ККМ: 001 [01:30:42]line ФМ: 0000000000871830 [01:30:42]line ФД: 115521 [01:30:42]line ФПД: 92777240783635 [01:30:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T013041&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115521&fm=92777240783635&tin=02508201610067®Number=0000000000091831&sum=13400 [01:30:42]line 0 [01:30:42]written 0, free lines is 4095 [01:30:42]OFD Sender: Processing packet 115521 [packets to send 481, broken 480] [01:30:42]ProducePacketName [01:30:42]name=ofd_packets/00115521 [01:30:42]OFD Sender: To server: pG, [01:30:42]CommunicateWithHost lk.salyk.kg:30040 [01:30:42]ConnectInit lk.salyk.kg [01:30:42]Write to MH i2c: 01 00 00 95 02 97 [01:30:42]Write i2c OK [01:30:42]MH_I2C_Read... [01:30:42]Read from MH i2c: 01 [01:30:42]MH_I2C_Read... [01:30:42]Read from MH i2c: 01 07 00 [01:30:42]MH_I2C_Read... [01:30:42]Read from MH i2c: 01 07 00 95 02 00 00 00 00 00 87 0C 31 [01:30:42]RasterBufferAndPrint [01:30:42]line [01:30:42]line [01:30:42]line [01:30:42]line [01:30:42]line [01:30:42]written 0, free lines is 3211 [01:30:42]MH_Cut [01:30:42]Write to MH i2c: D1 01 00 9C 02 01 70 [01:30:42]Write i2c OK [01:30:42]MH_I2C_Read... [01:30:42]Read from MH i2c: D1 [01:30:42]MH_I2C_Read... [01:30:42]Read from MH i2c: D1 01 00 [01:30:42]MH_I2C_Read... [01:30:42]Read from MH i2c: D1 01 00 9C 02 00 6F [01:30:42]Write to MH i2c: 01 00 00 9D 02 9F [01:30:42]Write i2c OK [01:30:42]MH_I2C_Read... [01:30:44]*** Cut start [01:30:44]*** Partial cut [01:30:44]*** CUTSNS_PIN = 1 [01:30:44]*** CUTSNS_PIN = 0 [01:30:44]*** Brake cut motor [01:30:44]Read from MH i2c: 01 [01:30:44]MH_I2C_Read... [01:30:44]*** Stop cut motor [01:30:44]*** Cut end [01:30:44]Read from MH i2c: 01 07 00 [01:30:44]MH_I2C_Read... [01:30:44]Read from MH i2c: 01 07 00 9D 02 00 00 00 00 00 FF 0F B4 [01:30:44]process_action close_receipt done [01:30:44]requested_data is exist [01:30:44]produce_requested_data [01:30:44]requested_item fm.sn is exist - process it [01:30:44]wFMCommunicate request_size=4 [01:30:44]MH_SAM_APDU [01:30:44]CAPDU: 80 11 00 00 [01:30:44]Write to MH i2c: E2 08 00 9E 02 80 11 00 00 00 00 00 00 1A [01:30:44]Write i2c OK [01:30:44]MH_I2C_Read... [01:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:44]Read from MH i2c: E2 [01:30:44]MH_I2C_Read... [01:30:44]Read from MH i2c: E2 17 00 [01:30:44]MH_I2C_Read... [01:30:44]Read from MH i2c: E2 17 00 9E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 68 [01:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:30:44]wFMCommunicate OK [01:30:44]requested_item fd.num is exist - process it [01:30:44]SAM_PROTO_GetFieldsCounters [01:30:44]wFMCommunicate request_size=4 [01:30:44]MH_SAM_APDU [01:30:44]CAPDU: 80 13 00 00 [01:30:44]Write to MH i2c: E2 08 00 9F 02 80 13 00 00 00 00 00 00 1D [01:30:44]Write i2c OK [01:30:44]MH_I2C_Read... [01:30:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:30:44]Read from MH i2c: E2 [01:30:44]MH_I2C_Read... [01:30:44]Read from MH i2c: E2 62 00 [01:30:44]MH_I2C_Read... [01:30:44]Read from MH i2c: E2 62 00 9F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 41 C3 01 00 0E 04 04 00 D8 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 20 [01:30:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 41 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:30:44]wFMCommunicate OK [01:30:44]SAM_PROTO_GetFieldsCounters done [01:30:44]requested_item shift.num is exist - process it [01:30:44]requested_item shift.opened is exist - process it [01:30:44]req_shift_opened [01:30:44]FM_GetShiftState [01:30:44]SAM_PROTO_GetShiftState [01:30:44]wFMCommunicate request_size=4 [01:30:44]MH_SAM_APDU [01:30:44]CAPDU: 80 13 01 00 [01:30:44]Write to MH i2c: E2 08 00 A0 02 80 13 01 00 00 00 00 00 1F [01:30:44]Write i2c OK [01:30:44]MH_I2C_Read... [01:30:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:45]Read from MH i2c: E2 [01:30:45]MH_I2C_Read... [01:30:45]Read from MH i2c: E2 0E 00 [01:30:45]MH_I2C_Read... [01:30:45]Read from MH i2c: E2 0E 00 A0 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 60 [01:30:45]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [01:30:45]wFMCommunicate OK [01:30:45]SAM_PROTO_GetShiftState done [01:30:45]FM_GetShiftState done [01:30:45]req_shift_opened done [01:30:45]requested_item shift.open_date is exist - process it [01:30:45]req_shift_open_date [01:30:45]req_shift_open_date done [01:30:45]produce_requested_data done [01:30:45]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115521,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [01:30:45]process_action_free close_receipt [01:30:45]json_value_free [01:30:45]json_value_free done [01:30:45]process_json_proto returns [01:30:45]Send response to host [01:30:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115521,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [01:30:45]free response buf [01:30:45]execute_script done [01:30:45]execute_script returns [01:30:45]free content buf [01:30:45]Sock 8.Close socket [01:30:45]Sock 8.Thread stoped [01:32:52]ConnectInit Can't connect to host [01:32:52]CommunicateWithHost connect error [01:32:52]CommunicateWithHost err = -1 [01:32:52]OFD Sender: Server communicate error [01:32:57]OFD Sender: Processing packet 115521 [packets to send 481, broken 480] [01:32:57]ProducePacketName [01:32:57]name=ofd_packets/00115521 [01:32:57]OFD Sender: To server: pG, [01:32:57]CommunicateWithHost lk.salyk.kg:30040 [01:32:57]ConnectInit lk.salyk.kg [01:32:57]Connected sock=8 [01:32:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 19 01 00 00 E2 D0 11 01 8D A8 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C1 C4 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 41 C3 01 00 35 04 06 00 54 61 62 7A EB 13 03 F8 A4 D2 E0 81 4B C9 [01:32:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 8A DF 47 00 30 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 31 38 33 30 10 04 04 00 41 C3 01 00 F4 03 04 00 8C 6A F0 66 B6 04 01 00 00 1A DE B9 F4 CA E8 8F 21 [01:32:58]CommunicateWithHost err = 0 [01:32:58]CheckOFDResponse [01:32:58]1017 (14) - 77093643461234 [01:32:58]1041 (16) - 0000000000871830 [01:32:58]1040 (4) - 115521 [01:32:58]1012 (4) - 22.09.2024 19:05 [01:32:58]1206 (1) - 0 [01:32:58]OFD Sender: Remove packet 115521 [01:32:58]ProducePacketName [01:32:58]name=ofd_packets/00115521 [01:32:58]NVStorageDeleteData [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:59]OFD Sender: No OFD packet to send [01:35:04]OFD Sender: No OFD packet to send [01:35:09]OFD Sender: No OFD packet to send [01:35:14]OFD Sender: No OFD packet to send [01:35:19]OFD Sender: No OFD packet to send [01:35:24]OFD Sender: No OFD packet to send [01:35:29]OFD Sender: No OFD packet to send [01:35:34]OFD Sender: No OFD packet to send [01:35:39]OFD Sender: No OFD packet to send [01:35:44]OFD Sender: No OFD packet to send [01:35:49]OFD Sender: No OFD packet to send [01:35:54]OFD Sender: No OFD packet to send [01:35:59]OFD Sender: No OFD packet to send [01:36:04]OFD Sender: No OFD packet to send [01:36:09]OFD Sender: No OFD packet to send [01:36:14]OFD Sender: No OFD packet to send [01:36:19]OFD Sender: No OFD packet to send [01:36:24]OFD Sender: No OFD packet to send [01:36:29]OFD Sender: No OFD packet to send [01:36:34]OFD Sender: No OFD packet to send [01:36:39]OFD Sender: No OFD packet to send [01:36:44]OFD Sender: No OFD packet to send [01:36:49]OFD Sender: No OFD packet to send [01:36:54]OFD Sender: No OFD packet to send [01:36:59]OFD Sender: No OFD packet to send [01:37:04]OFD Sender: No OFD packet to send [01:37:09]OFD Sender: No OFD packet to send [01:37:14]OFD Sender: No OFD packet to send [01:37:19]OFD Sender: No OFD packet to send [01:37:24]OFD Sender: No OFD packet to send [01:37:29]OFD Sender: No OFD packet to send [01:37:34]OFD Sender: No OFD packet to send [01:37:39]OFD Sender: No OFD packet to send [01:37:44]OFD Sender: No OFD packet to send [01:37:49]OFD Sender: No OFD packet to send [01:37:54]OFD Sender: No OFD packet to send [01:37:59]OFD Sender: No OFD packet to send [01:38:04]OFD Sender: No OFD packet to send [01:38:09]OFD Sender: No OFD packet to send [01:38:14]OFD Sender: No OFD packet to send [01:38:19]OFD Sender: No OFD packet to send [01:38:24]OFD Sender: No OFD packet to send [01:38:29]OFD Sender: No OFD packet to send [01:38:34]OFD Sender: No OFD packet to send [01:38:39]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:52]accept exits with 9 [01:42:52]New connection [01:42:52]New thread 3067313508 created [01:42:52]Thread 3067170148 joined [01:42:52]Waiting for new connection... [01:42:52] Sock 9.Parse request [01:42:52]Sock 9.Check first char [01:42:52]Sock 9.First char is OK [01:42:52]request: POST /json_proto HTTP/1.0 [01:42:52]Method: POST [01:42:52]URL: /json_proto [01:42:52]Method is POST - this is cgi request [01:42:52]url: /json_proto [01:42:52]query_string will be loaded in cgi processing [01:42:52]execute_cgi json_proto POST (null) [01:42:52]execute_cgi path=json_proto method=POST [01:42:52]POST find Content-Length [01:42:52]Host: 172.17.41.136:8080 [01:42:52]Content-Length: 806 [01:42:52]Content-Type: application/json [01:42:52] [01:42:52]POST finish read [01:42:52]Found Content-Length = 806 [01:42:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343949", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:42:52]execute_script... [01:42:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343949", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:42:52]POST & json_proto [01:42:52]process_json_proto [01:42:52]json parsed OK: [01:42:52]protocol is kg_v1.0 [01:42:52]action value=close_receipt [01:42:52]process_action close_receipt [01:42:52]cmd_close_receipt [01:42:52]MH_GetDate [01:42:52]Write to MH i2c: F0 00 00 A1 02 92 [01:42:52]Write i2c OK [01:42:52]MH_I2C_Read... [01:42:52]Read from MH i2c: F0 [01:42:52]MH_I2C_Read... [01:42:52]Read from MH i2c: F0 09 00 [01:42:52]MH_I2C_Read... [01:42:52]Read from MH i2c: F0 09 00 A1 02 00 9D C7 F0 66 1B D0 5A 64 FE [01:42:52]GetLastDocTimeStamp 1727055041 [01:42:52]current date 1727055773 [01:42:52]FM_GetShiftState [01:42:52]SAM_PROTO_GetShiftState [01:42:52]wFMCommunicate request_size=4 [01:42:52]MH_SAM_APDU [01:42:52]CAPDU: 80 13 01 00 [01:42:52]Write to MH i2c: E2 08 00 A2 02 80 13 01 00 00 00 00 00 21 [01:42:52]Write i2c OK [01:42:52]MH_I2C_Read... [01:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:52]Read from MH i2c: E2 [01:42:52]MH_I2C_Read... [01:42:52]Read from MH i2c: E2 0E 00 [01:42:52]MH_I2C_Read... [01:42:52]Read from MH i2c: E2 0E 00 A2 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 62 [01:42:52]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [01:42:52]wFMCommunicate OK [01:42:52]SAM_PROTO_GetShiftState done [01:42:52]FM_GetShiftState done [01:42:52]opened in 1727052070 [01:42:52]opened+sec_in_day 1727138470 [01:42:52]quantity*price = 6000 [01:42:52]sum+1 = 6001 [01:42:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 0.00 Безнал.: 60.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 5 23.09.2024 01:42 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115522 ФПД: 149785989847712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T014253&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115522&fm=149785989847712&tin=02508201610067®Number=0000000000091831&sum=6000 0 [01:42:53]StoreToDocumentArchive [01:42:53]shift 472 fd 115522 [01:42:53]save to /storage/0472/doc_00115522 [01:42:53]save last doc name /storage/0472/doc_00115522 to /storage/kkm_last_doc_name [01:42:53]save OK [01:42:53]Clear old archive folders... [01:42:53]ProcessDocumentItem done err = 0, tmpTLVsize=276 [01:42:53]tlvbuf is 0121A600 [01:42:53]SAM_PROTO_ClearQueue [01:42:53]wFMCommunicate request_size=4 [01:42:53]MH_SAM_APDU [01:42:53]CAPDU: 80 09 00 00 [01:42:53]Write to MH i2c: E2 08 00 AF 02 80 09 00 00 00 00 00 00 23 [01:42:53]Write i2c OK [01:42:53]MH_I2C_Read... [01:42:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:42:54]Read from MH i2c: E2 [01:42:54]MH_I2C_Read... [01:42:54]Read from MH i2c: E2 03 00 [01:42:54]MH_I2C_Read... [01:42:54]Read from MH i2c: E2 03 00 AF 02 00 90 00 25 [01:42:54]RAPDU: 90 00 [01:42:54]wFMCommunicate OK [01:42:54]SAM_PROTO_ClearQueue done [01:42:54]KKMCreateOFDPacket [01:42:54]OFDProtocolAddRootSTLVToBuf [01:42:54]FM_MakeSignedData [01:42:54]FM_MakeSignedData [01:42:54]SAM_PROTO_SignData [01:42:54]wFMCommunicate request_size=4 [01:42:54]MH_SAM_APDU [01:42:54]CAPDU: 80 0D 01 02 [01:42:54]Write to MH i2c: E2 08 00 B0 02 80 0D 01 02 00 00 00 00 2B [01:42:54]Write i2c OK [01:42:54]MH_I2C_Read... [01:42:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:42:54]Read from MH i2c: E2 [01:42:54]MH_I2C_Read... [01:42:54]Read from MH i2c: E2 03 00 [01:42:54]MH_I2C_Read... [01:42:54]Read from MH i2c: E2 03 00 B0 02 00 90 00 26 [01:42:54]RAPDU: 90 00 [01:42:54]wFMCommunicate OK [01:42:54]wFMCommunicate request_size=255 [01:42:54]MH_SAM_APDU [01:42:54]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9D C7 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 [01:42:54]Write to MH i2c: E2 02 01 B1 02 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9D C7 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 00 00 FB [01:42:54]Write i2c OK [01:42:54]MH_I2C_Read... [01:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:54]Read from MH i2c: E2 [01:42:54]MH_I2C_Read... [01:42:54]Read from MH i2c: E2 03 00 [01:42:54]MH_I2C_Read... [01:42:54]Read from MH i2c: E2 03 00 B1 02 00 90 00 27 [01:42:54]RAPDU: 90 00 [01:42:54]wFMCommunicate OK [01:42:54]wFMCommunicate request_size=35 [01:42:54]MH_SAM_APDU [01:42:54]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 42 C3 01 00 35 04 06 00 88 3A C4 B7 9A A0 [01:42:54]Write to MH i2c: E2 26 00 B2 02 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 42 C3 01 00 35 04 06 00 88 3A C4 B7 9A A0 00 00 99 [01:42:54]Write i2c OK [01:42:54]MH_I2C_Read... [01:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:54]Read from MH i2c: E2 [01:42:54]MH_I2C_Read... [01:42:54]Read from MH i2c: E2 03 00 [01:42:54]MH_I2C_Read... [01:42:54]Read from MH i2c: E2 03 00 B2 02 00 90 00 28 [01:42:54]RAPDU: 90 00 [01:42:54]wFMCommunicate OK [01:42:54]wFMCommunicate request_size=4 [01:42:54]MH_SAM_APDU [01:42:54]CAPDU: 80 0D 03 02 [01:42:54]Write to MH i2c: E2 08 00 B3 02 80 0D 03 02 00 00 00 00 30 [01:42:54]Write i2c OK [01:42:54]MH_I2C_Read... [01:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:42:54]Read from MH i2c: E2 [01:42:54]MH_I2C_Read... [01:42:54]Read from MH i2c: E2 0B 00 [01:42:54]MH_I2C_Read... [01:42:54]Read from MH i2c: E2 0B 00 B3 02 00 8E A6 60 0A 9B CA 9C A0 90 00 70 [01:42:54]RAPDU: 8E A6 60 0A 9B CA 9C A0 90 00 [01:42:54]wFMCommunicate OK [01:42:54]SAM_PROTO_SignData done [01:42:54]FM_MakeSignedData done [01:42:54]CreateOFDProtocolMessage [01:42:54]wFMCommunicate request_size=4 [01:42:54]MH_SAM_APDU [01:42:54]CAPDU: 80 11 00 00 [01:42:54]Write to MH i2c: E2 08 00 B4 02 80 11 00 00 00 00 00 00 30 [01:42:54]Write i2c OK [01:42:54]MH_I2C_Read... [01:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:54]Read from MH i2c: E2 [01:42:54]MH_I2C_Read... [01:42:54]Read from MH i2c: E2 17 00 [01:42:54]MH_I2C_Read... [01:42:54]Read from MH i2c: E2 17 00 B4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7E [01:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:42:54]wFMCommunicate OK [01:42:54]CreateOFDProtocolMessage done [01:42:54]OFDSenderStorePacket 115522 [01:42:54]StoreOFDPacket docnum=115522 [01:42:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 D7 36 20 01 58 53 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9D C7 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 42 C3 01 00 35 04 06 00 88 3A C4 B7 9A A0 8E A6 60 0A 9B CA 9C A0 [01:42:54]CheckFolder [01:42:54]dirname=/storage/ofd_packets [01:42:54]CheckFolder done [01:42:54]ProducePacketName [01:42:54]name=ofd_packets/00115522 [01:42:54]NVStorageSaveData ofd_packets/00115522 [01:42:54]File name is /storage/ofd_packets/00115522 [01:42:54]Write 326 bytes [01:42:54]NVStorageSaveData done [01:42:54]OFDSenderStorePacket done [01:42:54]KKMCreateOFDPacket done [01:42:54]NVStorageSaveData kkm_last_timestamp [01:42:54]File name is /storage/kkm_last_timestamp [01:42:54]Write 4 bytes [01:42:54]NVStorageSaveData done [01:42:54]ExternCall_PrintAddStr [01:42:54]wPrintStart [01:42:54]Write to MH i2c: 01 00 00 B5 02 B7 [01:42:54]Write i2c OK [01:42:54]MH_I2C_Read... [01:42:54]Read from MH i2c: 01 [01:42:54]MH_I2C_Read... [01:42:54]OFD Sender: Processing packet 115522 [packets to send 481, broken 480] [01:42:54]ProducePacketName [01:42:54]name=ofd_packets/00115522 [01:42:54]OFD Sender: To server: pG, [01:42:54]CommunicateWithHost lk.salyk.kg:30040 [01:42:54]ConnectInit lk.salyk.kg [01:42:54]Read from MH i2c: 01 07 00 [01:42:54]MH_I2C_Read... [01:42:54]Read from MH i2c: 01 07 00 B5 02 00 00 00 00 00 FF 0F CC [01:42:54]RasterBufferAndPrint [01:42:54]line Счет N : (3)343949 [01:42:54]line ИНН: 02508201610067 [01:42:54]line Контрольно-Кассовый Чек [01:42:54]line ПРОДАЖА [01:42:54]line Товар: 4700000310043 [01:42:54]line Вода Жалалабат 27 1л [01:42:54]line 1.000 * 60.00 [01:42:54]line = 60.00 [01:42:54]line НДС 12% НСП 1% [01:42:54]line > о реализуемом товаре [01:42:54]line ИТОГО: 60.00 [01:42:54]line НСП 1% : 0.53 [01:42:54]line НДС 12% : 6.37 [01:42:54]line Наличными: 0.00 [01:42:54]line Безнал.: 60.00 [01:42:54]line Место: АЗС № 90 "Партнер Нефть" [01:42:54]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [01:42:54]line СНО: Общий режим [01:42:54]line Чек 5 23.09.2024 01:42 [01:42:54]line Смена: 472 ФФД: 1.0 [01:42:54]line ЗНМ: 0300000120 [01:42:54]line РНМ: 0000000000091831 [01:42:54]line Версия ККМ: 001 [01:42:54]line Платежная система: O! деньги [01:42:54]line ФМ: 0000000000871830 [01:42:54]line ФД: 115522 [01:42:54]line ФПД: 149785989847712 [01:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T014253&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115522&fm=149785989847712&tin=02508201610067®Number=0000000000091831&sum=6000 [01:42:54]line 0 [01:42:54]written 0, free lines is 4095 [01:42:54]Connected sock=10 [01:42:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 D7 36 20 01 58 53 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9D C7 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 42 C3 01 00 35 04 06 00 88 3A C4 B7 9A A0 8E A6 60 0A 9B CA 9C A0 [01:42:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 05 AF 47 00 B5 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 31 38 33 30 10 04 04 00 42 C3 01 00 F4 03 04 00 E1 6C F0 66 B6 04 01 00 00 65 EB 35 87 E3 F8 72 4D [01:42:55]CommunicateWithHost err = 0 [01:42:55]CheckOFDResponse [01:42:55]1017 (14) - 77093643461234 [01:42:55]1041 (16) - 0000000000871830 [01:42:55]1040 (4) - 115522 [01:42:55]1012 (4) - 22.09.2024 19:15 [01:42:55]1206 (1) - 0 [01:42:55]OFD Sender: Remove packet 115522 [01:42:55]ProducePacketName [01:42:55]name=ofd_packets/00115522 [01:42:55]NVStorageDeleteData [01:42:55]Write to MH i2c: 01 00 00 DE 02 E0 [01:42:55]Write i2c OK [01:42:55]MH_I2C_Read... [01:42:55]Read from MH i2c: 01 [01:42:55]MH_I2C_Read... [01:42:55]Read from MH i2c: 01 07 00 [01:42:55]MH_I2C_Read... [01:42:55]Read from MH i2c: 01 07 00 DE 02 00 00 00 00 00 4D 0C 40 [01:42:55]RasterBufferAndPrint [01:42:55]line [01:42:55]line [01:42:55]line [01:42:55]line [01:42:55]line [01:42:55]written 0, free lines is 3155 [01:42:55]MH_Cut [01:42:55]Write to MH i2c: D1 01 00 E5 02 01 B9 [01:42:55]Write i2c OK [01:42:55]MH_I2C_Read... [01:42:55]Read from MH i2c: D1 [01:42:55]MH_I2C_Read... [01:42:55]Read from MH i2c: D1 01 00 [01:42:55]MH_I2C_Read... [01:42:55]Read from MH i2c: D1 01 00 E5 02 00 B8 [01:42:55]Write to MH i2c: 01 00 00 E6 02 E8 [01:42:55]Write i2c OK [01:42:55]MH_I2C_Read... [01:42:55]OFD Sender: No OFD packet to send [01:42:56]*** Cut start [01:42:56]*** Partial cut [01:42:56]*** CUTSNS_PIN = 1 [01:42:56]*** CUTSNS_PIN = 0 [01:42:56]*** Brake cut motor [01:42:57]Read from MH i2c: 01 [01:42:57]MH_I2C_Read... [01:42:57]*** Stop cut motor [01:42:57]*** Cut end [01:42:57]Read from MH i2c: 01 07 00 [01:42:57]MH_I2C_Read... [01:42:57]Read from MH i2c: 01 07 00 E6 02 00 00 00 00 00 FF 0F FD [01:42:57]process_action close_receipt done [01:42:57]requested_data is exist [01:42:57]produce_requested_data [01:42:57]requested_item fm.sn is exist - process it [01:42:57]wFMCommunicate request_size=4 [01:42:57]MH_SAM_APDU [01:42:57]CAPDU: 80 11 00 00 [01:42:57]Write to MH i2c: E2 08 00 E7 02 80 11 00 00 00 00 00 00 63 [01:42:57]Write i2c OK [01:42:57]MH_I2C_Read... [01:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:57]Read from MH i2c: E2 [01:42:57]MH_I2C_Read... [01:42:57]Read from MH i2c: E2 17 00 [01:42:57]MH_I2C_Read... [01:42:57]Read from MH i2c: E2 17 00 E7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B1 [01:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:42:57]wFMCommunicate OK [01:42:57]requested_item fd.num is exist - process it [01:42:57]SAM_PROTO_GetFieldsCounters [01:42:57]wFMCommunicate request_size=4 [01:42:57]MH_SAM_APDU [01:42:57]CAPDU: 80 13 00 00 [01:42:57]Write to MH i2c: E2 08 00 E8 02 80 13 00 00 00 00 00 00 66 [01:42:57]Write i2c OK [01:42:57]MH_I2C_Read... [01:42:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:42:57]Read from MH i2c: E2 [01:42:57]MH_I2C_Read... [01:42:57]Read from MH i2c: E2 62 00 [01:42:57]MH_I2C_Read... [01:42:57]Read from MH i2c: E2 62 00 E8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 42 C3 01 00 0E 04 04 00 D8 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 6D [01:42:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 42 C3 01 00 0E 04 04 00 D8 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 [01:42:57]wFMCommunicate OK [01:42:57]SAM_PROTO_GetFieldsCounters done [01:42:57]requested_item shift.num is exist - process it [01:42:57]requested_item shift.opened is exist - process it [01:42:57]req_shift_opened [01:42:57]FM_GetShiftState [01:42:57]SAM_PROTO_GetShiftState [01:42:57]wFMCommunicate request_size=4 [01:42:57]MH_SAM_APDU [01:42:57]CAPDU: 80 13 01 00 [01:42:57]Write to MH i2c: E2 08 00 E9 02 80 13 01 00 00 00 00 00 68 [01:42:57]Write i2c OK [01:42:57]MH_I2C_Read... [01:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:57]Read from MH i2c: E2 [01:42:57]MH_I2C_Read... [01:42:57]Read from MH i2c: E2 0E 00 [01:42:57]MH_I2C_Read... [01:42:57]Read from MH i2c: E2 0E 00 E9 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A9 [01:42:57]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [01:42:57]wFMCommunicate OK [01:42:57]SAM_PROTO_GetShiftState done [01:42:57]FM_GetShiftState done [01:42:57]req_shift_opened done [01:42:57]requested_item shift.open_date is exist - process it [01:42:57]req_shift_open_date [01:42:57]req_shift_open_date done [01:42:57]produce_requested_data done [01:42:57]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115522,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [01:42:57]process_action_free close_receipt [01:42:57]json_value_free [01:42:57]json_value_free done [01:42:57]process_json_proto returns [01:42:57]Send response to host [01:42:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115522,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [01:42:57]free response buf [01:42:57]execute_script done [01:42:57]execute_script returns [01:42:57]free content buf [01:42:57]Sock 9.Close socket [01:42:57]Sock 9.Thread stoped [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45: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:02]accept exits with 8 [01:47:02]New connection [01:47:02]New thread 3067170148 created [01:47:02]Thread 3067313508 joined [01:47:02]Waiting for new connection... [01:47:02] Sock 8.Parse request [01:47:02]Sock 8.Check first char [01:47:02]Sock 8.First char is OK [01:47:02]request: POST /json_proto HTTP/1.0 [01:47:02]Method: POST [01:47:02]URL: /json_proto [01:47:02]Method is POST - this is cgi request [01:47:02]url: /json_proto [01:47:02]query_string will be loaded in cgi processing [01:47:02]execute_cgi json_proto POST (null) [01:47:02]execute_cgi path=json_proto method=POST [01:47:02]POST find Content-Length [01:47:02]Host: 172.17.41.136:8080 [01:47:02]Content-Length: 792 [01:47:02]Content-Type: application/json [01:47:02] [01:47:02]POST finish read [01:47:02]Found Content-Length = 792 [01:47:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 131.100, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A50055", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:47:02]execute_script... [01: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)24617336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 131.100, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A50055", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:47:02]POST & json_proto [01:47:02]process_json_proto [01:47:02]json parsed OK: [01:47:02]protocol is kg_v1.0 [01:47:02]action value=close_receipt [01:47:02]process_action close_receipt [01:47:02]cmd_close_receipt [01:47:02]MH_GetDate [01:47:02]Write to MH i2c: F0 00 00 EA 02 DB [01:47:02]Write i2c OK [01:47:02]MH_I2C_Read... [01:47:02]Read from MH i2c: F0 [01:47:02]MH_I2C_Read... [01:47:02]Read from MH i2c: F0 09 00 [01:47:02]MH_I2C_Read... [01:47:02]Read from MH i2c: F0 09 00 EA 02 00 96 C8 F0 66 1B D0 5A 64 41 [01:47:02]GetLastDocTimeStamp 1727055773 [01:47:02]current date 1727056022 [01:47:02]FM_GetShiftState [01:47:02]SAM_PROTO_GetShiftState [01:47:02]wFMCommunicate request_size=4 [01:47:02]MH_SAM_APDU [01:47:02]CAPDU: 80 13 01 00 [01:47:02]Write to MH i2c: E2 08 00 EB 02 80 13 01 00 00 00 00 00 6A [01:47:02]Write i2c OK [01:47:02]MH_I2C_Read... [01:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:47:02]Read from MH i2c: E2 [01:47:02]MH_I2C_Read... [01:47:02]Read from MH i2c: E2 0E 00 [01:47:02]MH_I2C_Read... [01:47:02]Read from MH i2c: E2 0E 00 EB 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 AB [01:47:02]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [01:47:02]wFMCommunicate OK [01:47:02]SAM_PROTO_GetShiftState done [01:47:02]FM_GetShiftState done [01:47:02]opened in 1727052070 [01:47:02]opened+sec_in_day 1727138470 [01:47:02]quantity*price = 0 [01:47:02]sum+1 = 1 [01:47:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 6 23.09.2024 01:47 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: Топливная Карта 50055 ФМ: 0000000000871830 ФД: 115523 ФПД: 135781441886327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T014702&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115523&fm=135781441886327&tin=02508201610067®Number=0000000000091831&sum=0 [01:47:03]StoreToDocumentArchive [01:47:03]shift 472 fd 115523 [01:47:03]save to /storage/0472/doc_00115523 [01:47:03]save last doc name /storage/0472/doc_00115523 to /storage/kkm_last_doc_name [01:47:03]save OK [01:47:03]Clear old archive folders... [01:47:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:47:03]tlvbuf is 01217D20 [01:47:03]SAM_PROTO_ClearQueue [01:47:03]wFMCommunicate request_size=4 [01:47:03]MH_SAM_APDU [01:47:03]CAPDU: 80 09 00 00 [01:47:03]Write to MH i2c: E2 08 00 F8 02 80 09 00 00 00 00 00 00 6C [01:47:03]Write i2c OK [01:47:03]MH_I2C_Read... [01:47:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:47:03]Read from MH i2c: E2 [01:47:03]MH_I2C_Read... [01:47:03]Read from MH i2c: E2 03 00 [01:47:03]MH_I2C_Read... [01:47:03]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [01:47:03]RAPDU: 90 00 [01:47:03]wFMCommunicate OK [01:47:03]SAM_PROTO_ClearQueue done [01:47:03]KKMCreateOFDPacket [01:47:03]OFDProtocolAddRootSTLVToBuf [01:47:03]FM_MakeSignedData [01:47:03]FM_MakeSignedData [01:47:03]SAM_PROTO_SignData [01:47:03]wFMCommunicate request_size=4 [01:47:03]MH_SAM_APDU [01:47:03]CAPDU: 80 0D 01 02 [01:47:03]Write to MH i2c: E2 08 00 F9 02 80 0D 01 02 00 00 00 00 74 [01:47:03]Write i2c OK [01:47:03]MH_I2C_Read... [01:47:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:47:03]Read from MH i2c: E2 [01:47:03]MH_I2C_Read... [01:47:03]Read from MH i2c: E2 03 00 [01:47:03]MH_I2C_Read... [01:47:03]Read from MH i2c: E2 03 00 F9 02 00 90 00 6F [01:47:03]RAPDU: 90 00 [01:47:03]wFMCommunicate OK [01:47:03]wFMCommunicate request_size=255 [01:47:03]MH_SAM_APDU [01:47:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 96 C8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 43 C3 01 00 35 04 06 00 7B 7E 14 9C [01:47:03]Write to MH i2c: E2 02 01 FA 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 96 C8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 43 C3 01 00 35 04 06 00 7B 7E 14 9C 00 00 2A [01:47:03]Write i2c OK [01:47:03]MH_I2C_Read... [01:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:47:03]Read from MH i2c: E2 [01:47:03]MH_I2C_Read... [01:47:03]Read from MH i2c: E2 03 00 [01:47:03]MH_I2C_Read... [01:47:03]Read from MH i2c: E2 03 00 FA 02 00 90 00 70 [01:47:03]RAPDU: 90 00 [01:47:03]wFMCommunicate OK [01:47:03]wFMCommunicate request_size=7 [01:47:03]MH_SAM_APDU [01:47:03]CAPDU: 80 0D 02 02 02 58 77 [01:47:03]Write to MH i2c: E2 0A 00 FB 02 80 0D 02 02 02 00 58 77 00 00 4A [01:47:03]Write i2c OK [01:47:03]MH_I2C_Read... [01:47:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:47:04]Read from MH i2c: E2 [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: E2 03 00 [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: E2 03 00 FB 02 00 90 00 71 [01:47:04]RAPDU: 90 00 [01:47:04]wFMCommunicate OK [01:47:04]wFMCommunicate request_size=4 [01:47:04]MH_SAM_APDU [01:47:04]CAPDU: 80 0D 03 02 [01:47:04]Write to MH i2c: E2 08 00 FC 02 80 0D 03 02 00 00 00 00 79 [01:47:04]Write i2c OK [01:47:04]MH_I2C_Read... [01:47:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:47:04]Read from MH i2c: E2 [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: E2 0B 00 [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: E2 0B 00 FC 02 00 5E 0B D0 46 66 5D 12 78 90 00 46 [01:47:04]RAPDU: 5E 0B D0 46 66 5D 12 78 90 00 [01:47:04]wFMCommunicate OK [01:47:04]SAM_PROTO_SignData done [01:47:04]FM_MakeSignedData done [01:47:04]CreateOFDProtocolMessage [01:47:04]wFMCommunicate request_size=4 [01:47:04]MH_SAM_APDU [01:47:04]CAPDU: 80 11 00 00 [01:47:04]Write to MH i2c: E2 08 00 FD 02 80 11 00 00 00 00 00 00 79 [01:47:04]Write i2c OK [01:47:04]MH_I2C_Read... [01:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:47:04]Read from MH i2c: E2 [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: E2 17 00 [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: E2 17 00 FD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C7 [01:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:47:04]wFMCommunicate OK [01:47:04]CreateOFDProtocolMessage done [01:47:04]OFDSenderStorePacket 115523 [01:47:04]StoreOFDPacket docnum=115523 [01:47:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 6F DB 04 01 C2 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 96 C8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 43 C3 01 00 35 04 06 00 7B 7E 14 9C 58 77 5E 0B D0 46 66 5D 12 78 [01:47:04]CheckFolder [01:47:04]dirname=/storage/ofd_packets [01:47:04]CheckFolder done [01:47:04]ProducePacketName [01:47:04]name=ofd_packets/00115523 [01:47:04]NVStorageSaveData ofd_packets/00115523 [01:47:04]File name is /storage/ofd_packets/00115523 [01:47:04]Write 298 bytes [01:47:04]NVStorageSaveData done [01:47:04]OFDSenderStorePacket done [01:47:04]KKMCreateOFDPacket done [01:47:04]NVStorageSaveData kkm_last_timestamp [01:47:04]File name is /storage/kkm_last_timestamp [01:47:04]Write 4 bytes [01:47:04]NVStorageSaveData done [01:47:04]ExternCall_PrintAddStr [01:47:04]wPrintStart [01:47:04]Write to MH i2c: 01 00 00 FE 02 00 [01:47:04]Write i2c OK [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: 01 [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: 01 07 00 [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 FF 0F 15 [01:47:04]RasterBufferAndPrint [01:47:04]line Счет N : (1)24617336 [01:47:04]line ИНН: 02508201610067 [01:47:04]line Контрольно-Кассовый Чек [01:47:04]line ПРОДАЖА [01:47:04]line ТРК (МРК, ГНК) : 65 [01:47:04]line Товар: 2710194210 [01:47:04]line ДТ-К-5 [01:47:04]line 131.100 * 0.00 [01:47:04]line = 0.00 [01:47:04]line НДС 12% НСП 1% [01:47:04]line > о реализуемом товаре [01:47:04]line ИТОГО: 0.00 [01:47:04]line НСП 1% : 0.00 [01:47:04]line НДС 12% : 0.00 [01:47:04]line Наличными: 0.00 [01:47:04]line Безнал.: 0.00 [01:47:04]line Место: АЗС № 90 "Партнер Нефть" [01:47:04]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [01:47:04]line СНО: Общий режим [01:47:04]line Чек 6 23.09.2024 01:47 [01:47:04]line Смена: 472 ФФД: 1.0 [01:47:04]line ЗНМ: 0300000120 [01:47:04]line РНМ: 0000000000091831 [01:47:04]line Версия ККМ: 001 [01:47:04]line Талоны: Топливная Карта [01:47:04]line 50055 [01:47:04]line ФМ: 0000000000871830 [01:47:04]line ФД: 115523 [01:47:04]line ФПД: 135781441886327 [01:47:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T014702&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115523&fm=135781441886327&tin=02508201610067®Number=0000000000091831&sum=0 [01:47:04]written 0, free lines is 4095 [01:47:04]OFD Sender: Processing packet 115523 [packets to send 481, broken 480] [01:47:04]ProducePacketName [01:47:04]name=ofd_packets/00115523 [01:47:04]OFD Sender: To server: pG, [01:47:04]CommunicateWithHost lk.salyk.kg:30040 [01:47:04]ConnectInit lk.salyk.kg [01:47:04]Connected sock=9 [01: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 31 38 33 30 0C 01 00 00 6F DB 04 01 C2 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 96 C8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 43 C3 01 00 35 04 06 00 7B 7E 14 9C 58 77 5E 0B D0 46 66 5D 12 78 [01:47:04]Write to MH i2c: 01 00 00 27 03 2A [01:47:04]Write i2c OK [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: 01 [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: 01 07 00 [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: 01 07 00 27 03 00 00 00 00 00 66 0C A3 [01:47:04]RasterBufferAndPrint [01:47:04]line [01:47:04]line [01:47:04]line [01:47:04]line [01:47:04]line [01:47:04]written 0, free lines is 3178 [01:47:04]MH_Cut [01:47:04]Write to MH i2c: D1 01 00 2E 03 01 03 [01:47:04]Write i2c OK [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: D1 [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: D1 01 00 [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: D1 01 00 2E 03 00 02 [01:47:04]Write to MH i2c: 01 00 00 2F 03 32 [01:47:04]Write i2c OK [01:47:04]MH_I2C_Read... [01:47:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 20 23 47 00 8D 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 31 38 33 30 10 04 04 00 43 C3 01 00 F4 03 04 00 DA 6D F0 66 B6 04 01 00 00 1D 3F 08 35 3A 17 BE 14 [01:47:04]CommunicateWithHost err = 0 [01:47:04]CheckOFDResponse [01:47:04]1017 (14) - 77093643461234 [01:47:04]1041 (16) - 0000000000871830 [01:47:04]1040 (4) - 115523 [01:47:04]1012 (4) - 22.09.2024 19:19 [01:47:04]1206 (1) - 0 [01:47:04]OFD Sender: Remove packet 115523 [01:47:04]ProducePacketName [01:47:04]name=ofd_packets/00115523 [01:47:04]NVStorageDeleteData [01:47:05]OFD Sender: No OFD packet to send [01:47:05]*** Cut start [01:47:05]*** Partial cut [01:47:05]*** CUTSNS_PIN = 1 [01:47:05]*** CUTSNS_PIN = 0 [01:47:06]*** Brake cut motor [01:47:06]Read from MH i2c: 01 [01:47:06]MH_I2C_Read... [01:47:06]*** Stop cut motor [01:47:06]*** Cut end [01:47:06]Read from MH i2c: 01 07 00 [01:47:06]MH_I2C_Read... [01:47:06]Read from MH i2c: 01 07 00 2F 03 00 00 00 00 00 FF 0F 47 [01:47:06]process_action close_receipt done [01:47:06]requested_data is exist [01:47:06]produce_requested_data [01:47:06]requested_item fm.sn is exist - process it [01:47:06]wFMCommunicate request_size=4 [01:47:06]MH_SAM_APDU [01:47:06]CAPDU: 80 11 00 00 [01:47:06]Write to MH i2c: E2 08 00 30 03 80 11 00 00 00 00 00 00 AD [01:47:06]Write i2c OK [01:47:06]MH_I2C_Read... [01:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:47:06]Read from MH i2c: E2 [01:47:06]MH_I2C_Read... [01:47:06]Read from MH i2c: E2 17 00 [01:47:06]MH_I2C_Read... [01:47:06]Read from MH i2c: E2 17 00 30 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FB [01:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:47:06]wFMCommunicate OK [01:47:06]requested_item fd.num is exist - process it [01:47:06]SAM_PROTO_GetFieldsCounters [01:47:06]wFMCommunicate request_size=4 [01:47:06]MH_SAM_APDU [01:47:06]CAPDU: 80 13 00 00 [01:47:06]Write to MH i2c: E2 08 00 31 03 80 13 00 00 00 00 00 00 B0 [01:47:06]Write i2c OK [01:47:06]MH_I2C_Read... [01:47:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:47:06]Read from MH i2c: E2 [01:47:06]MH_I2C_Read... [01:47:06]Read from MH i2c: E2 62 00 [01:47:06]MH_I2C_Read... [01:47:06]Read from MH i2c: E2 62 00 31 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 43 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [01: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 43 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:47:06]wFMCommunicate OK [01:47:06]SAM_PROTO_GetFieldsCounters done [01:47:06]requested_item shift.num is exist - process it [01:47:06]requested_item shift.opened is exist - process it [01:47:06]req_shift_opened [01:47:06]FM_GetShiftState [01:47:06]SAM_PROTO_GetShiftState [01:47:06]wFMCommunicate request_size=4 [01:47:06]MH_SAM_APDU [01:47:06]CAPDU: 80 13 01 00 [01:47:06]Write to MH i2c: E2 08 00 32 03 80 13 01 00 00 00 00 00 B2 [01:47:06]Write i2c OK [01:47:06]MH_I2C_Read... [01:47:06]Read from MH i2c: E2 [01:47:06]MH_I2C_Read... [01:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:47:06]Read from MH i2c: E2 0E 00 [01:47:06]MH_I2C_Read... [01:47:06]Read from MH i2c: E2 0E 00 32 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 F3 [01:47:06]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [01:47:06]wFMCommunicate OK [01:47:06]SAM_PROTO_GetShiftState done [01:47:06]FM_GetShiftState done [01:47:06]req_shift_opened done [01:47:06]requested_item shift.open_date is exist - process it [01:47:06]req_shift_open_date [01:47:06]req_shift_open_date done [01:47:06]produce_requested_data done [01:47:06]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115523,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [01:47:06]process_action_free close_receipt [01:47:06]json_value_free [01:47:06]json_value_free done [01:47:06]process_json_proto returns [01:47:06]Send response to host [01:47:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115523,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [01:47:06]free response buf [01:47:06]execute_script done [01:47:06]execute_script returns [01:47:06]free content buf [01:47:06]Sock 8.Close socket [01:47:06]Sock 8.Thread stoped [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:45]OFD Sender: No OFD packet to send [01:48:50]OFD Sender: No OFD packet to send [01:48:55]OFD Sender: No OFD packet to send [01:49:00]OFD Sender: No OFD packet to send [01:49:05]OFD Sender: No OFD packet to send [01:49:10]OFD Sender: No OFD packet to send [01:49:15]OFD Sender: No OFD packet to send [01:49:20]OFD Sender: No OFD packet to send [01:49:25]OFD Sender: No OFD packet to send [01:49:30]OFD Sender: No OFD packet to send [01:49:35]OFD Sender: No OFD packet to send [01:49:40]OFD Sender: No OFD packet to send [01:49:45]OFD Sender: No OFD packet to send [01:49:50]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:20]OFD Sender: No OFD packet to send [01:50:25]OFD Sender: No OFD packet to send [01:50:30]OFD Sender: No OFD packet to send [01:50:35]OFD Sender: No OFD packet to send [01:50:40]OFD Sender: No OFD packet to send [01:50:45]OFD Sender: No OFD packet to send [01:50:50]OFD Sender: No OFD packet to send [01:50:55]OFD Sender: No OFD packet to send [01:51:00]OFD Sender: No OFD packet to send [01:51: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:02]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:49]accept exits with 10 [02:02:49]New connection [02:02:49]New thread 3067313508 created [02:02:49]Thread 3067170148 joined [02:02:49]Waiting for new connection... [02:02:49] Sock 10.Parse request [02:02:49]Sock 10.Check first char [02:02:49]Sock 10.First char is OK [02:02:49]request: POST /json_proto HTTP/1.0 [02:02:49]Method: POST [02:02:49]URL: /json_proto [02:02:49]Method is POST - this is cgi request [02:02:49]url: /json_proto [02:02:49]query_string will be loaded in cgi processing [02:02:49]execute_cgi json_proto POST (null) [02:02:49]execute_cgi path=json_proto method=POST [02:02:49]POST find Content-Length [02:02:49]Host: 172.17.41.136:8080 [02:02:49]Content-Length: 215 [02:02:49]Content-Type: application/json [02:02:49] [02:02:49]POST finish read [02:02:49]Found Content-Length = 215 [02:02:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:02:49]execute_script... [02:02:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:02:49]POST & json_proto [02:02:49]process_json_proto [02:02:49]json parsed OK: [02:02:49]protocol is kg_v1.0 [02:02:49]action value=get_value [02:02:49]process_action get_value [02:02:49]cmd_get_value [02:02:49]process_action get_value done [02:02:49]requested_data is exist [02:02:49]produce_requested_data [02:02:49]requested_item kkm.sn is exist - process it [02:02:49]requested_item kkm.ver is exist - process it [02:02:49]requested_item fm.sn is exist - process it [02:02:49]wFMCommunicate request_size=4 [02:02:49]MH_SAM_APDU [02:02:49]CAPDU: 80 11 00 00 [02:02:49]Write to MH i2c: E2 08 00 33 03 80 11 00 00 00 00 00 00 B0 [02:02:49]Write i2c OK [02:02:49]MH_I2C_Read... [02:02:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:02:49]Read from MH i2c: E2 [02:02:49]MH_I2C_Read... [02:02:49]Read from MH i2c: E2 17 00 [02:02:49]MH_I2C_Read... [02:02:49]Read from MH i2c: E2 17 00 33 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FE [02:02:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:02:49]wFMCommunicate OK [02:02:49]requested_item fd.num is exist - process it [02:02:49]SAM_PROTO_GetFieldsCounters [02:02:49]wFMCommunicate request_size=4 [02:02:49]MH_SAM_APDU [02:02:49]CAPDU: 80 13 00 00 [02:02:49]Write to MH i2c: E2 08 00 34 03 80 13 00 00 00 00 00 00 B3 [02:02:49]Write i2c OK [02:02:49]MH_I2C_Read... [02:02:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:02:49]Read from MH i2c: E2 [02:02:49]MH_I2C_Read... [02:02:49]Read from MH i2c: E2 62 00 [02:02:49]MH_I2C_Read... [02:02:49]Read from MH i2c: E2 62 00 34 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 43 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [02:02:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 43 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:02:49]wFMCommunicate OK [02:02:49]SAM_PROTO_GetFieldsCounters done [02:02:49]requested_item shift.num is exist - process it [02:02:49]requested_item shift.opened is exist - process it [02:02:49]req_shift_opened [02:02:49]FM_GetShiftState [02:02:49]SAM_PROTO_GetShiftState [02:02:49]wFMCommunicate request_size=4 [02:02:49]MH_SAM_APDU [02:02:49]CAPDU: 80 13 01 00 [02:02:49]Write to MH i2c: E2 08 00 35 03 80 13 01 00 00 00 00 00 B5 [02:02:49]Write i2c OK [02:02:49]MH_I2C_Read... [02:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:02:49]Read from MH i2c: E2 [02:02:49]MH_I2C_Read... [02:02:49]Read from MH i2c: E2 0E 00 [02:02:49]MH_I2C_Read... [02:02:49]Read from MH i2c: E2 0E 00 35 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 F6 [02:02:49]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [02:02:49]wFMCommunicate OK [02:02:49]SAM_PROTO_GetShiftState done [02:02:49]FM_GetShiftState done [02:02:49]req_shift_opened done [02:02:49]requested_item shift.open_date is exist - process it [02:02:49]req_shift_open_date [02:02:49]req_shift_open_date done [02:02:49]produce_requested_data done [02:02:49]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115523,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [02:02:49]process_action_free get_value [02:02:49]json_value_free [02:02:49]json_value_free done [02:02:49]process_json_proto returns [02:02:49]Send response to host [02:02:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115523,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [02:02:49]free response buf [02:02:49]execute_script done [02:02:49]execute_script returns [02:02:49]free content buf [02:02:49]Sock 10.Close socket [02:02:49]Sock 10.Thread stoped [02:02:49]accept exits with 8 [02:02:49]New connection [02:02:49]New thread 3067170148 created [02:02:49]Thread 3067313508 joined [02:02:49]Waiting for new connection... [02:02:49] Sock 8.Parse request [02:02:49]Sock 8.Check first char [02:02:49]Sock 8.First char is OK [02:02:49]request: POST /json_proto HTTP/1.0 [02:02:49]Method: POST [02:02:49]URL: /json_proto [02:02:49]Method is POST - this is cgi request [02:02:49]url: /json_proto [02:02:49]query_string will be loaded in cgi processing [02:02:49]execute_cgi json_proto POST (null) [02:02:49]execute_cgi path=json_proto method=POST [02:02:49]POST find Content-Length [02:02:49]Host: 172.17.41.136:8080 [02:02:49]Content-Length: 331 [02:02:49]Content-Type: application/json [02:02:49] [02:02:49]POST finish read [02:02:49]Found Content-Length = 331 [02:02:49]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" ] } } [02:02:49]execute_script... [02:02:50]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" ] } } [02:02:50]POST & json_proto [02:02:50]process_json_proto [02:02:50]json parsed OK: [02:02:50]protocol is kg_v1.0 [02:02:50]action value=get_value [02:02:50]process_action get_value [02:02:50]cmd_get_value [02:02:50]process_action get_value done [02:02:50]requested_data is exist [02:02:50]produce_requested_data [02:02:50]requested_item fm.sale.total is exist - process it [02:02:50]SAM_PROTO_GetFMData [02:02:50]wFMCommunicate request_size=4 [02:02:50]MH_SAM_APDU [02:02:50]CAPDU: 80 13 03 00 [02:02:50]Write to MH i2c: E2 08 00 36 03 80 13 03 00 00 00 00 00 B8 [02:02:50]Write i2c OK [02:02:50]MH_I2C_Read... [02:02:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [02:02:50]Read from MH i2c: E2 [02:02:50]MH_I2C_Read... [02:02:50]Read from MH i2c: E2 FD 00 [02:02:50]MH_I2C_Read... [02:02:50]Read from MH i2c: E2 FD 00 36 03 00 C5 04 85 04 C1 04 6E 04 04 00 92 BF 01 00 69 04 A3 00 6F 04 04 00 15 BE 01 00 B1 04 05 00 71 B3 EC 80 01 70 04 05 00 8D ED 47 47 01 72 04 04 00 E4 C5 A4 39 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 B5 61 E2 28 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 75 FC 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 E4 [02:02:50]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 92 BF 01 00 69 04 A3 00 6F 04 04 00 15 BE 01 00 B1 04 05 00 71 B3 EC 80 01 70 04 05 00 8D ED 47 47 01 72 04 04 00 E4 C5 A4 39 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 B5 61 E2 28 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 75 FC 67 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 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 04 41 AD 01 EF 03 09 90 00 [02:02:50]wFMCommunicate OK [02:02:50]wFMCommunicate request_size=4 [02:02:50]MH_SAM_APDU [02:02:50]CAPDU: 80 17 00 00 [02:02:50]Write to MH i2c: E2 08 00 37 03 80 17 00 00 00 00 00 00 BA [02:02:50]Write i2c OK [02:02:50]MH_I2C_Read... [02:02:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:02:50]Read from MH i2c: E2 [02:02:50]MH_I2C_Read... [02:02:50]Read from MH i2c: E2 FD 00 [02:02:50]MH_I2C_Read... [02:02:50]Read from MH i2c: E2 FD 00 37 03 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A7 [02:02:50]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [02:02:50]wFMCommunicate OK [02:02:50]wFMCommunicate request_size=4 [02:02:50]MH_SAM_APDU [02:02:50]CAPDU: 80 17 00 00 [02:02:50]Write to MH i2c: E2 08 00 38 03 80 17 00 00 00 00 00 00 BB [02:02:50]Write i2c OK [02:02:50]MH_I2C_Read... [02:02:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:02:50]Read from MH i2c: E2 [02:02:50]MH_I2C_Read... [02:02:50]Read from MH i2c: E2 FD 00 [02:02:50]MH_I2C_Read... [02:02:51]Read from MH i2c: E2 FD 00 38 03 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 CD [02:02:51]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 [02:02:51]wFMCommunicate OK [02:02:51]wFMCommunicate request_size=4 [02:02:51]MH_SAM_APDU [02:02:51]CAPDU: 80 17 00 00 [02:02:51]Write to MH i2c: E2 08 00 39 03 80 17 00 00 00 00 00 00 BC [02:02:51]Write i2c OK [02:02:51]MH_I2C_Read... [02:02:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:02:51]Read from MH i2c: E2 [02:02:51]MH_I2C_Read... [02:02:51]Read from MH i2c: E2 FD 00 [02:02:51]MH_I2C_Read... [02:02:51]Read from MH i2c: E2 FD 00 39 03 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 48 [02:02:51]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 [02:02:51]wFMCommunicate OK [02:02:51]wFMCommunicate request_size=4 [02:02:51]MH_SAM_APDU [02:02:51]CAPDU: 80 17 00 00 [02:02:51]Write to MH i2c: E2 08 00 3A 03 80 17 00 00 00 00 00 00 BD [02:02:51]Write i2c OK [02:02:51]MH_I2C_Read... [02:02:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [02:02:51]Read from MH i2c: E2 [02:02:51]MH_I2C_Read... [02:02:51]Read from MH i2c: E2 E2 00 [02:02:51]MH_I2C_Read... [02:02:51]Read from MH i2c: E2 E2 00 3A 03 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B [02:02:51]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 [02:02:51]wFMCommunicate OK [02:02:51]SAM_PROTO_GetFMData done [02:02:51]requested_item fm.sale_refund.total is exist - process it [02:02:51]requested_item fm.buy.total is exist - process it [02:02:51]requested_item shift.sale.total is exist - process it [02:02:51]SAM_PROTO_GetShiftData [02:02:51]wFMCommunicate request_size=4 [02:02:51]MH_SAM_APDU [02:02:51]CAPDU: 80 13 02 00 [02:02:51]Write to MH i2c: E2 08 00 3B 03 80 13 02 00 00 00 00 00 BC [02:02:51]Write i2c OK [02:02:51]MH_I2C_Read... [02:02:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [02:02:51]Read from MH i2c: E2 [02:02:51]MH_I2C_Read... [02:02:51]Read from MH i2c: E2 FD 00 [02:02:51]MH_I2C_Read... [02:02:51]Read from MH i2c: E2 FD 00 3B 03 00 AC 04 AA 04 A8 04 6E 04 04 00 06 00 00 00 69 04 99 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 E4 01 70 04 03 00 F0 CC 01 72 04 02 00 70 17 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 70 33 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 48 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 FA [02:02:51]RAPDU: AC 04 AA 04 A8 04 6E 04 04 00 06 00 00 00 69 04 99 00 6F 04 04 00 06 00 00 00 B1 04 03 00 60 E4 01 70 04 03 00 F0 CC 01 72 04 02 00 70 17 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 70 33 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 48 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [02:02:51]wFMCommunicate OK [02:02:51]wFMCommunicate request_size=4 [02:02:51]MH_SAM_APDU [02:02:51]CAPDU: 80 17 00 00 [02:02:51]Write to MH i2c: E2 08 00 3C 03 80 17 00 00 00 00 00 00 BF [02:02:51]Write i2c OK [02:02:51]MH_I2C_Read... [02:02:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:02:52]Read from MH i2c: E2 [02:02:52]MH_I2C_Read... [02:02:52]Read from MH i2c: E2 FD 00 [02:02:52]MH_I2C_Read... [02:02:52]Read from MH i2c: E2 FD 00 3C 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [02:02:52]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [02:02:52]wFMCommunicate OK [02:02:52]wFMCommunicate request_size=4 [02:02:52]MH_SAM_APDU [02:02:52]CAPDU: 80 17 00 00 [02:02:52]Write to MH i2c: E2 08 00 3D 03 80 17 00 00 00 00 00 00 C0 [02:02:52]Write i2c OK [02:02:52]MH_I2C_Read... [02:02:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:02:52]Read from MH i2c: E2 [02:02:52]MH_I2C_Read... [02:02:52]Read from MH i2c: E2 FD 00 [02:02:52]MH_I2C_Read... [02:02:52]Read from MH i2c: E2 FD 00 3D 03 00 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 81 [02:02:52]RAPDU: 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [02:02:52]wFMCommunicate OK [02:02:52]wFMCommunicate request_size=4 [02:02:52]MH_SAM_APDU [02:02:52]CAPDU: 80 17 00 00 [02:02:52]Write to MH i2c: E2 08 00 3E 03 80 17 00 00 00 00 00 00 C1 [02:02:52]Write i2c OK [02:02:52]MH_I2C_Read... [02:02:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:02:52]OFD Sender: No OFD packet to send [02:02:52]Read from MH i2c: E2 [02:02:52]MH_I2C_Read... [02:02:52]Read from MH i2c: E2 FD 00 [02:02:52]MH_I2C_Read... [02:02:52]Read from MH i2c: E2 FD 00 3E 03 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 90 00 36 [02:02:52]RAPDU: 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 90 00 [02:02:52]wFMCommunicate OK [02:02:52]wFMCommunicate request_size=4 [02:02:52]MH_SAM_APDU [02:02:52]CAPDU: 80 17 00 00 [02:02:52]Write to MH i2c: E2 08 00 3F 03 80 17 00 00 00 00 00 00 C2 [02:02:52]Write i2c OK [02:02:52]MH_I2C_Read... [02:02:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 198! [02:02:53]Read from MH i2c: E2 [02:02:53]MH_I2C_Read... [02:02:53]Read from MH i2c: E2 C9 00 [02:02:53]MH_I2C_Read... [02:02:53]Read from MH i2c: E2 C9 00 3F 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A6 [02:02:53]RAPDU: 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [02:02:53]wFMCommunicate OK [02:02:53]SAM_PROTO_GetShiftData done [02:02:53]requested_item shift.sale.total_cash is exist - process it [02:02:53]requested_item shift.sale_refund.total is exist - process it [02:02:53]requested_item shift.sale_refund.total_cash is exist - process it [02:02:53]requested_item shift.buy.total is exist - process it [02:02:53]requested_item shift.buy.total_cash is exist - process it [02:02:53]produce_requested_data done [02:02:53]produce_requested_data return {"fm.sale.total":64579633.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":1240.00,"shift.sale.total_cash":1180.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} [02:02:53]process_action_free get_value [02:02:53]json_value_free [02:02:53]json_value_free done [02:02:53]process_json_proto returns [02:02:53]Send response to host [02:02:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64579633.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":1240.00,"shift.sale.total_cash":1180.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}}} [02:02:53]free response buf [02:02:53]execute_script done [02:02:53]execute_script returns [02:02:53]free content buf [02:02:53]Sock 8.Close socket [02:02:53]Sock 8.Thread stoped [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:15]int [02:04:15]Write to MH i2c: 01 00 00 40 03 43 [02:04:15]*** FLAG_PRN_KEY set [02:04:15]Write i2c OK [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: 01 [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: 01 07 00 [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: 01 07 00 40 03 00 08 00 00 00 FF 0F 60 [02:04:15]state=0 [02:04:15]Key pressed [02:04:15]Feed [02:04:15]Write to MH i2c: D8 00 00 41 03 1B [02:04:15]Write i2c OK [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: D8 [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: D8 01 00 [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: D8 01 00 41 03 00 1C [02:04:15]int [02:04:15]Write to MH i2c: 01 00 00 42 03 45 [02:04:15]Write i2c OK [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: 01 [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: 01 07 00 [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: 01 07 00 42 03 00 48 00 00 00 3C 00 D0 [02:04:15]state=2 [02:04:15]Key pressed [02:04:15]int [02:04:15]Write to MH i2c: 01 00 00 43 03 46 [02:04:15]*** FLAG_PRN_KEY reset [02:04:15]Write i2c OK [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: 01 [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: 01 07 00 [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: 01 07 00 43 03 00 00 00 00 00 F6 0F 52 [02:04:15]state=2 [02:04:15]Stop feed [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:26]accept exits with 9 [02:05:26]New connection [02:05:26]New thread 3067313508 created [02:05:26]Thread 3067170148 joined [02:05:26]Waiting for new connection... [02:05:26] Sock 9.Parse request [02:05:26]Sock 9.Check first char [02:05:26]Sock 9.First char is OK [02:05:26]request: POST /json_proto HTTP/1.0 [02:05:26]Method: POST [02:05:26]URL: /json_proto [02:05:26]Method is POST - this is cgi request [02:05:26]url: /json_proto [02:05:26]query_string will be loaded in cgi processing [02:05:26]execute_cgi json_proto POST (null) [02:05:26]execute_cgi path=json_proto method=POST [02:05:26]POST find Content-Length [02:05:26]Host: 172.17.41.136:8080 [02:05:26]Content-Length: 1516 [02:05:26]Content-Type: application/json [02:05:26] [02:05:26]POST finish read [02:05:26]Found Content-Length = 1516 [02:05:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343950", "tax_sys" : 0, "items" : [ { "code": "4700028325357", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441 0,5\u043B", "price" : 390.00, "quantity" : 1.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744546", "name": "LD Compact Silver", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.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" : 879.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:05:26]execute_script... [02:05:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343950", "tax_sys" : 0, "items" : [ { "code": "4700028325357", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441 0,5\u043B", "price" : 390.00, "quantity" : 1.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744546", "name": "LD Compact Silver", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.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" : 879.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:05:26]POST & json_proto [02:05:26]process_json_proto [02:05:26]json parsed OK: [02:05:26]protocol is kg_v1.0 [02:05:26]action value=close_receipt [02:05:26]process_action close_receipt [02:05:26]cmd_close_receipt [02:05:26]MH_GetDate [02:05:26]Write to MH i2c: F0 00 00 44 03 36 [02:05:26]Write i2c OK [02:05:26]MH_I2C_Read... [02:05:26]Read from MH i2c: F0 [02:05:26]MH_I2C_Read... [02:05:26]Read from MH i2c: F0 09 00 [02:05:26]MH_I2C_Read... [02:05:26]Read from MH i2c: F0 09 00 44 03 00 E6 CC F0 66 1B D0 5A 64 F0 [02:05:26]GetLastDocTimeStamp 1727056022 [02:05:26]current date 1727057126 [02:05:26]FM_GetShiftState [02:05:26]SAM_PROTO_GetShiftState [02:05:26]wFMCommunicate request_size=4 [02:05:26]MH_SAM_APDU [02:05:26]CAPDU: 80 13 01 00 [02:05:26]Write to MH i2c: E2 08 00 45 03 80 13 01 00 00 00 00 00 C5 [02:05:26]Write i2c OK [02:05:26]MH_I2C_Read... [02:05:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:05:26]Read from MH i2c: E2 [02:05:26]MH_I2C_Read... [02:05:26]Read from MH i2c: E2 0E 00 [02:05:26]MH_I2C_Read... [02:05:26]Read from MH i2c: E2 0E 00 45 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 06 [02:05:26]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [02:05:26]wFMCommunicate OK [02:05:26]SAM_PROTO_GetShiftState done [02:05:26]FM_GetShiftState done [02:05:26]opened in 1727052070 [02:05:26]opened+sec_in_day 1727138470 [02:05:26]quantity*price = 39000 [02:05:26]sum+1 = 39001 [02:05:26]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000286 Напиток Кока-Кола 2л 1.000 * 205.00 = 205.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48744546 LD Compact Silver 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030092499 Сигареты ESSE SENSE Himalaya 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 879.00 НСП 1% : 7.78 НДС 12% : 93.35 Наличными: 0.00 Безнал.: 879.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 7 23.09.2024 02:05 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115524 ФПД: 186740322273220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T020527&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115524&fm=186740322273220&tin=02508201610067®Number=0000000000091831&sum=87900 0 [02:05:27]StoreToDocumentArchive [02:05:27]shift 472 fd 115524 [02:05:27]save to /storage/0472/doc_00115524 [02:05:27]save last doc name /storage/0472/doc_00115524 to /storage/kkm_last_doc_name [02:05:27]save OK [02:05:27]Clear old archive folders... [02:05:27]ProcessDocumentItem done err = 0, tmpTLVsize=577 [02:05:27]tlvbuf is 011C94B0 [02:05:27]SAM_PROTO_ClearQueue [02:05:27]wFMCommunicate request_size=4 [02:05:27]MH_SAM_APDU [02:05:27]CAPDU: 80 09 00 00 [02:05:27]Write to MH i2c: E2 08 00 52 03 80 09 00 00 00 00 00 00 C7 [02:05:27]Write i2c OK [02:05:27]MH_I2C_Read... [02:05:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:05:27]Read from MH i2c: E2 [02:05:27]MH_I2C_Read... [02:05:27]Read from MH i2c: E2 03 00 [02:05:27]MH_I2C_Read... [02:05:27]Read from MH i2c: E2 03 00 52 03 00 90 00 C9 [02:05:27]RAPDU: 90 00 [02:05:27]wFMCommunicate OK [02:05:27]SAM_PROTO_ClearQueue done [02:05:27]KKMCreateOFDPacket [02:05:27]OFDProtocolAddRootSTLVToBuf [02:05:27]FM_MakeSignedData [02:05:27]FM_MakeSignedData [02:05:27]SAM_PROTO_SignData [02:05:27]wFMCommunicate request_size=4 [02:05:27]MH_SAM_APDU [02:05:27]CAPDU: 80 0D 01 02 [02:05:27]Write to MH i2c: E2 08 00 53 03 80 0D 01 02 00 00 00 00 CF [02:05:27]Write i2c OK [02:05:27]MH_I2C_Read... [02:05:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:05:27]Read from MH i2c: E2 [02:05:27]MH_I2C_Read... [02:05:27]Read from MH i2c: E2 03 00 [02:05:27]MH_I2C_Read... [02:05:27]Read from MH i2c: E2 03 00 53 03 00 90 00 CA [02:05:27]RAPDU: 90 00 [02:05:27]wFMCommunicate OK [02:05:27]wFMCommunicate request_size=255 [02:05:27]MH_SAM_APDU [02:05:27]CAPDU: 80 0D 02 02 FA 03 00 41 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D [02:05:27]Write to MH i2c: E2 02 01 54 03 80 0D 02 02 FA 00 03 00 41 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 00 00 B0 [02:05:27]Write i2c OK [02:05:27]MH_I2C_Read... [02:05:28]OFD Sender: No OFD packet to send [02:05:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:05:28]Read from MH i2c: E2 [02:05:28]MH_I2C_Read... [02:05:28]Read from MH i2c: E2 03 00 [02:05:28]MH_I2C_Read... [02:05:28]Read from MH i2c: E2 03 00 54 03 00 90 00 CB [02:05:28]RAPDU: 90 00 [02:05:28]wFMCommunicate OK [02:05:28]wFMCommunicate request_size=255 [02:05:28]MH_SAM_APDU [02:05:28]CAPDU: 80 0D 02 02 FA 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 57 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 [02:05:28]Write to MH i2c: E2 02 01 55 03 80 0D 02 02 FA 00 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 57 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 36 [02:05:28]Write i2c OK [02:05:28]MH_I2C_Read... [02:05:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:05:28]Read from MH i2c: E2 [02:05:28]MH_I2C_Read... [02:05:28]Read from MH i2c: E2 03 00 [02:05:28]MH_I2C_Read... [02:05:28]Read from MH i2c: E2 03 00 55 03 00 90 00 CC [02:05:28]RAPDU: 90 00 [02:05:28]wFMCommunicate OK [02:05:28]wFMCommunicate request_size=86 [02:05:28]MH_SAM_APDU [02:05:28]CAPDU: 80 0D 02 02 51 00 00 F4 03 04 00 E7 CC F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 44 C3 01 00 35 04 06 00 A9 D6 DE 93 07 C4 [02:05:28]Write to MH i2c: E2 59 00 56 03 80 0D 02 02 51 00 00 00 F4 03 04 00 E7 CC F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 44 C3 01 00 35 04 06 00 A9 D6 DE 93 07 C4 00 00 B8 [02:05:28]Write i2c OK [02:05:28]MH_I2C_Read... [02:05:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:05:28]Read from MH i2c: E2 [02:05:28]MH_I2C_Read... [02:05:28]Read from MH i2c: E2 03 00 [02:05:28]MH_I2C_Read... [02:05:28]Read from MH i2c: E2 03 00 56 03 00 90 00 CD [02:05:28]RAPDU: 90 00 [02:05:28]wFMCommunicate OK [02:05:28]wFMCommunicate request_size=4 [02:05:28]MH_SAM_APDU [02:05:28]CAPDU: 80 0D 03 02 [02:05:28]Write to MH i2c: E2 08 00 57 03 80 0D 03 02 00 00 00 00 D5 [02:05:28]Write i2c OK [02:05:28]MH_I2C_Read... [02:05:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:05:28]Read from MH i2c: E2 [02:05:28]MH_I2C_Read... [02:05:28]Read from MH i2c: E2 0B 00 [02:05:28]MH_I2C_Read... [02:05:28]Read from MH i2c: E2 0B 00 57 03 00 80 D6 47 82 CD 5B D8 DE 90 00 D3 [02:05:28]RAPDU: 80 D6 47 82 CD 5B D8 DE 90 00 [02:05:28]wFMCommunicate OK [02:05:28]SAM_PROTO_SignData done [02:05:28]FM_MakeSignedData done [02:05:28]CreateOFDProtocolMessage [02:05:28]wFMCommunicate request_size=4 [02:05:28]MH_SAM_APDU [02:05:28]CAPDU: 80 11 00 00 [02:05:28]Write to MH i2c: E2 08 00 58 03 80 11 00 00 00 00 00 00 D5 [02:05:28]Write i2c OK [02:05:28]MH_I2C_Read... [02:05:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:05:28]Read from MH i2c: E2 [02:05:28]MH_I2C_Read... [02:05:28]Read from MH i2c: E2 17 00 [02:05:28]MH_I2C_Read... [02:05:28]Read from MH i2c: E2 17 00 58 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 23 [02:05:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:05:28]wFMCommunicate OK [02:05:28]CreateOFDProtocolMessage done [02:05:28]OFDSenderStorePacket 115524 [02:05:28]StoreOFDPacket docnum=115524 [02:05:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 55 02 00 00 0E 9B 4D 02 82 C3 5A 03 01 00 03 00 41 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 57 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 E7 CC F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 44 C3 01 00 35 04 06 00 A9 D6 DE 93 07 C4 80 D6 47 82 CD 5B D8 DE [02:05:28]CheckFolder [02:05:28]dirname=/storage/ofd_packets [02:05:28]CheckFolder done [02:05:28]ProducePacketName [02:05:28]name=ofd_packets/00115524 [02:05:28]NVStorageSaveData ofd_packets/00115524 [02:05:28]File name is /storage/ofd_packets/00115524 [02:05:28]Write 627 bytes [02:05:28]NVStorageSaveData done [02:05:28]OFDSenderStorePacket done [02:05:28]KKMCreateOFDPacket done [02:05:28]NVStorageSaveData kkm_last_timestamp [02:05:28]File name is /storage/kkm_last_timestamp [02:05:28]Write 4 bytes [02:05:28]NVStorageSaveData done [02:05:28]ExternCall_PrintAddStr [02:05:28]wPrintStart [02:05:28]Write to MH i2c: 01 00 00 59 03 5C [02:05:28]Write i2c OK [02:05:28]MH_I2C_Read... [02:05:28]Read from MH i2c: 01 [02:05:28]MH_I2C_Read... [02:05:28]Read from MH i2c: 01 07 00 [02:05:28]MH_I2C_Read... [02:05:28]Read from MH i2c: 01 07 00 59 03 00 00 00 00 00 FF 0F 71 [02:05:28]RasterBufferAndPrint [02:05:28]line Счет N : (3)343950 [02:05:28]line ИНН: 02508201610067 [02:05:28]line Контрольно-Кассовый Чек [02:05:28]line ПРОДАЖА [02:05:28]line Товар: 4700028325357 [02:05:28]line Водка Антивирус 0,5л [02:05:28]line 1.000 * 390.00 [02:05:28]line = 390.00 [02:05:28]line НДС 12% НСП 1% [02:05:28]line > о реализуемом товаре [02:05:28]line Товар: 5449000000286 [02:05:28]line Напиток Кока-Кола 2л [02:05:28]line 1.000 * 205.00 [02:05:28]line = 205.00 [02:05:28]line НДС 12% НСП 1% [02:05:28]line > о реализуемом товаре [02:05:29]line Товар: 48744546 [02:05:29]line LD Compact Silver [02:05:29]line 1.000 * 134.00 [02:05:29]line = 134.00 [02:05:29]line НДС 12% НСП 1% [02:05:29]line > о реализуемом товаре [02:05:29]line Товар: 4640030092499 [02:05:29]line Сигареты ESSE SENSE Himalaya [02:05:29]line 1.000 * 150.00 [02:05:29]line = 150.00 [02:05:29]line НДС 12% НСП 1% [02:05:29]line > о реализуемом товаре [02:05:29]line ИТОГО: 879.00 [02:05:29]line НСП 1% : 7.78 [02:05:29]line НДС 12% : 93.35 [02:05:29]line Наличными: 0.00 [02:05:29]line Безнал.: 879.00 [02:05:29]line Место: АЗС № 90 "Партнер Нефть" [02:05:29]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [02:05:29]line СНО: Общий режим [02:05:29]line Чек 7 23.09.2024 02:05 [02:05:29]line Смена: 472 ФФД: 1.0 [02:05:29]line ЗНМ: 0300000120 [02:05:29]line РНМ: 0000000000091831 [02:05:29]line Версия ККМ: 001 [02:05:29]line Платежная система: O! деньги [02:05:29]line ФМ: 0000000000871830 [02:05:29]line ФД: 115524 [02:05:29]line ФПД: 186740322273220 [02:05:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T020527&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115524&fm=186740322273220&tin=02508201610067®Number=0000000000091831&sum=87900 [02:05:29]OFD Sender: Processing packet 115524 [packets to send 481, broken 480] [02:05:29]ProducePacketName [02:05:29]name=ofd_packets/00115524 [02:05:29]OFD Sender: To server: pG, [02:05:29]CommunicateWithHost lk.salyk.kg:30040 [02:05:29]ConnectInit lk.salyk.kg [02:05:29]line 0 [02:05:29]written 0, free lines is 4095 [02:05:29]Connected sock=10 [02:05:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 55 02 00 00 0E 9B 4D 02 82 C3 5A 03 01 00 03 00 41 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 57 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 E7 CC F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 44 C3 01 00 35 04 06 00 A9 D6 DE 93 07 C4 80 D6 47 82 CD 5B D8 DE [02:05:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 FA CC 47 00 AA 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 44 C3 01 00 F4 03 04 00 2B 72 F0 66 B6 04 01 00 00 E1 CB 7F 31 59 35 73 F2 [02:05:29]CommunicateWithHost err = 0 [02:05:29]CheckOFDResponse [02:05:29]1017 (14) - 77093643461234 [02:05:29]1041 (16) - 0000000000871830 [02:05:29]1040 (4) - 115524 [02:05:29]1012 (4) - 22.09.2024 19:38 [02:05:29]1206 (1) - 0 [02:05:29]OFD Sender: Remove packet 115524 [02:05:29]ProducePacketName [02:05:29]name=ofd_packets/00115524 [02:05:29]NVStorageDeleteData [02:05:29]Write to MH i2c: 01 00 00 95 03 98 [02:05:29]Write i2c OK [02:05:29]MH_I2C_Read... [02:05:29]Read from MH i2c: 01 [02:05:29]MH_I2C_Read... [02:05:29]Read from MH i2c: 01 07 00 [02:05:29]MH_I2C_Read... [02:05:29]Read from MH i2c: 01 07 00 95 03 00 00 00 00 00 B8 0A 61 [02:05:29]RasterBufferAndPrint [02:05:29]line [02:05:29]line [02:05:29]line [02:05:29]line [02:05:29]line [02:05:29]written 0, free lines is 2749 [02:05:29]MH_Cut [02:05:29]Write to MH i2c: D1 01 00 9C 03 01 71 [02:05:29]Write i2c OK [02:05:29]MH_I2C_Read... [02:05:29]Read from MH i2c: D1 [02:05:29]MH_I2C_Read... [02:05:29]Read from MH i2c: D1 01 00 [02:05:29]MH_I2C_Read... [02:05:29]Read from MH i2c: D1 01 00 9C 03 00 70 [02:05:29]Write to MH i2c: 01 00 00 9D 03 A0 [02:05:29]Write i2c OK [02:05:29]MH_I2C_Read... [02:05:30]OFD Sender: No OFD packet to send [02:05:31]*** Cut start [02:05:31]*** Partial cut [02:05:31]*** CUTSNS_PIN = 1 [02:05:31]*** CUTSNS_PIN = 0 [02:05:31]*** Brake cut motor [02:05:32]Read from MH i2c: 01 [02:05:32]MH_I2C_Read... [02:05:32]*** Stop cut motor [02:05:32]*** Cut end [02:05:32]Read from MH i2c: 01 07 00 [02:05:32]MH_I2C_Read... [02:05:32]Read from MH i2c: 01 07 00 9D 03 00 00 00 00 00 FF 0F B5 [02:05:32]process_action close_receipt done [02:05:32]requested_data is exist [02:05:32]produce_requested_data [02:05:32]requested_item fm.sn is exist - process it [02:05:32]wFMCommunicate request_size=4 [02:05:32]MH_SAM_APDU [02:05:32]CAPDU: 80 11 00 00 [02:05:32]Write to MH i2c: E2 08 00 9E 03 80 11 00 00 00 00 00 00 1B [02:05:32]Write i2c OK [02:05:32]MH_I2C_Read... [02:05:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:05:32]Read from MH i2c: E2 [02:05:32]MH_I2C_Read... [02:05:32]Read from MH i2c: E2 17 00 [02:05:32]MH_I2C_Read... [02:05:32]Read from MH i2c: E2 17 00 9E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 69 [02:05:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:05:32]wFMCommunicate OK [02:05:32]requested_item fd.num is exist - process it [02:05:32]SAM_PROTO_GetFieldsCounters [02:05:32]wFMCommunicate request_size=4 [02:05:32]MH_SAM_APDU [02:05:32]CAPDU: 80 13 00 00 [02:05:32]Write to MH i2c: E2 08 00 9F 03 80 13 00 00 00 00 00 00 1E [02:05:32]Write i2c OK [02:05:32]MH_I2C_Read... [02:05:32]Read from MH i2c: E2 [02:05:32]MH_I2C_Read... [02:05:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:05:32]Read from MH i2c: E2 62 00 [02:05:32]MH_I2C_Read... [02:05:32]Read from MH i2c: E2 62 00 9F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 44 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [02:05: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 44 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:05:32]wFMCommunicate OK [02:05:32]SAM_PROTO_GetFieldsCounters done [02:05:32]requested_item shift.num is exist - process it [02:05:32]requested_item shift.opened is exist - process it [02:05:32]req_shift_opened [02:05:32]FM_GetShiftState [02:05:32]SAM_PROTO_GetShiftState [02:05:32]wFMCommunicate request_size=4 [02:05:32]MH_SAM_APDU [02:05:32]CAPDU: 80 13 01 00 [02:05:32]Write to MH i2c: E2 08 00 A0 03 80 13 01 00 00 00 00 00 20 [02:05:32]Write i2c OK [02:05:32]MH_I2C_Read... [02:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:05:32]Read from MH i2c: E2 [02:05:32]MH_I2C_Read... [02:05:32]Read from MH i2c: E2 0E 00 [02:05:32]MH_I2C_Read... [02:05:32]Read from MH i2c: E2 0E 00 A0 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 61 [02:05:32]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [02:05:32]wFMCommunicate OK [02:05:32]SAM_PROTO_GetShiftState done [02:05:32]FM_GetShiftState done [02:05:32]req_shift_opened done [02:05:32]requested_item shift.open_date is exist - process it [02:05:32]req_shift_open_date [02:05:32]req_shift_open_date done [02:05:32]produce_requested_data done [02:05:32]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115524,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [02:05:32]process_action_free close_receipt [02:05:32]json_value_free [02:05:32]json_value_free done [02:05:32]process_json_proto returns [02:05:32]Send response to host [02:05:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115524,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [02:05:32]free response buf [02:05:32]execute_script done [02:05:32]execute_script returns [02:05:32]free content buf [02:05:32]Sock 9.Close socket [02:05:32]Sock 9.Thread stoped [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:07]accept exits with 8 [02:10:07]New connection [02:10:07]New thread 3067170148 created [02:10:07]Thread 3067313508 joined [02:10:07]Waiting for new connection... [02:10:07] Sock 8.Parse request [02:10:07]Sock 8.Check first char [02:10:07]Sock 8.First char is OK [02:10:07]request: POST /json_proto HTTP/1.0 [02:10:07]Method: POST [02:10:07]URL: /json_proto [02:10:07]Method is POST - this is cgi request [02:10:07]url: /json_proto [02:10:07]query_string will be loaded in cgi processing [02:10:07]execute_cgi json_proto POST (null) [02:10:07]execute_cgi path=json_proto method=POST [02:10:07]POST find Content-Length [02:10:07]Host: 172.17.41.136:8080 [02:10:07]Content-Length: 1180 [02:10:07]Content-Type: application/json [02:10:07] [02:10:07]POST finish read [02:10:07]Found Content-Length = 1180 [02:10:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343951", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700321005017", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 43.00, "quantity" : 1.000, "sum" : 43.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:10:07]execute_script... [02:10:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343951", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700321005017", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 43.00, "quantity" : 1.000, "sum" : 43.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:10:07]POST & json_proto [02:10:07]process_json_proto [02:10:07]json parsed OK: [02:10:07]protocol is kg_v1.0 [02:10:07]action value=close_receipt [02:10:07]process_action close_receipt [02:10:07]cmd_close_receipt [02:10:07]MH_GetDate [02:10:07]Write to MH i2c: F0 00 00 A1 03 93 [02:10:07]Write i2c OK [02:10:07]MH_I2C_Read... [02:10:07]Read from MH i2c: F0 [02:10:07]MH_I2C_Read... [02:10:07]Read from MH i2c: F0 09 00 [02:10:07]MH_I2C_Read... [02:10:07]Read from MH i2c: F0 09 00 A1 03 00 FF CD F0 66 1B D0 5A 64 67 [02:10:07]GetLastDocTimeStamp 1727057127 [02:10:07]current date 1727057407 [02:10:07]FM_GetShiftState [02:10:07]SAM_PROTO_GetShiftState [02:10:07]wFMCommunicate request_size=4 [02:10:07]MH_SAM_APDU [02:10:07]CAPDU: 80 13 01 00 [02:10:07]Write to MH i2c: E2 08 00 A2 03 80 13 01 00 00 00 00 00 22 [02:10:07]Write i2c OK [02:10:07]MH_I2C_Read... [02:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:10:07]Read from MH i2c: E2 [02:10:07]MH_I2C_Read... [02:10:07]Read from MH i2c: E2 0E 00 [02:10:07]MH_I2C_Read... [02:10:07]Read from MH i2c: E2 0E 00 A2 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 63 [02:10:07]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [02:10:07]wFMCommunicate OK [02:10:07]SAM_PROTO_GetShiftState done [02:10:07]FM_GetShiftState done [02:10:07]opened in 1727052070 [02:10:07]opened+sec_in_day 1727138470 [02:10:07]quantity*price = 51000 [02:10:07]sum+1 = 51001 [02:10:07]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700321005017 Арахис Mike жареный соленый 50г 1.000 * 43.00 = 43.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 8 23.09.2024 02:10 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115525 ФПД: 85158559759851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T021007&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115525&fm=85158559759851&tin=02508201610067®Number=0000000000091831&sum=65800 0 [02:10:08]StoreToDocumentArchive [02:10:08]shift 472 fd 115525 [02:10:08]save to /storage/0472/doc_00115525 [02:10:08]save last doc name /storage/0472/doc_00115525 to /storage/kkm_last_doc_name [02:10:08]save OK [02:10:08]Clear old archive folders... [02:10:08]ProcessDocumentItem done err = 0, tmpTLVsize=494 [02:10:08]tlvbuf is 0121BF40 [02:10:08]SAM_PROTO_ClearQueue [02:10:08]wFMCommunicate request_size=4 [02:10:08]MH_SAM_APDU [02:10:08]CAPDU: 80 09 00 00 [02:10:08]Write to MH i2c: E2 08 00 AF 03 80 09 00 00 00 00 00 00 24 [02:10:08]Write i2c OK [02:10:08]MH_I2C_Read... [02:10:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:10:08]Read from MH i2c: E2 [02:10:08]MH_I2C_Read... [02:10:08]Read from MH i2c: E2 03 00 [02:10:08]MH_I2C_Read... [02:10:08]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [02:10:08]RAPDU: 90 00 [02:10:08]wFMCommunicate OK [02:10:08]SAM_PROTO_ClearQueue done [02:10:08]KKMCreateOFDPacket [02:10:08]OFDProtocolAddRootSTLVToBuf [02:10:08]FM_MakeSignedData [02:10:08]FM_MakeSignedData [02:10:08]SAM_PROTO_SignData [02:10:08]wFMCommunicate request_size=4 [02:10:08]MH_SAM_APDU [02:10:08]CAPDU: 80 0D 01 02 [02:10:08]Write to MH i2c: E2 08 00 B0 03 80 0D 01 02 00 00 00 00 2C [02:10:08]Write i2c OK [02:10:08]MH_I2C_Read... [02:10:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:10:08]Read from MH i2c: E2 [02:10:08]MH_I2C_Read... [02:10:08]Read from MH i2c: E2 03 00 [02:10:08]MH_I2C_Read... [02:10:08]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [02:10:08]RAPDU: 90 00 [02:10:08]wFMCommunicate OK [02:10:08]wFMCommunicate request_size=255 [02:10:08]MH_SAM_APDU [02:10:08]CAPDU: 80 0D 02 02 FA 03 00 EE 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B [02:10:08]Write to MH i2c: E2 02 01 B1 03 80 0D 02 02 FA 00 03 00 EE 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 00 00 EF [02:10:08]Write i2c OK [02:10:08]MH_I2C_Read... [02:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:10:08]Read from MH i2c: E2 [02:10:08]MH_I2C_Read... [02:10:08]Read from MH i2c: E2 03 00 [02:10:08]MH_I2C_Read... [02:10:08]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [02:10:08]RAPDU: 90 00 [02:10:08]wFMCommunicate OK [02:10:08]wFMCommunicate request_size=253 [02:10:08]MH_SAM_APDU [02:10:08]CAPDU: 80 0D 02 02 F8 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 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 00 00 00 F4 03 04 00 FF CD F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 45 C3 01 00 35 04 06 00 4D 73 85 B4 3D EB [02:10:08]Write to MH i2c: E2 00 01 B2 03 80 0D 02 02 F8 00 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 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 00 00 00 F4 03 04 00 FF CD F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 45 C3 01 00 35 04 06 00 4D 73 85 B4 3D EB 00 00 69 [02:10:09]Write i2c OK [02:10:09]MH_I2C_Read... [02:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:10:09]Read from MH i2c: E2 [02:10:09]MH_I2C_Read... [02:10:09]Read from MH i2c: E2 03 00 [02:10:09]MH_I2C_Read... [02:10:09]Read from MH i2c: E2 03 00 B2 03 00 90 00 29 [02:10:09]RAPDU: 90 00 [02:10:09]wFMCommunicate OK [02:10:09]wFMCommunicate request_size=4 [02:10:09]MH_SAM_APDU [02:10:09]CAPDU: 80 0D 03 02 [02:10:09]Write to MH i2c: E2 08 00 B3 03 80 0D 03 02 00 00 00 00 31 [02:10:09]Write i2c OK [02:10:09]MH_I2C_Read... [02:10:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:10:09]Read from MH i2c: E2 [02:10:09]MH_I2C_Read... [02:10:09]Read from MH i2c: E2 0B 00 [02:10:09]MH_I2C_Read... [02:10:09]Read from MH i2c: E2 0B 00 B3 03 00 9A 1A 50 DA 68 00 74 33 90 00 1F [02:10:09]RAPDU: 9A 1A 50 DA 68 00 74 33 90 00 [02:10:09]wFMCommunicate OK [02:10:09]SAM_PROTO_SignData done [02:10:09]FM_MakeSignedData done [02:10:09]CreateOFDProtocolMessage [02:10:09]wFMCommunicate request_size=4 [02:10:09]MH_SAM_APDU [02:10:09]CAPDU: 80 11 00 00 [02:10:09]Write to MH i2c: E2 08 00 B4 03 80 11 00 00 00 00 00 00 31 [02:10:09]Write i2c OK [02:10:09]MH_I2C_Read... [02:10:09]Read from MH i2c: E2 [02:10:09]MH_I2C_Read... [02:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:10:09]Read from MH i2c: E2 17 00 [02:10:09]MH_I2C_Read... [02:10:09]Read from MH i2c: E2 17 00 B4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7F [02:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:10:09]wFMCommunicate OK [02:10:09]CreateOFDProtocolMessage done [02:10:09]OFDSenderStorePacket 115525 [02:10:09]StoreOFDPacket docnum=115525 [02:10:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 02 02 00 00 50 5E FA 01 F8 36 5A 03 01 00 03 00 EE 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 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 00 00 00 F4 03 04 00 FF CD F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 45 C3 01 00 35 04 06 00 4D 73 85 B4 3D EB 9A 1A 50 DA 68 00 74 33 [02:10:09]CheckFolder [02:10:09]dirname=/storage/ofd_packets [02:10:09]CheckFolder done [02:10:09]ProducePacketName [02:10:09]name=ofd_packets/00115525 [02:10:09]NVStorageSaveData ofd_packets/00115525 [02:10:09]File name is /storage/ofd_packets/00115525 [02:10:09]Write 544 bytes [02:10:09]NVStorageSaveData done [02:10:09]OFDSenderStorePacket done [02:10:09]KKMCreateOFDPacket done [02:10:09]NVStorageSaveData kkm_last_timestamp [02:10:09]File name is /storage/kkm_last_timestamp [02:10:09]Write 4 bytes [02:10:09]NVStorageSaveData done [02:10:09]ExternCall_PrintAddStr [02:10:09]wPrintStart [02:10:09]Write to MH i2c: 01 00 00 B5 03 B8 [02:10:09]Write i2c OK [02:10:09]MH_I2C_Read... [02:10:09]Read from MH i2c: 01 [02:10:09]MH_I2C_Read... [02:10:09]Read from MH i2c: 01 07 00 [02:10:09]MH_I2C_Read... [02:10:09]Read from MH i2c: 01 07 00 B5 03 00 00 00 00 00 FF 0F CD [02:10:09]RasterBufferAndPrint [02:10:09]line Счет N : (3)343951 [02:10:09]line ИНН: 02508201610067 [02:10:09]line Контрольно-Кассовый Чек [02:10:09]line ПРОДАЖА [02:10:09]line Товар: 4700002083327 [02:10:09]line Водка Level 0,5 [02:10:09]line 1.000 * 510.00 [02:10:09]line = 510.00 [02:10:09]line НДС 12% НСП 1% [02:10:09]line > о реализуемом товаре [02:10:09]line Товар: 5449000054227 [02:10:09]line Напиток Кока-Кола 1л [02:10:09]line 1.000 * 105.00 [02:10:09]line = 105.00 [02:10:09]line НДС 12% НСП 1% [02:10:09]line > о реализуемом товаре [02:10:09]line Товар: 4700321005017 [02:10:09]line Арахис Mike жареный соленый 50г [02:10:09]line 1.000 * 43.00 [02:10:09]line = 43.00 [02:10:09]line НДС 12% НСП 1% [02:10:09]line > о реализуемом товаре [02:10:09]line ИТОГО: 658.00 [02:10:09]line НСП 1% : 5.82 [02:10:09]line НДС 12% : 69.88 [02:10:09]line Наличными: 658.00 [02:10:09]line Безнал.: 0.00 [02:10:09]line Место: АЗС № 90 "Партнер Нефть" [02:10:09]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [02:10:09]line СНО: Общий режим [02:10:09]line Чек 8 23.09.2024 02:10 [02:10:09]line Смена: 472 ФФД: 1.0 [02:10:09]line ЗНМ: 0300000120 [02:10:09]line РНМ: 0000000000091831 [02:10:09]line Версия ККМ: 001 [02:10:09]line ФМ: 0000000000871830 [02:10:09]line ФД: 115525 [02:10:09]line ФПД: 85158559759851 [02:10:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T021007&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115525&fm=85158559759851&tin=02508201610067®Number=0000000000091831&sum=65800 [02:10:09]line 0 [02:10:09]written 0, free lines is 4095 [02:10:09]OFD Sender: Processing packet 115525 [packets to send 481, broken 480] [02:10:09]ProducePacketName [02:10:09]name=ofd_packets/00115525 [02:10:09]OFD Sender: To server: pG, [02:10:09]CommunicateWithHost lk.salyk.kg:30040 [02:10:09]ConnectInit lk.salyk.kg [02:10:09]Connected sock=11 [02:10:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 02 02 00 00 50 5E FA 01 F8 36 5A 03 01 00 03 00 EE 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 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 00 00 00 F4 03 04 00 FF CD F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 45 C3 01 00 35 04 06 00 4D 73 85 B4 3D EB 9A 1A 50 DA 68 00 74 33 [02:10:09]Write to MH i2c: 01 00 00 E9 03 EC [02:10:09]Write i2c OK [02:10:09]MH_I2C_Read... [02:10:09]Read from MH i2c: 01 [02:10:09]MH_I2C_Read... [02:10:09]Read from MH i2c: 01 07 00 [02:10:09]MH_I2C_Read... [02:10:09]Read from MH i2c: 01 07 00 E9 03 00 00 00 00 00 67 0B 65 [02:10:09]RasterBufferAndPrint [02:10:09]line [02:10:09]line [02:10:09]line [02:10:09]line [02:10:09]line [02:10:09]written 0, free lines is 2922 [02:10:09]MH_Cut [02:10:09]Write to MH i2c: D1 01 00 F0 03 01 C5 [02:10:09]Write i2c OK [02:10:09]MH_I2C_Read... [02:10:09]Read from MH i2c: D1 [02:10:09]MH_I2C_Read... [02:10:09]Read from MH i2c: D1 01 00 [02:10:09]MH_I2C_Read... [02:10:09]Read from MH i2c: D1 01 00 F0 03 00 C4 [02:10:09]Write to MH i2c: 01 00 00 F1 03 F4 [02:10:09]Write i2c OK [02:10:09]MH_I2C_Read... [02:10:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 02 A7 47 00 8C 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 45 C3 01 00 F4 03 04 00 44 73 F0 66 B6 04 01 00 00 B2 7A E3 6B 8B FA C4 D6 [02:10:09]CommunicateWithHost err = 0 [02:10:09]CheckOFDResponse [02:10:09]1017 (14) - 77093643461234 [02:10:09]1041 (16) - 0000000000871830 [02:10:09]1040 (4) - 115525 [02:10:09]1012 (4) - 22.09.2024 19:43 [02:10:09]1206 (1) - 0 [02:10:09]OFD Sender: Remove packet 115525 [02:10:09]ProducePacketName [02:10:09]name=ofd_packets/00115525 [02:10:09]NVStorageDeleteData [02:10:10]OFD Sender: No OFD packet to send [02:10:11]*** Cut start [02:10:11]*** Partial cut [02:10:11]*** CUTSNS_PIN = 1 [02:10:11]*** CUTSNS_PIN = 0 [02:10:11]*** Brake cut motor [02:10:12]Read from MH i2c: 01 [02:10:12]MH_I2C_Read... [02:10:12]*** Stop cut motor [02:10:12]*** Cut end [02:10:12]Read from MH i2c: 01 07 00 [02:10:12]MH_I2C_Read... [02:10:12]Read from MH i2c: 01 07 00 F1 03 00 00 00 00 00 FF 0F 09 [02:10:12]process_action close_receipt done [02:10:12]requested_data is exist [02:10:12]produce_requested_data [02:10:12]requested_item fm.sn is exist - process it [02:10:12]wFMCommunicate request_size=4 [02:10:12]MH_SAM_APDU [02:10:12]CAPDU: 80 11 00 00 [02:10:12]Write to MH i2c: E2 08 00 F2 03 80 11 00 00 00 00 00 00 6F [02:10:12]Write i2c OK [02:10:12]MH_I2C_Read... [02:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:10:12]Read from MH i2c: E2 [02:10:12]MH_I2C_Read... [02:10:12]Read from MH i2c: E2 17 00 [02:10:12]MH_I2C_Read... [02:10:12]Read from MH i2c: E2 17 00 F2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BD [02:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:10:12]wFMCommunicate OK [02:10:12]requested_item fd.num is exist - process it [02:10:12]SAM_PROTO_GetFieldsCounters [02:10:12]wFMCommunicate request_size=4 [02:10:12]MH_SAM_APDU [02:10:12]CAPDU: 80 13 00 00 [02:10:12]Write to MH i2c: E2 08 00 F3 03 80 13 00 00 00 00 00 00 72 [02:10:12]Write i2c OK [02:10:12]MH_I2C_Read... [02:10:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:10:12]Read from MH i2c: E2 [02:10:12]MH_I2C_Read... [02:10:12]Read from MH i2c: E2 62 00 [02:10:12]MH_I2C_Read... [02:10:12]Read from MH i2c: E2 62 00 F3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 45 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [02:10:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 45 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:10:12]wFMCommunicate OK [02:10:12]SAM_PROTO_GetFieldsCounters done [02:10:12]requested_item shift.num is exist - process it [02:10:12]requested_item shift.opened is exist - process it [02:10:12]req_shift_opened [02:10:12]FM_GetShiftState [02:10:12]SAM_PROTO_GetShiftState [02:10:12]wFMCommunicate request_size=4 [02:10:12]MH_SAM_APDU [02:10:12]CAPDU: 80 13 01 00 [02:10:12]Write to MH i2c: E2 08 00 F4 03 80 13 01 00 00 00 00 00 74 [02:10:12]Write i2c OK [02:10:12]MH_I2C_Read... [02:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:10:12]Read from MH i2c: E2 [02:10:12]MH_I2C_Read... [02:10:12]Read from MH i2c: E2 0E 00 [02:10:12]MH_I2C_Read... [02:10:12]Read from MH i2c: E2 0E 00 F4 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B5 [02:10:12]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [02:10:12]wFMCommunicate OK [02:10:12]SAM_PROTO_GetShiftState done [02:10:12]FM_GetShiftState done [02:10:12]req_shift_opened done [02:10:12]requested_item shift.open_date is exist - process it [02:10:12]req_shift_open_date [02:10:12]req_shift_open_date done [02:10:12]produce_requested_data done [02:10:12]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115525,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [02:10:12]process_action_free close_receipt [02:10:12]json_value_free [02:10:12]json_value_free done [02:10:12]process_json_proto returns [02:10:12]Send response to host [02:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115525,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [02:10:12]free response buf [02:10:12]execute_script done [02:10:12]execute_script returns [02:10:12]free content buf [02:10:12]Sock 8.Close socket [02:10:12]Sock 8.Thread stoped [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:32]OFD Sender: No OFD packet to send [02:20:37]OFD Sender: No OFD packet to send [02:20:42]OFD Sender: No OFD packet to send [02:20:47]OFD Sender: No OFD packet to send [02:20:52]OFD Sender: No OFD packet to send [02:20:57]OFD Sender: No OFD packet to send [02:21:02]OFD Sender: No OFD packet to send [02:21:07]OFD Sender: No OFD packet to send [02:21:12]OFD Sender: No OFD packet to send [02:21:17]OFD Sender: No OFD packet to send [02:21:22]OFD Sender: No OFD packet to send [02:21:27]OFD Sender: No OFD packet to send [02:21:32]OFD Sender: No OFD packet to send [02:21:37]OFD Sender: No OFD packet to send [02:21:42]OFD Sender: No OFD packet to send [02:21:47]OFD Sender: No OFD packet to send [02:21:52]OFD Sender: No OFD packet to send [02:21:57]OFD Sender: No OFD packet to send [02:22:02]OFD Sender: No OFD packet to send [02:22:07]OFD Sender: No OFD packet to send [02:22:12]OFD Sender: No OFD packet to send [02:22:17]OFD Sender: No OFD packet to send [02:22:22]OFD Sender: No OFD packet to send [02:22:27]OFD Sender: No OFD packet to send [02:22:32]OFD Sender: No OFD packet to send [02:22:37]OFD Sender: No OFD packet to send [02:22:42]OFD Sender: No OFD packet to send [02:22:47]OFD Sender: No OFD packet to send [02:22:52]OFD Sender: No OFD packet to send [02:22:57]OFD Sender: No OFD packet to send [02:23:02]OFD Sender: No OFD packet to send [02:23:07]OFD Sender: No OFD packet to send [02:23:12]OFD Sender: No OFD packet to send [02:23:17]OFD Sender: No OFD packet to send [02:23:22]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:52]OFD Sender: No OFD packet to send [02:23:57]OFD Sender: No OFD packet to send [02:24:02]OFD Sender: No OFD packet to send [02:24:07]OFD Sender: No OFD packet to send [02:24:12]OFD Sender: No OFD packet to send [02:24:17]OFD Sender: No OFD packet to send [02:24:22]OFD Sender: No OFD packet to send [02:24:27]OFD Sender: No OFD packet to send [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:44]accept exits with 9 [02:26:44]New connection [02:26:44]New thread 3067313508 created [02:26:44]Thread 3067170148 joined [02:26:44]Waiting for new connection... [02:26:44] Sock 9.Parse request [02:26:44]Sock 9.Check first char [02:26:44]Sock 9.First char is OK [02:26:44]request: POST /json_proto HTTP/1.0 [02:26:44]Method: POST [02:26:44]URL: /json_proto [02:26:44]Method is POST - this is cgi request [02:26:44]url: /json_proto [02:26:44]query_string will be loaded in cgi processing [02:26:44]execute_cgi json_proto POST (null) [02:26:44]execute_cgi path=json_proto method=POST [02:26:44]POST find Content-Length [02:26:44]Host: 172.17.41.136:8080 [02:26:44]Content-Length: 1810 [02:26:44]Content-Type: application/json [02:26:44] [02:26:44]POST finish read [02:26:44]Found Content-Length = 1810 [02:26:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343952", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 3.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 6.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 446.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:26:44]execute_script... [02:26:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343952", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 3.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 6.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 446.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:26:44]POST & json_proto [02:26:44]process_json_proto [02:26:44]json parsed OK: [02:26:44]protocol is kg_v1.0 [02:26:44]action value=close_receipt [02:26:44]process_action close_receipt [02:26:44]cmd_close_receipt [02:26:44]MH_GetDate [02:26:44]Write to MH i2c: F0 00 00 F5 03 E7 [02:26:44]Write i2c OK [02:26:44]MH_I2C_Read... [02:26:44]Read from MH i2c: F0 [02:26:44]MH_I2C_Read... [02:26:44]Read from MH i2c: F0 09 00 [02:26:44]MH_I2C_Read... [02:26:44]Read from MH i2c: F0 09 00 F5 03 00 E5 D1 F0 66 1B D0 5A 64 A5 [02:26:44]GetLastDocTimeStamp 1727057407 [02:26:44]current date 1727058405 [02:26:44]FM_GetShiftState [02:26:44]SAM_PROTO_GetShiftState [02:26:44]wFMCommunicate request_size=4 [02:26:44]MH_SAM_APDU [02:26:44]CAPDU: 80 13 01 00 [02:26:44]Write to MH i2c: E2 08 00 F6 03 80 13 01 00 00 00 00 00 76 [02:26:44]Write i2c OK [02:26:44]MH_I2C_Read... [02:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:26:44]Read from MH i2c: E2 [02:26:44]MH_I2C_Read... [02:26:44]Read from MH i2c: E2 0E 00 [02:26:44]MH_I2C_Read... [02:26:44]Read from MH i2c: E2 0E 00 F6 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B7 [02:26:44]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [02:26:44]wFMCommunicate OK [02:26:44]SAM_PROTO_GetShiftState done [02:26:44]FM_GetShiftState done [02:26:44]opened in 1727052070 [02:26:44]opened+sec_in_day 1727138470 [02:26:44]quantity*price = 28500 [02:26:44]sum+1 = 28501 [02:26:44]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 6.000 * 7.00 = 42.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 446.00 НСП 1% : 3.93 НДС 12% : 47.35 Наличными: 446.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 9 23.09.2024 02:26 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115526 ФПД: 279313276698216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T022645&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115526&fm=279313276698216&tin=02508201610067®Number=0000000000091831&sum=44600 0 [02:26:46]StoreToDocumentArchive [02:26:46]shift 472 fd 115526 [02:26:46]save to /storage/0472/doc_00115526 [02:26:46]save last doc name /storage/0472/doc_00115526 to /storage/kkm_last_doc_name [02:26:46]save OK [02:26:46]Clear old archive folders... [02:26:46]ProcessDocumentItem done err = 0, tmpTLVsize=742 [02:26:46]tlvbuf is 0120DEA0 [02:26:46]SAM_PROTO_ClearQueue [02:26:46]wFMCommunicate request_size=4 [02:26:46]MH_SAM_APDU [02:26:46]CAPDU: 80 09 00 00 [02:26:46]Write to MH i2c: E2 08 00 03 04 80 09 00 00 00 00 00 00 79 [02:26:46]Write i2c OK [02:26:46]MH_I2C_Read... [02:26:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:26:46]Read from MH i2c: E2 [02:26:46]MH_I2C_Read... [02:26:46]Read from MH i2c: E2 03 00 [02:26:46]MH_I2C_Read... [02:26:46]Read from MH i2c: E2 03 00 03 04 00 90 00 7B [02:26:46]RAPDU: 90 00 [02:26:46]wFMCommunicate OK [02:26:46]SAM_PROTO_ClearQueue done [02:26:46]KKMCreateOFDPacket [02:26:46]OFDProtocolAddRootSTLVToBuf [02:26:46]FM_MakeSignedData [02:26:46]FM_MakeSignedData [02:26:46]SAM_PROTO_SignData [02:26:46]wFMCommunicate request_size=4 [02:26:46]MH_SAM_APDU [02:26:46]CAPDU: 80 0D 01 02 [02:26:46]Write to MH i2c: E2 08 00 04 04 80 0D 01 02 00 00 00 00 81 [02:26:46]Write i2c OK [02:26:46]MH_I2C_Read... [02:26:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:26:46]Read from MH i2c: E2 [02:26:46]MH_I2C_Read... [02:26:46]Read from MH i2c: E2 03 00 [02:26:46]MH_I2C_Read... [02:26:46]Read from MH i2c: E2 03 00 04 04 00 90 00 7C [02:26:46]RAPDU: 90 00 [02:26:46]wFMCommunicate OK [02:26:46]wFMCommunicate request_size=255 [02:26:46]MH_SAM_APDU [02:26:46]CAPDU: 80 0D 02 02 FA 03 00 E6 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 [02:26:46]Write to MH i2c: E2 02 01 05 04 80 0D 02 02 FA 00 03 00 E6 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 00 00 63 [02:26:46]Write i2c OK [02:26:46]MH_I2C_Read... [02:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:26:46]Read from MH i2c: E2 [02:26:46]MH_I2C_Read... [02:26:46]Read from MH i2c: E2 03 00 [02:26:46]MH_I2C_Read... [02:26:46]Read from MH i2c: E2 03 00 05 04 00 90 00 7D [02:26:46]RAPDU: 90 00 [02:26:46]wFMCommunicate OK [02:26:46]wFMCommunicate request_size=255 [02:26:46]MH_SAM_APDU [02:26:46]CAPDU: 80 0D 02 02 FA 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F [02:26:46]Write to MH i2c: E2 02 01 06 04 80 0D 02 02 FA 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F 00 00 E0 [02:26:46]Write i2c OK [02:26:46]MH_I2C_Read... [02:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:26:46]Read from MH i2c: E2 [02:26:46]MH_I2C_Read... [02:26:46]Read from MH i2c: E2 03 00 [02:26:46]MH_I2C_Read... [02:26:46]Read from MH i2c: E2 03 00 06 04 00 90 00 7E [02:26:46]RAPDU: 90 00 [02:26:46]wFMCommunicate OK [02:26:46]wFMCommunicate request_size=251 [02:26:46]MH_SAM_APDU [02:26:46]CAPDU: 80 0D 02 02 F6 D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 12 00 00 00 00 07 04 06 00 38 AE 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 E5 D1 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 46 C3 01 00 35 04 06 00 FE 08 B0 A3 7E 68 [02:26:46]Write to MH i2c: E2 FE 00 07 04 80 0D 02 02 F6 00 D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 12 00 00 00 00 07 04 06 00 38 AE 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 E5 D1 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 46 C3 01 00 35 04 06 00 FE 08 B0 A3 7E 68 00 00 04 [02:26:46]Write i2c OK [02:26:46]MH_I2C_Read... [02:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:26:47]Read from MH i2c: E2 [02:26:47]MH_I2C_Read... [02:26:47]Read from MH i2c: E2 03 00 [02:26:47]MH_I2C_Read... [02:26:47]Read from MH i2c: E2 03 00 07 04 00 90 00 7F [02:26:47]RAPDU: 90 00 [02:26:47]wFMCommunicate OK [02:26:47]wFMCommunicate request_size=4 [02:26:47]MH_SAM_APDU [02:26:47]CAPDU: 80 0D 03 02 [02:26:47]Write to MH i2c: E2 08 00 08 04 80 0D 03 02 00 00 00 00 87 [02:26:47]Write i2c OK [02:26:47]MH_I2C_Read... [02:26:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:26:47]Read from MH i2c: E2 [02:26:47]MH_I2C_Read... [02:26:47]Read from MH i2c: E2 0B 00 [02:26:47]MH_I2C_Read... [02:26:47]Read from MH i2c: E2 0B 00 08 04 00 07 30 4D 0C D3 8A B7 BC 90 00 E8 [02:26:47]RAPDU: 07 30 4D 0C D3 8A B7 BC 90 00 [02:26:47]wFMCommunicate OK [02:26:47]SAM_PROTO_SignData done [02:26:47]FM_MakeSignedData done [02:26:47]CreateOFDProtocolMessage [02:26:47]wFMCommunicate request_size=4 [02:26:47]MH_SAM_APDU [02:26:47]CAPDU: 80 11 00 00 [02:26:47]Write to MH i2c: E2 08 00 09 04 80 11 00 00 00 00 00 00 87 [02:26:47]Write i2c OK [02:26:47]MH_I2C_Read... [02:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:26:47]Read from MH i2c: E2 [02:26:47]MH_I2C_Read... [02:26:47]Read from MH i2c: E2 17 00 [02:26:47]MH_I2C_Read... [02:26:47]Read from MH i2c: E2 17 00 09 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D5 [02:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:26:47]wFMCommunicate OK [02:26:47]CreateOFDProtocolMessage done [02:26:47]OFDSenderStorePacket 115526 [02:26:47]StoreOFDPacket docnum=115526 [02:26:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 FA 02 00 00 8E 95 F2 02 08 F5 5A 03 01 00 03 00 E6 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 12 00 00 00 00 07 04 06 00 38 AE 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 E5 D1 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 46 C3 01 00 35 04 06 00 FE 08 B0 A3 7E 68 07 30 4D 0C D3 8A B7 BC [02:26:47]CheckFolder [02:26:47]dirname=/storage/ofd_packets [02:26:47]CheckFolder done [02:26:47]ProducePacketName [02:26:47]name=ofd_packets/00115526 [02:26:47]NVStorageSaveData ofd_packets/00115526 [02:26:47]File name is /storage/ofd_packets/00115526 [02:26:47]Write 792 bytes [02:26:47]NVStorageSaveData done [02:26:47]OFDSenderStorePacket done [02:26:47]KKMCreateOFDPacket done [02:26:47]NVStorageSaveData kkm_last_timestamp [02:26:47]File name is /storage/kkm_last_timestamp [02:26:47]Write 4 bytes [02:26:47]NVStorageSaveData done [02:26:47]ExternCall_PrintAddStr [02:26:47]wPrintStart [02:26:47]Write to MH i2c: 01 00 00 0A 04 0E [02:26:47]Write i2c OK [02:26:47]MH_I2C_Read... [02:26:47]Read from MH i2c: 01 [02:26:47]MH_I2C_Read... [02:26:47]Read from MH i2c: 01 07 00 [02:26:47]MH_I2C_Read... [02:26:47]Read from MH i2c: 01 07 00 0A 04 00 00 00 00 00 FF 0F 23 [02:26:47]RasterBufferAndPrint [02:26:47]line Счет N : (3)343952 [02:26:47]line ИНН: 02508201610067 [02:26:47]line Контрольно-Кассовый Чек [02:26:47]line ПРОДАЖА [02:26:47]line Товар: 4700000480302 [02:26:47]line Напиток энерг Nitro манго-клуб 0.45 ж/б [02:26:47]line 3.000 * 95.00 [02:26:47]line = 285.00 [02:26:47]line НДС 12% НСП 1% [02:26:47]line > о реализуемом товаре [02:26:47]line Товар: 4700000160358 [02:26:47]line Вода Легенда 1л [02:26:47]line 1.000 * 50.00 [02:26:47]line = 50.00 [02:26:47]line НДС 12% НСП 1% [02:26:47]line > о реализуемом товаре [02:26:47]line Товар: 4700040114137 [02:26:47]line Султан чай 1л. зел лимон [02:26:47]line 1.000 * 65.00 [02:26:47]line = 65.00 [02:26:47]line НДС 12% НСП 1% [02:26:47]line > о реализуемом товаре [02:26:47]line Товар: 2000053020015 [02:26:47]line Бумажные стаканы 250мл 1шт [02:26:47]line 6.000 * 7.00 [02:26:47]line = 42.00 [02:26:47]line НДС 12% НСП 1% [02:26:47]line > о реализуемом товаре [02:26:47]line Товар: 2000031750019 [02:26:47]line Пакет Партнер Нефть [02:26:47]line 1.000 * 4.00 [02:26:47]line = 4.00 [02:26:47]line НДС 12% НСП 1% [02:26:47]line > о реализуемом товаре [02:26:47]line ИТОГО: 446.00 [02:26:47]line НСП 1% : 3.93 [02:26:47]line НДС 12% : 47.35 [02:26:47]line Наличными: 446.00 [02:26:47]line Безнал.: 0.00 [02:26:47]line Место: АЗС № 90 "Партнер Нефть" [02:26:47]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [02:26:47]line СНО: Общий режим [02:26:47]line Чек 9 23.09.2024 02:26 [02:26:47]line Смена: 472 ФФД: 1.0 [02:26:47]line ЗНМ: 0300000120 [02:26:47]line РНМ: 0000000000091831 [02:26:47]line Версия ККМ: 001 [02:26:47]line ФМ: 0000000000871830 [02:26:47]line ФД: 115526 [02:26:47]line ФПД: 279313276698216 [02:26:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T022645&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115526&fm=279313276698216&tin=02508201610067®Number=0000000000091831&sum=44600 [02:26:47]line 0 [02:26:47]written 0, free lines is 4095 [02:26:47]OFD Sender: Processing packet 115526 [packets to send 481, broken 480] [02:26:47]ProducePacketName [02:26:47]name=ofd_packets/00115526 [02:26:47]OFD Sender: To server: pG, [02:26:47]CommunicateWithHost lk.salyk.kg:30040 [02:26:47]ConnectInit lk.salyk.kg [02:26:47]Connected sock=10 [02:26:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 FA 02 00 00 8E 95 F2 02 08 F5 5A 03 01 00 03 00 E6 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 12 00 00 00 00 07 04 06 00 38 AE 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 E5 D1 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 46 C3 01 00 35 04 06 00 FE 08 B0 A3 7E 68 07 30 4D 0C D3 8A B7 BC [02:26:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 66 63 47 00 07 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 31 38 33 30 10 04 04 00 46 C3 01 00 F4 03 04 00 2A 77 F0 66 B6 04 01 00 00 26 96 84 EF 53 12 D5 09 [02:26:48]CommunicateWithHost err = 0 [02:26:48]CheckOFDResponse [02:26:48]1017 (14) - 77093643461234 [02:26:48]1041 (16) - 0000000000871830 [02:26:48]1040 (4) - 115526 [02:26:48]1012 (4) - 22.09.2024 19:59 [02:26:48]1206 (1) - 0 [02:26:48]OFD Sender: Remove packet 115526 [02:26:48]ProducePacketName [02:26:48]name=ofd_packets/00115526 [02:26:48]NVStorageDeleteData [02:26:48]Write to MH i2c: 01 00 00 4B 04 4F [02:26:48]Write i2c OK [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: 01 [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: 01 07 00 [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: 01 07 00 4B 04 00 00 00 00 00 4A 0A AA [02:26:48]RasterBufferAndPrint [02:26:48]line [02:26:48]line [02:26:48]line [02:26:48]line [02:26:48]line [02:26:48]written 0, free lines is 2640 [02:26:48]MH_Cut [02:26:48]Write to MH i2c: D1 01 00 52 04 01 28 [02:26:48]Write i2c OK [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: D1 [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: D1 01 00 [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: D1 01 00 52 04 00 27 [02:26:48]Write to MH i2c: 01 00 00 53 04 57 [02:26:48]Write i2c OK [02:26:48]MH_I2C_Read... [02:26:48]OFD Sender: No OFD packet to send [02:26:50]*** Cut start [02:26:50]*** Partial cut [02:26:50]*** CUTSNS_PIN = 1 [02:26:50]*** CUTSNS_PIN = 0 [02:26:50]*** Brake cut motor [02:26:50]Read from MH i2c: 01 [02:26:50]MH_I2C_Read... [02:26:50]*** Stop cut motor [02:26:50]*** Cut end [02:26:50]Read from MH i2c: 01 07 00 [02:26:50]MH_I2C_Read... [02:26:50]Read from MH i2c: 01 07 00 53 04 00 00 00 00 00 FF 0F 6C [02:26:50]process_action close_receipt done [02:26:50]requested_data is exist [02:26:50]produce_requested_data [02:26:50]requested_item fm.sn is exist - process it [02:26:50]wFMCommunicate request_size=4 [02:26:50]MH_SAM_APDU [02:26:50]CAPDU: 80 11 00 00 [02:26:50]Write to MH i2c: E2 08 00 54 04 80 11 00 00 00 00 00 00 D2 [02:26:50]Write i2c OK [02:26:50]MH_I2C_Read... [02:26:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:26:50]Read from MH i2c: E2 [02:26:50]MH_I2C_Read... [02:26:50]Read from MH i2c: E2 17 00 [02:26:50]MH_I2C_Read... [02:26:50]Read from MH i2c: E2 17 00 54 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 20 [02:26:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:26:50]wFMCommunicate OK [02:26:50]requested_item fd.num is exist - process it [02:26:50]SAM_PROTO_GetFieldsCounters [02:26:50]wFMCommunicate request_size=4 [02:26:50]MH_SAM_APDU [02:26:50]CAPDU: 80 13 00 00 [02:26:50]Write to MH i2c: E2 08 00 55 04 80 13 00 00 00 00 00 00 D5 [02:26:50]Write i2c OK [02:26:50]MH_I2C_Read... [02:26:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:26:51]Read from MH i2c: E2 [02:26:51]MH_I2C_Read... [02:26:51]Read from MH i2c: E2 62 00 [02:26:51]MH_I2C_Read... [02:26:51]Read from MH i2c: E2 62 00 55 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 46 C3 01 00 0E 04 04 00 D8 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 EC [02: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 46 C3 01 00 0E 04 04 00 D8 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 [02:26:51]wFMCommunicate OK [02:26:51]SAM_PROTO_GetFieldsCounters done [02:26:51]requested_item shift.num is exist - process it [02:26:51]requested_item shift.opened is exist - process it [02:26:51]req_shift_opened [02:26:51]FM_GetShiftState [02:26:51]SAM_PROTO_GetShiftState [02:26:51]wFMCommunicate request_size=4 [02:26:51]MH_SAM_APDU [02:26:51]CAPDU: 80 13 01 00 [02:26:51]Write to MH i2c: E2 08 00 56 04 80 13 01 00 00 00 00 00 D7 [02:26:51]Write i2c OK [02:26:51]MH_I2C_Read... [02:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:26:51]Read from MH i2c: E2 [02:26:51]MH_I2C_Read... [02:26:51]Read from MH i2c: E2 0E 00 [02:26:51]MH_I2C_Read... [02:26:51]Read from MH i2c: E2 0E 00 56 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 18 [02:26:51]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [02:26:51]wFMCommunicate OK [02:26:51]SAM_PROTO_GetShiftState done [02:26:51]FM_GetShiftState done [02:26:51]req_shift_opened done [02:26:51]requested_item shift.open_date is exist - process it [02:26:51]req_shift_open_date [02:26:51]req_shift_open_date done [02:26:51]produce_requested_data done [02:26:51]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115526,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [02:26:51]process_action_free close_receipt [02:26:51]json_value_free [02:26:51]json_value_free done [02:26:51]process_json_proto returns [02:26:51]Send response to host [02:26:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115526,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [02:26:51]free response buf [02:26:51]execute_script done [02:26:51]execute_script returns [02:26:51]free content buf [02:26:51]Sock 9.Close socket [02:26:51]Sock 9.Thread stoped [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:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]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:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41:25]OFD Sender: No OFD packet to send [02:41:30]OFD Sender: No OFD packet to send [02:41:35]OFD Sender: No OFD packet to send [02:41:40]OFD Sender: No OFD packet to send [02:41:45]OFD Sender: No OFD packet to send [02:41:50]OFD Sender: No OFD packet to send [02:41:55]OFD Sender: No OFD packet to send [02:42:00]OFD Sender: No OFD packet to send [02:42:05]OFD Sender: No OFD packet to send [02:42:10]OFD Sender: No OFD packet to send [02:42:15]OFD Sender: No OFD packet to send [02:42:20]OFD Sender: No OFD packet to send [02:42:25]OFD Sender: No OFD packet to send [02:42:30]OFD Sender: No OFD packet to send [02:42:35]OFD Sender: No OFD packet to send [02:42:40]OFD Sender: No OFD packet to send [02:42:45]OFD Sender: No OFD packet to send [02:42:50]OFD Sender: No OFD packet to send [02:42:55]OFD Sender: No OFD packet to send [02:43:00]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:46:57]accept exits with 8 [02:46:57]New connection [02:46:57]New thread 3067170148 created [02:46:57]Thread 3067313508 joined [02:46:57]Waiting for new connection... [02:46:57] Sock 8.Parse request [02:46:57]Sock 8.Check first char [02:46:57]Sock 8.First char is OK [02:46:57]request: POST /json_proto HTTP/1.0 [02:46:57]Method: POST [02:46:57]URL: /json_proto [02:46:57]Method is POST - this is cgi request [02:46:57]url: /json_proto [02:46:57]query_string will be loaded in cgi processing [02:46:57]execute_cgi json_proto POST (null) [02:46:57]execute_cgi path=json_proto method=POST [02:46:57]POST find Content-Length [02:46:57]Host: 172.17.41.136:8080 [02:46:57]Content-Length: 598 [02:46:57]Content-Type: application/json [02:46:57] [02:46:57]POST finish read [02:46:57]Found Content-Length = 598 [02:46:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343953", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:46:57]execute_script... [02:46:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343953", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:46:57]POST & json_proto [02:46:57]process_json_proto [02:46:57]json parsed OK: [02:46:57]protocol is kg_v1.0 [02:46:57]action value=close_receipt [02:46:57]process_action close_receipt [02:46:57]cmd_close_receipt [02:46:57]MH_GetDate [02:46:57]Write to MH i2c: F0 00 00 57 04 4A [02:46:57]Write i2c OK [02:46:57]MH_I2C_Read... [02:46:57]Read from MH i2c: F0 [02:46:57]MH_I2C_Read... [02:46:57]Read from MH i2c: F0 09 00 [02:46:57]MH_I2C_Read... [02:46:57]Read from MH i2c: F0 09 00 57 04 00 A2 D6 F0 66 1B D0 5A 64 CA [02:46:57]GetLastDocTimeStamp 1727058405 [02:46:57]current date 1727059618 [02:46:57]FM_GetShiftState [02:46:57]SAM_PROTO_GetShiftState [02:46:57]wFMCommunicate request_size=4 [02:46:57]MH_SAM_APDU [02:46:57]CAPDU: 80 13 01 00 [02:46:57]Write to MH i2c: E2 08 00 58 04 80 13 01 00 00 00 00 00 D9 [02:46:57]Write i2c OK [02:46:57]MH_I2C_Read... [02:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:46:57]Read from MH i2c: E2 [02:46:57]MH_I2C_Read... [02:46:57]Read from MH i2c: E2 0E 00 [02:46:57]MH_I2C_Read... [02:46:57]Read from MH i2c: E2 0E 00 58 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 1A [02:46:57]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [02:46:57]wFMCommunicate OK [02:46:57]SAM_PROTO_GetShiftState done [02:46:57]FM_GetShiftState done [02:46:57]opened in 1727052070 [02:46:57]opened+sec_in_day 1727138470 [02:46:57]quantity*price = 51000 [02:46:57]sum+1 = 51001 [02:46:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 510.00 НСП 1% : 4.51 НДС 12% : 54.16 Наличными: 510.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 10 23.09.2024 02:46 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115527 ФПД: 274207426413906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T024658&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115527&fm=274207426413906&tin=02508201610067®Number=0000000000091831&sum=51000 0 [02:46:58]StoreToDocumentArchive [02:46:58]shift 472 fd 115527 [02:46:58]save to /storage/0472/doc_00115527 [02:46:58]save last doc name /storage/0472/doc_00115527 to /storage/kkm_last_doc_name [02:46:58]save OK [02:46:58]Clear old archive folders... [02:46:58]ProcessDocumentItem done err = 0, tmpTLVsize=262 [02:46:58]tlvbuf is 011D2AD0 [02:46:58]SAM_PROTO_ClearQueue [02:46:58]wFMCommunicate request_size=4 [02:46:58]MH_SAM_APDU [02:46:58]CAPDU: 80 09 00 00 [02:46:58]Write to MH i2c: E2 08 00 65 04 80 09 00 00 00 00 00 00 DB [02:46:58]Write i2c OK [02:46:58]MH_I2C_Read... [02:46:58]Read from MH i2c: E2 [02:46:58]MH_I2C_Read... [02:46:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:46:58]Read from MH i2c: E2 03 00 [02:46:58]MH_I2C_Read... [02:46:58]Read from MH i2c: E2 03 00 65 04 00 90 00 DD [02:46:58]RAPDU: 90 00 [02:46:58]wFMCommunicate OK [02:46:58]SAM_PROTO_ClearQueue done [02:46:58]KKMCreateOFDPacket [02:46:58]OFDProtocolAddRootSTLVToBuf [02:46:58]FM_MakeSignedData [02:46:58]FM_MakeSignedData [02:46:58]SAM_PROTO_SignData [02:46:58]wFMCommunicate request_size=4 [02:46:58]MH_SAM_APDU [02:46:58]CAPDU: 80 0D 01 02 [02:46:58]Write to MH i2c: E2 08 00 66 04 80 0D 01 02 00 00 00 00 E3 [02:46:58]Write i2c OK [02:46:58]MH_I2C_Read... [02:46:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:46:58]Read from MH i2c: E2 [02:46:58]MH_I2C_Read... [02:46:58]Read from MH i2c: E2 03 00 [02:46:58]MH_I2C_Read... [02:46:58]Read from MH i2c: E2 03 00 66 04 00 90 00 DE [02:46:58]RAPDU: 90 00 [02:46:58]wFMCommunicate OK [02:46:58]wFMCommunicate request_size=255 [02:46:58]MH_SAM_APDU [02:46:58]CAPDU: 80 0D 02 02 FA 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 A2 D6 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 [02:46:58]Write to MH i2c: E2 02 01 67 04 80 0D 02 02 FA 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 A2 D6 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 00 00 CA [02:46:58]Write i2c OK [02:46:58]MH_I2C_Read... [02:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:46:59]Read from MH i2c: E2 [02:46:59]MH_I2C_Read... [02:46:59]Read from MH i2c: E2 03 00 [02:46:59]MH_I2C_Read... [02:46:59]Read from MH i2c: E2 03 00 67 04 00 90 00 DF [02:46:59]RAPDU: 90 00 [02:46:59]wFMCommunicate OK [02:46:59]wFMCommunicate request_size=21 [02:46:59]MH_SAM_APDU [02:46:59]CAPDU: 80 0D 02 02 10 04 00 47 C3 01 00 35 04 06 00 F9 63 E4 3F 05 52 [02:46:59]Write to MH i2c: E2 18 00 68 04 80 0D 02 02 10 00 04 00 47 C3 01 00 35 04 06 00 F9 63 E4 3F 05 52 00 00 2A [02:46:59]Write i2c OK [02:46:59]MH_I2C_Read... [02:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:46:59]Read from MH i2c: E2 [02:46:59]MH_I2C_Read... [02:46:59]Read from MH i2c: E2 03 00 [02:46:59]MH_I2C_Read... [02:46:59]Read from MH i2c: E2 03 00 68 04 00 90 00 E0 [02:46:59]RAPDU: 90 00 [02:46:59]wFMCommunicate OK [02:46:59]wFMCommunicate request_size=4 [02:46:59]MH_SAM_APDU [02:46:59]CAPDU: 80 0D 03 02 [02:46:59]Write to MH i2c: E2 08 00 69 04 80 0D 03 02 00 00 00 00 E8 [02:46:59]Write i2c OK [02:46:59]MH_I2C_Read... [02:46:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:46:59]Read from MH i2c: E2 [02:46:59]MH_I2C_Read... [02:46:59]Read from MH i2c: E2 0B 00 [02:46:59]MH_I2C_Read... [02:46:59]Read from MH i2c: E2 0B 00 69 04 00 76 18 C0 F5 7D 71 9D B5 90 00 6C [02:46:59]RAPDU: 76 18 C0 F5 7D 71 9D B5 90 00 [02:46:59]wFMCommunicate OK [02:46:59]SAM_PROTO_SignData done [02:46:59]FM_MakeSignedData done [02:46:59]CreateOFDProtocolMessage [02:46:59]wFMCommunicate request_size=4 [02:46:59]MH_SAM_APDU [02:46:59]CAPDU: 80 11 00 00 [02:46:59]Write to MH i2c: E2 08 00 6A 04 80 11 00 00 00 00 00 00 E8 [02:46:59]Write i2c OK [02:46:59]MH_I2C_Read... [02:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:46:59]Read from MH i2c: E2 [02:46:59]MH_I2C_Read... [02:46:59]Read from MH i2c: E2 17 00 [02:46:59]MH_I2C_Read... [02:46:59]Read from MH i2c: E2 17 00 6A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 36 [02:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:46:59]wFMCommunicate OK [02:46:59]CreateOFDProtocolMessage done [02:46:59]OFDSenderStorePacket 115527 [02:46:59]StoreOFDPacket docnum=115527 [02:46:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1A 01 00 00 68 66 12 01 5E 85 5A 03 01 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 A2 D6 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 47 C3 01 00 35 04 06 00 F9 63 E4 3F 05 52 76 18 C0 F5 7D 71 9D B5 [02:46:59]CheckFolder [02:46:59]dirname=/storage/ofd_packets [02:46:59]CheckFolder done [02:46:59]ProducePacketName [02:46:59]name=ofd_packets/00115527 [02:46:59]NVStorageSaveData ofd_packets/00115527 [02:46:59]File name is /storage/ofd_packets/00115527 [02:46:59]Write 312 bytes [02:46:59]NVStorageSaveData done [02:46:59]OFDSenderStorePacket done [02:46:59]KKMCreateOFDPacket done [02:46:59]NVStorageSaveData kkm_last_timestamp [02:46:59]File name is /storage/kkm_last_timestamp [02:46:59]Write 4 bytes [02:46:59]NVStorageSaveData done [02:46:59]ExternCall_PrintAddStr [02:46:59]wPrintStart [02:46:59]Write to MH i2c: 01 00 00 6B 04 6F [02:46:59]Write i2c OK [02:46:59]MH_I2C_Read... [02:46:59]Read from MH i2c: 01 [02:46:59]MH_I2C_Read... [02:46:59]Read from MH i2c: 01 07 00 [02:46:59]MH_I2C_Read... [02:46:59]Read from MH i2c: 01 07 00 6B 04 00 00 00 00 00 FF 0F 84 [02:46:59]RasterBufferAndPrint [02:46:59]line Счет N : (3)343953 [02:46:59]line ИНН: 02508201610067 [02:46:59]line Контрольно-Кассовый Чек [02:46:59]line ПРОДАЖА [02:46:59]line Товар: 4700002083327 [02:46:59]line Водка Level 0,5 [02:46:59]line 1.000 * 510.00 [02:46:59]line = 510.00 [02:46:59]line НДС 12% НСП 1% [02:46:59]line > о реализуемом товаре [02:46:59]line ИТОГО: 510.00 [02:46:59]line НСП 1% : 4.51 [02:46:59]line НДС 12% : 54.16 [02:46:59]line Наличными: 510.00 [02:46:59]line Безнал.: 0.00 [02:46:59]line Место: АЗС № 90 "Партнер Нефть" [02:46:59]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [02:46:59]line СНО: Общий режим [02:46:59]line Чек 10 23.09.2024 02:46 [02:46:59]line Смена: 472 ФФД: 1.0 [02:46:59]line ЗНМ: 0300000120 [02:46:59]line РНМ: 0000000000091831 [02:46:59]line Версия ККМ: 001 [02:46:59]line ФМ: 0000000000871830 [02:46:59]line ФД: 115527 [02:46:59]line ФПД: 274207426413906 [02:46:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T024658&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115527&fm=274207426413906&tin=02508201610067®Number=0000000000091831&sum=51000 [02:46:59]line 0 [02:46:59]OFD Sender: Processing packet 115527 [packets to send 481, broken 480] [02:46:59]ProducePacketName [02:46:59]name=ofd_packets/00115527 [02:46:59]OFD Sender: To server: pG, [02:46:59]CommunicateWithHost lk.salyk.kg:30040 [02:46:59]ConnectInit lk.salyk.kg [02:46:59]written 0, free lines is 4095 [02:46:59]Connected sock=10 [02:46:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1A 01 00 00 68 66 12 01 5E 85 5A 03 01 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 A2 D6 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 47 C3 01 00 35 04 06 00 F9 63 E4 3F 05 52 76 18 C0 F5 7D 71 9D B5 [02:47:00]Write to MH i2c: 01 00 00 92 04 96 [02:47:00]Write i2c OK [02:47:00]MH_I2C_Read... [02:47:00]Read from MH i2c: 01 [02:47:00]MH_I2C_Read... [02:47:00]Read from MH i2c: 01 07 00 [02:47:00]MH_I2C_Read... [02:47:00]Read from MH i2c: 01 07 00 92 04 00 00 00 00 00 83 0C 2C [02:47:00]RasterBufferAndPrint [02:47:00]line [02:47:00]line [02:47:00]line [02:47:00]line [02:47:00]line [02:47:00]written 0, free lines is 3207 [02:47:00]MH_Cut [02:47:00]Write to MH i2c: D1 01 00 99 04 01 6F [02:47:00]Write i2c OK [02:47:00]MH_I2C_Read... [02:47:00]Read from MH i2c: D1 [02:47:00]MH_I2C_Read... [02:47:00]Read from MH i2c: D1 01 00 [02:47:00]MH_I2C_Read... [02:47:00]Read from MH i2c: D1 01 00 99 04 00 6E [02:47:00]Write to MH i2c: 01 00 00 9A 04 9E [02:47:00]Write i2c OK [02:47:00]MH_I2C_Read... [02:47:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 54 73 47 00 DF 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 31 38 33 30 10 04 04 00 47 C3 01 00 F4 03 04 00 E6 7B F0 66 B6 04 01 00 00 11 43 15 9F 54 A4 30 B7 [02:47:00]CommunicateWithHost err = 0 [02:47:00]CheckOFDResponse [02:47:00]1017 (14) - 77093643461234 [02:47:00]1041 (16) - 0000000000871830 [02:47:00]1040 (4) - 115527 [02:47:00]1012 (4) - 22.09.2024 20:19 [02:47:00]1206 (1) - 0 [02:47:00]OFD Sender: Remove packet 115527 [02:47:00]ProducePacketName [02:47:00]name=ofd_packets/00115527 [02:47:00]NVStorageDeleteData [02:47:00]OFD Sender: No OFD packet to send [02:47:01]*** Cut start [02:47:01]*** Partial cut [02:47:01]*** CUTSNS_PIN = 1 [02:47:01]*** CUTSNS_PIN = 0 [02:47:01]*** Brake cut motor [02:47:02]Read from MH i2c: 01 [02:47:02]MH_I2C_Read... [02:47:02]*** Stop cut motor [02:47:02]*** Cut end [02:47:02]Read from MH i2c: 01 07 00 [02:47:02]MH_I2C_Read... [02:47:02]Read from MH i2c: 01 07 00 9A 04 00 00 00 00 00 FF 0F B3 [02:47:02]process_action close_receipt done [02:47:02]requested_data is exist [02:47:02]produce_requested_data [02:47:02]requested_item fm.sn is exist - process it [02:47:02]wFMCommunicate request_size=4 [02:47:02]MH_SAM_APDU [02:47:02]CAPDU: 80 11 00 00 [02:47:02]Write to MH i2c: E2 08 00 9B 04 80 11 00 00 00 00 00 00 19 [02:47:02]Write i2c OK [02:47:02]MH_I2C_Read... [02:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:47:02]Read from MH i2c: E2 [02:47:02]MH_I2C_Read... [02:47:02]Read from MH i2c: E2 17 00 [02:47:02]MH_I2C_Read... [02:47:02]Read from MH i2c: E2 17 00 9B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 67 [02:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:47:02]wFMCommunicate OK [02:47:02]requested_item fd.num is exist - process it [02:47:02]SAM_PROTO_GetFieldsCounters [02:47:02]wFMCommunicate request_size=4 [02:47:02]MH_SAM_APDU [02:47:02]CAPDU: 80 13 00 00 [02:47:02]Write to MH i2c: E2 08 00 9C 04 80 13 00 00 00 00 00 00 1C [02:47:02]Write i2c OK [02:47:02]MH_I2C_Read... [02:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:47:02]Read from MH i2c: E2 [02:47:02]MH_I2C_Read... [02:47:02]Read from MH i2c: E2 62 00 [02:47:02]MH_I2C_Read... [02:47:02]Read from MH i2c: E2 62 00 9C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 47 C3 01 00 0E 04 04 00 D8 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 37 [02:47:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 47 C3 01 00 0E 04 04 00 D8 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 [02:47:02]wFMCommunicate OK [02:47:02]SAM_PROTO_GetFieldsCounters done [02:47:02]requested_item shift.num is exist - process it [02:47:02]requested_item shift.opened is exist - process it [02:47:02]req_shift_opened [02:47:02]FM_GetShiftState [02:47:02]SAM_PROTO_GetShiftState [02:47:02]wFMCommunicate request_size=4 [02:47:02]MH_SAM_APDU [02:47:02]CAPDU: 80 13 01 00 [02:47:02]Write to MH i2c: E2 08 00 9D 04 80 13 01 00 00 00 00 00 1E [02:47:02]Write i2c OK [02:47:02]MH_I2C_Read... [02:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:47:02]Read from MH i2c: E2 [02:47:02]MH_I2C_Read... [02:47:02]Read from MH i2c: E2 0E 00 [02:47:02]MH_I2C_Read... [02:47:02]Read from MH i2c: E2 0E 00 9D 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5F [02:47:02]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [02:47:02]wFMCommunicate OK [02:47:02]SAM_PROTO_GetShiftState done [02:47:02]FM_GetShiftState done [02:47:02]req_shift_opened done [02:47:02]requested_item shift.open_date is exist - process it [02:47:02]req_shift_open_date [02:47:02]req_shift_open_date done [02:47:02]produce_requested_data done [02:47:02]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115527,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [02:47:02]process_action_free close_receipt [02:47:02]json_value_free [02:47:02]json_value_free done [02:47:02]process_json_proto returns [02:47:02]Send response to host [02:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115527,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [02:47:02]free response buf [02:47:02]execute_script done [02:47:02]execute_script returns [02:47:02]free content buf [02:47:02]Sock 8.Close socket [02:47:02]Sock 8.Thread stoped [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]accept exits with 9 [02:48:10]New connection [02:48:10]New thread 3067313508 created [02:48:10]Thread 3067170148 joined [02:48:10]Waiting for new connection... [02:48:10] Sock 9.Parse request [02:48:10]Sock 9.Check first char [02:48:10]Sock 9.First char is OK [02:48:10]request: POST /json_proto HTTP/1.0 [02:48:10]Method: POST [02:48:10]URL: /json_proto [02:48:10]Method is POST - this is cgi request [02:48:10]url: /json_proto [02:48:10]query_string will be loaded in cgi processing [02:48:10]execute_cgi json_proto POST (null) [02:48:10]execute_cgi path=json_proto method=POST [02:48:10]POST find Content-Length [02:48:10]Host: 172.17.41.136:8080 [02:48:10]Content-Length: 633 [02:48:10]Content-Type: application/json [02:48:10] [02:48:10]POST finish read [02:48:10]Found Content-Length = 633 [02:48:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343954", "tax_sys" : 0, "items" : [ { "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 147.00, "quantity" : 2.000, "sum" : 294.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 294.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:48:10]execute_script... [02:48: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 : (3)343954", "tax_sys" : 0, "items" : [ { "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 147.00, "quantity" : 2.000, "sum" : 294.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 294.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:48:10]POST & json_proto [02:48:10]process_json_proto [02:48:10]json parsed OK: [02:48:10]protocol is kg_v1.0 [02:48:10]action value=close_receipt [02:48:10]process_action close_receipt [02:48:10]cmd_close_receipt [02:48:10]MH_GetDate [02:48:10]Write to MH i2c: F0 00 00 9E 04 91 [02:48:10]Write i2c OK [02:48:10]MH_I2C_Read... [02:48:10]Read from MH i2c: F0 [02:48:10]MH_I2C_Read... [02:48:10]Read from MH i2c: F0 09 00 [02:48:10]MH_I2C_Read... [02:48:10]Read from MH i2c: F0 09 00 9E 04 00 EB D6 F0 66 1B D0 5A 64 5A [02:48:10]GetLastDocTimeStamp 1727059618 [02:48:10]current date 1727059691 [02:48:10]FM_GetShiftState [02:48:10]SAM_PROTO_GetShiftState [02:48:10]wFMCommunicate request_size=4 [02:48:10]MH_SAM_APDU [02:48:10]CAPDU: 80 13 01 00 [02:48:10]Write to MH i2c: E2 08 00 9F 04 80 13 01 00 00 00 00 00 20 [02:48:10]Write i2c OK [02:48:10]MH_I2C_Read... [02:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:48:10]Read from MH i2c: E2 [02:48:10]MH_I2C_Read... [02:48:10]Read from MH i2c: E2 0E 00 [02:48:10]MH_I2C_Read... [02:48:10]Read from MH i2c: E2 0E 00 9F 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 61 [02:48:10]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [02:48:10]wFMCommunicate OK [02:48:10]SAM_PROTO_GetShiftState done [02:48:10]FM_GetShiftState done [02:48:10]opened in 1727052070 [02:48:10]opened+sec_in_day 1727138470 [02:48:10]quantity*price = 29400 [02:48:10]sum+1 = 29401 [02:48:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 294.00 НСП 1% : 2.60 НДС 12% : 31.22 Наличными: 294.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 11 23.09.2024 02:48 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115528 ФПД: 149559488651492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T024811&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115528&fm=149559488651492&tin=02508201610067®Number=0000000000091831&sum=29400 0 [02:48:11]StoreToDocumentArchive [02:48:11]shift 472 fd 115528 [02:48:11]save to /storage/0472/doc_00115528 [02:48:11]save last doc name /storage/0472/doc_00115528 to /storage/kkm_last_doc_name [02:48:11]save OK [02:48:11]Clear old archive folders... [02:48:11]ProcessDocumentItem done err = 0, tmpTLVsize=285 [02:48:11]tlvbuf is 011D8570 [02:48:11]SAM_PROTO_ClearQueue [02:48:11]wFMCommunicate request_size=4 [02:48:11]MH_SAM_APDU [02:48:11]CAPDU: 80 09 00 00 [02:48:11]Write to MH i2c: E2 08 00 AC 04 80 09 00 00 00 00 00 00 22 [02:48:11]Write i2c OK [02:48:11]MH_I2C_Read... [02:48:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:48:11]Read from MH i2c: E2 [02:48:11]MH_I2C_Read... [02:48:11]Read from MH i2c: E2 03 00 [02:48:11]MH_I2C_Read... [02:48:11]Read from MH i2c: E2 03 00 AC 04 00 90 00 24 [02:48:11]RAPDU: 90 00 [02:48:11]wFMCommunicate OK [02:48:11]SAM_PROTO_ClearQueue done [02:48:11]KKMCreateOFDPacket [02:48:11]OFDProtocolAddRootSTLVToBuf [02:48:11]FM_MakeSignedData [02:48:11]FM_MakeSignedData [02:48:11]SAM_PROTO_SignData [02:48:11]wFMCommunicate request_size=4 [02:48:11]MH_SAM_APDU [02:48:11]CAPDU: 80 0D 01 02 [02:48:11]Write to MH i2c: E2 08 00 AD 04 80 0D 01 02 00 00 00 00 2A [02:48:11]Write i2c OK [02:48:11]MH_I2C_Read... [02:48:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:48:11]Read from MH i2c: E2 [02:48:11]MH_I2C_Read... [02:48:11]Read from MH i2c: E2 03 00 [02:48:11]MH_I2C_Read... [02:48:11]Read from MH i2c: E2 03 00 AD 04 00 90 00 25 [02:48:11]RAPDU: 90 00 [02:48:11]wFMCommunicate OK [02:48:11]wFMCommunicate request_size=255 [02:48:11]MH_SAM_APDU [02:48:11]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 D8 72 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0C 00 00 00 00 07 04 06 00 D8 72 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 EB D6 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 [02:48:11]Write to MH i2c: E2 02 01 AE 04 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 D8 72 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0C 00 00 00 00 07 04 06 00 D8 72 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 EB D6 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 00 00 00 [02:48:11]Write i2c OK [02:48:11]MH_I2C_Read... [02:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:48:12]Read from MH i2c: E2 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 03 00 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 03 00 AE 04 00 90 00 26 [02:48:12]RAPDU: 90 00 [02:48:12]wFMCommunicate OK [02:48:12]wFMCommunicate request_size=44 [02:48:12]MH_SAM_APDU [02:48:12]CAPDU: 80 0D 02 02 27 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 48 C3 01 00 35 04 06 00 88 06 08 31 A0 E4 [02:48:12]Write to MH i2c: E2 2F 00 AF 04 80 0D 02 02 27 00 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 48 C3 01 00 35 04 06 00 88 06 08 31 A0 E4 00 00 9A [02:48:12]Write i2c OK [02:48:12]MH_I2C_Read... [02:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:48:12]Read from MH i2c: E2 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 03 00 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 03 00 AF 04 00 90 00 27 [02:48:12]RAPDU: 90 00 [02:48:12]wFMCommunicate OK [02:48:12]wFMCommunicate request_size=4 [02:48:12]MH_SAM_APDU [02:48:12]CAPDU: 80 0D 03 02 [02:48:12]Write to MH i2c: E2 08 00 B0 04 80 0D 03 02 00 00 00 00 2F [02:48:12]Write i2c OK [02:48:12]MH_I2C_Read... [02:48:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:48:12]Read from MH i2c: E2 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 0B 00 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 0B 00 B0 04 00 CE 47 9B 9D 53 C7 C8 B1 90 00 10 [02:48:12]RAPDU: CE 47 9B 9D 53 C7 C8 B1 90 00 [02:48:12]wFMCommunicate OK [02:48:12]SAM_PROTO_SignData done [02:48:12]FM_MakeSignedData done [02:48:12]CreateOFDProtocolMessage [02:48:12]wFMCommunicate request_size=4 [02:48:12]MH_SAM_APDU [02:48:12]CAPDU: 80 11 00 00 [02:48:12]Write to MH i2c: E2 08 00 B1 04 80 11 00 00 00 00 00 00 2F [02:48:12]Write i2c OK [02:48:12]MH_I2C_Read... [02:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:48:12]Read from MH i2c: E2 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 17 00 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 17 00 B1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7D [02:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:48:12]wFMCommunicate OK [02:48:12]CreateOFDProtocolMessage done [02:48:12]OFDSenderStorePacket 115528 [02:48:12]StoreOFDPacket docnum=115528 [02:48:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 31 01 00 00 1C 12 29 01 06 DC 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 D8 72 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0C 00 00 00 00 07 04 06 00 D8 72 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 EB D6 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 48 C3 01 00 35 04 06 00 88 06 08 31 A0 E4 CE 47 9B 9D 53 C7 C8 B1 [02:48:12]CheckFolder [02:48:12]dirname=/storage/ofd_packets [02:48:12]CheckFolder done [02:48:12]ProducePacketName [02:48:12]name=ofd_packets/00115528 [02:48:12]NVStorageSaveData ofd_packets/00115528 [02:48:12]File name is /storage/ofd_packets/00115528 [02:48:12]Write 335 bytes [02:48:12]NVStorageSaveData done [02:48:12]OFDSenderStorePacket done [02:48:12]KKMCreateOFDPacket done [02:48:12]NVStorageSaveData kkm_last_timestamp [02:48:12]File name is /storage/kkm_last_timestamp [02:48:12]Write 4 bytes [02:48:12]NVStorageSaveData done [02:48:12]ExternCall_PrintAddStr [02:48:12]wPrintStart [02:48:12]Write to MH i2c: 01 00 00 B2 04 B6 [02:48:12]Write i2c OK [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: 01 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: 01 07 00 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: 01 07 00 B2 04 00 00 00 00 00 FF 0F CB [02:48:12]RasterBufferAndPrint [02:48:12]line Счет N : (3)343954 [02:48:12]line ИНН: 02508201610067 [02:48:12]line Контрольно-Кассовый Чек [02:48:12]line ПРОДАЖА [02:48:12]line Товар: 48746717 [02:48:12]line Сигареты Winston XStyle Caster + Dream M [02:48:12]line 2.000 * 147.00 [02:48:12]line = 294.00 [02:48:12]line НДС 12% НСП 1% [02:48:12]line > о реализуемом товаре [02:48:12]line ИТОГО: 294.00 [02:48:12]line НСП 1% : 2.60 [02:48:12]line НДС 12% : 31.22 [02:48:12]line Наличными: 294.00 [02:48:12]line Безнал.: 0.00 [02:48:12]line Место: АЗС № 90 "Партнер Нефть" [02:48:12]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [02:48:12]line СНО: Общий режим [02:48:12]line Чек 11 23.09.2024 02:48 [02:48:12]line Смена: 472 ФФД: 1.0 [02:48:12]line ЗНМ: 0300000120 [02:48:12]line РНМ: 0000000000091831 [02:48:12]line Версия ККМ: 001 [02:48:12]line ФМ: 0000000000871830 [02:48:12]line ФД: 115528 [02:48:12]line ФПД: 149559488651492 [02:48:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T024811&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115528&fm=149559488651492&tin=02508201610067®Number=0000000000091831&sum=29400 [02:48:12]line 0 [02:48:12]OFD Sender: Processing packet 115528 [packets to send 481, broken 480] [02:48:12]ProducePacketName [02:48:12]name=ofd_packets/00115528 [02:48:12]OFD Sender: To server: pG, [02:48:12]CommunicateWithHost lk.salyk.kg:30040 [02:48:12]ConnectInit lk.salyk.kg [02:48:12]written 0, free lines is 4095 [02:48:12]Connected sock=10 [02:48:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 31 01 00 00 1C 12 29 01 06 DC 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 D8 72 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0C 00 00 00 00 07 04 06 00 D8 72 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 EB D6 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 48 C3 01 00 35 04 06 00 88 06 08 31 A0 E4 CE 47 9B 9D 53 C7 C8 B1 [02:48:13]Write to MH i2c: 01 00 00 DA 04 DE [02:48:13]Write i2c OK [02:48:13]MH_I2C_Read... [02:48:13]Read from MH i2c: 01 [02:48:13]MH_I2C_Read... [02:48:13]Read from MH i2c: 01 07 00 [02:48:13]MH_I2C_Read... [02:48:13]Read from MH i2c: 01 07 00 DA 04 00 00 00 00 00 6A 0C 5B [02:48:13]RasterBufferAndPrint [02:48:13]line [02:48:13]line [02:48:13]line [02:48:13]line [02:48:13]line [02:48:13]written 0, free lines is 3182 [02:48:13]MH_Cut [02:48:13]Write to MH i2c: D1 01 00 E1 04 01 B7 [02:48:13]Write i2c OK [02:48:13]MH_I2C_Read... [02:48:13]Read from MH i2c: D1 [02:48:13]MH_I2C_Read... [02:48:13]Read from MH i2c: D1 01 00 [02:48:13]MH_I2C_Read... [02:48:13]Read from MH i2c: D1 01 00 E1 04 00 B6 [02:48:13]Write to MH i2c: 01 00 00 E2 04 E6 [02:48:13]Write i2c OK [02:48:13]MH_I2C_Read... [02:48:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F0 FC 47 00 3C 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 48 C3 01 00 F4 03 04 00 2F 7C F0 66 B6 04 01 00 00 CA 47 68 45 CA 08 1F 4A [02:48:13]CommunicateWithHost err = 0 [02:48:13]CheckOFDResponse [02:48:13]1017 (14) - 77093643461234 [02:48:13]1041 (16) - 0000000000871830 [02:48:13]1040 (4) - 115528 [02:48:13]1012 (4) - 22.09.2024 20:21 [02:48:13]1206 (1) - 0 [02:48:13]OFD Sender: Remove packet 115528 [02:48:13]ProducePacketName [02:48:13]name=ofd_packets/00115528 [02:48:13]NVStorageDeleteData [02:48:13]OFD Sender: No OFD packet to send [02:48:14]*** Cut start [02:48:14]*** Partial cut [02:48:14]*** CUTSNS_PIN = 1 [02:48:14]*** CUTSNS_PIN = 0 [02:48:14]*** Brake cut motor [02:48:15]Read from MH i2c: 01 [02:48:15]MH_I2C_Read... [02:48:15]*** Stop cut motor [02:48:15]*** Cut end [02:48:15]Read from MH i2c: 01 07 00 [02:48:15]MH_I2C_Read... [02:48:15]Read from MH i2c: 01 07 00 E2 04 00 00 00 00 00 FF 0F FB [02:48:15]process_action close_receipt done [02:48:15]requested_data is exist [02:48:15]produce_requested_data [02:48:15]requested_item fm.sn is exist - process it [02:48:15]wFMCommunicate request_size=4 [02:48:15]MH_SAM_APDU [02:48:15]CAPDU: 80 11 00 00 [02:48:15]Write to MH i2c: E2 08 00 E3 04 80 11 00 00 00 00 00 00 61 [02:48:15]Write i2c OK [02:48:15]MH_I2C_Read... [02:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:48:15]Read from MH i2c: E2 [02:48:15]MH_I2C_Read... [02:48:15]Read from MH i2c: E2 17 00 [02:48:15]MH_I2C_Read... [02:48:15]Read from MH i2c: E2 17 00 E3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AF [02:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:48:15]wFMCommunicate OK [02:48:15]requested_item fd.num is exist - process it [02:48:15]SAM_PROTO_GetFieldsCounters [02:48:15]wFMCommunicate request_size=4 [02:48:15]MH_SAM_APDU [02:48:15]CAPDU: 80 13 00 00 [02:48:15]Write to MH i2c: E2 08 00 E4 04 80 13 00 00 00 00 00 00 64 [02:48:15]Write i2c OK [02:48:15]MH_I2C_Read... [02:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:48:15]Read from MH i2c: E2 [02:48:15]MH_I2C_Read... [02:48:15]Read from MH i2c: E2 62 00 [02:48:15]MH_I2C_Read... [02:48:15]Read from MH i2c: E2 62 00 E4 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 48 C3 01 00 0E 04 04 00 D8 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 83 [02: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 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 48 C3 01 00 0E 04 04 00 D8 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 [02:48:15]wFMCommunicate OK [02:48:15]SAM_PROTO_GetFieldsCounters done [02:48:15]requested_item shift.num is exist - process it [02:48:15]requested_item shift.opened is exist - process it [02:48:15]req_shift_opened [02:48:15]FM_GetShiftState [02:48:15]SAM_PROTO_GetShiftState [02:48:15]wFMCommunicate request_size=4 [02:48:15]MH_SAM_APDU [02:48:15]CAPDU: 80 13 01 00 [02:48:15]Write to MH i2c: E2 08 00 E5 04 80 13 01 00 00 00 00 00 66 [02:48:15]Write i2c OK [02:48:15]MH_I2C_Read... [02:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:48:15]Read from MH i2c: E2 [02:48:15]MH_I2C_Read... [02:48:15]Read from MH i2c: E2 0E 00 [02:48:15]MH_I2C_Read... [02:48:15]Read from MH i2c: E2 0E 00 E5 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A7 [02:48:15]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [02:48:15]wFMCommunicate OK [02:48:15]SAM_PROTO_GetShiftState done [02:48:15]FM_GetShiftState done [02:48:15]req_shift_opened done [02:48:15]requested_item shift.open_date is exist - process it [02:48:15]req_shift_open_date [02:48:15]req_shift_open_date done [02:48:15]produce_requested_data done [02:48:15]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115528,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [02:48:15]process_action_free close_receipt [02:48:15]json_value_free [02:48:15]json_value_free done [02:48:15]process_json_proto returns [02:48:15]Send response to host [02:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115528,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [02:48:15]free response buf [02:48:15]execute_script done [02:48:15]execute_script returns [02:48:15]free content buf [02:48:15]Sock 9.Close socket [02:48:15]Sock 9.Thread stoped [02:48:18]OFD Sender: No OFD packet to send [02:48:23]OFD Sender: No OFD packet to send [02:48:28]OFD Sender: No OFD packet to send [02:48:33]OFD Sender: No OFD packet to send [02:48:38]OFD Sender: No OFD packet to send [02:48:43]OFD Sender: No OFD packet to send [02:48:48]OFD Sender: No OFD packet to send [02:48:53]OFD Sender: No OFD packet to send [02:48:58]OFD Sender: No OFD packet to send [02:49:03]OFD Sender: No OFD packet to send [02:49:08]OFD Sender: No OFD packet to send [02:49:13]OFD Sender: No OFD packet to send [02:49:18]OFD Sender: No OFD packet to send [02:49:23]OFD Sender: No OFD packet to send [02:49:28]OFD Sender: No OFD packet to send [02:49:33]OFD Sender: No OFD packet to send [02:49:38]OFD Sender: No OFD packet to send [02:49:43]OFD Sender: No OFD packet to send [02:49:48]OFD Sender: No OFD packet to send [02:49:53]OFD Sender: No OFD packet to send [02:49:58]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:46]accept exits with 8 [02:50:46]New connection [02:50:46]New thread 3067170148 created [02:50:46]Thread 3067313508 joined [02:50:46]Waiting for new connection... [02:50:46] Sock 8.Parse request [02:50:46]Sock 8.Check first char [02:50:46]Sock 8.First char is OK [02:50:46]request: POST /json_proto HTTP/1.0 [02:50:46]Method: POST [02:50:46]URL: /json_proto [02:50:46]Method is POST - this is cgi request [02:50:46]url: /json_proto [02:50:46]query_string will be loaded in cgi processing [02:50:46]execute_cgi json_proto POST (null) [02:50:46]execute_cgi path=json_proto method=POST [02:50:46]POST find Content-Length [02:50:46]Host: 172.17.41.136:8080 [02:50:46]Content-Length: 1344 [02:50:46]Content-Type: application/json [02:50:46] [02:50:46]POST finish read [02:50:46]Found Content-Length = 1344 [02:50:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343955", "tax_sys" : 0, "items" : [ { "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 369.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:50:46]execute_script... [02:50:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343955", "tax_sys" : 0, "items" : [ { "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 369.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:50:46]POST & json_proto [02:50:46]process_json_proto [02:50:46]json parsed OK: [02:50:46]protocol is kg_v1.0 [02:50:46]action value=close_receipt [02:50:46]process_action close_receipt [02:50:46]cmd_close_receipt [02:50:46]MH_GetDate [02:50:46]Write to MH i2c: F0 00 00 E6 04 D9 [02:50:46]Write i2c OK [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: F0 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: F0 09 00 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: F0 09 00 E6 04 00 87 D7 F0 66 1B D0 5A 64 3F [02:50:46]GetLastDocTimeStamp 1727059691 [02:50:46]current date 1727059847 [02:50:46]FM_GetShiftState [02:50:46]SAM_PROTO_GetShiftState [02:50:46]wFMCommunicate request_size=4 [02:50:46]MH_SAM_APDU [02:50:46]CAPDU: 80 13 01 00 [02:50:46]Write to MH i2c: E2 08 00 E7 04 80 13 01 00 00 00 00 00 68 [02:50:46]Write i2c OK [02:50:46]MH_I2C_Read... [02:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:46]Read from MH i2c: E2 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 0E 00 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 0E 00 E7 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A9 [02:50:46]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [02:50:46]wFMCommunicate OK [02:50:46]SAM_PROTO_GetShiftState done [02:50:46]FM_GetShiftState done [02:50:46]opened in 1727052070 [02:50:46]opened+sec_in_day 1727138470 [02:50:46]quantity*price = 4500 [02:50:46]sum+1 = 4501 [02:50:46]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007400655 Семечки ДЖИНН 70г синий 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 369.00 НСП 1% : 3.26 НДС 12% : 39.18 Наличными: 369.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 12 23.09.2024 02:50 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115529 ФПД: 85203551252678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T025047&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115529&fm=85203551252678&tin=02508201610067®Number=0000000000091831&sum=36900 0 [02:50:47]StoreToDocumentArchive [02:50:47]shift 472 fd 115529 [02:50:47]save to /storage/0472/doc_00115529 [02:50:47]save last doc name /storage/0472/doc_00115529 to /storage/kkm_last_doc_name [02:50:47]save OK [02:50:47]Clear old archive folders... [02:50:47]ProcessDocumentItem done err = 0, tmpTLVsize=578 [02:50:47]tlvbuf is 011DCD00 [02:50:47]SAM_PROTO_ClearQueue [02:50:47]wFMCommunicate request_size=4 [02:50:47]MH_SAM_APDU [02:50:47]CAPDU: 80 09 00 00 [02:50:47]Write to MH i2c: E2 08 00 F4 04 80 09 00 00 00 00 00 00 6A [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:50:47]Read from MH i2c: E2 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 03 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 03 00 F4 04 00 90 00 6C [02:50:47]RAPDU: 90 00 [02:50:47]wFMCommunicate OK [02:50:47]SAM_PROTO_ClearQueue done [02:50:47]KKMCreateOFDPacket [02:50:47]OFDProtocolAddRootSTLVToBuf [02:50:47]FM_MakeSignedData [02:50:47]FM_MakeSignedData [02:50:47]SAM_PROTO_SignData [02:50:47]wFMCommunicate request_size=4 [02:50:47]MH_SAM_APDU [02:50:47]CAPDU: 80 0D 01 02 [02:50:47]Write to MH i2c: E2 08 00 F5 04 80 0D 01 02 00 00 00 00 72 [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:50:48]Read from MH i2c: E2 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: E2 03 00 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: E2 03 00 F5 04 00 90 00 6D [02:50:48]RAPDU: 90 00 [02:50:48]wFMCommunicate OK [02:50:48]wFMCommunicate request_size=255 [02:50:48]MH_SAM_APDU [02:50:48]CAPDU: 80 0D 02 02 FA 03 00 42 02 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 [02:50:48]Write to MH i2c: E2 02 01 F6 04 80 0D 02 02 FA 00 03 00 42 02 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 00 00 16 [02:50:48]Write i2c OK [02:50:48]MH_I2C_Read... [02:50:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:48]Read from MH i2c: E2 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: E2 03 00 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: E2 03 00 F6 04 00 90 00 6E [02:50:48]RAPDU: 90 00 [02:50:48]wFMCommunicate OK [02:50:48]wFMCommunicate request_size=255 [02:50:48]MH_SAM_APDU [02:50:48]CAPDU: 80 0D 02 02 FA 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 0F 00 00 00 00 07 04 06 00 24 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 0C [02:50:48]Write to MH i2c: E2 02 01 F7 04 80 0D 02 02 FA 00 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 0F 00 00 00 00 07 04 06 00 24 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 0C 00 00 FF [02:50:48]Write i2c OK [02:50:48]MH_I2C_Read... [02:50:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:48]Read from MH i2c: E2 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: E2 03 00 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: E2 03 00 F7 04 00 90 00 6F [02:50:48]RAPDU: 90 00 [02:50:48]wFMCommunicate OK [02:50:48]wFMCommunicate request_size=87 [02:50:48]MH_SAM_APDU [02:50:48]CAPDU: 80 0D 02 02 52 00 00 00 F4 03 04 00 87 D7 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 49 C3 01 00 35 04 06 00 4D 7D FF 67 F0 C6 [02:50:48]Write to MH i2c: E2 5A 00 F8 04 80 0D 02 02 52 00 00 00 00 F4 03 04 00 87 D7 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 49 C3 01 00 35 04 06 00 4D 7D FF 67 F0 C6 00 00 38 [02:50:48]Write i2c OK [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: E2 [02:50:48]MH_I2C_Read... [02:50:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:48]Read from MH i2c: E2 03 00 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: E2 03 00 F8 04 00 90 00 70 [02:50:48]RAPDU: 90 00 [02:50:48]wFMCommunicate OK [02:50:48]wFMCommunicate request_size=4 [02:50:48]MH_SAM_APDU [02:50:48]CAPDU: 80 0D 03 02 [02:50:48]Write to MH i2c: E2 08 00 F9 04 80 0D 03 02 00 00 00 00 78 [02:50:48]Write i2c OK [02:50:48]MH_I2C_Read... [02:50:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:50:48]Read from MH i2c: E2 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: E2 0B 00 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: E2 0B 00 F9 04 00 D6 8B 50 C1 10 54 9C 09 90 00 F4 [02:50:48]RAPDU: D6 8B 50 C1 10 54 9C 09 90 00 [02:50:48]wFMCommunicate OK [02:50:48]SAM_PROTO_SignData done [02:50:48]FM_MakeSignedData done [02:50:48]CreateOFDProtocolMessage [02:50:48]wFMCommunicate request_size=4 [02:50:48]MH_SAM_APDU [02:50:48]CAPDU: 80 11 00 00 [02:50:48]Write to MH i2c: E2 08 00 FA 04 80 11 00 00 00 00 00 00 78 [02:50:48]Write i2c OK [02:50:48]MH_I2C_Read... [02:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:48]Read from MH i2c: E2 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: E2 17 00 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: E2 17 00 FA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C6 [02:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:50:48]wFMCommunicate OK [02:50:48]CreateOFDProtocolMessage done [02:50:48]OFDSenderStorePacket 115529 [02:50:48]StoreOFDPacket docnum=115529 [02:50:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 56 02 00 00 1E 3A 4E 02 57 16 5A 03 01 00 03 00 42 02 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 0F 00 00 00 00 07 04 06 00 24 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 0C 00 00 00 F4 03 04 00 87 D7 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 49 C3 01 00 35 04 06 00 4D 7D FF 67 F0 C6 D6 8B 50 C1 10 54 9C 09 [02:50:48]CheckFolder [02:50:48]dirname=/storage/ofd_packets [02:50:48]CheckFolder done [02:50:48]ProducePacketName [02:50:48]name=ofd_packets/00115529 [02:50:48]NVStorageSaveData ofd_packets/00115529 [02:50:48]File name is /storage/ofd_packets/00115529 [02:50:48]Write 628 bytes [02:50:48]NVStorageSaveData done [02:50:48]OFDSenderStorePacket done [02:50:48]KKMCreateOFDPacket done [02:50:48]NVStorageSaveData kkm_last_timestamp [02:50:48]File name is /storage/kkm_last_timestamp [02:50:48]Write 4 bytes [02:50:48]NVStorageSaveData done [02:50:48]ExternCall_PrintAddStr [02:50:48]wPrintStart [02:50:48]Write to MH i2c: 01 00 00 FB 04 FF [02:50:48]Write i2c OK [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: 01 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: 01 07 00 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: 01 07 00 FB 04 00 00 00 00 00 FF 0F 14 [02:50:48]RasterBufferAndPrint [02:50:48]line Счет N : (3)343955 [02:50:48]line ИНН: 02508201610067 [02:50:48]line Контрольно-Кассовый Чек [02:50:48]line ПРОДАЖА [02:50:48]line Товар: 42069942 [02:50:48]line Жев Orbit White Fresh Mint [02:50:48]line 1.000 * 45.00 [02:50:48]line = 45.00 [02:50:48]line НДС 12% НСП 1% [02:50:48]line > о реализуемом товаре [02:50:48]line Товар: 4870001570071 [02:50:48]line Напиток Pepsi 1л [02:50:48]line 1.000 * 110.00 [02:50:48]line = 110.00 [02:50:48]line НДС 12% НСП 1% [02:50:48]line > о реализуемом товаре [02:50:48]line Товар: 4630007400655 [02:50:48]line Семечки ДЖИНН 70г синий [02:50:48]line 1.000 * 70.00 [02:50:48]line = 70.00 [02:50:48]line НДС 12% НСП 1% [02:50:48]line > о реализуемом товаре [02:50:48]line Товар: 48743570 [02:50:48]line Сигареты Winston XStyle Blue [02:50:48]line 1.000 * 144.00 [02:50:48]line = 144.00 [02:50:48]line НДС 12% НСП 1% [02:50:48]line > о реализуемом товаре [02:50:48]line ИТОГО: 369.00 [02:50:48]line НСП 1% : 3.26 [02:50:48]line НДС 12% : 39.18 [02:50:48]line Наличными: 369.00 [02:50:48]line Безнал.: 0.00 [02:50:49]line Место: АЗС № 90 "Партнер Нефть" [02:50:49]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [02:50:49]line СНО: Общий режим [02:50:49]line Чек 12 23.09.2024 02:50 [02:50:49]line Смена: 472 ФФД: 1.0 [02:50:49]line ЗНМ: 0300000120 [02:50:49]line РНМ: 0000000000091831 [02:50:49]line Версия ККМ: 001 [02:50:49]line ФМ: 0000000000871830 [02:50:49]line ФД: 115529 [02:50:49]line ФПД: 85203551252678 [02:50:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T025047&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115529&fm=85203551252678&tin=02508201610067®Number=0000000000091831&sum=36900 [02:50:49]line 0 [02:50:49]OFD Sender: Processing packet 115529 [packets to send 481, broken 480] [02:50:49]ProducePacketName [02:50:49]name=ofd_packets/00115529 [02:50:49]OFD Sender: To server: pG, [02:50:49]CommunicateWithHost lk.salyk.kg:30040 [02:50:49]ConnectInit lk.salyk.kg [02:50:49]written 0, free lines is 4095 [02:50:49]Connected sock=10 [02:50:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 56 02 00 00 1E 3A 4E 02 57 16 5A 03 01 00 03 00 42 02 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 0F 00 00 00 00 07 04 06 00 24 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 0C 00 00 00 F4 03 04 00 87 D7 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 49 C3 01 00 35 04 06 00 4D 7D FF 67 F0 C6 D6 8B 50 C1 10 54 9C 09 [02:50:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 14 A0 47 00 88 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 49 C3 01 00 F4 03 04 00 CB 7C F0 66 B6 04 01 00 00 7E E7 DB 16 F6 30 69 D6 [02:50:49]CommunicateWithHost err = 0 [02:50:49]CheckOFDResponse [02:50:49]1017 (14) - 77093643461234 [02:50:49]1041 (16) - 0000000000871830 [02:50:49]1040 (4) - 115529 [02:50:49]1012 (4) - 22.09.2024 20:23 [02:50:49]1206 (1) - 0 [02:50:49]OFD Sender: Remove packet 115529 [02:50:49]ProducePacketName [02:50:49]name=ofd_packets/00115529 [02:50:49]NVStorageDeleteData [02:50:49]Write to MH i2c: 01 00 00 34 05 39 [02:50:49]Write i2c OK [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: 01 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: 01 07 00 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: 01 07 00 34 05 00 00 00 00 00 FD 0A 47 [02:50:49]RasterBufferAndPrint [02:50:49]line [02:50:49]line [02:50:49]line [02:50:49]line [02:50:49]line [02:50:49]written 0, free lines is 2818 [02:50:49]MH_Cut [02:50:49]Write to MH i2c: D1 01 00 3B 05 01 12 [02:50:49]Write i2c OK [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: D1 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: D1 01 00 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: D1 01 00 3B 05 00 11 [02:50:49]Write to MH i2c: 01 00 00 3C 05 41 [02:50:49]Write i2c OK [02:50:49]MH_I2C_Read... [02:50:50]OFD Sender: No OFD packet to send [02:50:51]*** Cut start [02:50:51]*** Partial cut [02:50:51]*** CUTSNS_PIN = 1 [02:50:51]*** CUTSNS_PIN = 0 [02:50:51]*** Brake cut motor [02:50:52]Read from MH i2c: 01 [02:50:52]MH_I2C_Read... [02:50:52]*** Stop cut motor [02:50:52]*** Cut end [02:50:52]Read from MH i2c: 01 07 00 [02:50:52]MH_I2C_Read... [02:50:52]Read from MH i2c: 01 07 00 3C 05 00 00 00 00 00 FF 0F 56 [02:50:52]process_action close_receipt done [02:50:52]requested_data is exist [02:50:52]produce_requested_data [02:50:52]requested_item fm.sn is exist - process it [02:50:52]wFMCommunicate request_size=4 [02:50:52]MH_SAM_APDU [02:50:52]CAPDU: 80 11 00 00 [02:50:52]Write to MH i2c: E2 08 00 3D 05 80 11 00 00 00 00 00 00 BC [02:50:52]Write i2c OK [02:50:52]MH_I2C_Read... [02:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:52]Read from MH i2c: E2 [02:50:52]MH_I2C_Read... [02:50:52]Read from MH i2c: E2 17 00 [02:50:52]MH_I2C_Read... [02:50:52]Read from MH i2c: E2 17 00 3D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0A [02:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:50:52]wFMCommunicate OK [02:50:52]requested_item fd.num is exist - process it [02:50:52]SAM_PROTO_GetFieldsCounters [02:50:52]wFMCommunicate request_size=4 [02:50:52]MH_SAM_APDU [02:50:52]CAPDU: 80 13 00 00 [02:50:52]Write to MH i2c: E2 08 00 3E 05 80 13 00 00 00 00 00 00 BF [02:50:52]Write i2c OK [02:50:52]MH_I2C_Read... [02:50:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:50:52]Read from MH i2c: E2 [02:50:52]MH_I2C_Read... [02:50:52]Read from MH i2c: E2 62 00 [02:50:52]MH_I2C_Read... [02:50:52]Read from MH i2c: E2 62 00 3E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 49 C3 01 00 0E 04 04 00 D8 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 E2 [02:50:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 49 C3 01 00 0E 04 04 00 D8 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 [02:50:52]wFMCommunicate OK [02:50:52]SAM_PROTO_GetFieldsCounters done [02:50:52]requested_item shift.num is exist - process it [02:50:52]requested_item shift.opened is exist - process it [02:50:52]req_shift_opened [02:50:52]FM_GetShiftState [02:50:52]SAM_PROTO_GetShiftState [02:50:52]wFMCommunicate request_size=4 [02:50:52]MH_SAM_APDU [02:50:52]CAPDU: 80 13 01 00 [02:50:52]Write to MH i2c: E2 08 00 3F 05 80 13 01 00 00 00 00 00 C1 [02:50:52]Write i2c OK [02:50:52]MH_I2C_Read... [02:50:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:52]Read from MH i2c: E2 [02:50:52]MH_I2C_Read... [02:50:52]Read from MH i2c: E2 0E 00 [02:50:52]MH_I2C_Read... [02:50:52]Read from MH i2c: E2 0E 00 3F 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 02 [02:50:52]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [02:50:52]wFMCommunicate OK [02:50:52]SAM_PROTO_GetShiftState done [02:50:52]FM_GetShiftState done [02:50:52]req_shift_opened done [02:50:52]requested_item shift.open_date is exist - process it [02:50:52]req_shift_open_date [02:50:52]req_shift_open_date done [02:50:52]produce_requested_data done [02:50:52]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115529,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [02:50:52]process_action_free close_receipt [02:50:52]json_value_free [02:50:52]json_value_free done [02:50:52]process_json_proto returns [02:50:52]Send response to host [02:50:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115529,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [02:50:52]free response buf [02:50:52]execute_script done [02:50:52]execute_script returns [02:50:52]free content buf [02:50:52]Sock 8.Close socket [02:50:52]Sock 8.Thread stoped [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 [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:31]accept exits with 9 [02:54:31]New connection [02:54:31]New thread 3067313508 created [02:54:31]Thread 3067170148 joined [02:54:31]Waiting for new connection... [02:54:31] Sock 9.Parse request [02:54:31]Sock 9.Check first char [02:54:31]Sock 9.First char is OK [02:54:31]request: POST /json_proto HTTP/1.0 [02:54:31]Method: POST [02:54:31]URL: /json_proto [02:54:31]Method is POST - this is cgi request [02:54:31]url: /json_proto [02:54:31]query_string will be loaded in cgi processing [02:54:31]execute_cgi json_proto POST (null) [02:54:31]execute_cgi path=json_proto method=POST [02:54:31]POST find Content-Length [02:54:31]Host: 172.17.41.136:8080 [02:54:31]Content-Length: 1163 [02:54:31]Content-Type: application/json [02:54:31] [02:54:31]POST finish read [02:54:31]Found Content-Length = 1163 [02:54:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343956", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 3.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 3.000, "sum" : 177.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 987.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:54:31]execute_script... [02:54:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343956", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 3.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 3.000, "sum" : 177.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 987.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:54:31]POST & json_proto [02:54:31]process_json_proto [02:54:31]json parsed OK: [02:54:31]protocol is kg_v1.0 [02:54:31]action value=close_receipt [02:54:31]process_action close_receipt [02:54:31]cmd_close_receipt [02:54:31]MH_GetDate [02:54:31]Write to MH i2c: F0 00 00 40 05 34 [02:54:31]Write i2c OK [02:54:31]MH_I2C_Read... [02:54:31]Read from MH i2c: F0 [02:54:31]MH_I2C_Read... [02:54:31]Read from MH i2c: F0 09 00 [02:54:31]MH_I2C_Read... [02:54:31]Read from MH i2c: F0 09 00 40 05 00 67 D8 F0 66 1B D0 5A 64 7B [02:54:31]GetLastDocTimeStamp 1727059847 [02:54:31]current date 1727060071 [02:54:31]FM_GetShiftState [02:54:31]SAM_PROTO_GetShiftState [02:54:31]wFMCommunicate request_size=4 [02:54:31]MH_SAM_APDU [02:54:31]CAPDU: 80 13 01 00 [02:54:31]Write to MH i2c: E2 08 00 41 05 80 13 01 00 00 00 00 00 C3 [02:54:31]Write i2c OK [02:54:31]MH_I2C_Read... [02:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:54:31]Read from MH i2c: E2 [02:54:31]MH_I2C_Read... [02:54:31]Read from MH i2c: E2 0E 00 [02:54:31]MH_I2C_Read... [02:54:31]Read from MH i2c: E2 0E 00 41 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 04 [02:54:31]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [02:54:31]wFMCommunicate OK [02:54:31]SAM_PROTO_GetShiftState done [02:54:31]FM_GetShiftState done [02:54:31]opened in 1727052070 [02:54:31]opened+sec_in_day 1727138470 [02:54:31]quantity*price = 51000 [02:54:31]sum+1 = 51001 [02:54:31]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002326172 Вода ASU пит н.газ лимон ПЭТ 1л 3.000 * 100.00 = 300.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 3.000 * 59.00 = 177.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 987.00 НСП 1% : 8.73 НДС 12% : 104.82 Наличными: 987.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 13 23.09.2024 02:54 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115530 ФПД: 182295877324642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T025431&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115530&fm=182295877324642&tin=02508201610067®Number=0000000000091831&sum=98700 0 [02:54:32]StoreToDocumentArchive [02:54:32]shift 472 fd 115530 [02:54:32]save to /storage/0472/doc_00115530 [02:54:32]save last doc name /storage/0472/doc_00115530 to /storage/kkm_last_doc_name [02:54:32]save OK [02:54:32]Clear old archive folders... [02:54:32]ProcessDocumentItem done err = 0, tmpTLVsize=496 [02:54:32]tlvbuf is 012066C0 [02:54:32]SAM_PROTO_ClearQueue [02:54:32]wFMCommunicate request_size=4 [02:54:32]MH_SAM_APDU [02:54:32]CAPDU: 80 09 00 00 [02:54:32]Write to MH i2c: E2 08 00 4E 05 80 09 00 00 00 00 00 00 C5 [02:54:32]Write i2c OK [02:54:32]MH_I2C_Read... [02:54:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:54:32]Read from MH i2c: E2 [02:54:32]MH_I2C_Read... [02:54:32]Read from MH i2c: E2 03 00 [02:54:32]MH_I2C_Read... [02:54:32]Read from MH i2c: E2 03 00 4E 05 00 90 00 C7 [02:54:32]RAPDU: 90 00 [02:54:32]wFMCommunicate OK [02:54:32]SAM_PROTO_ClearQueue done [02:54:32]KKMCreateOFDPacket [02:54:32]OFDProtocolAddRootSTLVToBuf [02:54:32]FM_MakeSignedData [02:54:32]FM_MakeSignedData [02:54:32]SAM_PROTO_SignData [02:54:32]wFMCommunicate request_size=4 [02:54:32]MH_SAM_APDU [02:54:32]CAPDU: 80 0D 01 02 [02:54:32]Write to MH i2c: E2 08 00 4F 05 80 0D 01 02 00 00 00 00 CD [02:54:32]Write i2c OK [02:54:32]MH_I2C_Read... [02:54:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:54:32]Read from MH i2c: E2 [02:54:32]MH_I2C_Read... [02:54:32]Read from MH i2c: E2 03 00 [02:54:32]MH_I2C_Read... [02:54:32]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [02:54:32]RAPDU: 90 00 [02:54:32]wFMCommunicate OK [02:54:32]wFMCommunicate request_size=255 [02:54:32]MH_SAM_APDU [02:54:32]CAPDU: 80 0D 02 02 FA 03 00 F0 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 [02:54:32]Write to MH i2c: E2 02 01 50 05 80 0D 02 02 FA 00 03 00 F0 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 00 00 AD [02:54:32]Write i2c OK [02:54:32]MH_I2C_Read... [02:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:54:32]Read from MH i2c: E2 [02:54:32]MH_I2C_Read... [02:54:32]Read from MH i2c: E2 03 00 [02:54:32]MH_I2C_Read... [02:54:32]Read from MH i2c: E2 03 00 50 05 00 90 00 C9 [02:54:32]RAPDU: 90 00 [02:54:32]wFMCommunicate OK [02:54:32]wFMCommunicate request_size=255 [02:54:32]MH_SAM_APDU [02:54:32]CAPDU: 80 0D 02 02 FA A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 28 00 00 00 00 07 04 06 00 8C 81 01 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 67 D8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4A C3 01 00 35 04 06 00 A5 CC 11 03 0F 62 [02:54:32]Write to MH i2c: E2 02 01 51 05 80 0D 02 02 FA 00 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 28 00 00 00 00 07 04 06 00 8C 81 01 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 67 D8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4A C3 01 00 35 04 06 00 A5 CC 11 03 0F 62 00 00 12 [02:54:32]Write i2c OK [02:54:32]MH_I2C_Read... [02:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:54:33]Read from MH i2c: E2 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: E2 03 00 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: E2 03 00 51 05 00 90 00 CA [02:54:33]RAPDU: 90 00 [02:54:33]wFMCommunicate OK [02:54:33]wFMCommunicate request_size=4 [02:54:33]MH_SAM_APDU [02:54:33]CAPDU: 80 0D 03 02 [02:54:33]Write to MH i2c: E2 08 00 52 05 80 0D 03 02 00 00 00 00 D2 [02:54:33]Write i2c OK [02:54:33]MH_I2C_Read... [02:54:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:54:33]Read from MH i2c: E2 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: E2 0B 00 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: E2 0B 00 52 05 00 B0 0B 28 0A 9F A6 2B 7E 90 00 AE [02:54:33]RAPDU: B0 0B 28 0A 9F A6 2B 7E 90 00 [02:54:33]wFMCommunicate OK [02:54:33]SAM_PROTO_SignData done [02:54:33]FM_MakeSignedData done [02:54:33]CreateOFDProtocolMessage [02:54:33]wFMCommunicate request_size=4 [02:54:33]MH_SAM_APDU [02:54:33]CAPDU: 80 11 00 00 [02:54:33]Write to MH i2c: E2 08 00 53 05 80 11 00 00 00 00 00 00 D2 [02:54:33]Write i2c OK [02:54:33]MH_I2C_Read... [02:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:54:33]Read from MH i2c: E2 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: E2 17 00 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: E2 17 00 53 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 20 [02:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:54:33]wFMCommunicate OK [02:54:33]CreateOFDProtocolMessage done [02:54:33]OFDSenderStorePacket 115530 [02:54:33]StoreOFDPacket docnum=115530 [02:54:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 04 02 00 00 20 78 FC 01 F7 A1 5A 03 01 00 03 00 F0 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 28 00 00 00 00 07 04 06 00 8C 81 01 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 67 D8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4A C3 01 00 35 04 06 00 A5 CC 11 03 0F 62 B0 0B 28 0A 9F A6 2B 7E [02:54:33]CheckFolder [02:54:33]dirname=/storage/ofd_packets [02:54:33]CheckFolder done [02:54:33]ProducePacketName [02:54:33]name=ofd_packets/00115530 [02:54:33]NVStorageSaveData ofd_packets/00115530 [02:54:33]File name is /storage/ofd_packets/00115530 [02:54:33]Write 546 bytes [02:54:33]NVStorageSaveData done [02:54:33]OFDSenderStorePacket done [02:54:33]KKMCreateOFDPacket done [02:54:33]NVStorageSaveData kkm_last_timestamp [02:54:33]File name is /storage/kkm_last_timestamp [02:54:33]Write 4 bytes [02:54:33]NVStorageSaveData done [02:54:33]ExternCall_PrintAddStr [02:54:33]wPrintStart [02:54:33]Write to MH i2c: 01 00 00 54 05 59 [02:54:33]Write i2c OK [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: 01 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: 01 07 00 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: 01 07 00 54 05 00 00 00 00 00 FF 0F 6E [02:54:33]RasterBufferAndPrint [02:54:33]line Счет N : (3)343956 [02:54:33]line ИНН: 02508201610067 [02:54:33]line Контрольно-Кассовый Чек [02:54:33]line ПРОДАЖА [02:54:33]line Товар: 4700002083327 [02:54:33]line Водка Level 0,5 [02:54:33]line 1.000 * 510.00 [02:54:33]line = 510.00 [02:54:33]line НДС 12% НСП 1% [02:54:33]line > о реализуемом товаре [02:54:33]line Товар: 4870002326172 [02:54:33]line Вода ASU пит н.газ лимон ПЭТ 1л [02:54:33]line 3.000 * 100.00 [02:54:33]line = 300.00 [02:54:33]line НДС 12% НСП 1% [02:54:33]line > о реализуемом товаре [02:54:33]line Товар: 4607065001445 [02:54:33]line Шок батончик Snickers 50,5г [02:54:33]line 3.000 * 59.00 [02:54:33]line = 177.00 [02:54:33]line НДС 12% НСП 1% [02:54:33]line > о реализуемом товаре [02:54:33]line ИТОГО: 987.00 [02:54:33]line НСП 1% : 8.73 [02:54:33]line НДС 12% : 104.82 [02:54:33]line Наличными: 987.00 [02:54:33]line Безнал.: 0.00 [02:54:33]line Место: АЗС № 90 "Партнер Нефть" [02:54:33]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [02:54:33]line СНО: Общий режим [02:54:33]line Чек 13 23.09.2024 02:54 [02:54:33]line Смена: 472 ФФД: 1.0 [02:54:33]line ЗНМ: 0300000120 [02:54:33]line РНМ: 0000000000091831 [02:54:33]line Версия ККМ: 001 [02:54:33]line ФМ: 0000000000871830 [02:54:33]line ФД: 115530 [02:54:33]line ФПД: 182295877324642 [02:54:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T025431&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115530&fm=182295877324642&tin=02508201610067®Number=0000000000091831&sum=98700 [02:54:33]line 0 [02:54:33]written 0, free lines is 4095 [02:54:33]OFD Sender: Processing packet 115530 [packets to send 481, broken 480] [02:54:33]ProducePacketName [02:54:33]name=ofd_packets/00115530 [02:54:33]OFD Sender: To server: pG, [02:54:33]CommunicateWithHost lk.salyk.kg:30040 [02:54:33]ConnectInit lk.salyk.kg [02:54:33]Connected sock=11 [02:54:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 04 02 00 00 20 78 FC 01 F7 A1 5A 03 01 00 03 00 F0 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 28 00 00 00 00 07 04 06 00 8C 81 01 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 67 D8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4A C3 01 00 35 04 06 00 A5 CC 11 03 0F 62 B0 0B 28 0A 9F A6 2B 7E [02:54:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 92 31 47 00 9D 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4A C3 01 00 F4 03 04 00 AC 7D F0 66 B6 04 01 00 00 7C DC E1 D3 63 14 69 AD [02:54:33]CommunicateWithHost err = 0 [02:54:33]CheckOFDResponse [02:54:33]1017 (14) - 77093643461234 [02:54:33]1041 (16) - 0000000000871830 [02:54:33]1040 (4) - 115530 [02:54:33]1012 (4) - 22.09.2024 20:27 [02:54:33]1206 (1) - 0 [02:54:33]OFD Sender: Remove packet 115530 [02:54:33]ProducePacketName [02:54:33]name=ofd_packets/00115530 [02:54:33]NVStorageDeleteData [02:54:33]Write to MH i2c: 01 00 00 88 05 8D [02:54:33]Write i2c OK [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: 01 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: 01 07 00 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: 01 07 00 88 05 00 00 00 00 00 6A 0B 09 [02:54:33]RasterBufferAndPrint [02:54:33]line [02:54:33]line [02:54:33]line [02:54:33]line [02:54:33]line [02:54:33]written 0, free lines is 2925 [02:54:33]MH_Cut [02:54:33]Write to MH i2c: D1 01 00 8F 05 01 66 [02:54:33]Write i2c OK [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: D1 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: D1 01 00 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: D1 01 00 8F 05 00 65 [02:54:33]Write to MH i2c: 01 00 00 90 05 95 [02:54:33]Write i2c OK [02:54:33]MH_I2C_Read... [02:54:34]OFD Sender: No OFD packet to send [02:54:35]*** Cut start [02:54:35]*** Partial cut [02:54:35]*** CUTSNS_PIN = 1 [02:54:35]*** CUTSNS_PIN = 0 [02:54:35]*** Brake cut motor [02:54:36]Read from MH i2c: 01 [02:54:36]MH_I2C_Read... [02:54:36]*** Stop cut motor [02:54:36]*** Cut end [02:54:36]Read from MH i2c: 01 07 00 [02:54:36]MH_I2C_Read... [02:54:36]Read from MH i2c: 01 07 00 90 05 00 00 00 00 00 FF 0F AA [02:54:36]process_action close_receipt done [02:54:36]requested_data is exist [02:54:36]produce_requested_data [02:54:36]requested_item fm.sn is exist - process it [02:54:36]wFMCommunicate request_size=4 [02:54:36]MH_SAM_APDU [02:54:36]CAPDU: 80 11 00 00 [02:54:36]Write to MH i2c: E2 08 00 91 05 80 11 00 00 00 00 00 00 10 [02:54:36]Write i2c OK [02:54:36]MH_I2C_Read... [02:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:54:36]Read from MH i2c: E2 [02:54:36]MH_I2C_Read... [02:54:36]Read from MH i2c: E2 17 00 [02:54:36]MH_I2C_Read... [02:54:36]Read from MH i2c: E2 17 00 91 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5E [02:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:54:36]wFMCommunicate OK [02:54:36]requested_item fd.num is exist - process it [02:54:36]SAM_PROTO_GetFieldsCounters [02:54:36]wFMCommunicate request_size=4 [02:54:36]MH_SAM_APDU [02:54:36]CAPDU: 80 13 00 00 [02:54:36]Write to MH i2c: E2 08 00 92 05 80 13 00 00 00 00 00 00 13 [02:54:36]Write i2c OK [02:54:36]MH_I2C_Read... [02:54:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:54:36]Read from MH i2c: E2 [02:54:36]MH_I2C_Read... [02:54:36]Read from MH i2c: E2 62 00 [02:54:36]MH_I2C_Read... [02:54:36]Read from MH i2c: E2 62 00 92 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4A C3 01 00 0E 04 04 00 D8 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 3A [02:54:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4A C3 01 00 0E 04 04 00 D8 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 [02:54:36]wFMCommunicate OK [02:54:36]SAM_PROTO_GetFieldsCounters done [02:54:36]requested_item shift.num is exist - process it [02:54:36]requested_item shift.opened is exist - process it [02:54:36]req_shift_opened [02:54:36]FM_GetShiftState [02:54:36]SAM_PROTO_GetShiftState [02:54:36]wFMCommunicate request_size=4 [02:54:36]MH_SAM_APDU [02:54:36]CAPDU: 80 13 01 00 [02:54:36]Write to MH i2c: E2 08 00 93 05 80 13 01 00 00 00 00 00 15 [02:54:36]Write i2c OK [02:54:36]MH_I2C_Read... [02:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:54:36]Read from MH i2c: E2 [02:54:36]MH_I2C_Read... [02:54:36]Read from MH i2c: E2 0E 00 [02:54:36]MH_I2C_Read... [02:54:36]Read from MH i2c: E2 0E 00 93 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 56 [02:54:36]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [02:54:36]wFMCommunicate OK [02:54:36]SAM_PROTO_GetShiftState done [02:54:36]FM_GetShiftState done [02:54:36]req_shift_opened done [02:54:36]requested_item shift.open_date is exist - process it [02:54:36]req_shift_open_date [02:54:36]req_shift_open_date done [02:54:36]produce_requested_data done [02:54:36]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115530,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [02:54:36]process_action_free close_receipt [02:54:36]json_value_free [02:54:36]json_value_free done [02:54:36]process_json_proto returns [02:54:36]Send response to host [02:54:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115530,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [02:54:36]free response buf [02:54:36]execute_script done [02:54:36]execute_script returns [02:54:36]free content buf [02:54:36]Sock 9.Close socket [02:54:36]Sock 9.Thread stoped [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]accept exits with 8 [02:56:59]New connection [02:56:59]New thread 3067170148 created [02:56:59]Thread 3067313508 joined [02:56:59]Waiting for new connection... [02:56:59] Sock 8.Parse request [02:56:59]Sock 8.Check first char [02:56:59]Sock 8.First char is OK [02:56:59]request: POST /json_proto HTTP/1.0 [02:56:59]Method: POST [02:56:59]URL: /json_proto [02:56:59]Method is POST - this is cgi request [02:56:59]url: /json_proto [02:56:59]query_string will be loaded in cgi processing [02:56:59]execute_cgi json_proto POST (null) [02:56:59]execute_cgi path=json_proto method=POST [02:56:59]POST find Content-Length [02:56:59]Host: 172.17.41.136:8080 [02:56:59]Content-Length: 1101 [02:56:59]Content-Type: application/json [02:56:59] [02:56:59]POST finish read [02:56:59]Found Content-Length = 1101 [02:56:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343957", "tax_sys" : 0, "items" : [ { "code": "4700003150714", "name": "\u0412\u043E\u0434\u043A\u0430 FAVORIT 0,7", "price" : 780.00, "quantity" : 1.000, "sum" : 780.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600452021095", "name": "\u0411\u0435\u043B\u044B\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 OZera Caramel 90\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1020.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:56:59]execute_script... [02:56:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343957", "tax_sys" : 0, "items" : [ { "code": "4700003150714", "name": "\u0412\u043E\u0434\u043A\u0430 FAVORIT 0,7", "price" : 780.00, "quantity" : 1.000, "sum" : 780.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600452021095", "name": "\u0411\u0435\u043B\u044B\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 OZera Caramel 90\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1020.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:56:59]POST & json_proto [02:56:59]process_json_proto [02:56:59]json parsed OK: [02:56:59]protocol is kg_v1.0 [02:56:59]action value=close_receipt [02:56:59]process_action close_receipt [02:56:59]cmd_close_receipt [02:56:59]MH_GetDate [02:56:59]Write to MH i2c: F0 00 00 94 05 88 [02:56:59]Write i2c OK [02:56:59]MH_I2C_Read... [02:56:59]Read from MH i2c: F0 [02:56:59]MH_I2C_Read... [02:56:59]Read from MH i2c: F0 09 00 [02:56:59]MH_I2C_Read... [02:56:59]Read from MH i2c: F0 09 00 94 05 00 FB D8 F0 66 1B D0 5A 64 63 [02:56:59]GetLastDocTimeStamp 1727060071 [02:56:59]current date 1727060219 [02:56:59]FM_GetShiftState [02:56:59]SAM_PROTO_GetShiftState [02:56:59]wFMCommunicate request_size=4 [02:56:59]MH_SAM_APDU [02:56:59]CAPDU: 80 13 01 00 [02:56:59]Write to MH i2c: E2 08 00 95 05 80 13 01 00 00 00 00 00 17 [02:56:59]Write i2c OK [02:56:59]MH_I2C_Read... [02:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:56:59]Read from MH i2c: E2 [02:56:59]MH_I2C_Read... [02:56:59]Read from MH i2c: E2 0E 00 [02:56:59]MH_I2C_Read... [02:56:59]Read from MH i2c: E2 0E 00 95 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 58 [02:56:59]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [02:56:59]wFMCommunicate OK [02:56:59]SAM_PROTO_GetShiftState done [02:56:59]FM_GetShiftState done [02:56:59]opened in 1727052070 [02:56:59]opened+sec_in_day 1727138470 [02:56:59]quantity*price = 78000 [02:56:59]sum+1 = 78001 [02:56:59]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600452021095 Белый шоколад OZera Caramel 90г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1020.00 НСП 1% : 9.02 НДС 12% : 108.31 Наличными: 1020.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 14 23.09.2024 02:56 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115531 ФПД: 7188746252547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T025659&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115531&fm=7188746252547&tin=02508201610067®Number=0000000000091831&sum=102000 0 [02:57:00]StoreToDocumentArchive [02:57:00]shift 472 fd 115531 [02:57:00]save to /storage/0472/doc_00115531 [02:57:00]save last doc name /storage/0472/doc_00115531 to /storage/kkm_last_doc_name [02:57:00]save OK [02:57:00]Clear old archive folders... [02:57:00]ProcessDocumentItem done err = 0, tmpTLVsize=476 [02:57:00]tlvbuf is 011D2600 [02:57:00]SAM_PROTO_ClearQueue [02:57:00]wFMCommunicate request_size=4 [02:57:00]MH_SAM_APDU [02:57:00]CAPDU: 80 09 00 00 [02:57:00]Write to MH i2c: E2 08 00 A2 05 80 09 00 00 00 00 00 00 19 [02:57:00]Write i2c OK [02:57:00]MH_I2C_Read... [02:57:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:57:00]Read from MH i2c: E2 [02:57:00]MH_I2C_Read... [02:57:00]Read from MH i2c: E2 03 00 [02:57:00]MH_I2C_Read... [02:57:00]Read from MH i2c: E2 03 00 A2 05 00 90 00 1B [02:57:00]RAPDU: 90 00 [02:57:00]wFMCommunicate OK [02:57:00]SAM_PROTO_ClearQueue done [02:57:00]KKMCreateOFDPacket [02:57:00]OFDProtocolAddRootSTLVToBuf [02:57:00]FM_MakeSignedData [02:57:00]FM_MakeSignedData [02:57:00]SAM_PROTO_SignData [02:57:00]wFMCommunicate request_size=4 [02:57:00]MH_SAM_APDU [02:57:00]CAPDU: 80 0D 01 02 [02:57:00]Write to MH i2c: E2 08 00 A3 05 80 0D 01 02 00 00 00 00 21 [02:57:00]Write i2c OK [02:57:00]MH_I2C_Read... [02:57:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:57:00]Read from MH i2c: E2 [02:57:00]MH_I2C_Read... [02:57:00]Read from MH i2c: E2 03 00 [02:57:00]MH_I2C_Read... [02:57:00]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [02:57:00]RAPDU: 90 00 [02:57:00]wFMCommunicate OK [02:57:00]wFMCommunicate request_size=255 [02:57:00]MH_SAM_APDU [02:57:00]CAPDU: 80 0D 02 02 FA 03 00 DC 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 37 31 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 46 41 56 4F 52 49 54 20 30 2C 37 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 30 01 00 00 00 13 04 06 00 B0 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 30 34 35 32 30 32 31 30 39 35 06 04 2C 00 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 [02:57:00]Write to MH i2c: E2 02 01 A4 05 80 0D 02 02 FA 00 03 00 DC 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 37 31 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 46 41 56 4F 52 49 54 20 30 2C 37 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 30 01 00 00 00 13 04 06 00 B0 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 30 34 35 32 30 32 31 30 39 35 06 04 2C 00 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 00 00 D4 [02:57:00]Write i2c OK [02:57:00]MH_I2C_Read... [02:57:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:57:00]Read from MH i2c: E2 [02:57:00]MH_I2C_Read... [02:57:00]Read from MH i2c: E2 03 00 [02:57:00]MH_I2C_Read... [02:57:00]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [02:57:00]RAPDU: 90 00 [02:57:00]wFMCommunicate OK [02:57:00]wFMCommunicate request_size=235 [02:57:00]MH_SAM_APDU [02:57:00]CAPDU: 80 0D 02 02 E6 4F 5A 65 72 61 20 43 61 72 61 6D 65 6C 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 2A 00 00 00 00 07 04 06 00 70 8E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 FB D8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4B C3 01 00 35 04 06 00 06 89 C2 AA B1 03 [02:57:00]Write to MH i2c: E2 EE 00 A5 05 80 0D 02 02 E6 00 4F 5A 65 72 61 20 43 61 72 61 6D 65 6C 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 2A 00 00 00 00 07 04 06 00 70 8E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 FB D8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4B C3 01 00 35 04 06 00 06 89 C2 AA B1 03 00 00 B8 [02:57:01]Write i2c OK [02:57:01]MH_I2C_Read... [02:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:57:01]Read from MH i2c: E2 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: E2 03 00 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [02:57:01]RAPDU: 90 00 [02:57:01]wFMCommunicate OK [02:57:01]wFMCommunicate request_size=4 [02:57:01]MH_SAM_APDU [02:57:01]CAPDU: 80 0D 03 02 [02:57:01]Write to MH i2c: E2 08 00 A6 05 80 0D 03 02 00 00 00 00 26 [02:57:01]Write i2c OK [02:57:01]MH_I2C_Read... [02:57:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:57:01]Read from MH i2c: E2 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: E2 0B 00 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: E2 0B 00 A6 05 00 9F FA 9A 24 AA E1 80 D9 90 00 62 [02:57:01]RAPDU: 9F FA 9A 24 AA E1 80 D9 90 00 [02:57:01]wFMCommunicate OK [02:57:01]SAM_PROTO_SignData done [02:57:01]FM_MakeSignedData done [02:57:01]CreateOFDProtocolMessage [02:57:01]wFMCommunicate request_size=4 [02:57:01]MH_SAM_APDU [02:57:01]CAPDU: 80 11 00 00 [02:57:01]Write to MH i2c: E2 08 00 A7 05 80 11 00 00 00 00 00 00 26 [02:57:01]Write i2c OK [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: E2 [02:57:01]MH_I2C_Read... [02:57:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:57:01]Read from MH i2c: E2 17 00 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: E2 17 00 A7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 74 [02:57:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:57:01]wFMCommunicate OK [02:57:01]CreateOFDProtocolMessage done [02:57:01]OFDSenderStorePacket 115531 [02:57:01]StoreOFDPacket docnum=115531 [02:57:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F0 01 00 00 FF 47 E8 01 95 7A 5A 03 01 00 03 00 DC 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 37 31 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 46 41 56 4F 52 49 54 20 30 2C 37 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 30 01 00 00 00 13 04 06 00 B0 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 30 34 35 32 30 32 31 30 39 35 06 04 2C 00 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 4F 5A 65 72 61 20 43 61 72 61 6D 65 6C 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 2A 00 00 00 00 07 04 06 00 70 8E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 FB D8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4B C3 01 00 35 04 06 00 06 89 C2 AA B1 03 9F FA 9A 24 AA E1 80 D9 [02:57:01]CheckFolder [02:57:01]dirname=/storage/ofd_packets [02:57:01]CheckFolder done [02:57:01]ProducePacketName [02:57:01]name=ofd_packets/00115531 [02:57:01]NVStorageSaveData ofd_packets/00115531 [02:57:01]File name is /storage/ofd_packets/00115531 [02:57:01]Write 526 bytes [02:57:01]NVStorageSaveData done [02:57:01]OFDSenderStorePacket done [02:57:01]KKMCreateOFDPacket done [02:57:01]NVStorageSaveData kkm_last_timestamp [02:57:01]File name is /storage/kkm_last_timestamp [02:57:01]Write 4 bytes [02:57:01]NVStorageSaveData done [02:57:01]ExternCall_PrintAddStr [02:57:01]wPrintStart [02:57:01]Write to MH i2c: 01 00 00 A8 05 AD [02:57:01]Write i2c OK [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: 01 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: 01 07 00 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: 01 07 00 A8 05 00 00 00 00 00 FF 0F C2 [02:57:01]RasterBufferAndPrint [02:57:01]line Счет N : (3)343957 [02:57:01]line ИНН: 02508201610067 [02:57:01]line Контрольно-Кассовый Чек [02:57:01]line ПРОДАЖА [02:57:01]line Товар: 4700003150714 [02:57:01]line Водка FAVORIT 0,7 [02:57:01]line 1.000 * 780.00 [02:57:01]line = 780.00 [02:57:01]line НДС 12% НСП 1% [02:57:01]line > о реализуемом товаре [02:57:01]line Товар: 4870001570071 [02:57:01]line Напиток Pepsi 1л [02:57:01]line 1.000 * 110.00 [02:57:01]line = 110.00 [02:57:01]line НДС 12% НСП 1% [02:57:01]line > о реализуемом товаре [02:57:01]line Товар: 4600452021095 [02:57:01]line Белый шоколад OZera Caramel 90г [02:57:01]line 1.000 * 130.00 [02:57:01]line = 130.00 [02:57:01]line НДС 12% НСП 1% [02:57:01]line > о реализуемом товаре [02:57:01]line ИТОГО: 1020.00 [02:57:01]line НСП 1% : 9.02 [02:57:01]line НДС 12% : 108.31 [02:57:01]line Наличными: 1020.00 [02:57:01]line Безнал.: 0.00 [02:57:01]line Место: АЗС № 90 "Партнер Нефть" [02:57:01]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [02:57:01]line СНО: Общий режим [02:57:01]line Чек 14 23.09.2024 02:56 [02:57:01]line Смена: 472 ФФД: 1.0 [02:57:01]line ЗНМ: 0300000120 [02:57:01]line РНМ: 0000000000091831 [02:57:01]line Версия ККМ: 001 [02:57:01]line ФМ: 0000000000871830 [02:57:01]line ФД: 115531 [02:57:01]line ФПД: 7188746252547 [02:57:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T025659&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115531&fm=7188746252547&tin=02508201610067®Number=0000000000091831&sum=102000 [02:57:01]line 0 [02:57:01]written 0, free lines is 4095 [02:57:01]OFD Sender: Processing packet 115531 [packets to send 481, broken 480] [02:57:01]ProducePacketName [02:57:01]name=ofd_packets/00115531 [02:57:01]OFD Sender: To server: pG, [02:57:01]CommunicateWithHost lk.salyk.kg:30040 [02:57:01]ConnectInit lk.salyk.kg [02:57:01]Connected sock=10 [02:57:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F0 01 00 00 FF 47 E8 01 95 7A 5A 03 01 00 03 00 DC 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 37 31 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 46 41 56 4F 52 49 54 20 30 2C 37 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 30 01 00 00 00 13 04 06 00 B0 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 30 34 35 32 30 32 31 30 39 35 06 04 2C 00 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 4F 5A 65 72 61 20 43 61 72 61 6D 65 6C 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 2A 00 00 00 00 07 04 06 00 70 8E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 FB D8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4B C3 01 00 35 04 06 00 06 89 C2 AA B1 03 9F FA 9A 24 AA E1 80 D9 [02:57:01]Write to MH i2c: 01 00 00 DC 05 E1 [02:57:01]Write i2c OK [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: 01 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: 01 07 00 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: 01 07 00 DC 05 00 00 00 00 00 6D 0B 60 [02:57:01]RasterBufferAndPrint [02:57:01]line [02:57:01]line [02:57:01]line [02:57:01]line [02:57:01]line [02:57:01]written 0, free lines is 2928 [02:57:01]MH_Cut [02:57:01]Write to MH i2c: D1 01 00 E3 05 01 BA [02:57:01]Write i2c OK [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: D1 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: D1 01 00 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: D1 01 00 E3 05 00 B9 [02:57:01]Write to MH i2c: 01 00 00 E4 05 E9 [02:57:01]Write i2c OK [02:57:01]MH_I2C_Read... [02:57:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 3C 8E 47 00 E8 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4B C3 01 00 F4 03 04 00 40 7E F0 66 B6 04 01 00 00 E0 C6 31 37 B6 20 C2 9A [02:57:01]CommunicateWithHost err = 0 [02:57:01]CheckOFDResponse [02:57:01]1017 (14) - 77093643461234 [02:57:01]1041 (16) - 0000000000871830 [02:57:01]1040 (4) - 115531 [02:57:01]1012 (4) - 22.09.2024 20:29 [02:57:01]1206 (1) - 0 [02:57:01]OFD Sender: Remove packet 115531 [02:57:01]ProducePacketName [02:57:01]name=ofd_packets/00115531 [02:57:01]NVStorageDeleteData [02:57:02]OFD Sender: No OFD packet to send [02:57:03]*** Cut start [02:57:03]*** Partial cut [02:57:03]*** CUTSNS_PIN = 1 [02:57:03]*** CUTSNS_PIN = 0 [02:57:03]*** Brake cut motor [02:57:04]Read from MH i2c: 01 [02:57:04]MH_I2C_Read... [02:57:04]*** Stop cut motor [02:57:04]*** Cut end [02:57:04]Read from MH i2c: 01 07 00 [02:57:04]MH_I2C_Read... [02:57:04]Read from MH i2c: 01 07 00 E4 05 00 00 00 00 00 FF 0F FE [02:57:04]process_action close_receipt done [02:57:04]requested_data is exist [02:57:04]produce_requested_data [02:57:04]requested_item fm.sn is exist - process it [02:57:04]wFMCommunicate request_size=4 [02:57:04]MH_SAM_APDU [02:57:04]CAPDU: 80 11 00 00 [02:57:04]Write to MH i2c: E2 08 00 E5 05 80 11 00 00 00 00 00 00 64 [02:57:04]Write i2c OK [02:57:04]MH_I2C_Read... [02:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:57:04]Read from MH i2c: E2 [02:57:04]MH_I2C_Read... [02:57:04]Read from MH i2c: E2 17 00 [02:57:04]MH_I2C_Read... [02:57:04]Read from MH i2c: E2 17 00 E5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B2 [02:57:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:57:04]wFMCommunicate OK [02:57:04]requested_item fd.num is exist - process it [02:57:04]SAM_PROTO_GetFieldsCounters [02:57:04]wFMCommunicate request_size=4 [02:57:04]MH_SAM_APDU [02:57:04]CAPDU: 80 13 00 00 [02:57:04]Write to MH i2c: E2 08 00 E6 05 80 13 00 00 00 00 00 00 67 [02:57:04]Write i2c OK [02:57:04]MH_I2C_Read... [02:57:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:57:04]Read from MH i2c: E2 [02:57:04]MH_I2C_Read... [02:57:04]Read from MH i2c: E2 62 00 [02:57:04]MH_I2C_Read... [02:57:04]Read from MH i2c: E2 62 00 E6 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4B C3 01 00 0E 04 04 00 D8 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 92 [02:57:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4B C3 01 00 0E 04 04 00 D8 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 [02:57:04]wFMCommunicate OK [02:57:04]SAM_PROTO_GetFieldsCounters done [02:57:04]requested_item shift.num is exist - process it [02:57:04]requested_item shift.opened is exist - process it [02:57:04]req_shift_opened [02:57:04]FM_GetShiftState [02:57:04]SAM_PROTO_GetShiftState [02:57:04]wFMCommunicate request_size=4 [02:57:04]MH_SAM_APDU [02:57:04]CAPDU: 80 13 01 00 [02:57:04]Write to MH i2c: E2 08 00 E7 05 80 13 01 00 00 00 00 00 69 [02:57:04]Write i2c OK [02:57:04]MH_I2C_Read... [02:57:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:57:04]Read from MH i2c: E2 [02:57:04]MH_I2C_Read... [02:57:04]Read from MH i2c: E2 0E 00 [02:57:04]MH_I2C_Read... [02:57:04]Read from MH i2c: E2 0E 00 E7 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 AA [02:57:04]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [02:57:04]wFMCommunicate OK [02:57:04]SAM_PROTO_GetShiftState done [02:57:04]FM_GetShiftState done [02:57:04]req_shift_opened done [02:57:04]requested_item shift.open_date is exist - process it [02:57:04]req_shift_open_date [02:57:04]req_shift_open_date done [02:57:04]produce_requested_data done [02:57:04]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115531,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [02:57:04]process_action_free close_receipt [02:57:04]json_value_free [02:57:04]json_value_free done [02:57:04]process_json_proto returns [02:57:04]Send response to host [02:57:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115531,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [02:57:04]free response buf [02:57:04]execute_script done [02:57:04]execute_script returns [02:57:04]free content buf [02:57:04]Sock 8.Close socket [02:57:04]Sock 8.Thread stoped [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:38]OFD Sender: No OFD packet to send [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:24]accept exits with 9 [03:01:24]New connection [03:01:24]New thread 3067313508 created [03:01:24]Thread 3067170148 joined [03:01:24]Waiting for new connection... [03:01:24] Sock 9.Parse request [03:01:24]Sock 9.Check first char [03:01:25]Sock 9.First char is OK [03:01:25]request: POST /json_proto HTTP/1.0 [03:01:25]Method: POST [03:01:25]URL: /json_proto [03:01:25]Method is POST - this is cgi request [03:01:25]url: /json_proto [03:01:25]query_string will be loaded in cgi processing [03:01:25]execute_cgi json_proto POST (null) [03:01:25]execute_cgi path=json_proto method=POST [03:01:25]POST find Content-Length [03:01:25]Host: 172.17.41.136:8080 [03:01:25]Content-Length: 1092 [03:01:25]Content-Type: application/json [03:01:25] [03:01:25]POST finish read [03:01:25]Found Content-Length = 1092 [03:01:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343958", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 2.000, "sum" : 1020.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1374.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:01:25]execute_script... [03:01:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343958", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 2.000, "sum" : 1020.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1374.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:01:25]POST & json_proto [03:01:25]process_json_proto [03:01:25]json parsed OK: [03:01:25]protocol is kg_v1.0 [03:01:25]action value=close_receipt [03:01:25]process_action close_receipt [03:01:25]cmd_close_receipt [03:01:25]MH_GetDate [03:01:25]Write to MH i2c: F0 00 00 E8 05 DC [03:01:25]Write i2c OK [03:01:25]MH_I2C_Read... [03:01:25]Read from MH i2c: F0 [03:01:25]MH_I2C_Read... [03:01:25]Read from MH i2c: F0 09 00 [03:01:25]MH_I2C_Read... [03:01:25]Read from MH i2c: F0 09 00 E8 05 00 05 DA F0 66 1B D0 5A 64 C3 [03:01:25]GetLastDocTimeStamp 1727060219 [03:01:25]current date 1727060485 [03:01:25]FM_GetShiftState [03:01:25]SAM_PROTO_GetShiftState [03:01:25]wFMCommunicate request_size=4 [03:01:25]MH_SAM_APDU [03:01:25]CAPDU: 80 13 01 00 [03:01:25]Write to MH i2c: E2 08 00 E9 05 80 13 01 00 00 00 00 00 6B [03:01:25]Write i2c OK [03:01:25]MH_I2C_Read... [03:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:01:25]Read from MH i2c: E2 [03:01:25]MH_I2C_Read... [03:01:25]Read from MH i2c: E2 0E 00 [03:01:25]MH_I2C_Read... [03:01:25]Read from MH i2c: E2 0E 00 E9 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 AC [03:01:25]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [03:01:25]wFMCommunicate OK [03:01:25]SAM_PROTO_GetShiftState done [03:01:25]FM_GetShiftState done [03:01:25]opened in 1727052070 [03:01:25]opened+sec_in_day 1727138470 [03:01:25]quantity*price = 21000 [03:01:25]sum+1 = 21001 [03:01:25]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700002083327 Водка Level 0,5 2.000 * 510.00 = 1020.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48747066 Сигареты Winston True Silver 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1374.00 НСП 1% : 12.16 НДС 12% : 145.91 Наличными: 1374.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 15 23.09.2024 03:01 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115532 ФПД: 41415759749984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T030125&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115532&fm=41415759749984&tin=02508201610067®Number=0000000000091831&sum=137400 0 [03:01:26]StoreToDocumentArchive [03:01:26]shift 472 fd 115532 [03:01:26]save to /storage/0472/doc_00115532 [03:01:26]save last doc name /storage/0472/doc_00115532 to /storage/kkm_last_doc_name [03:01:26]save OK [03:01:26]Clear old archive folders... [03:01:26]ProcessDocumentItem done err = 0, tmpTLVsize=466 [03:01:26]tlvbuf is 011C1830 [03:01:26]SAM_PROTO_ClearQueue [03:01:26]wFMCommunicate request_size=4 [03:01:26]MH_SAM_APDU [03:01:26]CAPDU: 80 09 00 00 [03:01:26]Write to MH i2c: E2 08 00 F6 05 80 09 00 00 00 00 00 00 6D [03:01:26]Write i2c OK [03:01:26]MH_I2C_Read... [03:01:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:01:26]Read from MH i2c: E2 [03:01:26]MH_I2C_Read... [03:01:26]Read from MH i2c: E2 03 00 [03:01:26]MH_I2C_Read... [03:01:26]Read from MH i2c: E2 03 00 F6 05 00 90 00 6F [03:01:26]RAPDU: 90 00 [03:01:26]wFMCommunicate OK [03:01:26]SAM_PROTO_ClearQueue done [03:01:26]KKMCreateOFDPacket [03:01:26]OFDProtocolAddRootSTLVToBuf [03:01:26]FM_MakeSignedData [03:01:26]FM_MakeSignedData [03:01:26]SAM_PROTO_SignData [03:01:26]wFMCommunicate request_size=4 [03:01:26]MH_SAM_APDU [03:01:26]CAPDU: 80 0D 01 02 [03:01:26]Write to MH i2c: E2 08 00 F7 05 80 0D 01 02 00 00 00 00 75 [03:01:26]Write i2c OK [03:01:26]MH_I2C_Read... [03:01:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:01:26]Read from MH i2c: E2 [03:01:26]MH_I2C_Read... [03:01:26]Read from MH i2c: E2 03 00 [03:01:26]MH_I2C_Read... [03:01:26]Read from MH i2c: E2 03 00 F7 05 00 90 00 70 [03:01:26]RAPDU: 90 00 [03:01:26]wFMCommunicate OK [03:01:26]wFMCommunicate request_size=255 [03:01:26]MH_SAM_APDU [03:01:26]CAPDU: 80 0D 02 02 FA 03 00 D2 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 70 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 [03:01:26]Write to MH i2c: E2 02 01 F8 05 80 0D 02 02 FA 00 03 00 D2 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 70 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 00 00 6F [03:01:26]Write i2c OK [03:01:26]MH_I2C_Read... [03:01:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:01:26]Read from MH i2c: E2 [03:01:26]MH_I2C_Read... [03:01:26]Read from MH i2c: E2 03 00 [03:01:26]MH_I2C_Read... [03:01:26]Read from MH i2c: E2 03 00 F8 05 00 90 00 71 [03:01:26]RAPDU: 90 00 [03:01:26]wFMCommunicate OK [03:01:26]wFMCommunicate request_size=225 [03:01:26]MH_SAM_APDU [03:01:26]CAPDU: 80 0D 02 02 DC 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 18 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 38 00 00 00 00 07 04 06 00 B8 18 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 05 DA F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4C C3 01 00 35 04 06 00 25 AA DB A5 E3 60 [03:01:26]Write to MH i2c: E2 E4 00 F9 05 80 0D 02 02 DC 00 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 18 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 38 00 00 00 00 07 04 06 00 B8 18 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 05 DA F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4C C3 01 00 35 04 06 00 25 AA DB A5 E3 60 00 00 BC [03:01:26]Write i2c OK [03:01:26]MH_I2C_Read... [03:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:01:27]Read from MH i2c: E2 [03:01:27]MH_I2C_Read... [03:01:27]Read from MH i2c: E2 03 00 [03:01:27]MH_I2C_Read... [03:01:27]Read from MH i2c: E2 03 00 F9 05 00 90 00 72 [03:01:27]RAPDU: 90 00 [03:01:27]wFMCommunicate OK [03:01:27]wFMCommunicate request_size=4 [03:01:27]MH_SAM_APDU [03:01:27]CAPDU: 80 0D 03 02 [03:01:27]Write to MH i2c: E2 08 00 FA 05 80 0D 03 02 00 00 00 00 7A [03:01:27]Write i2c OK [03:01:27]MH_I2C_Read... [03:01:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:01:27]Read from MH i2c: E2 [03:01:27]MH_I2C_Read... [03:01:27]Read from MH i2c: E2 0B 00 [03:01:27]MH_I2C_Read... [03:01:27]Read from MH i2c: E2 0B 00 FA 05 00 39 FC F1 48 2B EA 9B 71 90 00 0A [03:01:27]RAPDU: 39 FC F1 48 2B EA 9B 71 90 00 [03:01:27]wFMCommunicate OK [03:01:27]SAM_PROTO_SignData done [03:01:27]FM_MakeSignedData done [03:01:27]CreateOFDProtocolMessage [03:01:27]wFMCommunicate request_size=4 [03:01:27]MH_SAM_APDU [03:01:27]CAPDU: 80 11 00 00 [03:01:27]Write to MH i2c: E2 08 00 FB 05 80 11 00 00 00 00 00 00 7A [03:01:27]Write i2c OK [03:01:27]MH_I2C_Read... [03:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:01:27]Read from MH i2c: E2 [03:01:27]MH_I2C_Read... [03:01:27]Read from MH i2c: E2 17 00 [03:01:27]MH_I2C_Read... [03:01:27]Read from MH i2c: E2 17 00 FB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C8 [03:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:01:27]wFMCommunicate OK [03:01:27]CreateOFDProtocolMessage done [03:01:27]OFDSenderStorePacket 115532 [03:01:27]StoreOFDPacket docnum=115532 [03:01:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 E6 01 00 00 B1 C7 DE 01 99 07 5A 03 01 00 03 00 D2 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 70 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 18 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 38 00 00 00 00 07 04 06 00 B8 18 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 05 DA F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4C C3 01 00 35 04 06 00 25 AA DB A5 E3 60 39 FC F1 48 2B EA 9B 71 [03:01:27]CheckFolder [03:01:27]dirname=/storage/ofd_packets [03:01:27]CheckFolder done [03:01:27]ProducePacketName [03:01:27]name=ofd_packets/00115532 [03:01:27]NVStorageSaveData ofd_packets/00115532 [03:01:27]File name is /storage/ofd_packets/00115532 [03:01:27]Write 516 bytes [03:01:27]NVStorageSaveData done [03:01:27]OFDSenderStorePacket done [03:01:27]KKMCreateOFDPacket done [03:01:27]NVStorageSaveData kkm_last_timestamp [03:01:27]File name is /storage/kkm_last_timestamp [03:01:27]Write 4 bytes [03:01:27]NVStorageSaveData done [03:01:27]ExternCall_PrintAddStr [03:01:27]wPrintStart [03:01:27]Write to MH i2c: 01 00 00 FC 05 01 [03:01:27]Write i2c OK [03:01:27]MH_I2C_Read... [03:01:27]Read from MH i2c: 01 [03:01:27]MH_I2C_Read... [03:01:27]Read from MH i2c: 01 07 00 [03:01:27]MH_I2C_Read... [03:01:27]OFD Sender: Processing packet 115532 [packets to send 481, broken 480] [03:01:27]ProducePacketName [03:01:27]name=ofd_packets/00115532 [03:01:27]OFD Sender: To server: pG, [03:01:27]CommunicateWithHost lk.salyk.kg:30040 [03:01:27]ConnectInit lk.salyk.kg [03:01:27]Read from MH i2c: 01 07 00 FC 05 00 00 00 00 00 FF 0F 16 [03:01:27]RasterBufferAndPrint [03:01:27]line Счет N : (3)343958 [03:01:27]line ИНН: 02508201610067 [03:01:27]line Контрольно-Кассовый Чек [03:01:27]line ПРОДАЖА [03:01:27]line Товар: 5449000006271 [03:01:27]line Напиток Фанта 1л [03:01:27]line 2.000 * 105.00 [03:01:27]line = 210.00 [03:01:27]line НДС 12% НСП 1% [03:01:27]line > о реализуемом товаре [03:01:27]line Товар: 4700002083327 [03:01:27]line Водка Level 0,5 [03:01:27]line 2.000 * 510.00 [03:01:27]line = 1020.00 [03:01:27]line НДС 12% НСП 1% [03:01:27]line > о реализуемом товаре [03:01:27]line Товар: 48747066 [03:01:27]line Сигареты Winston True Silver [03:01:27]line 1.000 * 144.00 [03:01:27]line = 144.00 [03:01:27]line НДС 12% НСП 1% [03:01:27]line > о реализуемом товаре [03:01:27]line ИТОГО: 1374.00 [03:01:27]line НСП 1% : 12.16 [03:01:27]line НДС 12% : 145.91 [03:01:27]line Наличными: 1374.00 [03:01:27]line Безнал.: 0.00 [03:01:27]line Место: АЗС № 90 "Партнер Нефть" [03:01:27]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [03:01:27]line СНО: Общий режим [03:01:27]line Чек 15 23.09.2024 03:01 [03:01:27]line Смена: 472 ФФД: 1.0 [03:01:27]line ЗНМ: 0300000120 [03:01:27]line РНМ: 0000000000091831 [03:01:27]line Версия ККМ: 001 [03:01:27]line ФМ: 0000000000871830 [03:01:27]line ФД: 115532 [03:01:27]line ФПД: 41415759749984 [03:01:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T030125&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115532&fm=41415759749984&tin=02508201610067®Number=0000000000091831&sum=137400 [03:01:27]line 0 [03:01:27]written 0, free lines is 4095 [03:01:27]Connected sock=10 [03:01:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 E6 01 00 00 B1 C7 DE 01 99 07 5A 03 01 00 03 00 D2 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 70 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 18 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 38 00 00 00 00 07 04 06 00 B8 18 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 05 DA F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4C C3 01 00 35 04 06 00 25 AA DB A5 E3 60 39 FC F1 48 2B EA 9B 71 [03:01:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 AB FE 47 00 A7 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4C C3 01 00 F4 03 04 00 49 7F F0 66 B6 04 01 00 00 AC EB 28 EF 63 C2 1D 1A [03:01:27]CommunicateWithHost err = 0 [03:01:27]CheckOFDResponse [03:01:27]1017 (14) - 77093643461234 [03:01:27]1041 (16) - 0000000000871830 [03:01:27]1040 (4) - 115532 [03:01:27]1012 (4) - 22.09.2024 20:34 [03:01:27]1206 (1) - 0 [03:01:27]OFD Sender: Remove packet 115532 [03:01:27]ProducePacketName [03:01:27]name=ofd_packets/00115532 [03:01:27]NVStorageDeleteData [03:01:27]Write to MH i2c: 01 00 00 2F 06 35 [03:01:27]Write i2c OK [03:01:27]MH_I2C_Read... [03:01:27]Read from MH i2c: 01 [03:01:27]MH_I2C_Read... [03:01:27]Read from MH i2c: 01 07 00 [03:01:27]MH_I2C_Read... [03:01:27]Read from MH i2c: 01 07 00 2F 06 00 00 00 00 00 82 0B C9 [03:01:27]RasterBufferAndPrint [03:01:27]line [03:01:27]line [03:01:27]line [03:01:27]line [03:01:27]line [03:01:27]written 0, free lines is 2950 [03:01:27]MH_Cut [03:01:27]Write to MH i2c: D1 01 00 36 06 01 0E [03:01:27]Write i2c OK [03:01:27]MH_I2C_Read... [03:01:27]Read from MH i2c: D1 [03:01:27]MH_I2C_Read... [03:01:27]Read from MH i2c: D1 01 00 [03:01:27]MH_I2C_Read... [03:01:27]Read from MH i2c: D1 01 00 36 06 00 0D [03:01:27]Write to MH i2c: 01 00 00 37 06 3D [03:01:27]Write i2c OK [03:01:27]MH_I2C_Read... [03:01:28]OFD Sender: No OFD packet to send [03:01:29]*** Cut start [03:01:29]*** Partial cut [03:01:29]*** CUTSNS_PIN = 1 [03:01:29]*** CUTSNS_PIN = 0 [03:01:29]*** Brake cut motor [03:01:30]Read from MH i2c: 01 [03:01:30]MH_I2C_Read... [03:01:30]*** Stop cut motor [03:01:30]*** Cut end [03:01:30]Read from MH i2c: 01 07 00 [03:01:30]MH_I2C_Read... [03:01:30]Read from MH i2c: 01 07 00 37 06 00 00 00 00 00 FF 0F 52 [03:01:30]process_action close_receipt done [03:01:30]requested_data is exist [03:01:30]produce_requested_data [03:01:30]requested_item fm.sn is exist - process it [03:01:30]wFMCommunicate request_size=4 [03:01:30]MH_SAM_APDU [03:01:30]CAPDU: 80 11 00 00 [03:01:30]Write to MH i2c: E2 08 00 38 06 80 11 00 00 00 00 00 00 B8 [03:01:30]Write i2c OK [03:01:30]MH_I2C_Read... [03:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:01:30]Read from MH i2c: E2 [03:01:30]MH_I2C_Read... [03:01:30]Read from MH i2c: E2 17 00 [03:01:30]MH_I2C_Read... [03:01:30]Read from MH i2c: E2 17 00 38 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 06 [03:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:01:30]wFMCommunicate OK [03:01:30]requested_item fd.num is exist - process it [03:01:30]SAM_PROTO_GetFieldsCounters [03:01:30]wFMCommunicate request_size=4 [03:01:30]MH_SAM_APDU [03:01:30]CAPDU: 80 13 00 00 [03:01:30]Write to MH i2c: E2 08 00 39 06 80 13 00 00 00 00 00 00 BB [03:01:30]Write i2c OK [03:01:30]MH_I2C_Read... [03:01:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:01:30]Read from MH i2c: E2 [03:01:30]MH_I2C_Read... [03:01:30]Read from MH i2c: E2 62 00 [03:01:30]MH_I2C_Read... [03:01:30]Read from MH i2c: E2 62 00 39 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4C C3 01 00 0E 04 04 00 D8 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 EA [03:01:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4C C3 01 00 0E 04 04 00 D8 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 [03:01:30]wFMCommunicate OK [03:01:30]SAM_PROTO_GetFieldsCounters done [03:01:30]requested_item shift.num is exist - process it [03:01:30]requested_item shift.opened is exist - process it [03:01:30]req_shift_opened [03:01:30]FM_GetShiftState [03:01:30]SAM_PROTO_GetShiftState [03:01:30]wFMCommunicate request_size=4 [03:01:30]MH_SAM_APDU [03:01:30]CAPDU: 80 13 01 00 [03:01:30]Write to MH i2c: E2 08 00 3A 06 80 13 01 00 00 00 00 00 BD [03:01:30]Write i2c OK [03:01:30]MH_I2C_Read... [03:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:01:30]Read from MH i2c: E2 [03:01:30]MH_I2C_Read... [03:01:30]Read from MH i2c: E2 0E 00 [03:01:30]MH_I2C_Read... [03:01:30]Read from MH i2c: E2 0E 00 3A 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 FE [03:01:30]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [03:01:30]wFMCommunicate OK [03:01:30]SAM_PROTO_GetShiftState done [03:01:30]FM_GetShiftState done [03:01:30]req_shift_opened done [03:01:30]requested_item shift.open_date is exist - process it [03:01:30]req_shift_open_date [03:01:30]req_shift_open_date done [03:01:30]produce_requested_data done [03:01:30]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115532,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [03:01:30]process_action_free close_receipt [03:01:30]json_value_free [03:01:30]json_value_free done [03:01:30]process_json_proto returns [03:01:30]Send response to host [03:01:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115532,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [03:01:30]free response buf [03:01:30]execute_script done [03:01:30]execute_script returns [03:01:30]free content buf [03:01:30]Sock 9.Close socket [03:01:30]Sock 9.Thread stoped [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:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:12]accept exits with 8 [03:09:12]New connection [03:09:12]New thread 3067170148 created [03:09:12]Thread 3067313508 joined [03:09:12]Waiting for new connection... [03:09:12] Sock 8.Parse request [03:09:12]Sock 8.Check first char [03:09:12]Sock 8.First char is OK [03:09:12]request: POST /json_proto HTTP/1.0 [03:09:12]Method: POST [03:09:12]URL: /json_proto [03:09:12]Method is POST - this is cgi request [03:09:12]url: /json_proto [03:09:12]query_string will be loaded in cgi processing [03:09:12]execute_cgi json_proto POST (null) [03:09:12]execute_cgi path=json_proto method=POST [03:09:12]POST find Content-Length [03:09:12]Host: 172.17.41.136:8080 [03:09:12]Content-Length: 860 [03:09:12]Content-Type: application/json [03:09:12] [03:09:12]POST finish read [03:09:12]Found Content-Length = 860 [03:09:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343959", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:09:12]execute_script... [03:09:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343959", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:09:12]POST & json_proto [03:09:12]process_json_proto [03:09:12]json parsed OK: [03:09:12]protocol is kg_v1.0 [03:09:12]action value=close_receipt [03:09:12]process_action close_receipt [03:09:12]cmd_close_receipt [03:09:12]MH_GetDate [03:09:12]Write to MH i2c: F0 00 00 3B 06 30 [03:09:12]Write i2c OK [03:09:12]MH_I2C_Read... [03:09:12]Read from MH i2c: F0 [03:09:12]MH_I2C_Read... [03:09:12]Read from MH i2c: F0 09 00 [03:09:12]MH_I2C_Read... [03:09:12]Read from MH i2c: F0 09 00 3B 06 00 D9 DB F0 66 1B D0 5A 64 EC [03:09:12]GetLastDocTimeStamp 1727060485 [03:09:12]current date 1727060953 [03:09:12]FM_GetShiftState [03:09:12]SAM_PROTO_GetShiftState [03:09:12]wFMCommunicate request_size=4 [03:09:12]MH_SAM_APDU [03:09:12]CAPDU: 80 13 01 00 [03:09:12]Write to MH i2c: E2 08 00 3C 06 80 13 01 00 00 00 00 00 BF [03:09:12]Write i2c OK [03:09:12]MH_I2C_Read... [03:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:09:12]Read from MH i2c: E2 [03:09:12]MH_I2C_Read... [03:09:12]Read from MH i2c: E2 0E 00 [03:09:12]MH_I2C_Read... [03:09:12]Read from MH i2c: E2 0E 00 3C 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 00 [03:09:12]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [03:09:12]wFMCommunicate OK [03:09:12]SAM_PROTO_GetShiftState done [03:09:12]FM_GetShiftState done [03:09:12]opened in 1727052070 [03:09:12]opened+sec_in_day 1727138470 [03:09:12]quantity*price = 14400 [03:09:12]sum+1 = 14401 [03:09:12]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.54 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 16 23.09.2024 03:09 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115533 ФПД: 260365942081697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T030913&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115533&fm=260365942081697&tin=02508201610067®Number=0000000000091831&sum=28800 0 [03:09:14]StoreToDocumentArchive [03:09:14]shift 472 fd 115533 [03:09:14]save to /storage/0472/doc_00115533 [03:09:14]save last doc name /storage/0472/doc_00115533 to /storage/kkm_last_doc_name [03:09:14]save OK [03:09:14]Clear old archive folders... [03:09:14]ProcessDocumentItem done err = 0, tmpTLVsize=378 [03:09:14]tlvbuf is 012167A0 [03:09:14]SAM_PROTO_ClearQueue [03:09:14]wFMCommunicate request_size=4 [03:09:14]MH_SAM_APDU [03:09:14]CAPDU: 80 09 00 00 [03:09:14]Write to MH i2c: E2 08 00 49 06 80 09 00 00 00 00 00 00 C1 [03:09:14]Write i2c OK [03:09:14]MH_I2C_Read... [03:09:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:09:14]Read from MH i2c: E2 [03:09:14]MH_I2C_Read... [03:09:14]Read from MH i2c: E2 03 00 [03:09:14]MH_I2C_Read... [03:09:14]Read from MH i2c: E2 03 00 49 06 00 90 00 C3 [03:09:14]RAPDU: 90 00 [03:09:14]wFMCommunicate OK [03:09:14]SAM_PROTO_ClearQueue done [03:09:14]KKMCreateOFDPacket [03:09:14]OFDProtocolAddRootSTLVToBuf [03:09:14]FM_MakeSignedData [03:09:14]FM_MakeSignedData [03:09:14]SAM_PROTO_SignData [03:09:14]wFMCommunicate request_size=4 [03:09:14]MH_SAM_APDU [03:09:14]CAPDU: 80 0D 01 02 [03:09:14]Write to MH i2c: E2 08 00 4A 06 80 0D 01 02 00 00 00 00 C9 [03:09:14]Write i2c OK [03:09:14]MH_I2C_Read... [03:09:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:09:14]Read from MH i2c: E2 [03:09:14]MH_I2C_Read... [03:09:14]Read from MH i2c: E2 03 00 [03:09:14]MH_I2C_Read... [03:09:14]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [03:09:14]RAPDU: 90 00 [03:09:14]wFMCommunicate OK [03:09:14]wFMCommunicate request_size=255 [03:09:14]MH_SAM_APDU [03:09:14]CAPDU: 80 0D 02 02 FA 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 00 00 00 00 00 [03:09:14]Write to MH i2c: E2 02 01 4B 06 80 0D 02 02 FA 00 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 00 00 00 00 00 00 00 C2 [03:09:14]Write i2c OK [03:09:14]MH_I2C_Read... [03:09:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:09:14]Read from MH i2c: E2 [03:09:14]MH_I2C_Read... [03:09:14]Read from MH i2c: E2 03 00 [03:09:14]MH_I2C_Read... [03:09:14]Read from MH i2c: E2 03 00 4B 06 00 90 00 C5 [03:09:14]RAPDU: 90 00 [03:09:14]wFMCommunicate OK [03:09:14]wFMCommunicate request_size=137 [03:09:14]MH_SAM_APDU [03:09:14]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 D9 DB F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4D C3 01 00 35 04 06 00 EC CD 2B 7D 48 A1 [03:09:14]Write to MH i2c: E2 8C 00 4C 06 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 D9 DB F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4D C3 01 00 35 04 06 00 EC CD 2B 7D 48 A1 00 00 34 [03:09:14]OFD Sender: No OFD packet to send [03:09:14]Write i2c OK [03:09:14]MH_I2C_Read... [03:09:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:09:14]Read from MH i2c: E2 [03:09:14]MH_I2C_Read... [03:09:14]Read from MH i2c: E2 03 00 [03:09:14]MH_I2C_Read... [03:09:14]Read from MH i2c: E2 03 00 4C 06 00 90 00 C6 [03:09:14]RAPDU: 90 00 [03:09:14]wFMCommunicate OK [03:09:14]wFMCommunicate request_size=4 [03:09:14]MH_SAM_APDU [03:09:14]CAPDU: 80 0D 03 02 [03:09:14]Write to MH i2c: E2 08 00 4D 06 80 0D 03 02 00 00 00 00 CE [03:09:14]Write i2c OK [03:09:14]MH_I2C_Read... [03:09:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:09:14]Read from MH i2c: E2 [03:09:14]MH_I2C_Read... [03:09:14]Read from MH i2c: E2 0B 00 [03:09:14]MH_I2C_Read... [03:09:14]Read from MH i2c: E2 0B 00 4D 06 00 0C D4 B8 17 5E E2 AD EC 90 00 57 [03:09:14]RAPDU: 0C D4 B8 17 5E E2 AD EC 90 00 [03:09:14]wFMCommunicate OK [03:09:14]SAM_PROTO_SignData done [03:09:14]FM_MakeSignedData done [03:09:14]CreateOFDProtocolMessage [03:09:14]wFMCommunicate request_size=4 [03:09:14]MH_SAM_APDU [03:09:14]CAPDU: 80 11 00 00 [03:09:14]Write to MH i2c: E2 08 00 4E 06 80 11 00 00 00 00 00 00 CE [03:09:14]Write i2c OK [03:09:14]MH_I2C_Read... [03:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:09:14]Read from MH i2c: E2 [03:09:14]MH_I2C_Read... [03:09:14]Read from MH i2c: E2 17 00 [03:09:14]MH_I2C_Read... [03:09:14]Read from MH i2c: E2 17 00 4E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1C [03:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:09:14]wFMCommunicate OK [03:09:14]CreateOFDProtocolMessage done [03:09:14]OFDSenderStorePacket 115533 [03:09:14]StoreOFDPacket docnum=115533 [03:09:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8E 01 00 00 DD C5 86 01 3D 95 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 D9 DB F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4D C3 01 00 35 04 06 00 EC CD 2B 7D 48 A1 0C D4 B8 17 5E E2 AD EC [03:09:14]CheckFolder [03:09:14]dirname=/storage/ofd_packets [03:09:14]CheckFolder done [03:09:14]ProducePacketName [03:09:14]name=ofd_packets/00115533 [03:09:14]NVStorageSaveData ofd_packets/00115533 [03:09:14]File name is /storage/ofd_packets/00115533 [03:09:14]Write 428 bytes [03:09:14]NVStorageSaveData done [03:09:14]OFDSenderStorePacket done [03:09:14]KKMCreateOFDPacket done [03:09:14]NVStorageSaveData kkm_last_timestamp [03:09:14]File name is /storage/kkm_last_timestamp [03:09:14]Write 4 bytes [03:09:14]NVStorageSaveData done [03:09:14]ExternCall_PrintAddStr [03:09:14]wPrintStart [03:09:14]Write to MH i2c: 01 00 00 4F 06 55 [03:09:14]Write i2c OK [03:09:14]MH_I2C_Read... [03:09:14]Read from MH i2c: 01 [03:09:14]MH_I2C_Read... [03:09:14]Read from MH i2c: 01 07 00 [03:09:14]MH_I2C_Read... [03:09:14]Read from MH i2c: 01 07 00 4F 06 00 00 00 00 00 FF 0F 6A [03:09:14]RasterBufferAndPrint [03:09:14]line Счет N : (3)343959 [03:09:14]line ИНН: 02508201610067 [03:09:14]line Контрольно-Кассовый Чек [03:09:14]line ПРОДАЖА [03:09:14]line Товар: 48743587 [03:09:14]line Сигареты Winston XStyle Silver [03:09:14]line 1.000 * 144.00 [03:09:14]line = 144.00 [03:09:14]line НДС 12% НСП 1% [03:09:14]line > о реализуемом товаре [03:09:14]line Товар: 48743570 [03:09:14]line Сигареты Winston XStyle Blue [03:09:14]line 1.000 * 144.00 [03:09:14]line = 144.00 [03:09:14]line НДС 12% НСП 1% [03:09:14]line > о реализуемом товаре [03:09:14]line ИТОГО: 288.00 [03:09:14]line НСП 1% : 2.54 [03:09:14]line НДС 12% : 30.58 [03:09:14]line Наличными: 288.00 [03:09:14]line Безнал.: 0.00 [03:09:14]line Место: АЗС № 90 "Партнер Нефть" [03:09:14]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [03:09:14]line СНО: Общий режим [03:09:14]line Чек 16 23.09.2024 03:09 [03:09:14]line Смена: 472 ФФД: 1.0 [03:09:14]line ЗНМ: 0300000120 [03:09:14]line РНМ: 0000000000091831 [03:09:14]line Версия ККМ: 001 [03:09:14]line ФМ: 0000000000871830 [03:09:15]line ФД: 115533 [03:09:15]line ФПД: 260365942081697 [03:09:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T030913&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115533&fm=260365942081697&tin=02508201610067®Number=0000000000091831&sum=28800 [03:09:15]line 0 [03:09:15]OFD Sender: Processing packet 115533 [packets to send 481, broken 480] [03:09:15]ProducePacketName [03:09:15]name=ofd_packets/00115533 [03:09:15]OFD Sender: To server: pG, [03:09:15]CommunicateWithHost lk.salyk.kg:30040 [03:09:15]ConnectInit lk.salyk.kg [03:09:15]written 0, free lines is 4095 [03:09:15]Connected sock=10 [03:09:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8E 01 00 00 DD C5 86 01 3D 95 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 D9 DB F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4D C3 01 00 35 04 06 00 EC CD 2B 7D 48 A1 0C D4 B8 17 5E E2 AD EC [03:09:15]Write to MH i2c: 01 00 00 7D 06 83 [03:09:15]Write i2c OK [03:09:15]MH_I2C_Read... [03:09:15]Read from MH i2c: 01 [03:09:15]MH_I2C_Read... [03:09:15]Read from MH i2c: 01 07 00 [03:09:15]MH_I2C_Read... [03:09:15]Read from MH i2c: 01 07 00 7D 06 00 00 00 00 00 F0 0B 85 [03:09:15]RasterBufferAndPrint [03:09:15]line [03:09:15]line [03:09:15]line [03:09:15]line [03:09:15]line [03:09:15]written 0, free lines is 3060 [03:09:15]MH_Cut [03:09:15]Write to MH i2c: D1 01 00 84 06 01 5C [03:09:15]Write i2c OK [03:09:15]MH_I2C_Read... [03:09:15]Read from MH i2c: D1 [03:09:15]MH_I2C_Read... [03:09:15]Read from MH i2c: D1 01 00 [03:09:15]MH_I2C_Read... [03:09:15]Read from MH i2c: D1 01 00 84 06 00 5B [03:09:15]Write to MH i2c: 01 00 00 85 06 8B [03:09:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A0 69 47 00 C7 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4D C3 01 00 F4 03 04 00 1D 81 F0 66 B6 04 01 00 00 8A 49 3C 8A 63 44 0C 46 [03:09:15]CommunicateWithHost err = 0 [03:09:15]CheckOFDResponse [03:09:15]1017 (14) - 77093643461234 [03:09:15]1041 (16) - 0000000000871830 [03:09:15]1040 (4) - 115533 [03:09:15]1012 (4) - 22.09.2024 20:42 [03:09:15]1206 (1) - 0 [03:09:15]OFD Sender: Remove packet 115533 [03:09:15]ProducePacketName [03:09:15]name=ofd_packets/00115533 [03:09:15]NVStorageDeleteData [03:09:15]Write i2c OK [03:09:15]MH_I2C_Read... [03:09:16]OFD Sender: No OFD packet to send [03:09:17]*** Cut start [03:09:17]*** Partial cut [03:09:17]*** CUTSNS_PIN = 1 [03:09:17]*** CUTSNS_PIN = 0 [03:09:17]*** Brake cut motor [03:09:17]Read from MH i2c: 01 [03:09:17]MH_I2C_Read... [03:09:17]*** Stop cut motor [03:09:17]*** Cut end [03:09:17]Read from MH i2c: 01 07 00 [03:09:17]MH_I2C_Read... [03:09:17]Read from MH i2c: 01 07 00 85 06 00 00 00 00 00 FF 0F A0 [03:09:17]process_action close_receipt done [03:09:17]requested_data is exist [03:09:17]produce_requested_data [03:09:17]requested_item fm.sn is exist - process it [03:09:17]wFMCommunicate request_size=4 [03:09:17]MH_SAM_APDU [03:09:17]CAPDU: 80 11 00 00 [03:09:17]Write to MH i2c: E2 08 00 86 06 80 11 00 00 00 00 00 00 06 [03:09:17]Write i2c OK [03:09:17]MH_I2C_Read... [03:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:09:17]Read from MH i2c: E2 [03:09:17]MH_I2C_Read... [03:09:17]Read from MH i2c: E2 17 00 [03:09:17]MH_I2C_Read... [03:09:17]Read from MH i2c: E2 17 00 86 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 54 [03:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:09:17]wFMCommunicate OK [03:09:17]requested_item fd.num is exist - process it [03:09:17]SAM_PROTO_GetFieldsCounters [03:09:17]wFMCommunicate request_size=4 [03:09:17]MH_SAM_APDU [03:09:17]CAPDU: 80 13 00 00 [03:09:17]Write to MH i2c: E2 08 00 87 06 80 13 00 00 00 00 00 00 09 [03:09:17]Write i2c OK [03:09:17]MH_I2C_Read... [03:09:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:09:17]Read from MH i2c: E2 [03:09:17]MH_I2C_Read... [03:09:17]Read from MH i2c: E2 62 00 [03:09:17]MH_I2C_Read... [03:09:17]Read from MH i2c: E2 62 00 87 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4D C3 01 00 0E 04 04 00 D8 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 3C [03:09:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4D C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:09:17]wFMCommunicate OK [03:09:17]SAM_PROTO_GetFieldsCounters done [03:09:17]requested_item shift.num is exist - process it [03:09:17]requested_item shift.opened is exist - process it [03:09:17]req_shift_opened [03:09:17]FM_GetShiftState [03:09:17]SAM_PROTO_GetShiftState [03:09:17]wFMCommunicate request_size=4 [03:09:17]MH_SAM_APDU [03:09:17]CAPDU: 80 13 01 00 [03:09:17]Write to MH i2c: E2 08 00 88 06 80 13 01 00 00 00 00 00 0B [03:09:17]Write i2c OK [03:09:17]MH_I2C_Read... [03:09:17]Read from MH i2c: E2 [03:09:17]MH_I2C_Read... [03:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:09:17]Read from MH i2c: E2 0E 00 [03:09:17]MH_I2C_Read... [03:09:17]Read from MH i2c: E2 0E 00 88 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 4C [03:09:17]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [03:09:17]wFMCommunicate OK [03:09:17]SAM_PROTO_GetShiftState done [03:09:17]FM_GetShiftState done [03:09:17]req_shift_opened done [03:09:17]requested_item shift.open_date is exist - process it [03:09:17]req_shift_open_date [03:09:17]req_shift_open_date done [03:09:17]produce_requested_data done [03:09:17]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115533,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [03:09:17]process_action_free close_receipt [03:09:17]json_value_free [03:09:17]json_value_free done [03:09:17]process_json_proto returns [03:09:17]Send response to host [03:09:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115533,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [03:09:17]free response buf [03:09:17]execute_script done [03:09:17]execute_script returns [03:09:17]free content buf [03:09:17]Sock 8.Close socket [03:09:17]Sock 8.Thread stoped [03:09:21]OFD Sender: No OFD packet to send [03:09:26]OFD Sender: No OFD packet to send [03:09:31]OFD Sender: No OFD packet to send [03:09:36]OFD Sender: No OFD packet to send [03:09:41]OFD Sender: No OFD packet to send [03:09:46]OFD Sender: No OFD packet to send [03:09:51]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:06]accept exits with 9 [03:11:06]New connection [03:11:06]New thread 3067313508 created [03:11:06]Thread 3067170148 joined [03:11:06]Waiting for new connection... [03:11:06] Sock 9.Parse request [03:11:06]Sock 9.Check first char [03:11:06]Sock 9.First char is OK [03:11:06]request: POST /json_proto HTTP/1.0 [03:11:06]Method: POST [03:11:06]URL: /json_proto [03:11:06]Method is POST - this is cgi request [03:11:06]url: /json_proto [03:11:06]query_string will be loaded in cgi processing [03:11:06]execute_cgi json_proto POST (null) [03:11:06]execute_cgi path=json_proto method=POST [03:11:06]POST find Content-Length [03:11:06]Host: 172.17.41.136:8080 [03:11:06]Content-Length: 907 [03:11:06]Content-Type: application/json [03:11:06] [03:11:06]POST finish read [03:11:06]Found Content-Length = 907 [03:11:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343960", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 3.000, "sum" : 432.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 581.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:11:06]execute_script... [03:11:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343960", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 3.000, "sum" : 432.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 581.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:11:06]POST & json_proto [03:11:06]process_json_proto [03:11:06]json parsed OK: [03:11:06]protocol is kg_v1.0 [03:11:06]action value=close_receipt [03:11:06]process_action close_receipt [03:11:06]cmd_close_receipt [03:11:06]MH_GetDate [03:11:06]Write to MH i2c: F0 00 00 89 06 7E [03:11:06]Write i2c OK [03:11:06]MH_I2C_Read... [03:11:06]Read from MH i2c: F0 [03:11:06]MH_I2C_Read... [03:11:06]Read from MH i2c: F0 09 00 [03:11:06]MH_I2C_Read... [03:11:06]Read from MH i2c: F0 09 00 89 06 00 4B DC F0 66 1B D0 5A 64 AD [03:11:06]GetLastDocTimeStamp 1727060953 [03:11:06]current date 1727061067 [03:11:06]FM_GetShiftState [03:11:06]SAM_PROTO_GetShiftState [03:11:06]wFMCommunicate request_size=4 [03:11:06]MH_SAM_APDU [03:11:06]CAPDU: 80 13 01 00 [03:11:06]Write to MH i2c: E2 08 00 8A 06 80 13 01 00 00 00 00 00 0D [03:11:06]Write i2c OK [03:11:06]MH_I2C_Read... [03:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:11:06]Read from MH i2c: E2 [03:11:06]MH_I2C_Read... [03:11:06]Read from MH i2c: E2 0E 00 [03:11:06]MH_I2C_Read... [03:11:06]Read from MH i2c: E2 0E 00 8A 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 4E [03:11:06]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [03:11:06]wFMCommunicate OK [03:11:06]SAM_PROTO_GetShiftState done [03:11:06]FM_GetShiftState done [03:11:06]opened in 1727052070 [03:11:06]opened+sec_in_day 1727138470 [03:11:06]quantity*price = 43200 [03:11:06]sum+1 = 43201 [03:11:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480357 Пиво шахтерское 1л ПЭТ 1.000 * 149.00 = 149.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 581.00 НСП 1% : 5.14 НДС 12% : 61.70 Наличными: 581.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 17 23.09.2024 03:11 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115534 ФПД: 81952851605876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T031107&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115534&fm=81952851605876&tin=02508201610067®Number=0000000000091831&sum=58100 0 [03:11:08]StoreToDocumentArchive [03:11:08]shift 472 fd 115534 [03:11:08]save to /storage/0472/doc_00115534 [03:11:08]save last doc name /storage/0472/doc_00115534 to /storage/kkm_last_doc_name [03:11:08]save OK [03:11:08]Clear old archive folders... [03:11:08]ProcessDocumentItem done err = 0, tmpTLVsize=385 [03:11:08]tlvbuf is 01217AC0 [03:11:08]SAM_PROTO_ClearQueue [03:11:08]wFMCommunicate request_size=4 [03:11:08]MH_SAM_APDU [03:11:08]CAPDU: 80 09 00 00 [03:11:08]Write to MH i2c: E2 08 00 97 06 80 09 00 00 00 00 00 00 0F [03:11:08]Write i2c OK [03:11:08]MH_I2C_Read... [03:11:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:11:08]Read from MH i2c: E2 [03:11:08]MH_I2C_Read... [03:11:08]Read from MH i2c: E2 03 00 [03:11:08]MH_I2C_Read... [03:11:08]Read from MH i2c: E2 03 00 97 06 00 90 00 11 [03:11:08]RAPDU: 90 00 [03:11:08]wFMCommunicate OK [03:11:08]SAM_PROTO_ClearQueue done [03:11:08]KKMCreateOFDPacket [03:11:08]OFDProtocolAddRootSTLVToBuf [03:11:08]FM_MakeSignedData [03:11:08]FM_MakeSignedData [03:11:08]SAM_PROTO_SignData [03:11:08]wFMCommunicate request_size=4 [03:11:08]MH_SAM_APDU [03:11:08]CAPDU: 80 0D 01 02 [03:11:08]Write to MH i2c: E2 08 00 98 06 80 0D 01 02 00 00 00 00 17 [03:11:08]Write i2c OK [03:11:08]MH_I2C_Read... [03:11:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:11:08]Read from MH i2c: E2 [03:11:08]MH_I2C_Read... [03:11:08]Read from MH i2c: E2 03 00 [03:11:08]MH_I2C_Read... [03:11:08]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [03:11:08]RAPDU: 90 00 [03:11:08]wFMCommunicate OK [03:11:08]wFMCommunicate request_size=255 [03:11:08]MH_SAM_APDU [03:11:08]CAPDU: 80 0D 02 02 FA 03 00 81 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 C0 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 [03:11:08]Write to MH i2c: E2 02 01 99 06 80 0D 02 02 FA 00 03 00 81 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 C0 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 C0 [03:11:08]Write i2c OK [03:11:08]MH_I2C_Read... [03:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:11:08]Read from MH i2c: E2 [03:11:08]MH_I2C_Read... [03:11:08]Read from MH i2c: E2 03 00 [03:11:08]MH_I2C_Read... [03:11:08]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [03:11:08]RAPDU: 90 00 [03:11:08]wFMCommunicate OK [03:11:08]wFMCommunicate request_size=144 [03:11:08]MH_SAM_APDU [03:11:08]CAPDU: 80 0D 02 02 8B 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 18 00 00 00 00 07 04 06 00 F4 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 4B DC F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4E C3 01 00 35 04 06 00 4A 89 22 9B B9 74 [03:11:08]Write to MH i2c: E2 93 00 9A 06 80 0D 02 02 8B 00 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 18 00 00 00 00 07 04 06 00 F4 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 4B DC F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4E C3 01 00 35 04 06 00 4A 89 22 9B B9 74 00 00 97 [03:11:08]Write i2c OK [03:11:08]MH_I2C_Read... [03:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:11:08]Read from MH i2c: E2 [03:11:08]MH_I2C_Read... [03:11:08]Read from MH i2c: E2 03 00 [03:11:08]MH_I2C_Read... [03:11:08]Read from MH i2c: E2 03 00 9A 06 00 90 00 14 [03:11:08]RAPDU: 90 00 [03:11:08]wFMCommunicate OK [03:11:08]wFMCommunicate request_size=4 [03:11:08]MH_SAM_APDU [03:11:08]CAPDU: 80 0D 03 02 [03:11:08]Write to MH i2c: E2 08 00 9B 06 80 0D 03 02 00 00 00 00 1C [03:11:08]Write i2c OK [03:11:08]MH_I2C_Read... [03:11:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:11:08]Read from MH i2c: E2 [03:11:08]MH_I2C_Read... [03:11:08]Read from MH i2c: E2 0B 00 [03:11:08]MH_I2C_Read... [03:11:08]Read from MH i2c: E2 0B 00 9B 06 00 3D 4F 90 95 23 AC D5 B7 90 00 29 [03:11:08]RAPDU: 3D 4F 90 95 23 AC D5 B7 90 00 [03:11:08]wFMCommunicate OK [03:11:08]SAM_PROTO_SignData done [03:11:08]FM_MakeSignedData done [03:11:08]CreateOFDProtocolMessage [03:11:08]wFMCommunicate request_size=4 [03:11:08]MH_SAM_APDU [03:11:08]CAPDU: 80 11 00 00 [03:11:08]Write to MH i2c: E2 08 00 9C 06 80 11 00 00 00 00 00 00 1C [03:11:08]Write i2c OK [03:11:08]MH_I2C_Read... [03:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:11:08]Read from MH i2c: E2 [03:11:08]MH_I2C_Read... [03:11:08]Read from MH i2c: E2 17 00 [03:11:08]MH_I2C_Read... [03:11:08]Read from MH i2c: E2 17 00 9C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6A [03:11:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:11:08]wFMCommunicate OK [03:11:08]CreateOFDProtocolMessage done [03:11:08]OFDSenderStorePacket 115534 [03:11:08]StoreOFDPacket docnum=115534 [03:11:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 95 01 00 00 BA 91 8D 01 9A 1C 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 C0 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 18 00 00 00 00 07 04 06 00 F4 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 4B DC F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4E C3 01 00 35 04 06 00 4A 89 22 9B B9 74 3D 4F 90 95 23 AC D5 B7 [03:11:08]CheckFolder [03:11:08]dirname=/storage/ofd_packets [03:11:08]CheckFolder done [03:11:08]ProducePacketName [03:11:08]name=ofd_packets/00115534 [03:11:08]NVStorageSaveData ofd_packets/00115534 [03:11:08]File name is /storage/ofd_packets/00115534 [03:11:08]Write 435 bytes [03:11:08]NVStorageSaveData done [03:11:08]OFDSenderStorePacket done [03:11:08]KKMCreateOFDPacket done [03:11:08]NVStorageSaveData kkm_last_timestamp [03:11:08]File name is /storage/kkm_last_timestamp [03:11:08]Write 4 bytes [03:11:08]NVStorageSaveData done [03:11:08]ExternCall_PrintAddStr [03:11:08]wPrintStart [03:11:08]Write to MH i2c: 01 00 00 9D 06 A3 [03:11:08]Write i2c OK [03:11:08]MH_I2C_Read... [03:11:08]Read from MH i2c: 01 [03:11:08]MH_I2C_Read... [03:11:08]Read from MH i2c: 01 07 00 [03:11:08]MH_I2C_Read... [03:11:08]Read from MH i2c: 01 07 00 9D 06 00 00 00 00 00 FF 0F B8 [03:11:08]RasterBufferAndPrint [03:11:08]line Счет N : (3)343960 [03:11:08]line ИНН: 02508201610067 [03:11:08]line Контрольно-Кассовый Чек [03:11:08]line ПРОДАЖА [03:11:08]line Товар: 48743570 [03:11:08]line Сигареты Winston XStyle Blue [03:11:08]line 3.000 * 144.00 [03:11:08]line = 432.00 [03:11:08]line НДС 12% НСП 1% [03:11:09]line > о реализуемом товаре [03:11:09]line Товар: 4700000480357 [03:11:09]line Пиво шахтерское 1л ПЭТ [03:11:09]line 1.000 * 149.00 [03:11:09]line = 149.00 [03:11:09]line НДС 12% НСП 1% [03:11:09]line > о реализуемом товаре [03:11:09]line ИТОГО: 581.00 [03:11:09]line НСП 1% : 5.14 [03:11:09]line НДС 12% : 61.70 [03:11:09]line Наличными: 581.00 [03:11:09]line Безнал.: 0.00 [03:11:09]line Место: АЗС № 90 "Партнер Нефть" [03:11:09]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [03:11:09]line СНО: Общий режим [03:11:09]line Чек 17 23.09.2024 03:11 [03:11:09]line Смена: 472 ФФД: 1.0 [03:11:09]line ЗНМ: 0300000120 [03:11:09]line РНМ: 0000000000091831 [03:11:09]line Версия ККМ: 001 [03:11:09]line ФМ: 0000000000871830 [03:11:09]line ФД: 115534 [03:11:09]line ФПД: 81952851605876 [03:11:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T031107&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115534&fm=81952851605876&tin=02508201610067®Number=0000000000091831&sum=58100 [03:11:09]line 0 [03:11:09]OFD Sender: Processing packet 115534 [packets to send 481, broken 480] [03:11:09]ProducePacketName [03:11:09]name=ofd_packets/00115534 [03:11:09]OFD Sender: To server: pG, [03:11:09]CommunicateWithHost lk.salyk.kg:30040 [03:11:09]ConnectInit lk.salyk.kg [03:11:09]written 0, free lines is 4095 [03:11:09]Connected sock=10 [03:11:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 95 01 00 00 BA 91 8D 01 9A 1C 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 C0 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 18 00 00 00 00 07 04 06 00 F4 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 4B DC F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4E C3 01 00 35 04 06 00 4A 89 22 9B B9 74 3D 4F 90 95 23 AC D5 B7 [03:11:09]Write to MH i2c: 01 00 00 CA 06 D0 [03:11:09]Write i2c OK [03:11:09]MH_I2C_Read... [03:11:09]Read from MH i2c: 01 [03:11:09]MH_I2C_Read... [03:11:09]Read from MH i2c: 01 07 00 [03:11:09]MH_I2C_Read... [03:11:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C5 4E 47 00 00 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 31 38 33 30 10 04 04 00 4E C3 01 00 F4 03 04 00 8F 81 F0 66 B6 04 01 00 00 2E 6E 23 0A FA 66 D3 A8 [03:11:09]CommunicateWithHost err = 0 [03:11:09]CheckOFDResponse [03:11:09]1017 (14) - 77093643461234 [03:11:09]1041 (16) - 0000000000871830 [03:11:09]1040 (4) - 115534 [03:11:09]1012 (4) - 22.09.2024 20:43 [03:11:09]1206 (1) - 0 [03:11:09]OFD Sender: Remove packet 115534 [03:11:09]ProducePacketName [03:11:09]name=ofd_packets/00115534 [03:11:09]NVStorageDeleteData [03:11:09]Read from MH i2c: 01 07 00 CA 06 00 00 00 00 00 00 0C E3 [03:11:09]RasterBufferAndPrint [03:11:09]line [03:11:09]line [03:11:09]line [03:11:09]line [03:11:09]line [03:11:09]written 0, free lines is 3088 [03:11:09]MH_Cut [03:11:09]Write to MH i2c: D1 01 00 D1 06 01 A9 [03:11:09]Write i2c OK [03:11:09]MH_I2C_Read... [03:11:09]Read from MH i2c: D1 [03:11:09]MH_I2C_Read... [03:11:09]Read from MH i2c: D1 01 00 [03:11:09]MH_I2C_Read... [03:11:09]Read from MH i2c: D1 01 00 D1 06 00 A8 [03:11:09]Write to MH i2c: 01 00 00 D2 06 D8 [03:11:09]Write i2c OK [03:11:09]MH_I2C_Read... [03:11:10]OFD Sender: No OFD packet to send [03:11:10]*** Cut start [03:11:11]*** Partial cut [03:11:11]*** CUTSNS_PIN = 1 [03:11:11]*** CUTSNS_PIN = 0 [03:11:11]*** Brake cut motor [03:11:11]Read from MH i2c: 01 [03:11:11]MH_I2C_Read... [03:11:11]*** Stop cut motor [03:11:11]*** Cut end [03:11:11]Read from MH i2c: 01 07 00 [03:11:11]MH_I2C_Read... [03:11:11]Read from MH i2c: 01 07 00 D2 06 00 00 00 00 00 FF 0F ED [03:11:11]process_action close_receipt done [03:11:11]requested_data is exist [03:11:11]produce_requested_data [03:11:11]requested_item fm.sn is exist - process it [03:11:11]wFMCommunicate request_size=4 [03:11:11]MH_SAM_APDU [03:11:11]CAPDU: 80 11 00 00 [03:11:11]Write to MH i2c: E2 08 00 D3 06 80 11 00 00 00 00 00 00 53 [03:11:11]Write i2c OK [03:11:11]MH_I2C_Read... [03:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:11:11]Read from MH i2c: E2 [03:11:11]MH_I2C_Read... [03:11:11]Read from MH i2c: E2 17 00 [03:11:11]MH_I2C_Read... [03:11:11]Read from MH i2c: E2 17 00 D3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A1 [03:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:11:11]wFMCommunicate OK [03:11:11]requested_item fd.num is exist - process it [03:11:11]SAM_PROTO_GetFieldsCounters [03:11:11]wFMCommunicate request_size=4 [03:11:11]MH_SAM_APDU [03:11:11]CAPDU: 80 13 00 00 [03:11:11]Write to MH i2c: E2 08 00 D4 06 80 13 00 00 00 00 00 00 56 [03:11:11]Write i2c OK [03:11:11]MH_I2C_Read... [03:11:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:11:11]Read from MH i2c: E2 [03:11:11]MH_I2C_Read... [03:11:11]Read from MH i2c: E2 62 00 [03:11:11]MH_I2C_Read... [03:11:11]Read from MH i2c: E2 62 00 D4 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4E C3 01 00 0E 04 04 00 D8 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 8D [03:11:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4E C3 01 00 0E 04 04 00 D8 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 [03:11:11]wFMCommunicate OK [03:11:11]SAM_PROTO_GetFieldsCounters done [03:11:11]requested_item shift.num is exist - process it [03:11:11]requested_item shift.opened is exist - process it [03:11:11]req_shift_opened [03:11:11]FM_GetShiftState [03:11:11]SAM_PROTO_GetShiftState [03:11:11]wFMCommunicate request_size=4 [03:11:11]MH_SAM_APDU [03:11:11]CAPDU: 80 13 01 00 [03:11:11]Write to MH i2c: E2 08 00 D5 06 80 13 01 00 00 00 00 00 58 [03:11:11]Write i2c OK [03:11:11]MH_I2C_Read... [03:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:11:11]Read from MH i2c: E2 [03:11:11]MH_I2C_Read... [03:11:11]Read from MH i2c: E2 0E 00 [03:11:11]MH_I2C_Read... [03:11:11]Read from MH i2c: E2 0E 00 D5 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 99 [03:11:11]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [03:11:11]wFMCommunicate OK [03:11:11]SAM_PROTO_GetShiftState done [03:11:11]FM_GetShiftState done [03:11:11]req_shift_opened done [03:11:11]requested_item shift.open_date is exist - process it [03:11:11]req_shift_open_date [03:11:11]req_shift_open_date done [03:11:11]produce_requested_data done [03:11:11]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115534,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [03:11:11]process_action_free close_receipt [03:11:11]json_value_free [03:11:11]json_value_free done [03:11:11]process_json_proto returns [03:11:11]Send response to host [03:11:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115534,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [03:11:11]free response buf [03:11:11]execute_script done [03:11:11]execute_script returns [03:11:11]free content buf [03:11:11]Sock 9.Close socket [03:11:11]Sock 9.Thread stoped [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:47]OFD Sender: No OFD packet to send [03:26:52]OFD Sender: No OFD packet to send [03:26:57]OFD Sender: No OFD packet to send [03:27:02]OFD Sender: No OFD packet to send